| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Fix off by one error in mbuf access. Previously it caused panic.
While I'm here use NULL to compare mbuf pointer and add additional
check for zero length mbuf before accessing the mbuf.
PR: kern/162932
Notes:
svn path=/stable/7/; revision=229650
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add new tunable 'net.link.ifqmaxlen' to set default send interface
queue length. The default value for this parameter is 50, which is
quite low for many of today's uses and the only way to modify this
parameter right now is to edit if_var.h file. Also add read-only
sysctl with the same name, so that it's possible to retrieve the
current value.
Notes:
svn path=/stable/7/; revision=215368
|
| |
|
|
|
|
|
|
|
|
| |
Converted the remainder of the NIC drivers to use the mii_attach()
introduced in r213878 (MFC'ed to stable/7 in r214685) instead of
mii_phy_probe(). Unlike r213893 (MFC'ed to stable/7 in r214910)
these are mostly straight forward conversions though.
Notes:
svn path=/stable/7/; revision=214925
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add PNP id for Compex RL2000.
I'm not sure whether adding this logical id is correct or not
because Compex RL2000 is in the list of supported hardware list.
I guess the Compex RL2000 could be PCI variant while the controller
in question is ISA controller. It seems PNP compat id didn't match
or it had multiple compat ids so isa_pnp_probe() seemed to return
ENOENT.
PR: kern/80853
Notes:
svn path=/stable/7/; revision=213125
|
| |
|
|
|
|
|
|
|
| |
Fix a possible unaligned access to savebyte array.
PR: kern/122195
Notes:
svn path=/stable/7/; revision=213123
|
| |
|
|
|
|
|
|
|
| |
Fix shared memory packet movement.
Approved by: re@ (kostik)
Notes:
svn path=/stable/7/; revision=190665
|
| |
|
|
|
|
|
|
|
|
|
| |
reworked by me.
Submitted by: Osamu Hasegawa-san
PR: 93393
Approved by: re (hrs)
Notes:
svn path=/head/; revision=171352
|
| |
|
|
|
|
|
|
|
|
| |
of the mii phy is intended for this chip.
Found by: Coverity Prevent (tm)
CID: 43
Notes:
svn path=/head/; revision=168214
|
| |
|
|
|
|
|
|
| |
bus_release_resource(). This is needed for pc98 by upcoming nexus related
change.
Notes:
svn path=/head/; revision=167753
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bus_setup_intr()
o add an int return code to all fast handlers
o retire INTR_FAST/IH_FAST
For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current
Reviewed by: many
Approved by: re@
Notes:
svn path=/head/; revision=166901
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Implement a bunch of sysctl's to report the information
that's now always reported. Mvoe reporting of that info
to bootverbose, but maybe it can go away entirely.
dev.ed.X.type: string name
dev.ed.X.TxMem: amount of memory used for tx side of the card
dev.ed.X.RxMem: amount of memory used for rx side of the card
dev.ed.X.Mem: Total amount of mem on card.
o Better comments about where NE-2000 (and clones) gets their MAC
address from.
Notes:
svn path=/head/; revision=159538
|
| |
|
|
|
|
|
| |
unnecessary.
Notes:
svn path=/head/; revision=158651
|
| |
|
|
| |
Notes:
svn path=/head/; revision=158369
|
| |
|
|
|
|
|
|
|
|
|
| |
The ed driver on pc98 was broken by if_edvar.h rev1.31.
Reported by: Kaho Toshikazu (kaho at elam kais kyoto-u ac jp)
Tested by: Eiji Kato (ekato at a1 mbn or jp)
MFC after: 3 days
Notes:
svn path=/head/; revision=155874
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
into the card's memory.
# this eliminates a more of the ifdef soup in if_ed and if_edvar
# I've fixed the cbus drivers, but can't test them all easily.
If I've broken anything, please let me know.
Notes:
svn path=/head/; revision=154924
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to properly configure the right interface to use.
Also call the mediachg function when we set flags UP and are already
running. If this were a pure ifmedia driver, we'd not need to do this
since we'd be ignoring the linkX flags.
This reduces the number of ifdefs to support sub-devices a little as a
nice side effect. It also reduces the number of hpp interfaces
exposed by 33%.
Notes:
svn path=/head/; revision=154895
|
| |
|
|
| |
Notes:
svn path=/head/; revision=154894
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
man page that the ifconfig option link2 is used to disable the AUI
transceiver on the 3com boards (should also say HP PC Lan+). This
makes the connection clearer.
Add a note about why we set this flag prior to attaching the device.
We never set or clear the flag later, only test it. There can be no
races here, but this might be asthetically displeasing to some. Also
note that we may no longer need to have this knob at all as we may be
able to do it with the more sophisticated rc.d scripts we have today I
think the only reason it is there is because we didn't used to allow
its proper setting when configured to get the IP address via DHCP.
I'll note that this would be better handled by using ifmedia for all
ed cards, not just those with a miibus...
Notes:
svn path=/head/; revision=154892
|
| |
|
|
| |
Notes:
svn path=/head/; revision=154891
|
| |
|
|
|
|
|
|
|
|
| |
and play device with the ID of PNP8160. Sotr them while I'm here.
Submitted by: Sean Shapira sds at jazzie dotty com
MFC After: 1 week
Notes:
svn path=/head/; revision=154391
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
rather than in ifindex_table[]; all (except one) accesses are
through ifp anyway. IF_LLADDR() works faster, and all (except
one) ifaddr_byindex() users were converted to use ifp->if_addr.
- Stop storing a (pointer to) Ethernet address in "struct arpcom",
and drop the IFP2ENADDR() macro; all users have been converted
to use IF_LLADDR() instead.
Notes:
svn path=/head/; revision=152315
|
| |
|
|
|
|
|
|
|
| |
Also add Global Village lan modem, even though I'm unsure if it works.
Reported by: Alan newsletter at acsoftware dot org
Notes:
svn path=/head/; revision=151840
|
| |
|
|
| |
Notes:
svn path=/head/; revision=151551
|
| |
|
|
|
|
|
|
|
|
|
| |
attach routine. Go ahead and ask for it in the probe routine and be
just as wrong as all the other cards that ask for it there...
# this gets the RTL8019 on a SBC at work fully functional. 6.0 still treats
# the 8019 as a generic NE-2000, so these changes aren't relevant there.
Notes:
svn path=/head/; revision=151550
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
ed_probe_rtl80x9. In the pci case we call ed_probe_rtl80x9 first. In
the PCI case we were using the correct nic_offset by accident because
softc is initialized to zero. In the isa case we were using the wrong
value by accident, since ed_probe_WD80x3 sets the offset value to
0x10. This lead to the identification routines failing. Fix this
problem by always initalizing the nic_offset and asic_offset before
making ed_{asic,nic}_{in,out}* calls.
Notes:
svn path=/head/; revision=151547
|
| |
|
|
|
|
|
|
|
|
| |
the former is the ISA part, not the latter.
MFC After 6.0 is unfrozen (this bug doesn't exist in 6.0 because I didn't
MFC the rtl80x9 changes for ISA due to an error on my part)
Notes:
svn path=/head/; revision=151404
|
| |
|
|
|
|
|
|
|
|
|
|
| |
as a Novell NE-2000. This is necessary for unpatched qemu working
correctly. qemu claims to be a RTL8029, but doesn't implement the
RTL8029 specific registers at this time. I've created patches for
that, but there's no reason we can't use qemu's emulation w/o these
patches. This should make life easier for those folks that boot
FreeBSD via qemu.
Notes:
svn path=/head/; revision=151300
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ed_probe_generic8390 where we're calling it. It will be done as part
of ed_probe_Novel_generic after things are setup in a way that
ed_probe_generic8390 will grok.
o Fix operator precedence botch that causes a panic when setting the media
type for 10baseT connections.
o Save the type of device so that it prints with the rest of the probe.
# this should make it work with qemu again, but only if it has my patches
# to actually implement the RTL8029 specific registers.
Notes:
svn path=/head/; revision=151299
|
| |
|
|
| |
Notes:
svn path=/head/; revision=151225
|
| |
|
|
|
|
|
|
|
| |
generic sounding CIS "PCMCIA", "FAST ETHERENT CARD" and a bogus MANFID
code (0xffff and 0x1090). However, since I'm not aware of 'generic'
cards that aren't NE-2000oids, go with that and hope for the best.
Notes:
svn path=/head/; revision=151224
|
| |
|
|
| |
Notes:
svn path=/head/; revision=150959
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
o Add support for Tamarack TC5299J + MII found on SMC 8041TX V.2
and corega PCCCCTXD
o Add support for ISA/PCI RTL80[12]9 chips
o Improve support for the ax88790 based
o minor code movement
Submitted by: (#2) David Madole
Notes:
svn path=/head/; revision=150957
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
number of cards have been discovered to be matching on the strings of
the cis rather than manufacturer/product id for cards we already had a
prod id for. This is a result of getting the list from the NetBSD
driver which also includes the OID for the cards where such a
distinction mattered (since it was tested against the MAC address we
got from the card). Since we do not try to match OIDs, we do not need
the extra entries and they just waste space.
I'm guessing that some of the dlink entires (DE-660, DE-660+) and many
of the corega cards may fall into this boat and can safely be removed.
Notes:
svn path=/head/; revision=150581
|
| |
|
|
|
|
|
|
| |
if we should delete them also or not, but have decided not to do so
for the moment.
Notes:
svn path=/head/; revision=150580
|
| |
|
|
|
|
|
|
|
|
| |
attribute memory at 0xff0 to find its MAC address. This is another
instance of the IBM ethercard II from all apperances (short of popping
the lid). Update the entry to document which cards we support
actually need this functionality.
Notes:
svn path=/head/; revision=150520
|
| |
|
|
|
|
|
| |
need a sperate entry for it.
Notes:
svn path=/head/; revision=150518
|
| |
|
|
| |
Notes:
svn path=/head/; revision=150493
|
| |
|
|
|
|
|
| |
Submitted by: ru@
Notes:
svn path=/head/; revision=150326
|
| |
|
|
|
|
|
|
|
|
| |
could get an interrupt after we free the ifp, and the interrupt
handler depended on the ifp being still alive, this could, in theory,
cause a crash. Eliminate this possibility by moving the if_free to
after the bus_teardown_intr() call.
Notes:
svn path=/head/; revision=150306
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o eliminate the ED_NO_MIIBUS option. Now, you need miibus to use ed with
pccard. If you have an old ISA or PCI card w/o a miibus, then you'll still
be able to use the ed driver w/o miibus in the kernel. If you have pccard
you'll need mii now. Most pccards these days have miibus, and many
cards have ISSUES if you don't attach miibus. issues I don't want to
constantly rediagnose.
- Add new media_ioctl, mediachg and tick function pointers. The core
driver will call these if they aren't NULL, or return an error if they
are.
- migrate remaining mii code into if_ed_pccard.
o include some notes from my datasheet fishing. this may allow us to
get media status from some pccards.
o Fix one bug that's common to many drivers. call if_free(ifp) after
we tear down the interrupt. ed_intr() depends on ifp being there and
freeing it while interrupts can still happen is, ummm, bad.
Notes:
svn path=/head/; revision=150300
|
| |
|
|
| |
Notes:
svn path=/head/; revision=150215
|
| |
|
|
|
|
|
|
|
| |
that with the NIC set of registers rather than the ASIC registers. I
believe this was a harmless oversight, since we set ED_P0_CR to the
same value 5ms later, but just to be safe...
Notes:
svn path=/head/; revision=150145
|
| |
|
|
| |
Notes:
svn path=/head/; revision=150136
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Attach AX88x90's MII bus to system, and require its presence.
o Reorg the mii code a little, and move more of it into pccard attachment.
o Eliminate ed_pccard_{read,write}_attrmem in favor of a more appropriate
function in the pccard layer.
o Update comments to reflect knowledge gained.
o Update how re recognize a NE-2000 ROM. I found a couple of different
datasheets that define the structure of the PROM data, so the code's
old heuristics have been removed, and comments updated to reflect the
structure.
o Eliminate work around for EC2T. It is no longer needed, and was wrong
headed since the EC2T has a Winbound 82C926C in it, not a AX88x90.
o Add copyright to if_ed_pccard.c, since I believe I've re-written more than
3/4 of it.
# With these changes, all of my 20-odd ed based cards work, except for the
# NetGear FA-410, and I'm pretty sure that's a MII/PHY problem.
Notes:
svn path=/head/; revision=150108
|
| |
|
|
| |
Notes:
svn path=/head/; revision=150104
|
| |
|
|
|
|
|
|
| |
with edX at pciY. This removes 8*22 bytes from the strings. Not a
huge win, but a cheap one.
Notes:
svn path=/head/; revision=150102
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reduce the size of ed a little by removing some CIS based entries (others
likely can be removed too):
o The D-Link DFE-670TXD doesn't need its own entry based on strings.
o The Xircom CompactCard appears to be a TDK design, so list it there by ID
and remove the strings.
Increase the size of ed a little:
o Add support for the Addtron AE-660CT and Addtron AE-660. This is a very
generic NE-2000 clone (so generic that its CIS tags say NE-2000 generic
card!).
Notes:
svn path=/head/; revision=149922
|
| |
|
|
|
|
|
| |
locking from these routines.
Notes:
svn path=/head/; revision=149891
|
| |
|
|
| |
Notes:
svn path=/head/; revision=149890
|
| |
|
|
|
|
|
| |
o DLINK -> DL100XX
Notes:
svn path=/head/; revision=149842
|