aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ep
Commit message (Collapse)AuthorAgeFilesLines
...
* Transition to using bus_space macros rather than the inb/outb/etc.Warner Losh2003-10-185-126/+142
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=121206
* Style fixes of the whitespace variety. Fix long lines and tabs.Mark Murray2003-08-303-69/+102
| | | | Notes: svn path=/head/; revision=119572
* Use __FBSDID().David E. O'Brien2003-08-245-0/+15
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Use bus_child_present() to make sure the card is still there before callingOlivier Houchard2003-08-191-1/+2
| | | | | | | | epstop() in ep_detach(). This fixes a freeze that happens when ejecting a ep(4) pcmcia card. Notes: svn path=/head/; revision=119125
* Style(9) cleanup. There was no consistent style in this driver, andMark Murray2003-07-177-902/+820
| | | | | | | | | | 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 Notes: svn path=/head/; revision=117700
* Other minor style nits I missed in ep_if_start() in my previousMaxime Henrion2003-06-261-3/+4
| | | | | | | commit. Notes: svn path=/head/; revision=116887
* Make if_ep_start() look a bit more like other if_start() functions,Maxime Henrion2003-06-261-18/+13
| | | | | | | | by calling the first mbuf in the chain m0 and fixing a few nearby style bugs, mostly s/0/NULL/. Notes: svn path=/head/; revision=116884
* Fix a race condition that was introduced since pccbb interrupts areMaxime Henrion2003-06-261-7/+5
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=116883
* Make sure that pp_name is non-null before setting the deviceWarner Losh2003-04-101-1/+2
| | | | | | | | description. This allows us to rely entirely on the CIS entries if necessary... Notes: svn path=/head/; revision=113315
* Revert 1.21; this was local code that should not have beenMatthew N. Dodd2003-03-301-5/+5
| | | | | | | committed. Notes: svn path=/head/; revision=112845
* - Free interrupt handler in ep_free().Matthew N. Dodd2003-03-296-18/+32
| | | | | | | | - Move ep_pccard_detach() to if_ep.c and rename to ep_detach() - Specify detach methods for all bus frontends. Notes: svn path=/head/; revision=112829
* Checksum the configuration EEPROM.Matthew N. Dodd2003-03-291-0/+43
| | | | Notes: svn path=/head/; revision=112824
* - Return error status instead of value in get_e().Matthew N. Dodd2003-03-294-32/+71
| | | | | | | | - Modify ep_get_macaddr() to return an error status. - Reverse the return value logic of eeprom_rdy(). Notes: svn path=/head/; revision=112822
* Register dependency on the elink module.Matthew N. Dodd2003-03-291-0/+3
| | | | Notes: svn path=/head/; revision=112794
* Fix compilation on non-i386 machines. Inconsistent conditionalMarcel Moolenaar2003-02-231-3/+5
| | | | | | | compilation yielded definitions that we're used. Notes: svn path=/head/; revision=111292
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-4/+4
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Bandaid the bits that use the elink_foo() functions which areMatthew N. Dodd2003-02-131-1/+9
| | | | | | | i386 only at this point. Notes: svn path=/head/; revision=110835
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-4/+4
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* network interface driver changes:Sam Leffler2002-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 Notes: svn path=/head/; revision=106937
* Fix build breakage on my pccard related commit.Takanori Watanabe2002-05-311-1/+1
| | | | Notes: svn path=/head/; revision=97645
* Remove __P.Alfred Perlstein2002-03-202-10/+10
| | | | Notes: svn path=/head/; revision=92739
* Two fixes from Jonathan Hanna:Warner Losh2002-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 Notes: svn path=/head/; revision=90561
* More devices. Obtained from NetBSD.Warner Losh2001-11-151-2/+4
| | | | Notes: svn path=/head/; revision=86395
* Migrate to PCMCIA_CARD() macrosWarner Losh2001-11-151-15/+5
| | | | Notes: svn path=/head/; revision=86394
* s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharingWarner Losh2001-11-111-15/+15
| | | | Notes: svn path=/head/; revision=86273
* Commit part of the patch that I have for card eject problems with theWarner Losh2001-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. Notes: svn path=/head/; revision=77792
* Use PCCARD_CIS_xxx #defines for the table of oem ids. These usuallyWarner Losh2001-01-211-5/+10
| | | | | | | translate to all NULLs (as for all the ones in this commit). Notes: svn path=/head/; revision=71323
* Add the 3COM ID's that I could find in the pccarddevs file that seemedPeter Wemm2001-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 Notes: svn path=/head/; revision=70765
* Fixed to support 3Com 3C569B for PC-98.Yoshihiro Takahashi2000-12-091-0/+8
| | | | | | | Submitted by: "Hirokazu WATANABE" <gwna@geocities.co.jp> Notes: svn path=/head/; revision=69788
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-154-4/+0
| | | | Notes: svn path=/head/; revision=67164
* Remove 7 unnecessary includes frmo phk's scriptWarner Losh2000-09-204-8/+0
| | | | Notes: svn path=/head/; revision=66137
* Implement indirection in the pccard probe/attach. This should make itWarner Losh2000-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. Notes: svn path=/head/; revision=66058
* Add ID for 3C1. It is a etherlink iii in a CompactFlash form factor.Warner Losh2000-09-131-1/+4
| | | | | | | | It doesn't seem to work, but at least is identified correctly. Minor tree housekeeping on my part. Notes: svn path=/head/; revision=65794
* Properly detect ISA cards in EISA mode and skip them in the ISA identifyMatthew N. Dodd2000-07-182-2/+12
| | | | | | | | | routine so that they will be picked up by the EISA front end. PR: i386/2598 Notes: svn path=/head/; revision=63379
* Make all Ethernet drivers attach using ether_ifattach() and detach usingArchie Cobbs2000-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 Notes: svn path=/head/; revision=63090
* Move code to handle BPF and bridging for incoming Ethernet packets outArchie Cobbs2000-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 Notes: svn path=/head/; revision=60536
* Remove unneeded #include <sys/kernel.h>Poul-Henning Kamp2000-04-291-1/+0
| | | | Notes: svn path=/head/; revision=59760
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-191-1/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* Remove unloaded printf. We do this now in the newbus layer.Warner Losh2000-04-171-1/+0
| | | | Notes: svn path=/head/; revision=59313
* Fix a problem that caused TCP fragments to be lost (among other things.)Matthew N. Dodd2000-03-241-1/+1
| | | | Notes: svn path=/head/; revision=58539
* Copy how everyone else is doing packet transmission. (NetBSD mostly)Matthew N. Dodd2000-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. Notes: svn path=/head/; revision=57984
* Follow the docs a bit more in epstop() with respect to delays.Matthew N. Dodd2000-03-131-0/+5
| | | | | | | Trivial formatting. Notes: svn path=/head/; revision=57983
* Get rid of table lookup in favor of just subtracting. Everyone elseMatthew N. Dodd2000-03-131-3/+1
| | | | | | | does it like this and I see no point in being different. Notes: svn path=/head/; revision=57982
* Call epstop() in ep_attach(). While this shouldn't be necessary we'llMatthew N. Dodd2000-03-131-0/+2
| | | | | | | | do it just in case. (Actually, with PCMCIA cards we can get in a state where it may be required.) Notes: svn path=/head/; revision=57981
* Fix a bug in the last commit. >> 4 instead of >> 8. *bap*Matthew N. Dodd2000-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. Notes: svn path=/head/; revision=56429
* Add the ID for the 3c509-TPC.Matthew N. Dodd2000-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> Notes: svn path=/head/; revision=56428
* Fix driver to restore function on 3c574 adapters. The panic onMatthew N. Dodd2000-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 Notes: svn path=/head/; revision=56017
* Pre 4.0 tidy up.Peter Wemm2000-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 Notes: svn path=/head/; revision=55953
* Remove a stray splx(s) call. This fixes the compiler warning.Matthew N. Dodd2000-01-121-1/+0
| | | | | | | Submitted by: gibbs Notes: svn path=/head/; revision=55864
* Speedup if_start routine a little. TX threshold logic needs some moreMatthew N. Dodd2000-01-122-10/+26
| | | | | | | kicking but these changes get me around 1000 KB/sec. Notes: svn path=/head/; revision=55834