CVS log for src/sys/pci/Attic/if_fxp.c
Up to [FreeBSD] / src / sys / pci
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.77.2.10
Tue Sep 18 02:09:37 2001 UTC (10 years, 4 months ago) by jlemon
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
FILE REMOVED
Changes since revision 1.77.2.9: +1 -1 lines
The fxp driver now lives in dev/fxp, so remove it from the old location.
Revision 1.107
Fri Aug 31 02:21:03 2001 UTC (10 years, 5 months ago) by jlemon
Branches: MAIN
CVS tags: HEAD
FILE REMOVED
Changes since revision 1.106: +1 -1 lines
The fxp driver has lived in dev/fxp for some time, remove old files.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Feb 27 22:57:32 2001 UTC (10 years, 11 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +7 -8 lines
A better mousetrap: use device hints, as in: hint.fxp.0.prefer_iomap="1" to set IO vs. Memory space mapping.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue Feb 6 10:11:46 2001 UTC (11 years ago) by phk
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -2 lines
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
Revision 1.104: download - view: text, markup, annotated - select for diffs
Sat Feb 3 16:29:10 2001 UTC (11 years ago) by phk
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +2 -3 lines
Use LIST_FOREACH() to traverse ifp->if_multiaddrs list, instead of <sys/queue.h> implementation details. Created with: /usr/sbin/sed Reviewed with: /sbin/md5
Revision 1.103: download - view: text, markup, annotated - select for diffs
Tue Jan 23 23:22:17 2001 UTC (11 years ago) by mjacob
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +41 -11 lines
Allow fxp to configure in I/O space if the user wants it and specifies an override as a loader settable variable (fxp_iomap). fxp_iomap is a bitmap of fxp units that should be configured to use PCI I/O space in stead of PCI Memory space. Reviewed by: Kees Jan Koster <dutchman@tccn.cs.kun.nl>, dg@freebsd.org
Revision 1.102: download - view: text, markup, annotated - select for diffs
Fri Jan 19 01:59:10 2001 UTC (11 years ago) by bmilekic
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +2 -2 lines
Implement MTX_RECURSE flag for mtx_init(). All calls to mtx_init() for mutexes that recurse must now include the MTX_RECURSE bit in the flag argument variable. This change is in preparation for an upcoming (further) mutex API cleanup. The witness code will call panic() if a lock is found to recurse but the MTX_RECURSE bit was not set during the lock's initialization. The old MTX_RECURSE "state" bit (in mtx_lock) has been renamed to MTX_RECURSED, which is more appropriate given its meaning. The following locks have been made "recursive," thus far: eventhandler, Giant, callout, sched_lock, possibly some others declared in the architecture-specific code, all of the network card driver locks in pci/, as well as some other locks in dev/ stuff that I've found to be recursive. Reviewed by: jhb
Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Dec 18 22:06:12 2000 UTC (11 years, 1 month ago) by wpaul
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +21 -1 lines
Add power state manipulation to the fxp driver. Some people have claimed that their Intel NIC is comatose after a warm boot from Windoze. This is most likely due to the card getting put in the D3 state. This should bring it back to life.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Fri Dec 8 21:50:58 2000 UTC (11 years, 2 months ago) by dwmalone
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +4 -5 lines
Convert more malloc+bzero to malloc+M_ZERO. Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
Revision 1.77.2.9: download - view: text, markup, annotated - select for diffs
Tue Oct 24 21:47:36 2000 UTC (11 years, 3 months ago) by dg
Branches: RELENG_4
CVS tags: RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE
Diff to: previous 1.77.2.8: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.8: +109 -8 lines
Brought in suspend/resume changes from -current. Revs 1.88 and 1.91.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:41:46 2000 UTC (11 years, 3 months ago) by imp
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +2 -1 lines
Make usual 1-line cardbus support modification. I'm committing this over an Intel PRO-100 CardBus II card.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Fri Oct 20 07:58:13 2000 UTC (11 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -2 lines
Catch up to moving headers: - machine/ipl.h -> sys/ipl.h - machine/mutex.h -> sys/mutex.h
Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun Oct 15 14:18:58 2000 UTC (11 years, 3 months ago) by phk
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +1 -2 lines
Remove unneeded #include <machine/clock.h>
Revision 1.96: download - view: text, markup, annotated - select for diffs
Fri Oct 13 18:59:29 2000 UTC (11 years, 3 months ago) by cp
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -2 lines
Make mutex name reflect device driver name. Destroy mutex when detaching the device. Submitted by: John Baldwin <jhb@FreeBSD.ORG>
Revision 1.77.2.8: download - view: text, markup, annotated - select for diffs
Wed Oct 4 10:16:12 2000 UTC (11 years, 4 months ago) by ps
Branches: RELENG_4
Diff to: previous 1.77.2.7: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.7: +4 -1 lines
MFC: Add the PCI device ID for the on-board ethernet controllers on the Intel 815E motherboard.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Sep 23 00:01:37 2000 UTC (11 years, 4 months ago) by jasone
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +1 -2 lines
Don't #include <sys/proc.h>, since machine/mutex.h does it now.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Sep 21 20:01:56 2000 UTC (11 years, 4 months ago) by wpaul
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +4 -1 lines
Add the PCI device ID for the on-board ethernet controllers on the Intel 815E motherboard, which I believe is an i82562. Seems to work just fine with the fxp driver.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Sep 18 21:12:19 2000 UTC (11 years, 4 months ago) by dg
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +39 -334 lines
Removed NetBSD support, which bit-rotted long ago. Changed new SMP locking macros given the new situation.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Sep 17 23:23:22 2000 UTC (11 years, 4 months ago) by dg
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -1 lines
Added a couple more missing FXP_SPLVAR()'s.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Sun Sep 17 23:04:57 2000 UTC (11 years, 4 months ago) by dg
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +7 -2 lines
As a minor optimization, do suspended checking more like it was originally in the PR - before the while loop.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Sep 17 22:59:58 2000 UTC (11 years, 4 months ago) by dg
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +3 -3 lines
Added missing FXP_SPLVAR() to fxp_intr().
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Sep 17 22:20:33 2000 UTC (11 years, 4 months ago) by dg
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +9 -7 lines
Attempt to replicate the new fxp SMP locking in the changes committed in the previous (APM suspend/resume) commit.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Sep 17 22:12:11 2000 UTC (11 years, 4 months ago) by dg
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +106 -8 lines
Added support for APM suspend/resume. PR: 18756 Submitted by: mike ryan <msr@elision.org>, with modifications by me.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Sep 17 22:01:21 2000 UTC (11 years, 4 months ago) by cp
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -1 lines
Add include of proc.h to make compile without SMP defined. This change is likely interm, the include happens automagically when SMP is defined. Obtained from: Jason Evans.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun Sep 17 13:26:25 2000 UTC (11 years, 4 months ago) by cp
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +45 -18 lines
Add locking to make able to run without the Giant lock being held. This is enabling as all entries are still called with Giant being held. Maintaining compatability with NetBSD makes what should be very simple kinda ugly. Reviewed by: Jason Evans
Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Aug 11 17:47:55 2000 UTC (11 years, 6 months ago) by wpaul
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +12 -2 lines
Fix a bug brought to light by the people working on SMPng. I don't quite understand exactly what it is about SMPng that tickles this bug. What I do know is that the foo_init() routine in most drivers is often called twice when an interface is brought up. One time is due to the ifconfig(8) command calling the SIOCSIFFLAGS ioctl to set the IFF_UP flag, and another is probably due to the kernel calling ifp->if_init at some point. In any case, the SMPng changes seem to affect the timing of these two events in such a way that there is a significant delay before any packets are sent onto the wire after the interface is first brought up. This manifested itself locally as an SMPng test machine which failed to obtain an address via DHCP when booting up. It looks like the second call to fxp_init() is happening faster now than it did before, and I think it catches the chip while it's in the process of dealing with the configuration command from the first call. Whatever the case, a FXP_CSR_SCB_CNA interrupt event is now generated shortly after the second fxp_init() call. (This interrupt is apparently never generated by a non-SMPng kernel, so nobody noticed.) There are two problems with this: first, fxp_intr() does not handle the FXP_CSR_SCB_CNA interrupt event (it never tests for it or does anything to deal with it), and second, the meaning of FXP_CSR_SCB_CNA is not documented in the driver. (Apparently it means "command unit not active.") Bad coder. No biscuit. The fix is to have the FXP_CSR_SCB_CNA interrupt handled just like the FXP_SCB_STATACK_CXTNO interrupt. This prevents the state machine for the configuration/RX filter programming stuff from getting wedged for several seconds and preventing packet transmission. Noticed by: jhb
Revision 1.77.2.7: download - view: text, markup, annotated - select for diffs
Mon Aug 7 18:18:28 2000 UTC (11 years, 6 months ago) by peter
Branches: RELENG_4
CVS tags: RELENG_4_1_1_RELEASE
Diff to: previous 1.77.2.6: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.6: +7 -4 lines
MFC: 1.84: fix warnings (yes, these bcopys are perfectly safe)
Revision 1.84: download - view: text, markup, annotated - select for diffs
Fri Jul 28 23:30:30 2000 UTC (11 years, 6 months ago) by peter
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +7 -4 lines
"Fix" cast qualifier warnings using the uintptr_t intermediate trick.
Revision 1.77.2.6: download - view: text, markup, annotated - select for diffs
Wed Jul 19 14:36:36 2000 UTC (11 years, 6 months ago) by gallatin
Branches: RELENG_4
CVS tags: RELENG_4_1_0_RELEASE
Diff to: previous 1.77.2.5: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.5: +13 -1 lines
MFC 1.83: Fix an alpha-only race which causes the transmit side of the chip to lock up under moderate to heavy load
Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Jul 19 14:33:52 2000 UTC (11 years, 6 months ago) by gallatin
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +13 -1 lines
Fix an alpha-only race which causes the transmit side of the chip to
lock up under moderate to heavy load.
The status & command fields share a 32-bit longword. The programming
API of the eepro apparently requires that you update the command field
of a transmit slot that you've already given to the card. This means
the card could be updating the status field of the same longword at
the same time. Since alphas can only operate on 32-bit chunks of
memory, both the status & command fields are loaded from memory &
operated on in registers when the following line of C is executed:
sc->cbl_last->cb_command &= ~FXP_CB_COMMAND_S;
The race is caused by the card DMA'ing up the status at just the wrong
time -- after it has been loaded into a register & before it has been
written back. The old value of the status is written back, clobbering
the status the card just DMA'ed up. The fact that the card has sent
this frame is missed & the transmit engine appears to hang.
Luckily, as numerous people on the freebsd-alpha list pointed out, the
load-locked/store-conditional instructions used by the atomic
functions work with respect changes in memory due to I/O devices. We
now use them to safely update the command field.
Tested by: Bernd Walter <ticso@mail.cicely.de>
Revision 1.77.2.5: download - view: text, markup, annotated - select for diffs
Mon Jul 17 21:24:39 2000 UTC (11 years, 6 months ago) by archie
Branches: RELENG_4
Diff to: previous 1.77.2.4: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.4: +3 -5 lines
MFC: make all Ethernet drivers use ether_ifattach() ether_ifdetach()
Revision 1.82: download - view: text, markup, annotated - select for diffs
Thu Jul 13 22:54:32 2000 UTC (11 years, 7 months ago) by archie
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -5 lines
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
Revision 1.77.2.4: download - view: text, markup, annotated - select for diffs
Thu Jul 13 07:53:06 2000 UTC (11 years, 7 months ago) by dg
Branches: RELENG_4
Diff to: previous 1.77.2.3: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.3: +6 -2 lines
Brought in changes from rev 1.81: optimizations.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon Jun 19 00:58:34 2000 UTC (11 years, 7 months ago) by dg
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +7 -3 lines
Implemented some optimizations which result in 14 fewer instructions in the receive path.
Revision 1.77.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 19 00:54:30 2000 UTC (11 years, 7 months ago) by dg
Branches: RELENG_4
Diff to: previous 1.77.2.2: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.2: +17 -11 lines
Merged changes from rev 1.80: support for 82559ER.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Jun 18 10:26:09 2000 UTC (11 years, 7 months ago) by dg
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +16 -10 lines
Added support for the i82559ER (10/100Mbps NIC for embedded applications). Product device ID provided by: Les Biffle <les@ns3.safety.net>
Revision 1.77.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 01:47:58 2000 UTC (11 years, 8 months ago) by archie
Branches: RELENG_4
Diff to: previous 1.77.2.1: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.1: +3 -50 lines
MFC: Move BPF and bridging code into ether_input()
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun May 14 02:18:42 2000 UTC (11 years, 9 months ago) by archie
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -50 lines
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
Revision 1.59.2.7: download - view: text, markup, annotated - select for diffs
Sat Apr 1 19:04:21 2000 UTC (11 years, 10 months ago) by dg
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE
Diff to: previous 1.59.2.6: preferred, colored; branchpoint 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59.2.6: +78 -2 lines
Merged changes from rev 1.78 (if_fxp.c) and 1.10 (if_fxpvar.h): fixes to support certain larger SEEPROMs.
Revision 1.77.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 29 02:02:38 2000 UTC (11 years, 10 months ago) by dg
Branches: RELENG_4
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +78 -2 lines
Merged changes from rev 1.78 (if_fxp.c) and 1.10 (if_fxpvar.h): fixes to support certain larger SEEPROMs.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue Mar 28 04:41:42 2000 UTC (11 years, 10 months ago) by dg
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +78 -2 lines
Added support for cards and on-motherboard NICs that use an SEEPROM address size that is different than the standard 6bits. This fixes support for the Compaq NC3121 card, certain newer Intel Pro/100+ cards, and should also fix integrated NICs on SuperMicro and Compaq motherboards. The auto-sizing algorithm was taken from NetBSD (thanks!), which I think got it from Linux originally. Thanks also to Andrew Sparrow <spadger@best.com> and Joe Moore <jomor@ahpcns.com> for supplying me with unworking Compaq and Intel cards to develop and test the fixes with.
Revision 1.59.2.6: download - view: text, markup, annotated - select for diffs
Tue Jan 18 14:12:52 2000 UTC (12 years ago) by luigi
Branches: RELENG_3
Diff to: previous 1.59.2.5: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.2.5: +5 -4 lines
fix bridging support for potential null dereference
Revision 1.59.2.5: download - view: text, markup, annotated - select for diffs
Mon Dec 6 20:11:52 1999 UTC (12 years, 2 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_4_0_RELEASE
Diff to: previous 1.59.2.4: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.2.4: +4 -1 lines
MFC: new PCI device ID for the InBusiness 10/100 card. (an 82559 with a different PCI device ID in it's eprom - 0x1030 instead of 0x1229) Reviewed by: jkh, dg
Revision 1.77: download - view: text, markup, annotated - select for diffs
Thu Sep 30 19:03:12 1999 UTC (12 years, 4 months ago) by gallatin
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +16 -11 lines
Make the fxp driver work on alpha, rather than panic the machine on boot and/or when using the card. o Convert the driver to using bus_space. This allows alphas with fxp's to boot, rather than panic'ing because rman_get_virtual() doesn't really return a virtual address on alphas. o Fix an alpha unaligned access error caused by some misfeature of gcc/egcs: if link_addr & rbd_addr in the fxp_rfa struct are 32 bit quantities, egcs will assume they are naturally aligned. So it will do a ldl & some shifty/masky to twiddle 16 bit values in fxp_lwcopy(). However, if they are 16-bit aligned, the ldl will actually be done on a 16-bit aligned value & we will panic with an unaligned access error... Changing their definition to an array of chars seems to fix this. I obtained this from NetBSD. I've tested this on both i386 & alpha.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Sep 25 12:06:01 1999 UTC (12 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +1 -13 lines
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.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Sep 22 06:08:10 1999 UTC (12 years, 4 months ago) by wpaul
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -2 lines
Tweak these for what I hope is the last time: change the DRIVER_MODULE() declaration for the interface driver from "foo" to "if_foo" but leave the declaration for the miibus attached to the interface driver alone. This lets the internal module name be "if_foo" while still allowing the miibus instances to attach to "foo." This should allow ifconfig to autoload driver modules again without breaking the miibus attach.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Sep 20 19:06:43 1999 UTC (12 years, 4 months ago) by wpaul
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -2 lines
Un-do the changes to the DRIVER_MODULE() declarations in these drivers. This whole idea isn't going to work until somebody makes the bus/kld code smarter. The idea here is to change the module's internal name from "foo" to "if_foo" so that ifconfig can tell a network driver from a non-network one. However doing this doesn't work correctly no matter how you slice it. For everything to work, you have to change the name in both the driver_t struct and the DRIVER_MODULE() declaration. The problems are: - If you change the name in both places, then the kernel thinks that the device's name is now "if_foo", so you get things like: if_foo0: <FOO ethernet> irq foo at device foo on pcifoo if_foo0: Ethernet address: foo:foo:foo:foo:foo:foo This is bogus. Now the device name doesn't agree with the logical interface name. There's no reason for this, and it violates the principle of least astonishment. - If you leave the name in the driver_t struct as "foo" and only change the names in the DRIVER_MODULE() declaration to "if_foo" then attaching drivers to child devices doesn't work because the names don't agree. This breaks miibus: drivers that need to have miibuses and PHY drivers attached never get them. In other words: damned if you do, damned if you don't. This needs to be thought through some more. Since the drivers that use miibus are broken, I have to change these all back in order to make them work again. Yes this will stop ifconfig from being able to demand load driver modules. On the whole, I'd rather have that than having the drivers not work at all.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Sep 20 06:50:51 1999 UTC (12 years, 4 months ago) by obrien
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -2 lines
Change the name we register with DRIVER_MODULE() to include the leading "if_". Reviewed by: msmith, wpaul
Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Sep 6 06:15:18 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -1 lines
Recognise the new 82559 chip id as used on the InBusiness 10/100 adapter. I have an 82559 card with the same id as the other 8255[78] chips, but that was made with a date code of 0699 (June 99). The submitter shows this working with the probe etc, but doesn't actually say it works as on the ethernet. :-) Assuming it does, this is a RELENG_3 merge candidate. Submitted by: Steven E Lumos <slumos@sam.ISRI.UNLV.EDU>
Revision 1.8.2.15: download - view: text, markup, annotated - select for diffs
Sun Sep 5 08:36:46 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.14: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.14: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.21.2.17: download - view: text, markup, annotated - select for diffs
Sun Sep 5 08:21:06 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_2
Diff to: previous 1.21.2.16: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.16: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.59.2.4: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:31:37 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_3_0_RELEASE
Diff to: previous 1.59.2.3: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.2.3: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:50:50 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Jul 6 19:23:25 1999 UTC (12 years, 7 months ago) by des
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +8 -8 lines
Rename bpfilter to bpf.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun May 9 10:45:54 1999 UTC (12 years, 9 months ago) by peter
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +5 -1 lines
Fix two warnings.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sat May 8 21:59:39 1999 UTC (12 years, 9 months ago) by dfr
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3 lines
Move the declaration of the interrupt type from the driver structure to the BUS_SETUP_INTR call.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Apr 16 21:22:51 1999 UTC (12 years, 9 months ago) by peter
Branches: MAIN
CVS tags: PRE_VFS_BIO_NFS_PATCH, PRE_SMP_VMSHARE, POST_VFS_BIO_NFS_PATCH, POST_SMP_VMSHARE, POST_NEWBUS
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +128 -58 lines
Bring the 'new-bus' to the i386. This extensively changes the way the i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
Revision 1.59.2.3: download - view: text, markup, annotated - select for diffs
Tue Mar 30 04:51:43 1999 UTC (12 years, 10 months ago) by wes
Branches: RELENG_3
CVS tags: RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE
Diff to: previous 1.59.2.2: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.2.2: +10 -1 lines
Turn on PCI busmaster in the probe routine in case the BIOS did not. PR: 10150 Reviewed by: dg
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Mar 20 04:51:25 1999 UTC (12 years, 10 months ago) by wes
Branches: MAIN
CVS tags: PRE_NEWBUS
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +10 -1 lines
Turn on PCI bus mastering in driver attach routine to avoid hanging the system if the BIOS has not initialized the interface. PR: 10150 Reviewed by: dg
Revision 1.59.2.2: download - view: text, markup, annotated - select for diffs
Thu Mar 18 18:47:29 1999 UTC (12 years, 10 months ago) by luigi
Branches: RELENG_3
Diff to: previous 1.59.2.1: preferred, colored; branchpoint 1.59: preferred, colored
Changes since revision 1.59.2.1: +43 -18 lines
MFC: add bridging support for the following net drivers: ed, lnc, de, fxp
Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed Mar 17 16:44:53 1999 UTC (12 years, 10 months ago) by luigi
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +43 -18 lines
MF22... add bridging support to the device drivers. Without this bridging cannot work on -current/releng3!
Revision 1.59.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 15 08:47:10 1999 UTC (12 years, 11 months ago) by julian
Branches: RELENG_3
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +52 -8 lines
MFC: Add ability to sense the autodetected speed and duplex mode.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Feb 12 17:56:23 1999 UTC (13 years ago) by julian
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +48 -21 lines
Improved reporting of autodetected speed and duplex. Now should be able to report speed for cards using NatSemi PHY. (if you have one please let me know if it works as I only have the Intel version) Reviewed by: David Greenman <dg@root.com>
Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Feb 11 21:47:09 1999 UTC (13 years ago) by julian
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +21 -4 lines
Define more registers in the PHY unit and use them to report back the result of the media auto negotiation. Reviewed by: David Greenman <dg@freebsd.org>
Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Jan 28 17:32:05 1999 UTC (13 years ago) by dillon
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -2 lines
Fix warnings related to -Wall -Wcast-qual
Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Jan 28 00:57:53 1999 UTC (13 years ago) by dillon
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Jan 27 23:45:42 1999 UTC (13 years ago) by dillon
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
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.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Dec 14 05:47:27 1998 UTC (13 years, 2 months ago) by dillon
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_1_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
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.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Oct 22 02:00:49 1998 UTC (13 years, 3 months ago) by dg
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +22 -1 lines
Defer rundown (m_freem) of completed transmit buffers for no longer than 1 second.
Revision 1.21.2.16: download - view: text, markup, annotated - select for diffs
Sun Oct 11 06:30:11 1998 UTC (13 years, 4 months ago) by dg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_8_RELEASE
Diff to: previous 1.21.2.15: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.15: +2 -1 lines
Brought in change from rev 1.57: clear out tx desc memory in fxp_attach.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Oct 11 06:28:54 1998 UTC (13 years, 4 months ago) by dg
Branches: MAIN
CVS tags: RELENG_3_0_0_RELEASE
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -1 lines
Clear out transmit descriptor memory in fxp_attach when it's malloced. fxp_stop is called as the first thing in fxp_init, and if the tx desc list has junk in it, the system may panic. This bug showed up as a side effect of the changes in rev 1.56, but has been in the code since the beginning.
Revision 1.21.2.15: download - view: text, markup, annotated - select for diffs
Sat Oct 10 19:51:00 1998 UTC (13 years, 4 months ago) by dg
Branches: RELENG_2_2
Diff to: previous 1.21.2.14: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.14: +9 -5 lines
Brought in fix from rev 1.56: fixed mbuf leak in fxp_stop().
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Oct 10 19:26:40 1998 UTC (13 years, 4 months ago) by dg
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +9 -5 lines
Fixed mbuf leak in fxp_stop().
Revision 1.21.2.14: download - view: text, markup, annotated - select for diffs
Thu Sep 17 18:02:33 1998 UTC (13 years, 4 months ago) by luigi
Branches: RELENG_2_2
Diff to: previous 1.21.2.13: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.13: +42 -18 lines
bring DUMMYNET and BRIDGE support into -stable decouple BPF and PROMISC handling on some if drivers make ipstat available through sysctl (already in -current) NOTE: you have to recompile ipfw!
Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue Aug 4 08:53:12 1998 UTC (13 years, 6 months ago) by dg
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +103 -45 lines
Implemented a more sophisticated mechanism for handling transmitter interrupts which now defers them until the transmit queue if filled up with completed buffers. This has two advantages: first, it reduces the number of transmitter interrupts to just 1/120th of the rate that they occured previously, and two, running down many buffers at once has much improved cache effects.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Aug 2 00:33:38 1998 UTC (13 years, 6 months ago) by dg
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -1 lines
Added 82555B support for media status.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Aug 2 00:28:45 1998 UTC (13 years, 6 months ago) by dg
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +1 -2 lines
Killed unused variable/assignment.
Revision 1.21.2.13: download - view: text, markup, annotated - select for diffs
Tue Jul 7 05:24:18 1998 UTC (13 years, 7 months ago) by gibbs
Branches: RELENG_2_2
CVS tags: RELENG_2_2_7_RELEASE
Diff to: previous 1.21.2.12: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.12: +3 -3 lines
asm->__asm inline->__inline
Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Apr 17 22:37:03 1998 UTC (13 years, 9 months ago) by des
Branches: MAIN
CVS tags: PRE_NOBDEV, PRE_DEVFS_SLICE, POST_DEVFS_SLICE
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Apr 15 17:47:02 1998 UTC (13 years, 9 months ago) by bde
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -6 lines
Support compiling with `gcc -ansi'.
Revision 1.21.2.12: download - view: text, markup, annotated - select for diffs
Tue Mar 3 14:20:52 1998 UTC (13 years, 11 months ago) by dg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_6_RELEASE
Diff to: previous 1.21.2.11: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.11: +13 -1 lines
Brought in changes from rev 1.50/1.12: additional PHY support.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Mar 3 14:19:07 1998 UTC (13 years, 11 months ago) by dg
Branches: MAIN
CVS tags: PRE_SOFTUPDATE, POST_SOFTUPDATE
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +13 -1 lines
Added support for the 82553 and 'B' 82555 PHY.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Feb 20 13:11:53 1998 UTC (13 years, 11 months ago) by bde
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +1 -7 lines
Removed unused #includes.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Feb 9 06:10:51 1998 UTC (14 years ago) by eivind
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -8 lines
Staticize.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Jan 8 23:42:29 1998 UTC (14 years, 1 month ago) by eivind
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -2 lines
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>.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Oct 28 15:59:21 1997 UTC (14 years, 3 months ago) by bde
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -2 lines
Removed unused #includes.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Oct 23 01:45:15 1997 UTC (14 years, 3 months ago) by davidg
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +101 -101 lines
Rewrote fxp_start() for better clarity and efficiency.
Revision 1.21.2.11: download - view: text, markup, annotated - select for diffs
Fri Oct 17 06:28:31 1997 UTC (14 years, 3 months ago) by davidg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_5_RELEASE
Diff to: previous 1.21.2.10: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.10: +1 -2 lines
Brought in fix from rev 1.44: input packets were counted twice.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Oct 17 06:27:44 1997 UTC (14 years, 3 months ago) by davidg
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -2 lines
Fixed a bug where input packets were counted twice - messing up the stats.
Revision 1.21.2.10: download - view: text, markup, annotated - select for diffs
Tue Sep 30 12:43:26 1997 UTC (14 years, 4 months ago) by davidg
Branches: RELENG_2_2
Diff to: previous 1.21.2.9: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.9: +865 -385 lines
Back-ported the driver from -current (through rev 1.42). This is only slightly changed from what is in -current, with the differences being: 1) Multicast support had to be changed to work with the old software method for going through the list of multicast addresses. 2) The timeout()/untimeout() calls had to be reverted.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Sep 30 11:28:24 1997 UTC (14 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1 -5 lines
Killed a gratuitous assignment in a NetBSD case.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Sep 30 10:50:45 1997 UTC (14 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +29 -29 lines
Two changes which should make the system less suseptible to receiver overruns (not that it was a problem, but it could be): 1) Doubled the number of receive buffers in the DMA chain to 64. 2) Do packet receive processing before transmit in the interrupt routine.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Sep 29 11:27:42 1997 UTC (14 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +160 -49 lines
Work around a bug in the 82557 NIC where the receiver will lock up if it is in 10Mbps mode and gets certain types of garbage prior to the packet header. The work-around involves reprogramming the multicast filter if nothing is received in some number of seconds (currently set at 15). As a side effect, implemented complete support for multicasting rather than the previous 'receive all multicasts' hack, since we now have the ability to program the filter table. Fixed a serious bug which crept in with the timeout() changes; the cookie was only saved on the first timeout() call in fxp_init() and wasn't updated in the most common place in fxp_stats_update() when the timeout was rescheduled. This bug would have resulted in an eventual panic if fxp_stop() was called (which happens when any interface flags are changed, for example). Fixed a bug in Alpha support that would have caused the TxCB descriptor chain to span a page boundry, causing serious problems if the pages didn't happen to be contiguous. Removed some gratuitous bit masking that was left over from an older implementation. Fixed a bug where too much was copied from the configuration template, spilling over into memory that followed it. Fixed handling of if_timer...it was cleared too early in some cases.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Sep 21 22:02:08 1997 UTC (14 years, 4 months ago) by gibbs
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -3 lines
Update for new callout interface.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Sep 5 10:23:54 1997 UTC (14 years, 5 months ago) by davidg
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +714 -229 lines
Changes to support NetBSD and the new ifmedia extensions. Submitted by: Jason Thorpe <thorpej@netbsd.org>
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Aug 2 14:33:10 1997 UTC (14 years, 6 months ago) by bde
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -13 lines
Removed unused #includes.
Revision 1.21.2.9: download - view: text, markup, annotated - select for diffs
Fri Jul 25 23:42:10 1997 UTC (14 years, 6 months ago) by davidg
Branches: RELENG_2_2
Diff to: previous 1.21.2.8: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.8: +7 -1 lines
Brought in change from 1.37: support for Seeq 80c24 PHY.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Jul 25 23:41:12 1997 UTC (14 years, 6 months ago) by davidg
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -1 lines
Added support for the Seeq 80c24 PHY; does nothing except disable the unsupported warning message for it.
Revision 1.21.2.8: download - view: text, markup, annotated - select for diffs
Sun Jun 22 05:01:45 1997 UTC (14 years, 7 months ago) by davidg
Branches: RELENG_2_2
Diff to: previous 1.21.2.7: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.7: +21 -18 lines
Merged 1.34-1.36 from -current: support for 82555 PHY and minor optimization.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Jun 16 04:45:57 1997 UTC (14 years, 7 months ago) by davidg
Branches: MAIN
CVS tags: WOLLMAN_MBUF, BP_WOLLMAN_MBUF
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -5 lines
Minor optimization in fxp_intr.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Jun 13 22:34:52 1997 UTC (14 years, 8 months ago) by davidg
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +18 -14 lines
Added support for the Intel 82555 PHY chip which is being used on newer Pro/100B cards. Full duplex should work now, although it hasn't been tested.
Revision 1.21.2.7: download - view: text, markup, annotated - select for diffs
Wed Apr 23 01:49:12 1997 UTC (14 years, 9 months ago) by davidg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_2_RELEASE
Diff to: previous 1.21.2.6: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.6: +11 -8 lines
Partial merge from -current: check received packet length, a couple of performance optimizations, and don't treat if_bpf as a pointer.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Apr 23 01:44:30 1997 UTC (14 years, 9 months ago) by davidg
Branches: MAIN
CVS tags: pre_smp_merge, post_smp_merge
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -1 lines
Check that the received packet length indicated by the card is at least large enough to contain the ethernet header. There appears to be a condition where the card can return "0" in some failure cases, and this causes bad things to happen (a panic).
Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Mar 25 14:54:38 1997 UTC (14 years, 10 months ago) by davidg
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -5 lines
Made a couple of minor optimizations that improve performance of the common case of the interrupt routine by about 20%.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Mar 24 11:33:46 1997 UTC (14 years, 10 months ago) by bde
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
Don't include <sys/ioctl.h> in the kernel. Stage 2: include <sys/sockio.h> instead of <sys/ioctl.h> in network files.
Revision 1.8.2.14: download - view: text, markup, annotated - select for diffs
Fri Mar 21 08:02:50 1997 UTC (14 years, 10 months ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.13: preferred, colored
Changes since revision 1.8.2.13: +36 -8 lines
Merged fixes from -current: DP83840A support, bug fix, link0/1/2 support.
Revision 1.21.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 21 08:01:50 1997 UTC (14 years, 10 months ago) by davidg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_1_RELEASE
Diff to: previous 1.21.2.5: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.5: +36 -8 lines
Merged fixes from -current: DP83840A support, bug fix, link0/1/2 support.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Mar 21 08:00:11 1997 UTC (14 years, 10 months ago) by davidg
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +36 -8 lines
Added support for newer cards that have the DP83840A PHY chip. Fixed a bug in fxp_mdi_write - a hex number was missing a preceding 0x and this was causing the routine to not wait for a PHY write to complete. Added support for link0, link1, and link2 flags to toggle auto- negotiation, 10/100, and half/full duplex: link0 disable auto-negotiation When set, these flags then have meaning: -link1 10Mbps link1 100Mbps -link2 half duplex link2 full duplex ...needs a manual page.
Revision 1.8.2.13: download - view: text, markup, annotated - select for diffs
Mon Mar 17 12:12:25 1997 UTC (14 years, 10 months ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.12: preferred, colored
Changes since revision 1.8.2.12: +2 -2 lines
Oops, missed a mostly cosmetic change in the last commit.
Revision 1.8.2.12: download - view: text, markup, annotated - select for diffs
Mon Mar 17 11:11:32 1997 UTC (14 years, 10 months ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.11: preferred, colored
Changes since revision 1.8.2.11: +87 -20 lines
Brought in (similar) changes from -current: fixes for full duplex and PCI Pro/10.
Revision 1.21.2.5: download - view: text, markup, annotated - select for diffs
Mon Mar 17 11:09:42 1997 UTC (14 years, 10 months ago) by davidg
Branches: RELENG_2_2
Diff to: previous 1.21.2.4: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.4: +89 -22 lines
Brought in fixes from main branch: fixes for full duplex and PCI Pro/10.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Mar 17 11:08:14 1997 UTC (14 years, 10 months ago) by davidg
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +89 -22 lines
Fixed two deficiencies in the driver that have existed since it was written: 1) Full duplex mode is now supported (and works!) 2) The 10Mbps-only PCI Pro/10 should now work (untested, however) Thanks to Justin Gibbs for providing a PCI bus analyzer trace while the Intel Windows driver was configuring the board...this made it possible to figure out the mystery bit that I wasn't setting in the PHY for full duplex to work.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Feb 22 09:44:05 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -1 lines
Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not ready for it yet.
Revision 1.8.2.11: download - view: text, markup, annotated - select for diffs
Wed Feb 5 12:50:31 1997 UTC (15 years ago) by davidg
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_7_RELEASE
Diff to: previous 1.8.2.10: preferred, colored
Changes since revision 1.8.2.10: +14 -18 lines
Brought in various fixes from main branch and wcarchive: some configuration changes having to do with DMA limits, change to the way that the board is reset to avoid PCI/system hang, and don't count short frames as input errors. Tested extensively on wcarchive.
Revision 1.21.2.4: download - view: text, markup, annotated - select for diffs
Tue Feb 4 11:45:02 1997 UTC (15 years ago) by davidg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_0_RELEASE
Diff to: previous 1.21.2.3: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.3: +8 -8 lines
Brough in changes from rev 1.28: changes to configuration options
Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Feb 4 11:44:15 1997 UTC (15 years ago) by davidg
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +7 -7 lines
Changed several configuration options: Disabled the DMA byte counters - I had it this way originally and this is the recommended setting. Set crscdt to CRS only (0) since this is what it should be for an MII PHY. Also fixed some comments.
Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Tue Feb 4 10:53:59 1997 UTC (15 years ago) by davidg
Branches: RELENG_2_2
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.2: +4 -4 lines
Brought in changes from main branch: do selective rather than full reset.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Feb 4 10:53:11 1997 UTC (15 years ago) by davidg
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
Do "selective" reset rather than full reset...the manual specifically says not to do the full reset because it can lock up the PCI bus if the chip is active. Added various PORT command definitions to facilitate this.
Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Tue Feb 4 07:41:01 1997 UTC (15 years ago) by davidg
Branches: RELENG_2_2
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +2 -4 lines
Brought in fix from rev 1.26: don't count a short frame as an input error.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Feb 4 07:39:28 1997 UTC (15 years ago) by davidg
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -3 lines
Don't include the short-frames counter in with the input errors. This counter is incremented on all short frames, including those that are the result of collisions.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jan 14 06:53:29 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -1 lines
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.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Jan 13 21:26:52 1997 UTC (15 years, 1 month ago) by wollman
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -15 lines
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).
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Dec 10 07:29:50 1996 UTC (15 years, 2 months ago) by davidg
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +15 -92 lines
1) Implement SIOCSIFMTU in ether_ioctl(), and change ether_ioctl's return type to be int so that errors can be returned. 2) Use the new SIOCSIFMTU ether_ioctl support in the few drivers that are using ether_ioctl(). 3) In if_fxp.c: treat if_bpf as a token, not as a pointer. Don't bother testing for FXP_NTXSEG being reached in fxp_start()...just check for non-NULL 'm'. Change fxp_ioctl() to use ether_ioctl().
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Nov 18 02:45:46 1996 UTC (15 years, 2 months ago) by davidg
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -3 lines
Fixed obsolete comment.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 18 02:44:50 1996 UTC (15 years, 2 months ago) by davidg
Branches: RELENG_2_2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -3 lines
Fixed obsolete comment.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Oct 12 19:49:43 1996 UTC (15 years, 4 months ago) by bde
Branches: MAIN
CVS tags: RELENG_2_2_BP
Branch point for: RELENG_2_2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -1 lines
Removed nested include if <sys/socket.h> from <net/if.h> and <net/if_arp.h> and fixed the things that depended on it. The nested include just allowed unportable programs to compile and made my simple #include checking program report that networking code doesn't need to include <sys/socket.h>.
Revision 1.8.2.10: download - view: text, markup, annotated - select for diffs
Sun Sep 29 10:21:38 1996 UTC (15 years, 4 months ago) by davidg
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE
Diff to: previous 1.8.2.9: preferred, colored
Changes since revision 1.8.2.9: +13 -9 lines
Brought in fixes from rev 1.20.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Sep 29 10:20:45 1996 UTC (15 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +13 -9 lines
Backed out one of my "performance optimizations" as it results in sometimes not resuming the NIC as required for transmit. Thanks to Alan Cox <alc@cs.rice.edu> for noticing this. Added another performance optimization to compensate. :-) Changed crscdt to 1...strange, but this seems to be needed for some reason despite what the manual says.
Revision 1.8.2.9: download - view: text, markup, annotated - select for diffs
Sun Sep 22 11:50:19 1996 UTC (15 years, 4 months ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.8: preferred, colored
Changes since revision 1.8.2.8: +38 -49 lines
Brought in bugfix and improvements from rev 1.19.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Sep 22 11:48:54 1996 UTC (15 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +38 -49 lines
Fixed a bug with the management of the pointer to the first TxCB in the ring that caused wrong things to happen sometimes. Doubled the number of transmit descriptors to 128 so that the internal FIFO in the NIC can be fully filled when dealing with small packets. Several minor performance improvements.
Revision 1.8.2.8: download - view: text, markup, annotated - select for diffs
Fri Sep 20 11:06:43 1996 UTC (15 years, 4 months ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.7: preferred, colored
Changes since revision 1.8.2.7: +14 -5 lines
Brought in fix from rev 1.18: fix for panic when out of mbuf clusters.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Sep 20 11:05:39 1996 UTC (15 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +14 -5 lines
Fixed a bug in the receive buffer allocation code that resulted in a panic if an mbuf cluster couldn't be allocated. This was caused by a failure to re-initialize m_data when the old mbuf/mbcluster was recycled.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Sep 20 04:11:53 1996 UTC (15 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +17 -18 lines
When the devconf stuff was ripped out of the kernel, the ripper neglected to deal with the fact that we relied on devconf to do the shutdown callouts in various drivers. The changes in this commit are to add support for device shutdown in this driver via the new at_shutdown() mechanism. Similar changes need to be made to all of the other drivers that need a shutdown routine called (if_de.c comes to mind immediately).
Revision 1.8.2.7: download - view: text, markup, annotated - select for diffs
Thu Sep 19 09:16:13 1996 UTC (15 years, 4 months ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.6: preferred, colored
Changes since revision 1.8.2.6: +19 -2 lines
Brought in fix from rev 1.16: dynamic threshold adjustment.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Sep 19 09:15:20 1996 UTC (15 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +19 -2 lines
Implemented a better, dynamic, mechanism for adjusting the transmit threshold.
Revision 1.8.2.6: download - view: text, markup, annotated - select for diffs
Wed Sep 18 16:19:28 1996 UTC (15 years, 4 months ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.5: preferred, colored
Changes since revision 1.8.2.5: +2 -2 lines
Brought in fix from rev 1.15: increase tx threshold to 1024 bytes.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Sep 18 16:18:05 1996 UTC (15 years, 4 months ago) by davidg
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Increased transmit threshold to 1024 bytes to fix a problem with underruns on machines with poor PCI performance.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Sep 6 23:08:52 1996 UTC (15 years, 5 months ago) by phk
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -7 lines
Remove devconf, it never grew up to be of any use.
Revision 1.8.2.5: download - view: text, markup, annotated - select for diffs
Wed Jun 5 19:50:37 1996 UTC (15 years, 8 months ago) by nate
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_5_RELEASE
Diff to: previous 1.8.2.4: preferred, colored
Changes since revision 1.8.2.4: +2 -1 lines
Whoops, forgot one. Fixed bogus changes from mega-commit 3. This reverts the files to their revisions *before* the mega-commit but makes sure any subsequent fixes are brought in.
Revision 1.8.2.4: download - view: text, markup, annotated - select for diffs
Wed Jun 5 02:56:18 1996 UTC (15 years, 8 months ago) by jkh
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.3: preferred, colored
Changes since revision 1.8.2.3: +0 -1 lines
This 3rd mega-commit should hopefully bring us back to where we were. I can get it to `make world' succesfully, anyway!
Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 2 00:01:51 1996 UTC (15 years, 8 months ago) by gpalmer
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.2: preferred, colored
Changes since revision 1.8.2.2: +2 -1 lines
Bring in changes from HEAD. Set ifnet.baudrate for ethernet & FDDI also. Reviewed by: Garrett Wollman
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jun 1 23:25:10 1996 UTC (15 years, 8 months ago) by gpalmer
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -1 lines
Set ifnet.baudrate for ethernet / FDDI interfaces too. Makes SNMP slightly more informative Reviewed by: Garrett Wollman
Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 8 01:31:59 1996 UTC (15 years, 10 months ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8.2.1: preferred, colored
Changes since revision 1.8.2.1: +1 -6 lines
From main branch: updates to my copyright.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Apr 8 01:31:41 1996 UTC (15 years, 10 months ago) by davidg
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -6 lines
Removed sections 3 and 4 from my copyright.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Feb 6 18:51:24 1996 UTC (16 years ago) by wollman
Branches: MAIN
CVS tags: wollman_polling
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -10 lines
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
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 29 12:59:47 1996 UTC (16 years ago) by davidg
Branches: RELENG_2_1_0
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -5 lines
Changes to make this driver work properly with the 2.1 kernel.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jan 26 09:29:28 1996 UTC (16 years ago) by phk
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
The last part of the ether_sprint -> %6D change. Sorry for the delay. (%D is for hexdumping.)
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jan 23 21:47:03 1996 UTC (16 years ago) by se
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -7 lines
Make PCI interrupt handlers return void like everybody else does. Reviewed by: davidg
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jan 15 10:12:41 1996 UTC (16 years ago) by davidg
Branches: MAIN
Branch point for: RELENG_2_1_0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
This driver really is for the Pro/100B and not for the Pro/100 (and in fact doesn't even work with a Pro/100)...updated to reflect this.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jan 3 05:22:32 1996 UTC (16 years, 1 month ago) by davidg
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +75 -36 lines
Reworked the stop/reset code to properly run-down allocated buffers and made the code detect and handle wedged cards.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Dec 18 02:47:43 1995 UTC (16 years, 1 month ago) by davidg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
Added prototype for fxp_scb_wait() and fixed a bug where the wrong pointer was passed in one case.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Dec 7 12:47:35 1995 UTC (16 years, 2 months ago) by davidg
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Untangled the vm.h include file spaghetti.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Dec 5 11:49:49 1995 UTC (16 years, 2 months ago) by davidg
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +32 -6 lines
Increased the number of Tx segments from 13 to 29 to reduce the need to recopy to near zero. Wrote the necessary code to recopy the mbuf chain into another buffer if there are too many mbufs in the chain.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Dec 5 02:01:51 1995 UTC (16 years, 2 months ago) by davidg
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +23 -29 lines
all: Removed ifnet.if_init and ifnet.if_reset as they are generally unused. Change the parameter passed to if_watchdog to be a ifnet * rather than a unit number. All of this is an attempt to move toward not needing an array of softc pointers (which is usually static in size) to point to the driver softc. if_ed.c: Changed some of the argument passing to some functions to make a little more sense. if_ep.c, if_vx.c: Killed completely bogus use of if_timer. It was being set in such a way that the interface was being reset once per second (blech!).
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Dec 1 22:41:56 1995 UTC (16 years, 2 months ago) by davidg
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +75 -24 lines
Fix minor bug that would cause the packet statistics updates to stop working under extremely rare circumstances. Also added some additional comments..
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Nov 28 23:55:20 1995 UTC (16 years, 2 months ago) by davidg
Branches: MAIN
Device driver for Intel Pro/100 PCI Fast Ethernet controller.
