256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
246128 |
30-Jan-2013 |
sbz |
Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on device_method_t arrays
Reviewed by: cognet Approved by: cognet
|
243857 |
04-Dec-2012 |
glebius |
Mechanically substitute flags from historic mbuf allocator with malloc(9) flags in sys/dev.
|
229767 |
07-Jan-2012 |
kevlo |
ether_ifattach() sets if_mtu to ETHERMTU, don't bother set it again
Reviewed by: yongari
|
218909 |
21-Feb-2011 |
brucec |
Fix typos - remove duplicate "the".
PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
|
207554 |
03-May-2010 |
sobomax |
Add new tunable 'net.link.ifqmaxlen' to set default send interface queue length. The default value for this parameter is 50, which is quite low for many of today's uses and the only way to modify this parameter right now is to edit if_var.h file. Also add read-only sysctl with the same name, so that it's possible to retrieve the current value.
MFC after: 1 month
|
201794 |
08-Jan-2010 |
trasz |
Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order to silence newer GCC versions.
|
199559 |
19-Nov-2009 |
jhb |
- Add a private timer to drive the transmit watchdog instead of using if_watchdog and if_timer. - Fix some issues in detach for sn(4), ste(4), and ti(4). Primarily this means calling ether_ifdetach() before anything else.
|
196984 |
08-Sep-2009 |
imp |
Cleanup tortured logic a big. Noticed by FlexLint, per phk.
# My reading of the docs suggests this can only happen on 10Base5 and # 10Base2 setups (and maybe only the former), which I can't test # adequately since I have nothing but 10BaseT, etc here.
|
196970 |
08-Sep-2009 |
phk |
Revert previous commit and add myself to the list of people who should know better than to commit with a cat in the area.
|
196969 |
08-Sep-2009 |
phk |
Add necessary include.
|
192158 |
15-May-2009 |
brueffer |
Add a missing break in a switch statement.
Found with: Coverity Prevent(tm) CID: 4302 MFC after: 2 weeks
|
190908 |
11-Apr-2009 |
imp |
Two refinements to the 3c1 support: 1) Flag it and only access that command on the 3c1 2) The TX PLL appears to power down when not in use, so we have to power it back up when we've been idle. Do this at the start of ifstart. Otherwise we fall off the net.
|
190907 |
11-Apr-2009 |
imp |
o Report ethernet status for at least 10BaseT media. Since I don't have other media to test against, I've left that media reporting unchanged. o Enable the TX_PLL when we enable TX. This is harmless on most cards, but required to get the 3c1 CF card working. Power savings could be had by managing this better, but for now it gets my card working.
|
166906 |
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
Approved by: re (implicit?)
|
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@
|
164810 |
01-Dec-2006 |
mlaier |
ALTQify ep(4).
Tested and Requested by: Andy Brook MFC after: 3 days
|
155281 |
04-Feb-2006 |
imp |
Remove ifdef notdef SIOCHWADDR vestige.
|
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.
|
150395 |
20-Sep-2005 |
imp |
Better use of gone.
|
150306 |
19-Sep-2005 |
imp |
Make sure that we call if_free(ifp) after bus_teardown_intr. Since we could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call.
|
150110 |
13-Sep-2005 |
imp |
MFp4: Migrate from CARD_CIS_SCAN to pccard_cis_scan
|
149559 |
29-Aug-2005 |
imp |
Simplify names.
|
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
|
148581 |
31-Jul-2005 |
imp |
The isa attachment calls ep_free after it has already been called once in the resource error in ep_alloc case. This results in a panic. Zero resources to make it safe to call twice pending resolution of layering questions.
MFC After: 3 days
|
148579 |
31-Jul-2005 |
imp |
Add newer commands
|
148164 |
19-Jul-2005 |
imp |
Spell destroy in a more traditional way
|
147960 |
13-Jul-2005 |
imp |
Nits
|
147729 |
01-Jul-2005 |
imp |
Upon relection, we shouldn't allow the tuple structs to be modified by the functor, so make it a const pointer, and chase down the resulting const-poisoning.
Approved by: re (scottl)
|
147717 |
01-Jul-2005 |
imp |
Make a pass and cleanup the printfs from this driver.
Approved by: re (scottl) blanket ep
|
147715 |
01-Jul-2005 |
imp |
Minor cleanup of ep driver and pccard attachment: o Grab the MAC address out of the CIS if the card has the special 3Com 0x88 tuple. Most 3Com cards don't have this tuple, but we prefer it to the eeprom since it only appears to be present when the eeprom doesn't have the info. So far, I've only observed this on my 3C362 and 3C362B cards, but the NetBSD driver implies that the 3C362C also has this tuple, and that some 3C574 cards do too (none of mine do). ep_pccard_mac was written after looking at the NetBSD code. o Store the enet addr in the softc for this device, so we can use the overridden MAC to set the station address. o Create a routine to set the station address and use it where we need it. o setup the cmd shitfs and such before we call ep_alloc(), and remove setting up the cmd shift value there. It initializes to 0, and those attachments that need to frob it do so before calling ep_alloc. o Remove some obsolete comments o No longer a need to export ep_get_macaddr, so make it static o ep_alloc already grabs the EEPROM id, so we don't need to grab it again in ep_pccard_attach. o eliminate unit, it isn't needed, fix some printfs to be device_printf instead.
# All my pccards except the 3C1 work now. Didn't test ISA or cbus cards # that I have: 3C509B-TP or 3C569B-J-TPO
Tested on: 3C589B, 3C589C, 3C589D, 3C589D-TP, 3C562, 3C562B/3C563B, 3C562D/3C563D, 3CCFE574BT, 3CXEM556, 3CCSH572BT, 3C574-TX, 3CCE589EC, 3CXE589EC, 3CCFEM556, 3C1 Approved by: re (scottl)
|
147649 |
28-Jun-2005 |
imp |
Add a chipset field to the lookup. Use this chipset type to determine which command to use to read the eeprom and which devices have an MII. Simplify code by no longer using the OLDCARD compat rouintes (I don't know if this breaks OLDCARD on pc98 or not, but OLDCARD on pc98 days are numbered, I hope). This also removes a number of kludges that we had before because they are OBE. Add a convenience routine to lookup the device to avoid many casts in many places.
Tested with: 3C589D-TP, 3CCSH572BT Approved by: re (scottl, blanket ep)
|
147607 |
26-Jun-2005 |
imp |
o When calling ep_get_macaddr(), provide it a local buffer. Add a comment that says why we do this (or rather, explains that it is some voodoo magic that's poorly understood). The local buffer fixes the crash on attach. o Rename get_e() to ep_get_e() to avoid namespace pollution.
Submitted by: mux Approved by: re (scottl)
|
147580 |
24-Jun-2005 |
imp |
Eliminate unused argument in PCMCIA_CARD macro.
Provide a backwards compatible way to have the extra macro by defining PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that want/need to have the same driver on 5 and 6 with pccard attachments.
Approved by: re (dwhite)
|
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
|
144996 |
13-Apr-2005 |
mdodd |
Make it clear that the statement following the conditional is a NOP.
|
140530 |
20-Jan-2005 |
imp |
Don't print 'unknown id' in the ep_pccard_identify routine. It is expected to be unknown in some cases, and printing it clutters up things too much.
|
140523 |
20-Jan-2005 |
imp |
u_intXX_t -> uintXX_t while I'm here.
|
140522 |
20-Jan-2005 |
imp |
Only attach to network functions.
|
139749 |
06-Jan-2005 |
imp |
Start each of the license/copyright comments with /*-, minor shuffle of lines
|
132529 |
22-Jul-2004 |
imp |
Remove duplicate $FreeBSD$
Noticed by: njl
|
132518 |
22-Jul-2004 |
imp |
Minor style nit
|
129764 |
27-May-2004 |
imp |
Fix disordering of pccarddevs.h noticed by bde. Also remove a few redundant includes and fix some of the include disordering.
Submitted by: bde
|
129740 |
26-May-2004 |
imp |
Move to generating pccarddevs.h on the fly, both for the kernel and the modules.
Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment.
|
129616 |
23-May-2004 |
mux |
We don't need to initialize if_output, ether_ifattach() does it for us.
|
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
|
126967 |
14-Mar-2004 |
ru |
Removed duplicate __FBSDID(). Keep the one that style(9) likes.
|
126966 |
14-Mar-2004 |
mdodd |
Announce ethernet MAC addresss in ether_ifattach().
|
121904 |
02-Nov-2003 |
imp |
MFp4: o Remove redundant $FreeBSD$ o Better comments about ep_get_macaddr. o remove one tab in a switch statement (style only) o Recognize ID 0x0035 as the device ID for the 3CXEM556 that I have. This makes the 3CXEM556 work for me. Not 100% sure this is the assigned ID, as I don't have the datasheets for this part, but it does work and get the correct ethrnet address. o Comment about the whole fake IRQ 3 thing. some need it, some don't, all work with it.
|
121903 |
02-Nov-2003 |
imp |
MFp4: o Minor tweak to error processing in ep_alloc.
|
121902 |
02-Nov-2003 |
imp |
MFP4: o define EP_W2_ALT_EEPROM. we don't use it yet, but may soon.
|
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)
|
121588 |
26-Oct-2003 |
imp |
Pass sc to GO_WINDOW macro. Use SET_IRQ for pccard case, rather than exapnding it inline.
Requested by: mdodd
|
121515 |
25-Oct-2003 |
imp |
Minor style nits suggested by sam and mdodd:
o give an argument to EP_BUSY_WAIT o use foo_locked rather than foo_body o Add locking assertions for extra safety.
|
121492 |
25-Oct-2003 |
imp |
Whole grab-bag of changes: o Make the driver MPSAFE o Some changes due to diff reduction effort with vx. o Removed some obsolete junk.
Reviewed by: sam, modd
|
121399 |
23-Oct-2003 |
imp |
Fix mismerge from one tree to another: add (
|
121388 |
23-Oct-2003 |
imp |
Learn basic C. ((uint32_t *) v) + 10 != ((caddr_t) v) + 10 so apply the cast later.
|
121249 |
19-Oct-2003 |
imp |
Finish the removal of the bst/bsh confusion.
|
121241 |
19-Oct-2003 |
bms |
Fix LINT build by correcting a missed change.
|
121231 |
19-Oct-2003 |
imp |
Don't confuse tags and handles.
|
121225 |
18-Oct-2003 |
bms |
Fix a typo. The module has the EISA front-end commented out, therefore the error may not have been picked up right away.
Reviewed by: mdodd Submitted by: Stuart Walsh
|
121206 |
18-Oct-2003 |
imp |
Transition to using bus_space macros rather than the inb/outb/etc. Use EP_{READ,WRITE}{,_MULTI}_{1,2,4} instead. I've had several people submit patches like this over the years of varying qualities, markm being the last. The names were chosen in consulation with mdodd on irc.
I've tested this with only PCMCIA cards: 3CCE589EC and 3CCSH572BT. I've not tried with my more extensive ISA, EISA and cbus collection.
Reviewed by: mdodd
|
119572 |
30-Aug-2003 |
markm |
Style fixes of the whitespace variety. Fix long lines and tabs.
|
119418 |
24-Aug-2003 |
obrien |
Use __FBSDID(). Also some minor style cleanups.
|
119125 |
19-Aug-2003 |
cognet |
Use bus_child_present() to make sure the card is still there before calling epstop() in ep_detach(). This fixes a freeze that happens when ejecting a ep(4) pcmcia card.
|
117700 |
17-Jul-2003 |
markm |
Style(9) cleanup. There was no consistent style in this driver, and The next round of commits will be to fix up locking in it. This lot is to at least give a consistent base to work off.
OK'ed by: imp, mdodd
|
116887 |
26-Jun-2003 |
mux |
Other minor style nits I missed in ep_if_start() in my previous commit.
|
116884 |
26-Jun-2003 |
mux |
Make if_ep_start() look a bit more like other if_start() functions, by calling the first mbuf in the chain m0 and fixing a few nearby style bugs, mostly s/0/NULL/.
|
116883 |
26-Jun-2003 |
mux |
Fix a race condition that was introduced since pccbb interrupts are flag'ed INTR_MPSAFE. In ep_if_start(), use the IF_DEQUEUE macro to grab the next mbuf to send, and use IF_PREPEND if the card is busy and we actually can't handle it right now.
The old code was first getting the mbuf by taking it from the queue without using the macros, thus without locking, and without removing it from the queue either. It was later assuming that IF_DEQUEUE would give him this same mbuf.
Tested by: mich
|
113315 |
10-Apr-2003 |
imp |
Make sure that pp_name is non-null before setting the device description. This allows us to rely entirely on the CIS entries if necessary...
|
112845 |
30-Mar-2003 |
mdodd |
Revert 1.21; this was local code that should not have been committed.
|
112829 |
29-Mar-2003 |
mdodd |
- Free interrupt handler in ep_free(). - Move ep_pccard_detach() to if_ep.c and rename to ep_detach() - Specify detach methods for all bus frontends.
|
112824 |
29-Mar-2003 |
mdodd |
Checksum the configuration EEPROM.
|
112822 |
29-Mar-2003 |
mdodd |
- Return error status instead of value in get_e(). - Modify ep_get_macaddr() to return an error status. - Reverse the return value logic of eeprom_rdy().
|
112794 |
29-Mar-2003 |
mdodd |
Register dependency on the elink module.
|
111292 |
23-Feb-2003 |
marcel |
Fix compilation on non-i386 machines. Inconsistent conditional compilation yielded definitions that we're used.
|
111119 |
19-Feb-2003 |
imp |
Back out M_* changes, per decision of the TRB.
Approved by: trb
|
110835 |
13-Feb-2003 |
mdodd |
Bandaid the bits that use the elink_foo() functions which are i386 only at this point.
|
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.
|
106937 |
14-Nov-2002 |
sam |
network interface driver changes:
o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls
Reviewed by: many Approved by: re
|
97645 |
31-May-2002 |
takawata |
Fix build breakage on my pccard related commit.
|
92739 |
20-Mar-2002 |
alfred |
Remove __P.
|
90561 |
12-Feb-2002 |
imp |
Two fixes from Jonathan Hanna: 1) We shouldn't continue when we get a RX complete because we ack it and the TX complete. 2) Fix a couple of spl leaks (why splbio is needed in ISR, I cannot understand).
MFC after: 3 days
|
86395 |
15-Nov-2001 |
imp |
More devices. Obtained from NetBSD.
|
86394 |
15-Nov-2001 |
imp |
Migrate to PCMCIA_CARD() macros
|
86273 |
11-Nov-2001 |
imp |
s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharing
|
77792 |
05-Jun-2001 |
imp |
Commit part of the patch that I have for card eject problems with the ep driver. The rest of the patch will wait until I can put the time into it to get it righter than the kludge it is.
This protects us against card eject problems at all times,e xecpt when we're in the epintr ISR.
|
71323 |
21-Jan-2001 |
imp |
Use PCCARD_CIS_xxx #defines for the table of oem ids. These usually translate to all NULLs (as for all the ones in this commit).
|
70765 |
07-Jan-2001 |
peter |
Add the 3COM ID's that I could find in the pccarddevs file that seemed to match the pccard.conf file. There are more ID's that need adding, but these seem to be the common ones.
This was committed on an ep0 interface under NEWCARD: ep0: <3Com 3c589 10Mbps Ethernet> at port 0x300-0x30f irq 9 function 0 config 1 on pccard1 ep0: Ethernet address 00:10:4b:df:48:57
Reviewed by: imp
|
69788 |
09-Dec-2000 |
nyan |
Fixed to support 3Com 3C569B for PC-98.
Submitted by: "Hirokazu WATANABE" <gwna@geocities.co.jp>
|
67164 |
15-Oct-2000 |
phk |
Remove unneeded #include <machine/clock.h>
|
66137 |
20-Sep-2000 |
imp |
Remove 7 unnecessary includes frmo phk's script
|
66058 |
19-Sep-2000 |
imp |
Implement indirection in the pccard probe/attach. This should make it possible to have different probe/attach semantics between the two systems and yet still use the same driver for both.
Compatibility methods for OLDCARD drivers. We use these routines to make it possible to call the OLDCARD driver's probe routine in the context that it expects. For OLDCARD these are implemented as pass throughs to the device_{probe,attach} routines. For NEWCARD they are implemented such such that probe becomes strictly a matching routine and attach does both the old probe and old attach.
compat devices should use the following:
/* Device interface */ DEVMETHOD(device_probe), pccard_compat_probe), DEVMETHOD(device_attach), pccard_compat_attach), /* Card interface */ DEVMETHOD(card_compat_match, foo_match), /* newly written */ DEVMETHOD(card_compat_probe, foo_probe), /* old probe */ DEVMETHOD(card_compat_attach, foo_attach), /* old attach */
This will allow a single driver binary image to be used for both OLDCARD and NEWCARD.
Drivers wishing to not retain OLDCARD compatibility needn't do this.
ep driver minorly updated.
sn driver updated more than minorly. Add module dependencies to allow module to load. Also change name to if_sn. Add some debugging code. attempt to fix the cannot allocate memory problem I'd been seeing. Minor formatting nits.
|
65794 |
13-Sep-2000 |
imp |
Add ID for 3C1. It is a etherlink iii in a CompactFlash form factor. It doesn't seem to work, but at least is identified correctly. Minor tree housekeeping on my part.
|
63379 |
18-Jul-2000 |
mdodd |
Properly detect ISA cards in EISA mode and skip them in the ISA identify routine so that they will be picked up by the EISA front end.
PR: i386/2598
|
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
|
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
|
59760 |
29-Apr-2000 |
phk |
Remove unneeded #include <sys/kernel.h>
|
59391 |
19-Apr-2000 |
phk |
Remove ~25 unneeded #include <sys/conf.h> Remove ~60 unneeded #include <sys/malloc.h>
|
59313 |
17-Apr-2000 |
imp |
Remove unloaded printf. We do this now in the newbus layer.
|
58539 |
24-Mar-2000 |
mdodd |
Fix a problem that caused TCP fragments to be lost (among other things.)
|
57984 |
13-Mar-2000 |
mdodd |
Copy how everyone else is doing packet transmission. (NetBSD mostly) I've been running this for a month or so and have had no problems with it and if I recall it was my last speed tweak. Holler if this breaks anything.
|
57983 |
13-Mar-2000 |
mdodd |
Follow the docs a bit more in epstop() with respect to delays. Trivial formatting.
|
57982 |
13-Mar-2000 |
mdodd |
Get rid of table lookup in favor of just subtracting. Everyone else does it like this and I see no point in being different.
|
57981 |
13-Mar-2000 |
mdodd |
Call epstop() in ep_attach(). While this shouldn't be necessary we'll do it just in case. (Actually, with PCMCIA cards we can get in a state where it may be required.)
|
56429 |
23-Jan-2000 |
mdodd |
Fix a bug in the last commit. >> 4 instead of >> 8. *bap*
Fix a long-standing bug where I used a 'break;' instead of a 'continue;'; you had to have multiple ISA boards in non-PnP mode with an 'unknown' board with a lower MAC address to find this one. Since I have 4 3c5x9 boards in my test box I was somewhat confused when this happened. :)
Make the messages printed by ep_isa_identify() a little more consistent; we'll only see them in verbose boot mode but it makes me feel better if they look nice.
|
56428 |
23-Jan-2000 |
mdodd |
Add the ID for the 3c509-TPC.
Also, while I'm here, add a mechanism to catch unknown board IDs that are likely to be 3c509s and allow them to be attached.
PR: kern/16304 Submitted by: Kelly Yancey <kbyanc@posi.net>
|
56017 |
15-Jan-2000 |
mdodd |
Fix driver to restore function on 3c574 adapters. The panic on ifconfig and bogus ethernet address (4b:57:4b:57:4b:57) has been hacked around. I'll revisit this when I have a clue whats going on.
Reviewed by: obrien
|
55953 |
14-Jan-2000 |
peter |
Pre 4.0 tidy up.
Collect together the components of several drivers and export eisa from the i386-only area (It's not, it's on some alphas too). The code hasn't been updated to work on the Alpha yet, but that can come later.
Repository copies were done a while ago. Moving these now keeps them in consistant place across the 4.x series as the newbusification progresses.
Submitted by: mdodd
|
55864 |
12-Jan-2000 |
mdodd |
Remove a stray splx(s) call. This fixes the compiler warning.
Submitted by: gibbs
|
55834 |
12-Jan-2000 |
mdodd |
Speedup if_start routine a little. TX threshold logic needs some more kicking but these changes get me around 1000 KB/sec.
|
55833 |
12-Jan-2000 |
mdodd |
Fix the performance problems I caused by setting ifq_maxlen to 8. Use IFQ_MAXLEN instead. This seemed like a good idea at the time since most 3c509s have all of 2k for their TX fifo. My intention was to revisit ifq_maxlen and auto-scale it or something.
ttcp-t: 16777216 bytes in 21.53 real seconds = 761.07 KB/sec +++ ttcp-t: 2771 I/O calls, msec/call = 7.96, calls/sec = 128.72 ttcp-t: 0.0user 2.9sys 0:21real 13% 20i+280d 222maxrss 0+2pf 717+0csw
ttcp-r: 16777216 bytes in 14.11 real seconds = 1161.48 KB/sec +++ ttcp-r: 2050 I/O calls, msec/call = 7.05, calls/sec = 145.33 ttcp-r: 0.0user 1.4sys 0:14real 10% 87i+1198d 196maxrss 0+1pf 1949+186csw
I've got some tweaks that move the TX speed up to the RX speed but I've got to groom them from the mess I've made of my source tree.
Yelled at by: wpaul
|
55702 |
10-Jan-2000 |
imp |
Commit kernel part of patches to get the 3Com OfficeConnect 3CXSH572BT working on -current.
Submitted by: Eric D. Futch <efutch@nyct.net> Approved by: mdodd
|
54385 |
10-Dec-1999 |
imp |
kill debug printf that says detach
|
54201 |
06-Dec-1999 |
mdodd |
Add defines for additional EEPROM locations and register definitions.
|
54200 |
06-Dec-1999 |
mdodd |
Whitespace cleanups.
|
54198 |
06-Dec-1999 |
mdodd |
Add a delay (per the databook) to the get_eeprom_data() loop so that the read EEPROM command has time to execute.
I didn't observe any difference in behavior on my test system but this is the documented "correct behavior".
|
54197 |
06-Dec-1999 |
mdodd |
Standardize device descriptions so that there is parity between PnP descriptions and non-PnP descriptions.
|
54196 |
06-Dec-1999 |
mdodd |
Correctly implement the non-PnP enumeration of ISA board.
We now correctly skip boards that have PnP support enabled, or are in test mode. The 3c509s support a number of combinations of device probing, as per the databook.
- ISA only - PnP only - ISA or PnP
We will allow cards that can be dealt with by PnP to be attached by the PnP enumerator.
This fixes the bogus detection of boards at weird ioports.
|
53978 |
01-Dec-1999 |
imp |
Fix the hang on card eject problem and maybe the hang on suspend problem.
o Create new timeout routine so we don't detach the card inside a ISR but instead drop back to spl0 via a timeout of 0. o Actually delete the child of the pccard device rather than just faking it badly. o Fix sio, ed and ep to have pccard detach routines that are int rather than void. o Fix ep and ed pccard detach routines to use if_detach rather than just if_down. if_detach destroys the device, while if_down just marks it down. In this incarnation of the pccard things, we map the disable the slot action to detach the driver, which removes the driver from the device tree. When that is done, a panic would soon follow as the ifconfig tried to down the device.
Didn't fix: o Should cache the pccard dev child's pointer in struct slot o remove now unused parts of struct slot o Any driver using softc after detach has been called. sio's softc used to be statically allocated, so you could check sc->gone, but that is now gone. o Didn't remove gone from softc of drivers that use the old pccard method.
Didn't test: o ed driver changes o sio driver changes on pccards o suspend (no laptop or apm support on my desktop)
|
53448 |
20-Nov-1999 |
imp |
Kill unneeded #includes. They were left over from the short period of time when a strcmp against the device name was required. Sio patches sent to peter for review.
|
52621 |
29-Oct-1999 |
imp |
Add (untested) support for the 3C562D/3C563D. I have been unable to test this support since I don't have the dongle for the card in question and the dongle I have for my 3C589D doesn't seem to work on it. I don't know if this is due to the damage I did to the 562 card in transit from freebsdcon, or a mis-matched dongle...
|
52589 |
28-Oct-1999 |
imp |
Fix identify code. This also fixes the eeprom messages.
pccard attachments must activate the resources they want to access. ep didn't do this, so of course thee eeprom came back as busy. ed and sio already did this. It was only due to a bug in the logic that the probe succeeded. These problems have been fixed.
|
52585 |
28-Oct-1999 |
imp |
Last change to pccard_nbk now obviates the need to check the name of the device in question. Also fix warnings on if_ep_pccard.c
|
52549 |
27-Oct-1999 |
mdodd |
HEADS UP! All 3c5x9 users!
- Rip out all the static softc stuff and do softc allocation the right way. - Rewrite most of the ISA code so that it provides a DEVICE_IDENTIFY method to enumerate all non-PnP ISA devices.
This has the following consequences:
- No 'ep' devices may be hardwired. - All hardwired devices will probably be detected twice. By hardwired I mean:
device ep0 at isa? port 0x300 irq 10
- 'ep' devices are ordered by bus, slot, and then MAC address.
- Make 3c509B cards work in PnP mode. Yes, they really work. - Convert over to using ifmedia for media selection. No more of this lame 'linkX' stuff. - Consolidate a lot of duplicated code. - Make a stab at not breaking MII based PCCARD devices. I doubt that the PCCARD stuff works any more than it did before my changes but theres hope. My PCCARD hardware should arrive in a week or so. - Retreive the media settings from the card EEPROM rather than guessing. I've got a 3c509-TPO that thinks its got an AUI port and if others can report similar problems I'll write a bit of clever code that will fix this but right now it works correctly on all but 1 card. - Clean up a few things and make some cosmetic changes. - Add myself as the MAINTAINER since nobody else wants to. I'm in the best position to do this as I've got an example of most of the cards:
EISA 3c579 bnc/aui MCA 3c529 tp/aui ISA 3c509 tpo ISA-PnP 3c509B combo
If someone wants to send me a any cards I don't have I'd appriciate it. Also welcome are 3c59x boards since I'll be folding if_vx and if_ep at some point.
|
52472 |
25-Oct-1999 |
imp |
Add newbus attachment for pccard driver. Heavily tested by me, and I'm committing this from a laptop running this driver. Have only one devclass for all ep devices (at least for pccard and eisa) so unit numbering is sane. Might not work with both isa and non-isa devices on the same system until ep is updated (Matt has some patches in the pipeline which should resolve this, he wanted me to commit this so he can resolve any conflicts against cvs rather than my patches).
Reviewed by: Matt Dodd <mdodd@freebsd.org>
|
51879 |
02-Oct-1999 |
mdodd |
Fix includes. I missed this the first time around.
|
51677 |
26-Sep-1999 |
mdodd |
Duplicated '(' removed.
Noticed by: Mark Murray <mark@grondar.za>
|
51673 |
26-Sep-1999 |
mdodd |
- Split out the ISA and PCCARD specific code.
- Split out the prototypes, externs and struct decls from if_epreg.h into if_epvar.h.
- Add support for MCA based Etherlink III (3c529) devices.
None of this code is used right now; the old if_ep driver is still in place and used.
I will eventually get around to converting if_ep_isa.c to newbus once I've had a talk with Peter and DFR about the DEVICE_IDENTIFY() method.
I have tested this code on my PS/2. It works. I would like EISA and ISA testers since my example hardware hasn't arrived yet.
Add:
dev/ep/if_ep.c optional ep dev/ep/if_ep_isa.c optional ep isa dev/ep/if_ep_eisa.c optional ep eisa dev/ep/if_ep_mca.c optional ep mca dev/ep/if_ep_pccard.c optional ep card
to sys/conf/files
Remove:
i386/eisa/3c5x9.c optional ep i386/isa/if_ep.c optional ep
from sys/i386/conf/files.i386
PCCARD testers wanted!
I will switch off and cvs rm the old driver in favor of this copy once I've had positive feedback or have the hardware to verify that it works.
|
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.
|
51630 |
24-Sep-1999 |
obrien |
Switch the order of a two tests so that the error actually has to occur for you to be told there was an error [during verbose boot].
I poked him for the fix, he poked me to get it committed.
Submitted by: Jason Young <doogie@anet-stl.com>
|
51387 |
19-Sep-1999 |
obrien |
This adds support for the 3Com Megahertz 574B ethernet 16-bit PC-Card.
1) Reworked the probe routine 2) Addition of the 574B's product ID. 3) Added useful info when booting verbosely.
Submitted by: Jason Young <doogie@anet-stl.com>
|
50477 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50084 |
20-Aug-1999 |
mdodd |
Set ifp->if_init to the right function. if_init_f_t is passed void * containing the address of ifp->if_softc not the unit number.
Someone tell me if these things don't work as I don't have the hardware needed to test them. (thats a first.)
I'll get if_ze and if_zp later.
Pointed out by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
|
50026 |
18-Aug-1999 |
mdodd |
Make these actually compile. I got a little delete happy pruning includes and used 'command' instead of 'cmd' in a few cases. Also clear up some unused variables.
Pointed out by: phk
|
50002 |
18-Aug-1999 |
mdodd |
SIOCSIFADDR, SIOCGIFADDR, and SIOCSIFMTU are implemented in sys/net/if_ethersubr.c:ether_ioctl(). Drivers need not implement generic behavior.
PR: kern/12126 Submitted by: in part by Boris Popov <bp@butya.kz>
|
49360 |
01-Aug-1999 |
mdodd |
Move the specification of EDGE/LEVEL triggered interrupts to eisa_add_intr() which now takes an additional arguement (one of EISA_TRIGGER_LEVEL or EISA_TRIGGER_EDGE).
The flag RR_SHAREABLE has no effect when passed to bus_alloc_resource(dev, SYS_RES_IRQ, ...) in an EISA device context as the eisa_alloc_resource() call (bus_alloc_resource method) now deals with this flag directly, depending on the device ivars.
This change does nothing more than move all the 'shared = inb(foo + iobsse)' nonesense to the device probe methods rather than the device attach.
Also, print out 'edge' or 'level' in the IRQ announcement message.
Reviewed by: dfr
|
49070 |
25-Jul-1999 |
hosokawa |
3C574TX 16bit FastEtherlink PC-card support. Reviewed by: HAMADA Naoki <nao@tom-yam.or.jp> Submitted by: Osamu MIHARA <mihara@prd.fc.nec.co.jp>
|
48645 |
06-Jul-1999 |
des |
Rename bpfilter to bpf.
|
46743 |
08-May-1999 |
dfr |
Move the declaration of the interrupt type from the driver structure to the BUS_SETUP_INTR call.
|
45791 |
18-Apr-1999 |
peter |
Implement an EISA new-bus framework. The old driver probe mechanism had a quirk that made a shim rather hard to implement properly and it was just easier to convert the drivers in one go. The changes to the buslogic driver go beyond just this - the whole driver was new-bus'ed including pci and isa. I have only tested the EISA part of this so far.
Submitted by: Doug Rabson <dfr@nlsystems.com>
|
43487 |
31-Jan-1999 |
dufault |
Move the "fetch serial data" delay so that it is an inter-bit delay. Increase the overall length of the delay by 10.
Without this a 3C509 card on my MediaGX crash box can't be reliably read. With this it is solid.
I've left a delay multiplier in instead of just changing the base delay because I'm surprised I had to increase it so much and expect there may be another problem.
|
42820 |
19-Jan-1999 |
peter |
Update the pccard hooks to use a module style declaration instead.
|
40565 |
22-Oct-1998 |
bde |
Initialize isa_devtab entries for interrupt handlers in individual device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet.
pc98 parts approved by: kato
|
37101 |
21-Jun-1998 |
bde |
Removed unused includes.
|
36735 |
07-Jun-1998 |
dfr |
This commit fixes various 64bit portability problems required for FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change.
The prototype FreeBSD/alpha machdep will follow in a couple of days time.
|
35256 |
17-Apr-1998 |
des |
Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.
|
34928 |
28-Mar-1998 |
bde |
Removed unused #includes.
|
33860 |
27-Feb-1998 |
msmith |
Fix some style nits and remove an unused header. Submitted by: bde
|
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.)
|
31430 |
27-Nov-1997 |
kato |
Recognize 3C569 network interface when `PC98' is defined.
Submitted by: HAMADA Naoki <hamada@astec.co.jp>
|
31311 |
20-Nov-1997 |
nate |
- Renamed <pccard/card.h> -> <pccard/cardinfo.h>.
Forgotten by: me Reminded by: Bruce
|
31016 |
07-Nov-1997 |
phk |
Remove a bunch of variables which were unused both in GENERIC and LINT.
Found by: -Wunused
|
30760 |
27-Oct-1997 |
joerg |
Move the EP_ID_PORT out to 0x110, so it doesn't conflict with other port usage at 0x100. Quoted Justin's quotation from the manual as well, to explain the technical background.
PR: kern/4559 Submitted by: Stephen J. Roznowski <sjr@home.net>
|
30753 |
27-Oct-1997 |
fenner |
Fix a comment about multicast; since the Etherlink III has no multicast filter the driver will never learn how to program it.
|
30747 |
26-Oct-1997 |
nate |
- Instead of relying on a functional call to register PCARD-capable drivers, use a Linker Set. Note, if a driver is loaded as an LKM if will have to use the function call, but since none of the existing drivers are loadable, this made things cleaner and boot messages nicer.
Obtained from: PAO-970616
|
30721 |
26-Oct-1997 |
nate |
- Functional changes to PCCARD support. * Kill individual drivers 'suspend' routines, since there's no simple/safe way to suspend/resume a card w/out going through the complete probe at initialization time. * Default to using the apm_pccard_resume sysctl code, which basically pretends the card was removed, and then re-inserted. Suspend/resume is now 'emulated' with a fake insert/removal. (Hence we no longer need the driver-specific suspend routines.)
|
30720 |
26-Oct-1997 |
nate |
- Do a bunch of gratuitous changes intended to make the code easier to follow. * Rename/reorder all of the pccard structures, change many of the member names to be descriptive, and follow more closely other 'bus' drivers naming schemes. * Rename a bunch of parameter and local variable names to be more consistant in the code. * Renamed the PCCARD 'crd' device to be the 'card' device * KNF and make the code consistant where it was obvious. * ifdef'd out some unused code
|
30398 |
14-Oct-1997 |
itojun |
if_ep.c clarification/simplification. - irq = 9 problem (PR 4693) - mbuf chaining oddity fixed. (PR 4693) - trailer protocol has gone. (PR 4693) - removed mbuf kludge, we got higher performance. (PR 4693) - some indentation fixes
I'm sorry that I couldn't make a 2.2.5-RELEASE deadline.
PR: 4693 Reviewed by: babkin@hq.icb.chel.su Submitted by: hamada@tom-yam.or.jp
|
29674 |
21-Sep-1997 |
gibbs |
Add shared EISA interrupt support. Clean up the match routines so that they return const char *
|
29024 |
02-Sep-1997 |
bde |
Added used #include - don't depend on <sys/mbuf.h> including <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags).
|
27555 |
20-Jul-1997 |
bde |
Removed unused #includes.
|
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.
|
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.
|
20673 |
19-Dec-1996 |
kato |
Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp> Support 3COM 3C569 network card on PC98.
|
20407 |
13-Dec-1996 |
wollman |
Convert the interface address and IP interface address structures to TAILQs. Fix places which referenced these for no good reason that I can see (the references remain, but were fixed to compile again; they are still questionable).
|
19650 |
11-Nov-1996 |
bde |
Fixed pessimized (short) i/o port type.
The change in if_epreg.h affects if_epreg.o and 3c5x9.o.
These changes are probably harmless, but I can't test them.
|
18892 |
12-Oct-1996 |
bde |
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>.
|
18887 |
12-Oct-1996 |
bde |
Staticized. Things exported by linker sets should always be static.
|
18158 |
08-Sep-1996 |
phk |
Various cleanups for remanents of devconf.
|
18084 |
06-Sep-1996 |
phk |
Remove devconf, it never grew up to be of any use.
|
17455 |
06-Aug-1996 |
phk |
Megacommit to straigthen out ETHER_ mess.
I'm pretty convinced after looking at this that the majority of our drivers are confused about the in/exclusion of ETHER_CRC_LEN :-(
|
17300 |
27-Jul-1996 |
amurai |
Under the heavy load for transmiting condition, it will be write error and then never accept for sending packet from upper layer anymore (i.e. ping -f ) Reviewed by: David Greenman <dg@root.com> Submitted by: amurai@spec.co.jp
|
17223 |
19-Jul-1996 |
amurai |
Add interrupt register set up with original register value before attaching. Without this fix, 3c579(EISA) never make any H/W inturrupt. Reviewed by: "Justin T. Gibbs" <gibbs@freefall.freebsd.org>, nao@sbl.cl.nec.co.jp and owner-current on mailing list ;-) Submitted by: amurai@spec.co.jp, nao@sbl.cl.nec.co.jp
|
17158 |
13-Jul-1996 |
dg |
Enable transmit complete interrupt...
(author's explaination):
Bit 15 is the flag to request a transmit complete interrupt. The driver was apparently written to minimize interrupts, and if not for a 3-COM design quirk, everything would be just ducky. Prior to loading the outbound packet into the FIFO, the driver checks to see if there's enough space to contain the packet. If not, the driver requests a transmit-available interrupt when there is sufficient room. Unfortunately, the card is continuing to process the prior FIFO, and by the time the driver sets the threshold for a transmit available interrupt, the space is already available. When this occurs, the 3COM card ignores the interrupt request, and the driver is hung waiting for an interrupt that will never occur. There's probably a more elegant solution, but requesting the transmit complete interrupt was the easiest to implement. An alternative fix might be to check free FIFO space again, after requesting the transmit available interrupt, but I haven't bothered pursuing this. Since the patch, my 3C590 (PCI, same FIFO interface as 3C509) has been rock solid.
Submitted by: mevans@candle.com (Mike Evans)
|
16471 |
18-Jun-1996 |
bde |
Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.h is only used by the icu support modules and by a few drivers that know too much about the icu (most only use it to convert `n' to `IRQn'). isa.h is only used by ioconf.c and by a few drivers that know too much about isa addresses (a few have to, because config is deficient).
|
16378 |
15-Jun-1996 |
nate |
Whoops, I accidentally deleted a necessary ":" which is part of the parameters to printf() using the "D" format. (Why this even worked on my box during testing I don't know, but as soon as I powered it on/off it quite working.)
|
16374 |
14-Jun-1996 |
nate |
At long last, we know have support for the 3C589 in a FreeBSD release using the existing files using the existing PCCARD support. Now that this is in place I would like to fixup the PCCARD hooks and remove the if_zp driver. At this point, we support everything we used to support *AND MORE* with the PCCARD code.
Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp> (via the Nomad release)
[ This works on both my 3C589B and 3C589C ]
|
16371 |
14-Jun-1996 |
nate |
Better code for switching the ethernet transceiver.
My 3C509B-COMBO works fine with the following patch. Switching between UTP and BNC is quite easy. (Just type 'ifconfig ep0 link1 -link2' or 'ifconifg ep0 link2 -link1'.)
[ I tested this with the additional PC-CARD patches and it works on both connectors on my 3C589B and 3C589C ]
Reviewed by: nate Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp>
|
16322 |
12-Jun-1996 |
gpalmer |
Clean up -Wunused warnings.
Reviewed by: bde
|
15893 |
24-May-1996 |
gibbs |
Properly determine the offset of the remaining bytes we need to transfer after outsl'ing all the long words we can during transmission in 32bit mode.
Closes PR:i386/1243 Submitted by: flash@eru.tubank.msk.su
|
14297 |
28-Feb-1996 |
gibbs |
Fix media type determination.
|
14259 |
26-Feb-1996 |
gibbs |
Clean up the 3c5x9 driver and add an eisaconf probe to it. This should prevent it from conflicting with other drivers (like the aic7xxx driver). Most of the work was in spliting out common portions of the driver and making them generic enough to be called from the eisaconf probe.
|
14258 |
26-Feb-1996 |
gibbs |
3c5x9.c: The eisaconf probe for the 3Com 3c579 and the 3c509 when in eisa configuration mode.
aha1742.c aic7770.c bt74x.c: Only call eisa_registerdev after the probe is successfully.
eisaconf.c: Increase kdc->kdc_datalen during the eisa_reg* functions instead of in the eisa_add* functions since eisa_registerdev has already been called and we have a kdc to manipulate.
|
14091 |
13-Feb-1996 |
gibbs |
- Properly set the watchdog timer only during transmits. - Clean up the access to our ifnet structure by caching a pointer to it instead of always digging through our softc structure.
Submitted by: Watchdog fixes by Serge A. Babkin <babkin@hq.icb.chel.su>
|
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
|
13765 |
30-Jan-1996 |
mpp |
Fix a bunch of spelling errors in the comment fields of a bunch of system include files.
|
13692 |
29-Jan-1996 |
gibbs |
Finally commit Serge's multicast and "misc other changes" patch. I don't have a network to test it on here, but it does probe my card okay.
Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
|
13638 |
26-Jan-1996 |
phk |
The last part of the ether_sprint -> %6D change. Sorry for the delay. (%D is for hexdumping.)
|
12854 |
15-Dec-1995 |
bde |
Completed function declarations and/or added prototypes and/or added #includes to get prototypes.
|
12724 |
10-Dec-1995 |
phk |
Staticize and cleanup.
|
12628 |
05-Dec-1995 |
dg |
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!).
|
12080 |
04-Nov-1995 |
bde |
Added `#include "ioconf.h"' to <machine/conf.h> and cleaned up the misplaced extern declarations (mostly prototypes of interrupt handlers) that this exposed. The prototypes should be moved back to the driver sources when the functions are staticalized.
Added idempotency guards to <machine/conf.h>. "ioconf.h" can't be included when building LKMs so define a wart in bsd.kmod.mk to help guard against including it.
|
11872 |
28-Oct-1995 |
phk |
Remove unused functions and variables, make things static, and other cleanups.
|
11819 |
26-Oct-1995 |
julian |
Reviewed by: julian and jhay@mikom.csir.co.za Submitted by: Mike Mitchell, supervisor@alb.asctmd.com
This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on..
Mikes been using it for a year or so but on 2.0
more changes and stuff will be merged in from other developers now that this is in.
Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.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.)
|
10387 |
28-Aug-1995 |
guido |
Add SIOCGIFADDR ioctl so rarpd actually works with the if_ep interface.
|
9404 |
05-Jul-1995 |
dg |
Protected entire epioctl routine with splimp(). In this case, it is better form to do this than it is relying on individual subroutines (the logic in epioctl is itself very minimal). Ideally, unnecessary splimp()'s should now be removed if they exist; I'll leave this for a later date (a complete code review of the driver needs to be done). Fixes a bug I noticed that would show up when ifconfig'ing the interface down.
|
8876 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
8789 |
27-May-1995 |
dg |
Increased delay after reset to 10ms. Suggested by several people, the last of which was Scott Mace. This fixes a bug where the card would be missed sometimes during the device probe.
|
7780 |
12-Apr-1995 |
wollman |
Add a class field to devconf and mst drivers. For those where it was easy, drivers were also fixed to call dev_attach() during probe rather than attach (in keeping with the new design articulated in a mail message five months ago). For a few that were really easy, correct state tracking was added as well. The `fd' driver was fixed to correctly fill in the description. The CPU identify code was fixed to attach a `cpu' device. The code was also massively reordered to fill in cpu_model with somethingremotely resembling what identifycpu() prints out. A few bytes saved by using %b to format the features list rather than lots of ifs.
|
7749 |
10-Apr-1995 |
jkh |
Performance enhancements and a redesign of the transmitter code. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
|
7635 |
05-Apr-1995 |
jkh |
Correct the watchdog routine. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
|
7510 |
31-Mar-1995 |
jkh |
* Promiscuous mode added and interrupt logic slightly changed * to reduce the number of adapter failures. Transceiver select * logic changed to use value from EEPROM. Autoconfiguration * features added. Submitted by: "Serge A. Babkin" <babkin@hq.icb.chel.su>
|
7430 |
28-Mar-1995 |
bde |
Add and move declarations to fix all of the warnings from `gcc -Wimplicit' (except in netccitt, netiso and netns) that I didn't notice when I fixed "all" such warnings before.
|
7269 |
23-Mar-1995 |
gibbs |
aha1742.c: #include <i386/isa/isa.h> return IO_EISASIZE instead of hard coded 0x1000.
if_ep.c: Remove commented out disabling of interrupts that gave a "comment withing a comment" warning.
|
7267 |
23-Mar-1995 |
dg |
Patches from Serge Babkin to fix interrupt handling bugs.
Submitted by: Serge Babkin
|
5863 |
24-Jan-1995 |
dg |
Added Andres Vega Garcia's email address.
Submitted by: Andres Vega Garcia
|
5436 |
08-Jan-1995 |
dg |
Restored Herb's current copyright. The one in the file appeared to have been run through indent and additionally doesn't contain clauses 3 and 4 that were apparantly added sometime after the driver was put into FreeBSD.
|
5195 |
22-Dec-1994 |
wollman |
Move ARP interface initialization into if_ether.c:arp_ifinit().
|
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.
|
4435 |
13-Nov-1994 |
gibbs |
Andres Vega Garcia's improvements to the ep driver. This driver is a merging of the 1.1.5 driver, a recent version of the NetBSD driver, Andres' transmission start threshold code, and all other relavent changes to the driver since it was brought into 2.0. The multicast support from NetBSD has not be folded in yet. I've tested it under high loads for two weeks and it is now robust enough to be included in the GENERIC kernel. Reviewed by: gibbs Submitted by: vega@sophia.inria.fr (Andres Vega Garcia)
|
3816 |
23-Oct-1994 |
wollman |
Finished device configuration database work for all ISA devices (except `ze') and all SCSI devices (except that it's not done quite the way I want). New information added includes:
- A text description of the device - A ``state''---unknown, unconfigured, idle, or busy - A generic parent device (with support in the m.i. code) - An interrupt mask type field (which will hopefully go away) so that . ``doconfig'' can be written
This requires a new version of the `lsdev' program as well (next commit).
|
2826 |
16-Sep-1994 |
dg |
Removed inclusion of pio.h and cpufunc.h (cpufunc.h is included from systm.h). Merged functionality of pio.h into cpufunc.h. Cleaned up some related code.
|
2478 |
03-Sep-1994 |
ats |
Reviewed by: Submitted by: Update the if_ep driver for the 3C579 and bring over some of the changes from the netbsd driver. This is not complete: the detection of the irq in the eisa does not work and sometimes the reset for the 3C509 in ISA in an EISA bus system don't work ( Need a hard reset to be found again == reset knob).
|
1946 |
08-Aug-1994 |
dg |
Added support for SIOCSIFMTU.
|
1549 |
25-May-1994 |
rgrimes |
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
|
1444 |
02-May-1994 |
ats |
Added the bugfixes from the current NetBSD driver. Put in some parts of the 3c579 support, but not the init/probe part.
|
1264 |
15-Mar-1994 |
wollman |
Added David Mills' kernel NTP PLL code. The current version of NTP does not yet speak to this code.
|
1080 |
03-Feb-1994 |
dg |
if_ep.c: removed netisr.h, fixed unconverted ep_ac, changed <> into "" for include files. if_ed, if_ie, if_is: don't include netisr.h.
|
1020 |
26-Jan-1994 |
nate |
Whoops, syntax error where I forgot a parenthesis.
|
1018 |
26-Jan-1994 |
nate |
FreeBSD modifications to driver. 0) FreeBSD additional include files additions 1) Rod's arpacom changes 2) Function type and return code cleanup, and all functions have correct casting to the correct data types 3) Bugfix where driver would not function due to missing structure not given a value. 4) General cleanup. (Theo did a lot already, I just did some more)
|
1017 |
26-Jan-1994 |
nate |
Newer version of Herb Peyerl's 3C509 driver straight from NetBSD-current.
|
1013 |
25-Jan-1994 |
rgrimes |
Do my fix that I have done to all the other ethernet drivers to use arpcom intead of foo_ac, remove now unneeded defines, fix support for options NS.
Still one compiler warning to fix :-)
|
964 |
10-Jan-1994 |
ats |
First beta version of the 3C509 driver changed for FreeBSD. Known problems in the moment are stray intr's in the ifconfig up/down. No way to select all three interfaces on a combo card with AUI/BNC/UTP interfaces and the performance doesn't look good. Only tested with a ISA AUI/BNC card yet.
|
963 |
10-Jan-1994 |
ats |
Committed the original NetBSD version of this driver to get the changes made for FreeBSD as cvs diffs. This is the 3C509 ethernet driver.
|