#
347962 |
|
18-May-2019 |
brooks |
MFC r339703, r347365, r347703, r347940
r339703: Deprecate a number of less used 10 and 10/100 Ethernet devices.
The current deprecated list is: ae, bm, cs, de, dme, ed, ep, ex, fe, pcn, sf, sn, tl, tx, txp, vx, wb, xe
The list as refined as part of FCP-0101. Per the FCP, devices may be removed from the deprecation list if enough users are found or they are converted to iflib.
FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md
r347365: Update dme(4) to reflect that it will not be removed due to FCP-101.
dme(4) is the built-in NIC on a couple non-expandable mips platforms and thus should remain. The FCP has been updated to reflect this fact.
Discussed with: imp
r347703: FCP-101: ae(4) is sufficently popular to be moved to the keep list.
r347940: Remove the notice that ae(4) will be removed in FreeBSD 13.
MFC requested by: rgrimes Approved by: re (kib)
|
#
332290 |
|
08-Apr-2018 |
brooks |
GC never enabled support for SIOCGADDRROM and SIOCGCHIPID.
When de(4) was imported in 1997 the world was not ready for these ioctls. In over 20 years that hasn't changed so it seems safe to assume their time will never come.
Reviewed by: imp, jhb Approved by: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14889
|
#
332288 |
|
08-Apr-2018 |
brooks |
MFC r331797:
Use an accessor function to access ifr_data.
This fixes 32-bit compat (no ioctl command defintions are required as struct ifreq is the same size).
Reviewed by: kib Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14900
|
#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
330446 |
|
05-Mar-2018 |
eadler |
MFC r327231,r327232:
kernel: Fix several typos and minor errors lib: Fix several typos and minor errors
- duplicate words - typos - references to old versions of FreeBSD
|
#
315221 |
|
14-Mar-2017 |
pfg |
MFC r313982, r314068: sys: Replace zero with NULL for pointers.
Found with: devel/coccinelle
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
298955 |
|
03-May-2016 |
pfg |
sys/dev: minor spelling fixes.
Most affect comments, very few have user-visible effects.
|
#
291095 |
|
20-Nov-2015 |
skra |
Fix build when KTR is defined but not KTR_TULIP.
Approved by: kib (mentor)
|
#
271849 |
|
19-Sep-2014 |
glebius |
Mechanically convert to if_inc_counter().
|
#
267589 |
|
17-Jun-2014 |
jhb |
Don't bother clearing maps for static DMA allocations to NULL. Instead, leave them as purely opaque values that are only set by bus_dmamem_alloc().
|
#
267365 |
|
11-Jun-2014 |
jhb |
Fix a few more drivers that were explicitly destroying the bus_dma map created by bus_dmamem_alloc().
|
#
257176 |
|
26-Oct-2013 |
glebius |
The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare to this event, adding if_var.h to files that do need it. Also, include all includes that now are included due to implicit pollution via if_var.h
Sponsored by: Netflix Sponsored by: Nginx, Inc.
|
#
243857 |
|
04-Dec-2012 |
glebius |
Mechanically substitute flags from historic mbuf allocator with malloc(9) flags in sys/dev.
|
#
232874 |
|
12-Mar-2012 |
scottl |
More conversions of drivers to use the PCI parent DMA tag.
|
#
228471 |
|
13-Dec-2011 |
ed |
Replace `inline static' by `static inline'.
If I interpret the C standard correctly, the storage specifier should be placed before the inline keyword. While at it, replace __inline by inline in the files affected.
|
#
201758 |
|
07-Jan-2010 |
mbr |
Remove extraneous semicolons, no functional changes.
Submitted by: Marc Balmer <marc@msys.ch> MFC after: 1 week
|
#
199378 |
|
17-Nov-2009 |
jhb |
Use a private timer to run the statistics timer instead of (ab)using if_watchdog and if_timer.
Tested by: WATANABE Kazuhiro CQG00620 of nifty.ne.jp
|
#
197465 |
|
24-Sep-2009 |
yongari |
Align Tx/Rx descriptors on 32 bytes boundary instead of PAGE_SIZE. Also align setup descriptor on 32 bytes boundary. Tx buffer have no alignment limitation so create dmamap without alignment restriction[1]. Rx buffer still seems to require 4 bytes alignment limitation but we can simply use MCLBYTES for size to map the buffer instead of TULIP_DATA_PER_DESC as the buffer is allocated with m_getcl(9). de(4) supports up to TULIP_MAX_TXSEG segments for Tx buffers, increase maximum dma segment size to TULIP_MAX_TXSEG * MCLBYTES. While I'm here remove TULIP_DATA_PER_DESC as it is not used anymore.
This should fix de(4) breakage introduced after r176206.
Submitted by: jhb [1] Reported by: WATANABE Kazuhiro < CQG00620 <> nifty dot ne dot jp > Tested by: WATANABE Kazuhiro < CQG00620 <> nifty dot ne dot jp >, Takahashi Yoshihiro < nyan <> jp dot freebsd dot org >
|
#
197464 |
|
24-Sep-2009 |
yongari |
Destroy dmamap in dma cleanup.
|
#
197463 |
|
24-Sep-2009 |
yongari |
Consistently use bus_addr_t.
|
#
197461 |
|
24-Sep-2009 |
yongari |
Use __NO_STRICT_ALIGNMENT to determine whether de(4) have to apply alignment fixup code for received frames on strict alignment architectures.
|
#
195049 |
|
26-Jun-2009 |
rwatson |
Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/ IF_ADDR_UNLOCK() across network device drivers when accessing the per-interface multicast address list, if_multiaddrs. This will allow us to change the locking strategy without affecting our driver programming interface or binary interface.
For two wireless drivers, remove unnecessary locking, since they don't actually access the multicast address list.
Approved by: re (kib) MFC after: 6 weeks
|
#
188396 |
|
09-Feb-2009 |
fjoe |
tulip_busdma_cleanup: pass correct vaddr (2nd arg) to bus_dmamem_free()
Found with: Coverity Prevent(tm) CID: 1998
|
#
177937 |
|
05-Apr-2008 |
jhb |
During attach on some de(4) adapters the driver sends out a test packet as part of detecting the media. Explicitly ensure that we don't send it to bpf(4) as bpf(4) isn't setup yet. This worked by accident before the bpf interface stuff was reworked to avoid other races (bpf_peers_present, etc.) but now it needs an explicit check to avoid a panic.
MFC after: 3 days PR: kern/120915
|
#
170389 |
|
06-Jun-2007 |
yongari |
The maxsegsz of a dma tag created in de(4) is TULIP_DATA_PER_DESC bytes. In Rx path it allocates a new mbuf with m_getcl(9) so the length of the mbuf is MCLBYTES which is greater than a segment size specified by the dma tag. This segment size mismatch caused a voluntary panic. Fix the panic by settting the mbuf length to TULIP_DATA_PER_DESC.
Reported by: Arne H Juul <arnej AT yahoo-inc DOT com> Tested by: Arne H Juul <arnej AT yahoo-inc DOT com>
|
#
166901 |
|
23-Feb-2007 |
piso |
o break newbus api: add a new argument of type driver_filter_t to 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@
|
#
162321 |
|
15-Sep-2006 |
glebius |
- Consistently use if_printf() only in interface methods: if_start(), if_watchdog, etc., or in functions used only in these methods. In all other functions in the driver use device_printf(). - Use __func__ instead of typing function name.
Submitted by: Alex Lyashkov <umka sevcity.net>
|
#
158471 |
|
12-May-2006 |
jhb |
Remove various bits of conditional Alpha code and fixup a few comments.
|
#
156034 |
|
26-Feb-2006 |
imp |
Repo copy de driver to dev/de, and adjust.
|
#
153644 |
|
22-Dec-2005 |
jhb |
Use the copy of the card's MAC address saved in tulip_enaddr() in the softc if we need a valid MAC address (for probing the media for example) before ether_ifattach() has been called since IF_LLADDR() is NULL then.
Tested by: tisco
|
#
152992 |
|
01-Dec-2005 |
ru |
Fix the type of "eaddr" to guarantee the required alignment.
Suggested by: marcel
|
#
152962 |
|
30-Nov-2005 |
ru |
Byte copy IF_LLADDR() on stack to align it to be safe for typecasts.
Tested by: jhb
|
#
152666 |
|
21-Nov-2005 |
jhb |
Various fixes to make de(4) not panic after ru@'s IF_LLADDR() changes: - Don't call tulip_addr_filter() to reset the RX address filter in tulip_reset() since that gets called before ether_ifattach(). Just call it in tulip_init_locked(). - Use be16dec() and le16dec() to parse MAC addresses when programming the RX filter. - Let ether_ioctl() handle SIOCSIFMTU since we were doing the exact same thing with the added bonus that we leaked the driver lock if the MTU was > ETHERMTU in the homerolled version. This part will be MFC'd.
Clue from: wpaul (1) Stolen from: marcel (2 via patch for dc(4)) MFC after: 1 week
|
#
152315 |
|
11-Nov-2005 |
ru |
- Store pointer to the link-level address right in "struct ifnet" 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.
|
#
149497 |
|
26-Aug-2005 |
jhb |
- Use m_defrag() instead of homerolling our own variant tulip_mbuf_compress(). If we fail to allocate a new mbuf to copy the data into, put the mbuf back in the driver's send queue so that we can retry it later rather than throwing the packet away. - Use m_devget() instead of doing it inline ourselves in the TULIP_COPY_RXDATA case. If we fail to allocate an mbuf to copy the data into, don't forget about the original mbuf cluster. The old code would lose the pointer and leak the cluster in that case. Now it doesn't lose it but always sticks the original rx buffer back into the receive ring after trying to copy the data out and send it up the stack. Also, if we fail to allocate a new mbuf to copy the data into, log an input error. Also, don't combine the priming case with the received-a-packet case to make the code flow a bit clearer and easier to follow.
|
#
149476 |
|
25-Aug-2005 |
jhb |
- Remove non-bus-dma code. - Remove form feed characters. - Fixup style of function declarations. - Assume that an mbuf cluster is big enough to hold an ethernet frame. (This should really be using m_defrag(), but this diff is just simple changes for now.)
|
#
149473 |
|
25-Aug-2005 |
jhb |
Major rototill of this driver to add FreeBSD bus-dma support: - Allocate arrays of metadata for the descriptors in the rx and tx rings and change the ring pointers to walk the metadata array rather than the actual descriptor rings. Each metadata object contains a pointer to its descriptor, a pointer to any associated mbuf, and a pointer to the associated bus_dmamap_t in the bus_dma case. The mbuf pointers replace the tulip_txq and tulip_rxq local ifqueue's in the softc. - Add lots of KTR trace entries using a local KTR_TULIP level which defaults to 0, but can be changed to KTR_DEV at the top of the file when debugging. - Rename tulip_init(), tulip_start(), tulip_ifinit(), and tulip_ifstart() to tulip_init_locked(), tulip_start_locked(), tulip_init(), and tulip_start(), respectively, to match the convention in other drivers. - Add a TULIP_SP_MAC() macro to encode two bytes of the MAC address into the setup buffer and use that in place of lots of BYTE_ORDER #ifdef's. Also, remove an incorrect XXX comment I added earlier, the driver was correct (at least it does the same thing dc(4) does). TULIP_SP_MAC was shamelessly copied from DC_SP_MAC() in dc(4). - Remove the #ifdef'd NetBSD bus-dma code and replace it with FreeBSD bus-dma code that not only compiles but even works at runtime. - Use callout_init_mtx() instead of just callout_init(). - Correct the various wrapper macros for bus_dmamap_sync() for the rx and tx buffers to only ask for the sync ops that they actually need. - Tidy the #ifdef TULIP_COPY_RXDATA code by expanding an #ifdef a bit so it becomes easier to read at the expense of a couple of duplicated lines of code. Also, use m_getcl() to get an mbuf cluster rather than MGETHDR() followed by MCLGET(). - Maintain the ring free (ri_free) count for the rx ring metadata since we no longer have tulip_rxq.ifq_len around to indicate how many mbuf's are currently in the rx ring. - Add code to teardown bus_dma resources when attach fails and generally fixup attach to do a better job of cleaning up when it fails. This gets us a good bit closer to possibly having a detach method someday and making this driver an unloadable module. - Add some functions that can be called from ddb to dump the state of a descriptor ring and to dump the state of an individual descriptor. - Various comment grammer and spelling fixes.
I have bus-dma turned on by default, but I've left the non-bus-dma code around so that it can be turned off to aid in debugging should any problems turn up later on. I'll be removing the non-bus-dma code in a subsequent commit.
|
#
149206 |
|
17-Aug-2005 |
jhb |
- Use htole32() instead of using bswap32() conditional on #if BYTE_ORDER. - Don't set IFF_ALLMULTI in our ifnet's if_flags if we end up allowing all multicast due to limits in the MAC receive filters in hardware.
Requested by: rwatson (2)
|
#
148906 |
|
09-Aug-2005 |
jhb |
Call tulip_start() rather than tulip_ifstart() from the interrupt handler to avoid recursing on the driver lock. Not sure why my test box didn't catch this earlier.
MFC after: 3 days
|
#
148887 |
|
09-Aug-2005 |
rwatson |
Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE and IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field.
Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so.
Reviewed by: pjd, bz MFC after: 7 days
|
#
148654 |
|
02-Aug-2005 |
rwatson |
Modify device drivers supporting multicast addresses to lock if_addr_mtx over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list.
Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> MFC after: 1 week
|
#
148445 |
|
27-Jul-2005 |
jhb |
- Use callout_*() rather than timeout() to periodically poll the media. - Add locking to protect the softc and mark this driver as MP safe. There are still some edge cases with multiport cards that need more locking work.
MFC after: 1 week Tested on: alpha
|
#
148256 |
|
21-Jul-2005 |
jhb |
- Use the PCIR_BAR() macro rather than hardcoding rids. - Use pci_enable_busmaster() rather than fiddling with the PCI command register directly.
|
#
148255 |
|
21-Jul-2005 |
jhb |
Don't set if_start to tulip_ifstart all over the place. It is already set in tulip_attach() and its value is never changed, so all the extra sets are redundant. I'm guessing that at some point in time de(4) had an alternate start routine, but that hasn't been true in recent history.
|
#
148252 |
|
21-Jul-2005 |
jhb |
Remove conditional code that has largely rotted that is also not on by default: - TULIP_NEED_FASTTIMEOUT - tulip_fasttimeout() wasn't called anywhere - BIG_PACKET - only worked on i386 anyway - TULIP_USE_SOFTINTR - doesn't compile and was never updated to handle new netisr registration - non-FreeBSD code
|
#
147256 |
|
10-Jun-2005 |
brooks |
Stop embedding struct ifnet at the top of driver softcs. Instead the struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com.
This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go.
Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr.
Reviewed by: sobomax, sam
|
#
142398 |
|
24-Feb-2005 |
imp |
Return BUS_PROBE_DEFAULT instead of 0.
|
#
137402 |
|
08-Nov-2004 |
phk |
Hide link up/down/media printfs behind bootverbose
|
#
136683 |
|
18-Oct-2004 |
jmg |
fix (for me) the problems where if_de gets really slow after time (usually taking 20 seconds to transmit a packet).. no longer fall back to only transmitting one packet (instead of the entire queue) after we have processed the entire send queue... I have no idea why we didn't start seeing this problem ~6 years ago when this code was introduced...
|
#
133674 |
|
13-Aug-2004 |
rwatson |
Since the if_de driver doesn't contain locking, mark it as IFF_NEEDSGIANT so that ifp->if_start won't be called without Giant when running debug.mpsafenet=1.
|
#
131651 |
|
05-Jul-2004 |
bms |
style(9) pass on prototypes.
|
#
131575 |
|
04-Jul-2004 |
stefanf |
Consistently use __inline instead of __inline__ as the former is an empty macro in <sys/cdefs.h> for compilers without support for inline.
|
#
131455 |
|
02-Jul-2004 |
mlaier |
Bring in the first chunk of altq driver modifications. This covers the following drivers: bfe(4), em(4), fxp(4), lnc(4), tun(4), de(4) rl(4), sis(4) and xl(4)
More patches are pending on: http://peoples.freebsd.org/~mlaier/ Please take a look and tell me if "your" driver is missing, so I can fix this.
Tested-by: many No-objection: -current, -net
|
#
130270 |
|
09-Jun-2004 |
naddy |
Replace handrolled CRC calculation with ether_crc32_[lb]e().
|
#
129878 |
|
30-May-2004 |
phk |
Add missing <sys/module.h> includes
|
#
127135 |
|
17-Mar-2004 |
njl |
Convert callers to the new bus_alloc_resource_any(9) API.
Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
|
#
126966 |
|
14-Mar-2004 |
mdodd |
Announce ethernet MAC addresss in ether_ifattach().
|
#
126847 |
|
11-Mar-2004 |
mux |
Stop setting ifp->if_output to ether_output() since ether_ifattach() does it for us already.
|
#
121816 |
|
31-Oct-2003 |
brooks |
Replace the if_name and if_unit members of struct ifnet with new members if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance.
This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics.
Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
|
#
119288 |
|
22-Aug-2003 |
imp |
Prefer new location of pci include files (which have only been in the tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
|
#
116192 |
|
11-Jun-2003 |
obrien |
Use __FBSDID().
|
#
115519 |
|
31-May-2003 |
phk |
Move some FALLTHROUGH comments so they work. Fix indentation error. Make boardid string long enough. Remove unused variable.
Found by: FlexeLint
|
#
113506 |
|
15-Apr-2003 |
mdodd |
- Express hard dependencies on bus (pci, isa, pccard) and network layer (ether). - Don't abuse module names to facilitate ifconfig module loading; such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.)
|
#
112469 |
|
21-Mar-2003 |
mdodd |
- Use if_broadcastaddr from struct ifnet rather than relying on extern 'etherbroadcastaddr'. - Make 'etherbroadcastaddr' static.
Reviewed by: imp
|
#
111119 |
|
19-Feb-2003 |
imp |
Back out M_* changes, per decision of the TRB.
Approved by: trb
|
#
109623 |
|
21-Jan-2003 |
alfred |
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
#
108533 |
|
01-Jan-2003 |
schweikh |
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, especially in troff files.
|
#
106936 |
|
14-Nov-2002 |
sam |
o track either_ifattach/ether_ifdetach API changes o use if_input for input packet processing o don't strip the Ethernet header for input packets o use BPF_* macros bpf tapping o call ether_ioctl to handle default ioctl case o track vlan changes
Reviewed by: many Approved by: re
|
#
102412 |
|
25-Aug-2002 |
charnier |
Replace various spelling with FALLTHROUGH which is lint()able
|
#
97748 |
|
02-Jun-2002 |
schweikh |
Fix typo in the BSD copyright: s/withough/without/
Spotted and suggested by: des MFC after: 3 weeks
|
#
95533 |
|
26-Apr-2002 |
mike |
Move the new byte order function prototypes from <sys/param.h> to <sys/endian.h>. This puts us in line with NetBSD and OpenBSD.
|
#
72084 |
|
06-Feb-2001 |
phk |
Convert if_multiaddrs from LIST to TAILQ so that it can be traversed backwards in the three drivers which want to do that.
Reviewed by: mikeh
|
#
72012 |
|
04-Feb-2001 |
phk |
Another round of the <sys/queue.h> FOREACH transmogriffer.
Created with: sed(1) Reviewed by: md5(1)
|
#
71999 |
|
04-Feb-2001 |
phk |
Mechanical change to use <sys/queue.h> macro API instead of fondling implementation details.
Created with: sed(1) Reviewed by: md5(1)
|
#
69152 |
|
25-Nov-2000 |
jlemon |
Lock down the network interface queues. The queue mutex must be obtained before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex.
IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged.
Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
|
#
68021 |
|
30-Oct-2000 |
markm |
Convert the de driver into a loadable module. Still missing is an unload method. Lots of old cruft is removed.
Thanks to WPaul for large clue-injection and debugging services.
Reviewed by: wpaul
|
#
67164 |
|
15-Oct-2000 |
phk |
Remove unneeded #include <machine/clock.h>
|
#
63090 |
|
13-Jul-2000 |
archie |
Make all Ethernet drivers attach using ether_ifattach() and detach using ether_ifdetach().
The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations.
Reviewed by: julian, freebsd-net
|
#
61040 |
|
28-May-2000 |
peter |
Use the correct name for the PCI command register (PCIR_COMMAND). Don't use constant that used to be a variable in our (very) old pci code.
|
#
60536 |
|
14-May-2000 |
archie |
Move code to handle BPF and bridging for incoming Ethernet packets out of the individual drivers and into the common routine ether_input(). Also, remove the (incomplete) hack for matching ethernet headers in the ip_fw code.
The good news: net result of 1016 lines removed, and this should make bridging now work with *all* Ethernet drivers.
The bad news: it's nearly impossible to test every driver, especially for bridging, and I was unable to get much testing help on the mailing lists.
Reviewed by: freebsd-net
|
#
60528 |
|
13-May-2000 |
dfr |
Use bus_space for all register accesses.
|
#
60102 |
|
06-May-2000 |
jlemon |
Bounce a copy of the mbuf to the bpf listener when we submit the frames for transmit to the adapter, not when we receive a transmit interrupt indicating that they were sent. This fix now allows tcpdump to produce sane results by recording the timestamp at the point where the mbuf was actually transmitted.
|
#
59629 |
|
25-Apr-2000 |
phk |
Ignore tulip chips on LanMedia WAN cards.
|
#
58339 |
|
20-Mar-2000 |
peter |
A fairly simple newbusification of if_de
|
#
57249 |
|
16-Feb-2000 |
mjacob |
Include the file that defines PCIM_CMD_BUSMASTEREN.
|
#
57248 |
|
15-Feb-2000 |
msmith |
Ensure that the busmaster enable bit is set; we can't assume that all BIOS code will get this right (and some certainly doesn't).
Submitted by: W. Gerald Hicks <jhix@mindspring.com> Approved by: jkh
|
#
51646 |
|
25-Sep-1999 |
phk |
Remove NBPF conditionality of bpf calls in most of our network drivers.
This means that we will not have to have a bpf and a non-bpf version of our driver modules.
This does not open any security hole, because the bpf core isn't loadable
The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be.
Add a couple of missing FreeBSD tags.
|
#
50133 |
|
21-Aug-1999 |
billf |
Add missing include.
Submitted by: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org> Reviewed by: Alex Perel <veers@disturbed.net>
|
#
50107 |
|
21-Aug-1999 |
msmith |
Implement a new generic mechanism for attaching handler functions to events, in order to pave the way for removing a number of the ad-hoc implementations currently in use.
Retire the at_shutdown family of functions and replace them with new event handler lists.
Rework kern_shutdown.c to take greater advantage of the use of event handlers.
Reviewed by: green
|
#
50055 |
|
19-Aug-1999 |
peter |
Replace the tulip_delay_300ns() with a DELAY(1). Hammering the PCI bus to achieve a delay is pretty mean.
Andrew reports: "The tulip_delay_300ns() is, well, bloody stupid on machines with a heavily loaded PCI bus. It tries to do a delay by assuming PCI reads will take a certain amount of time & issues a large amount of (expensive, 5% CPU when your PCI bus is heavily loaded) pci reads.
Locally, we've replaced the calls to tulip_delay_300ns(sc) in the EMIT macros with a simple DELAY(1) and not seen any problems. Plus we've gained about 50Mb/sec throughput on our gigabit network cards because of the added PCI bus bandwidth available."
Also, I do not understand why, but this change appears to stop the Transmit Fifo underrun on one of my systems (but not the Alpha PC164SX). This shouldn't make that much of a difference since the mii bus isn't touched all that often, but perhaps when it does get accessed and hence hammers the register, it was causing the chip to get upset.
Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
|
#
49575 |
|
09-Aug-1999 |
peter |
A little more tidying up.
|
#
49572 |
|
09-Aug-1999 |
peter |
Expand a heap of macros that obscure readability and are no longer needed here, and do a bit of general tidy up.
|
#
49568 |
|
09-Aug-1999 |
peter |
More pre-lite2 support zapped and some more tidy-up.
|
#
49567 |
|
09-Aug-1999 |
peter |
Unifdef -D__FreeBSD__ - and remove pre-lite2 support.
|
#
49566 |
|
09-Aug-1999 |
peter |
Unifdef -U__NetBSD__
|
#
49563 |
|
09-Aug-1999 |
peter |
Unifdef -U__bsdi__
|
#
49562 |
|
09-Aug-1999 |
peter |
s/Id/FreeBSD/
|
#
49561 |
|
09-Aug-1999 |
peter |
Strip __FreeBSD_version >= 300000 conditionals.
|
#
49560 |
|
09-Aug-1999 |
peter |
Merge changes from NetBSD rev 1.82 -> 1.86 via vendor branch. Among the changes: 1.84: support compex 4-port cards.
|
#
48645 |
|
06-Jul-1999 |
des |
Rename bpfilter to bpf.
|
#
48528 |
|
03-Jul-1999 |
peter |
Eliminate a bunch of #include "pci.h" and #if NPCI > 0 around entire files. config will leave the whole file out if configured to do so.
|
#
46896 |
|
10-May-1999 |
peter |
#include "pci.h" for the build dir, not <pci.h>
|
#
46813 |
|
09-May-1999 |
peter |
Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: #define COMPAT_PCI_DRIVER(name,data) DATA_SET(pcidevice_set,data) .. to 2.2.x and 3.x if people think it's worth it. Driver writers can do this if it's not defined. (The reason for this is that I'm trying to progressively eliminate use of linker_sets where it hurts modularity and runtime load capability, and these DATA_SET's keep getting in the way.)
|
#
46356 |
|
03-May-1999 |
dfr |
Changes to support diskless booting on the alpha: * Make the network code in the bootstrap more chatty (helps debugging) * Add nfs root stuff to cpu_rootconf(). I also added a check to make sure it really was netbooting which allows the use of the same kernel for local and network boots. * Tweak the de driver so that it takes the speed setting from the console for the alpha (some PWSs have broken de chipsets). This is the same behaviour as NetBSD/alpha.
Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
|
#
46024 |
|
24-Apr-1999 |
peter |
Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't hurt the driver portability to 3.x too much for where drivers are shared.
|
#
44829 |
|
17-Mar-1999 |
luigi |
MF22... add bridging support to the device drivers. Without this bridging cannot work on -current/releng3!
|
#
44738 |
|
14-Mar-1999 |
peter |
Merge NetBSD 1.80->1.82 changes from vendor branch into mainline.
|
#
44719 |
|
13-Mar-1999 |
peter |
set if_snd.ifq_maxlen to something reasonable - note that if_de.c has a wierd double-queue arrangement.. It always empties the if_snd queue then puts the transmit packets into a different queue that is limited by the number of TX descriptors and does it's own discards... This should stop the boot-time XXX warning anyway.
|
#
44377 |
|
01-Mar-1999 |
luigi |
Fix handling of IFF_ALLMULTI. The code did not call tulip_addr_filter() on SIOCSIFFLAGS, and was nuking the IFF_ALLMULTI on entering tulip_addr_filter(). As a result it was impossible to run a multicast router on a machine with a "de" interface.
|
#
43391 |
|
29-Jan-1999 |
bde |
Removed a bogus cast to v_caddr_t. This is part of terminating v_caddr_t with extreme prejudice. Here the bogons were originally the same as for c_caddr_t (half-baked K&R support), but rev.1.95 changed one wrong cast and one harmless cast to 2 wrong casts, and rev.1.96 only fixed the originally wrong cast.
|
#
43386 |
|
29-Jan-1999 |
bde |
Removed bogus casts to c_caddr_t. This is part of terminating c_caddr_t with extreme prejudice. Here the original casts to caddr_t were to support K&R compilers (or missing prototypes), but the relevant source files require an ANSI compiler.
|
#
43351 |
|
28-Jan-1999 |
dillon |
Fix warnings related to -Wall -Wcast-qual
|
#
43311 |
|
27-Jan-1999 |
dillon |
Fix warnings in preparation for adding -Wall -Wcast-qual to the kernel compile
|
#
43309 |
|
27-Jan-1999 |
dillon |
Fix warnings in preparation for adding -Wall -Wcast-qual to the kernel compile.
This commit includes significant work to proper handle const arguments for the DDB symbol routines.
|
#
42155 |
|
29-Dec-1998 |
hoek |
Silence -Wtrigraph.
Submitted by: Bradley Dunn <bradley@dunn.org> (pr: kern/8817)
|
#
41766 |
|
14-Dec-1998 |
dillon |
pci_device pd_probe function changed from returning char * to returning const char *. Originally I was going to add casts from const char * to char * in some of the pci device drivers, but the reality is that the pci device probes return constant quoted strings.
|
#
41377 |
|
27-Nov-1998 |
msmith |
Alias Adaptec as a vendor of Cogent NICs.
|
#
40944 |
|
06-Nov-1998 |
peter |
If this is going to have checks for kernel versions, it might as well do it so that it works. This code should run on 2.2.x now.
|
#
40339 |
|
14-Oct-1998 |
peter |
Revert part of previous commit. vaddr_t doesn't exist on FreeBSD. This didn't affect the x86 kernel due to #ifdefs. It broke FreeBSD/Alpha kernel compiles though.
|
#
40290 |
|
13-Oct-1998 |
peter |
Update from NetBSD if_de.c 1.72 to 1.80. This is mostly bugfixes, and looks like it will have most effect on decoding device capabilities and configuration.
Approved by: jkh
|
#
40163 |
|
10-Oct-1998 |
peter |
Attempt to work around the page fault in tulip_txput(). I've been running this myself for ages, but wasn't able to get any feedback from the people that I sent it to for testing.
Guy Helmer <ghelmer@scl.ameslab.gov> has given it a shot (before getting on a plane, thanks!) and it appears to stop his reproducable page fault panic in the testing he was able to do.
|
#
39621 |
|
24-Sep-1998 |
peter |
Change #if __FreeBSD__ >= 3 to #if __FreeBSD_version >= 300000 to aid bootstrapping from a 2.2.x system.
|
#
37649 |
|
15-Jul-1998 |
bde |
Cast pointers to uintptr_t/intptr_t instead of to u_long/long, respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types.
|
#
37492 |
|
07-Jul-1998 |
peter |
Merge changes from vendor branch.
|
#
36945 |
|
13-Jun-1998 |
peter |
Merge changes from vendor branch; - connector selection values (should fix aui/bnc), - non-shifting version of crc calculation using a table, - interrupt mask adjustments, - add some brackets where a #ifdef could break an if(), - don't reset the card unless it's up.
|
#
34317 |
|
08-Mar-1998 |
peter |
merge benfor branch changes onto mainline.
|
#
34266 |
|
08-Mar-1998 |
julian |
Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman) Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
|
#
33676 |
|
20-Feb-1998 |
bde |
Removed unused #includes.
|
#
33134 |
|
06-Feb-1998 |
eivind |
Back out DIAGNOSTIC changes.
|
#
33108 |
|
04-Feb-1998 |
eivind |
Turn DIAGNOSTIC into a new-style option.
|
#
32350 |
|
08-Jan-1998 |
eivind |
Make INET a proper option.
This will not make any of object files that LINT create change; there might be differences with INET disabled, but hardly anything compiled before without INET anyway. Now the 'obvious' things will give a proper error if compiled without inet - ipx_ip, ipfw, tcp_debug. The only thing that _should_ work (but can't be made to compile reasonably easily) is sppp :-(
This commit move struct arpcom from <netinet/if_ether.h> to <net/if_arp.h>.
|
#
31742 |
|
15-Dec-1997 |
eivind |
Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.
The #ifdef IPXIP in netipx/ipx_if.h is OK (used from ipx_usrreq.c and ifconfig.c only).
I also fixed a typo IPXTUNNEL -> IPTUNNEL (and #ifdef'ed out the code inside, as it never could have compiled - doh.)
|
#
31350 |
|
22-Nov-1997 |
bde |
Ifdefed a conditionally used #include.
Staticized.
|
#
31041 |
|
08-Nov-1997 |
peter |
Merge 971020 stuff.. Check 21142? SROM CRC.
|
#
30706 |
|
25-Oct-1997 |
phk |
Recognize even more of the Znyx 314 cards.
|
#
30556 |
|
18-Oct-1997 |
peter |
Merge in changes from Matt. Accton EN12xx support, bugfixes. There is a change that might have an effect on the problems some have seen with older chips, it looks like the driver may have mistakenly thought there was an SIA when there isn't.
|
#
30342 |
|
12-Oct-1997 |
peter |
Attempt to support IPX.
Suggested patch by: Vasily V. Grechishnikov <bazilio@ied-vorstu.ac.ru> (plus cut/paste, whitespace and typo fixes)
|
#
29627 |
|
20-Sep-1997 |
peter |
``oops''. I cut/pasted the original free()'s based on mark's suggestion rather than extracting the diff from Mark's patch, but it turns out that I was freeing one allocation twice due to a previous cut/paste braino. My botch, not Mark's.
Pointed out by: Mark Valentine <mv@pobox.com>
|
#
29570 |
|
18-Sep-1997 |
peter |
Missed a place where the extra descriptor buffers would need to be freed.
Submitted by: Mark Valentine <mark@linus.demon.co.uk>
|
#
29306 |
|
11-Sep-1997 |
peter |
malloc() the rx and tx descriptors seperately rather than as part of the large (over 4KB) softc struct. The descriptor array is accessed by busmaster dma and must be physically contiguous in memory. malloc() of a block greater than a page is only virtually contiguous, and not necessarily physically contigious.
contigmalloc() could do this, but that is a bit on the overkill side.
I'm not sure of the origins of the problem report and diagnosis, I learned of the problem via mail forwarded from Jim Shankland <jas@flyingfox.com>.
Jim said that Matt Thomas's workaround was to reduce the number of transmit descriptors from 128 to 32, but I was concerned that it might cost performance. Anyway, this change is my fault, not Jim's. :-)
Reviewed by: davidg
|
#
29041 |
|
02-Sep-1997 |
bde |
Removed unused #includes.
|
#
27862 |
|
03-Aug-1997 |
peter |
Merge Matt's if_de.c changes in.
|
#
26797 |
|
22-Jun-1997 |
peter |
Initial set of patches to get it to compile on >= 3.0. Most of the changes relative to the 2.2 compatable version are include file related, the new multicast interface (!) and the new PCI interface.
This should work "as-is" but has not been tested (I have not been able to get a dc21x4x based card for testing).
|
#
24646 |
|
05-Apr-1997 |
phk |
Recognize ZNYX 314 cards that have a MAC address with the low bit set.
|
#
24204 |
|
24-Mar-1997 |
bde |
Don't include <sys/ioctl.h> in the kernel. Stage 2: include <sys/sockio.h> instead of <sys/ioctl.h> in network files.
|
#
24134 |
|
23-Mar-1997 |
kato |
Added Accton EN1207-TX support.
|
#
24061 |
|
20-Mar-1997 |
kato |
Added Allied Telesis CenterCOM LA100-PCI support. Currently, full duplex mode doesn't work.
|
#
23040 |
|
23-Feb-1997 |
joerg |
Add support for the SMC9332BDT that's using the DE21140A chip. This is merely a stop-gap measure until we can import an upgraded driver from Matt Thomas.
Closes PR # 2696, and most likely also 2767.
OKed by: core
|
#
22975 |
|
22-Feb-1997 |
peter |
Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not ready for it yet.
|
#
21673 |
|
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
#
21666 |
|
13-Jan-1997 |
wollman |
Use the new if_multiaddrs list for multicast addresses rather than the previous hackery involving struct in_ifaddr and arpcom. Get rid of the abominable multi_kludge. Update all network interfaces to use the new machanism. Distressingly few Ethernet drivers program the multicast filter properly (assuming the hardware has one, which it usually does).
|
#
20060 |
|
01-Dec-1996 |
rgrimes |
Cosmetic code cleanup from Matt's latest driver.
a) Removal of private typedefs tulip_uint*_t, use standard u_int_*_t.
b) Change [Dd][Cc]21.4. to just 21.4., seems Dec has done this to all of the drivers for all OS's. (Did they get in trouble with someone?) [The few that remain can either not be eliminated, or are waiting for additional driver functional changes that will remove them.]
c) Move some code from dc21040.h into the driver, later a whole block of that code and more will move to devar.h, but for now this makes it easier to study diffs.
d) Add a big bold comment to the README.de file about it not reflecting reality anymore.
Note that these are all cosmetic changes and should be no functional change in the driver whatsoever. If _anyone_ spots a problem introduced by this please let me know ASAP!
|
#
19610 |
|
10-Nov-1996 |
dg |
Put the packet error printf inside #ifdef DIAGNOSTIC.
|
#
18946 |
|
15-Oct-1996 |
bde |
Updated #includes to 4.4lite style.
|
#
18857 |
|
10-Oct-1996 |
wollman |
Implement the 802.3 MIB in a way that uses the generic interface defined in if_mib.h.
|
#
18407 |
|
20-Sep-1996 |
dg |
Add back shutdown support, this time using the at_shutdown() mechanism.
|
#
18357 |
|
18-Sep-1996 |
dg |
Updated driver to a newer version from Matt Thomas, preserving our local changes. This version should fix a number of bugs such as with auto- speed sensing and at least one known panic.
Submitted by: Matt Thomas (matt@3am-software.com)
|
#
18084 |
|
06-Sep-1996 |
phk |
Remove devconf, it never grew up to be of any use.
|
#
17454 |
|
06-Aug-1996 |
phk |
Use ether_ioctl() to do a lot of grunt work.
|
#
16357 |
|
14-Jun-1996 |
dg |
Updated this driver to a newer version from Matt. This should fix several bugs related to support of dc21041 chips and other problems.
Submitted by: Matt Thomas <matt@3am-software.com>
|
#
15849 |
|
21-May-1996 |
wollman |
Let the user know what errors are experienced on received packets. I spent the better part of a day trying to figure out why my experiment didn't work the way I expected, only to find out that the router was dropping huge numbers of packets because of PCI bus priblems. This does not fix the bug that errors are counted as input packets because my patch doesn't apply cleanly.
|
#
15583 |
|
03-May-1996 |
phk |
Another sweep over the pmap/vm macros, this time with more focus on the usage. I'm not satisfied with the naming, but now at least there is less bogus stuff around.
|
#
15543 |
|
02-May-1996 |
phk |
removed: CLBYTES PD_SHIFT PGSHIFT NBPG PGOFSET CLSIZELOG2 CLSIZE pdei() ptei() kvtopte() ptetov() ispt() ptetoav() &c &c new: NPDEPG
Major macro cleanup.
|
#
14769 |
|
23-Mar-1996 |
fenner |
Eliminate reference to ac_ipaddr in FreeBSD case.
|
#
13937 |
|
06-Feb-1996 |
wollman |
Clean up Ethernet drivers: - fill in and use ifp->if_softc - use if_bpf rather than private cookie variables - change bpf interface to take advantage of this - call ether_ifattach() directly from Ethernet drivers - delete kludge in if_attach() that did this indirectly
|
#
13638 |
|
26-Jan-1996 |
phk |
The last part of the ether_sprint -> %6D change. Sorry for the delay. (%D is for hexdumping.)
|
#
13597 |
|
23-Jan-1996 |
se |
Make PCI interrupt handlers return void like everybody else does.
Reviewed by: davidg
|
#
12820 |
|
14-Dec-1995 |
phk |
Another mega commit to staticize things.
|
#
12662 |
|
07-Dec-1995 |
dg |
Untangled the vm.h include file spaghetti.
|
#
12518 |
|
29-Nov-1995 |
asami |
'see" -> "see" (in the comment).
Noticed by: hilit19.el (stop laughing! ;)
|
#
12341 |
|
17-Nov-1995 |
dg |
Set flag to stop backoff counter from counting when carrier activity is detected. This dramatically reduces the collision rate (about 1/10th of what is was previously).
Submitted by: Matt Thomas <matt@lkg.dec.com>
|
#
12293 |
|
14-Nov-1995 |
phk |
statizice some internal magic.
|
#
11797 |
|
26-Oct-1995 |
dg |
From Matt Thomas:
"I screwed the initialization of the burstsize. Right now it will default to 0 (which can cause corruption problems on high latency PCI buses). It should be set to 8 longwords to avoid problems with certain PCI chipsets."
Submitted by: Matt Thomas <matt@lkg.dec.com>
|
#
11460 |
|
13-Oct-1995 |
wollman |
Say goodbye to IFF_NOTRAILERS. Support for trailers was officially dropped for 4.4, but for some reason this flag lived on. (Until today, that is.)
|
#
11323 |
|
07-Oct-1995 |
dg |
Add SIOCGIFADDR support.
|
#
11132 |
|
02-Oct-1995 |
dg |
Check for failure to map the interrupt. Not doing so will guarantee that the machine will wedge later.
|
#
11070 |
|
29-Sep-1995 |
dg |
Latest version from Matt Thomas. This version works with the newer DC21041 NICs and with ZNYX cards.
Submitted by: Matt Thomas
|
#
9349 |
|
28-Jun-1995 |
dg |
Fixed bug that was fixed in 1.28.2.1/1.29 a little differently; the difference is more or less cosmetic.
Submitted by: Matt Thomas
|
#
9202 |
|
11-Jun-1995 |
rgrimes |
Merge RELENG_2_0_5 into HEAD
|
#
8876 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
8754 |
|
26-May-1995 |
dg |
Fixed bugs in multicast address handling (flag was set in wrong register, etc.). The tulip_start routine was rewritten to use less stack space (I've been having problems with wcarchive overflowing the stack and this should help a little). This version also has preliminary NetBSD support.
Rod Grimes helped in testing this version of the driver. Thanks Rod. It's additionally been extensively tested here and on wcarchive.
Submitted by: Matt Thomas
|
#
8699 |
|
22-May-1995 |
dg |
There are two serious bugs in if_de.c. The first should not matter to most users (the wrong length is passed to ether_input). The second is more serious. The multicast hash algorithm uses the wrong (low) bits instead of the right (high) bits. This is only an issue if you use >12 multicast addresses but if you are using IP multicast then it might affect you...
Submitted by: Matt Thomas
|
#
8694 |
|
22-May-1995 |
dg |
Fixed bug in bpf/multicast support that caused multicast packets to get thrown out if bpfilter support and no BPF listener. (submitted by Bill Fenner) Removed unused variable and changed another from a stack variable to a static - the variable was a rather large array of structs that consumed a lot of stack space. (me)
|
#
8296 |
|
05-May-1995 |
dg |
Fixed mbuf leak and panic that occurred when packets got too memory fragmented. Added support for Cogent em100 boards. Fixed bug that caused BPF to toggle the card to UTP. Various other improvements.
Submitted by: Matt Thomas and David Greenman
|
#
7925 |
|
18-Apr-1995 |
jkh |
Matt says that no pre-2.3 pass boards were supposed to ship, but I certainly got a 2.2 version DC21040 chip in my SMC ethernet card! He suggests bumping the check all the way down to 2.0 since it's pre-2.0 we're actually guarding against. Submitted by: Matt Thomas <matt@lkg.dec.com>
|
#
7901 |
|
17-Apr-1995 |
dg |
Changed minimum supported rev of DC21040 to pass 2.2.
|
#
7791 |
|
13-Apr-1995 |
dg |
Various changes from Matt Thomas to improve media selection and fix support for the DC21140.
|
#
7689 |
|
09-Apr-1995 |
dg |
From Matt Thomas: Added support for 100Mb cards (such as the DEC DE-500-XA and SMC 9332).
|
#
7229 |
|
21-Mar-1995 |
se |
Cosmetic changes.
Submitted by: Wolfgang Stnglmeier <wolf@kintaro.cologne.de>
|
#
7104 |
|
17-Mar-1995 |
dg |
Added a new field to the pci_device struct called pd_shutdown to specify a device specific shutdown routine for devconf. Assign the value of this to the kern_devconf struct. Implement a device shutdown routine for if_de that disables the device. This will stop the device from corrupting memory after a reboot.
|
#
7089 |
|
16-Mar-1995 |
se |
Prepare for shared interrupts (required by the new PCI code that adds support for PCI PCI bridges, e.g. found on 4ch. Ethernet cards).
Submitted by: Wolfgang Stanglmeier <wolf@kintaro.cologne.de>
|
#
6295 |
|
10-Feb-1995 |
dg |
Turn on "Capture Effect" avoidence. This modifies the collision algorithm so that the interface won't have the effect of blocking other senders during bulk transfers (i.e. hogging the ethernet). It improves performance in all of my tests by reducing collisions and I believe it to be a Good Thing.
|
#
6132 |
|
02-Feb-1995 |
dg |
Reapplied all of Stefan's changes. What a mess - the files were modified and moved at the same time. This made it *very* difficult to fix the revision log lossage that happend when the files were moved. SIGH.
|
#
6131 |
|
02-Feb-1995 |
dg |
Fixed up include paths after copying these in the repository.
|
#
5197 |
|
22-Dec-1994 |
dg |
Restore my changes in rev 1.11 that Garrett killed in his commit.
|
#
5195 |
|
22-Dec-1994 |
wollman |
Move ARP interface initialization into if_ether.c:arp_ifinit().
|
#
5154 |
|
18-Dec-1994 |
dg |
Unbogify the size being passed to bzero when clearing struct softc.
|
#
5034 |
|
10-Dec-1994 |
dg |
The physical memory allocated for input DMA must be contiguous. The driver worked in the past only because of good fortune. Anyway, use the contig alloc routine I wrote awhile ago (vm_page_alloc_contig) for the sound code to do this allocation. Also, specify read+write on the permissions to pmap_enter(). Specifying just read can have unexpected consquences.
|
#
4875 |
|
30-Nov-1994 |
dg |
Fix bug I introduced that broke BPF support. Caused by a byte order problem in an if () expression. Problem fixed by removing the test for ETHERTYPE_* before passing packet to higher layers.
|
#
4796 |
|
24-Nov-1994 |
dg |
Moved conversion of ether_type to host byte order out of ethernet drivers and into ether_input(). It was silly to have bpf want this one way and ether_input want it another way. Ripped out trailer support from the few remaining drivers that still had it.
|
#
4772 |
|
22-Nov-1994 |
dg |
Bunch of fixes from Matt Thomas:
1) make #includes correct 2) fix bugs in address check macros 3) fixed bugs in, and enabled, recopy if heavily fragmented code 4) moved call to bpf tap to be before enqueing packet (probably gratuitous) 5) fixed bug that caused "abnormal interrupt" at boot time/first use 6) added support for reading Zynx address ROM 7) fixed bug that caused broadcasts to not work shortly after booting (only manifested if not using multicast - e.g. not in FreeBSD 2.0) 8) fixed spelling errors in comments
Submitted by: Matt Thomas
|
#
4437 |
|
13-Nov-1994 |
dg |
Added support for SIOCSIFMTU ioctl. Fixed bug that caused panic at boot time related to interrupts being enabled before the device attach. The interrupt should be mapped *after* the device attach.
|
#
4335 |
|
10-Nov-1994 |
dg |
Added missing call to bpf on the transmit side. Nuked revision log.
|
#
4322 |
|
09-Nov-1994 |
dg |
Fixed bug that somehow made it into here: the ifp must be stored in the mbuf header for received packets. Minor performance optimizations. Removed #ifdef MULTICAST's as this isn't optional in our kernel.
|
#
3543 |
|
12-Oct-1994 |
se |
Submitted by: Matt Thomas <thomas@lkg.dec.com> Preliminary FAST Ethernet support added (DEC21140).
|
#
3533 |
|
12-Oct-1994 |
se |
Submitted by: Wolfgang Stanglmeier <wolf@dentaro.GUN.de> Bug fixed, that caused system hang on first interrupt on some motherboards.
New version of PCI bus configuration code, now supports dynamic interrupt configuration (using BIOS supplied values). NCR SCSI and DEC Ethernet driver patched to use this feature. *** Remove PCI IRQ specifications from your kernel config file ! ***
|
#
3278 |
|
01-Oct-1994 |
wollman |
Add Matt Thomas's DC21040 PCI Ethernet driver. (This is turning out to be quite a popular chip, so expect to see a number of products based on it.)
|