summaryrefslogtreecommitdiffstats
path: root/sys/dev/ep
Commit message (Collapse)AuthorAgeFilesLines
* Make sure that pp_name is non-null before setting the deviceimp2003-04-101-1/+2
| | | | | description. This allows us to rely entirely on the CIS entries if necessary...
* Revert 1.21; this was local code that should not have beenmdodd2003-03-301-5/+5
| | | | committed.
* - Free interrupt handler in ep_free().mdodd2003-03-296-18/+32
| | | | | - Move ep_pccard_detach() to if_ep.c and rename to ep_detach() - Specify detach methods for all bus frontends.
* Checksum the configuration EEPROM.mdodd2003-03-291-0/+43
|
* - Return error status instead of value in get_e().mdodd2003-03-294-32/+71
| | | | | - Modify ep_get_macaddr() to return an error status. - Reverse the return value logic of eeprom_rdy().
* Register dependency on the elink module.mdodd2003-03-291-0/+3
|
* Fix compilation on non-i386 machines. Inconsistent conditionalmarcel2003-02-231-3/+5
| | | | compilation yielded definitions that we're used.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-4/+4
| | | | Approved by: trb
* Bandaid the bits that use the elink_foo() functions which aremdodd2003-02-131-1/+9
| | | | i386 only at this point.
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-4/+4
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* network interface driver changes:sam2002-11-142-16/+5
| | | | | | | | | | | | | | 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
* Fix build breakage on my pccard related commit.takawata2002-05-311-1/+1
|
* Remove __P.alfred2002-03-202-10/+10
|
* Two fixes from Jonathan Hanna:imp2002-02-121-6/+4
| | | | | | | | | 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
* More devices. Obtained from NetBSD.imp2001-11-151-2/+4
|
* Migrate to PCMCIA_CARD() macrosimp2001-11-151-15/+5
|
* s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharingimp2001-11-111-15/+15
|
* Commit part of the patch that I have for card eject problems with theimp2001-06-051-0/+5
| | | | | | | | 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.
* Use PCCARD_CIS_xxx #defines for the table of oem ids. These usuallyimp2001-01-211-5/+10
| | | | translate to all NULLs (as for all the ones in this commit).
* Add the 3COM ID's that I could find in the pccarddevs file that seemedpeter2001-01-071-0/+22
| | | | | | | | | | | 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
* Fixed to support 3Com 3C569B for PC-98.nyan2000-12-091-0/+8
| | | | Submitted by: "Hirokazu WATANABE" <gwna@geocities.co.jp>
* Remove unneeded #include <machine/clock.h>phk2000-10-154-4/+0
|
* Remove 7 unnecessary includes frmo phk's scriptimp2000-09-204-8/+0
|
* Implement indirection in the pccard probe/attach. This should make itimp2000-09-191-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add ID for 3C1. It is a etherlink iii in a CompactFlash form factor.imp2000-09-131-1/+4
| | | | | It doesn't seem to work, but at least is identified correctly. Minor tree housekeeping on my part.
* Properly detect ISA cards in EISA mode and skip them in the ISA identifymdodd2000-07-182-2/+12
| | | | | | routine so that they will be picked up by the EISA front end. PR: i386/2598
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-132-6/+4
| | | | | | | | | 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
* Move code to handle BPF and bridging for incoming Ethernet packets outarchie2000-05-142-34/+3
| | | | | | | | | | | | | | | 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
* Remove unneeded #include <sys/kernel.h>phk2000-04-291-1/+0
|
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* Remove unloaded printf. We do this now in the newbus layer.imp2000-04-171-1/+0
|
* Fix a problem that caused TCP fragments to be lost (among other things.)mdodd2000-03-241-1/+1
|
* Copy how everyone else is doing packet transmission. (NetBSD mostly)mdodd2000-03-131-6/+8
| | | | | 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.
* Follow the docs a bit more in epstop() with respect to delays.mdodd2000-03-131-0/+5
| | | | Trivial formatting.
* Get rid of table lookup in favor of just subtracting. Everyone elsemdodd2000-03-131-3/+1
| | | | does it like this and I see no point in being different.
* Call epstop() in ep_attach(). While this shouldn't be necessary we'llmdodd2000-03-131-0/+2
| | | | | do it just in case. (Actually, with PCMCIA cards we can get in a state where it may be required.)
* Fix a bug in the last commit. >> 4 instead of >> 8. *bap*mdodd2000-01-231-6/+6
| | | | | | | | | | | 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.
* Add the ID for the 3c509-TPC.mdodd2000-01-231-0/+12
| | | | | | | | 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>
* Fix driver to restore function on 3c574 adapters. The panic onmdodd2000-01-153-9/+23
| | | | | | | 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
* Pre 4.0 tidy up.peter2000-01-141-1/+1
| | | | | | | | | | | | 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
* Remove a stray splx(s) call. This fixes the compiler warning.mdodd2000-01-121-1/+0
| | | | Submitted by: gibbs
* Speedup if_start routine a little. TX threshold logic needs some moremdodd2000-01-122-10/+26
| | | | kicking but these changes get me around 1000 KB/sec.
* Fix the performance problems I caused by setting ifq_maxlen to 8.mdodd2000-01-121-1/+1
| | | | | | | | | | | | | | | | | | | 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
* Commit kernel part of patches to get the 3Com OfficeConnect 3CXSH572BTimp2000-01-101-4/+3
| | | | | | | working on -current. Submitted by: Eric D. Futch <efutch@nyct.net> Approved by: mdodd
* kill debug printf that says detachimp1999-12-101-2/+0
|
* Add defines for additional EEPROM locations and register definitions.mdodd1999-12-061-2/+28
|
* Whitespace cleanups.mdodd1999-12-061-4/+4
|
* Add a delay (per the databook) to the get_eeprom_data() loop somdodd1999-12-061-9/+12
| | | | | | | 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".
* Standardize device descriptions so that there is parity between PnPmdodd1999-12-061-10/+10
| | | | descriptions and non-PnP descriptions.
* Correctly implement the non-PnP enumeration of ISA board.mdodd1999-12-061-14/+36
| | | | | | | | | | | | | | | 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.
OpenPOWER on IntegriCloud