summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
Commit message (Collapse)AuthorAgeFilesLines
* Whoops... forgotten a few pieces in previous patch:luigi2001-02-081-5/+9
| | | | | | | * a ">" is really ">=" ; * do not try to fetch zero-sized blocks from the card; * make sure that bpf gets the packets it wants even with bridging active;
* Make sure that we do not accept packets shorter than a full ethernetluigi2001-02-081-1/+3
| | | | header, or we would have a negative length passed to ether_input().
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-061-1/+1
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* Fix typo: wierd -> weird.asmodai2001-02-061-1/+1
| | | | There is no such thing as wierd in the english language.
* Another round of the <sys/queue.h> FOREACH transmogriffer.phk2001-02-041-2/+1
| | | | | Created with: sed(1) Reviewed by: md5(1)
* Mechanical change to use <sys/queue.h> macro API instead ofphk2001-02-041-2/+2
| | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
* Add a bunch of entries from NetBSD's if_ne_pcmcia.c v1.67. We stillimp2001-01-211-5/+371
| | | | | need to verify that all the entries in pccard.conf are present in this table.
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-1/+0
|
* Minor newbus/style(9) cleanups.imp2000-12-266-87/+93
| | | | | | | | | | | o Move the ax88190 code to its own function. o Move all device_method_t, driver_t and DRIVER_MODULE definitions to the end of files. o Wrap a few lines > 80 characters. o Use the same devclass for all ed drivers. This allows machines with multiple types of cards to have their cards numbered correctly. Before, you could wind up with two ed0's. o Protect if_edvar.h from multiple includes because I was there.
* Fix my previous commit. Remove ed_get_Linksys() function prototypes.toshi2000-12-201-2/+0
|
* Linksys Fast Ethernet PCCARD cards supported by the ed driver nowtoshi2000-12-183-39/+44
| | | | | | | | require the addition of flag 0x80000 to their config line in pccard.conf(5). This flag is not optional. These Linksys cards will not be recognized without it. Reviewed by: imp, iwasaki
* Call ed_probe_Novel in the AX88190 case as well.imp2000-12-171-1/+1
| | | | | | Remove stary blank line. Submitted by: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>
* Remove unnecessary includes found by phk's script. I've been buildingimp2000-12-134-5/+0
| | | | these locally for ages.
* Fix problem with ax88190 based cards trying to probe further afterimp2000-12-131-0/+1
| | | | matching the ax88190.
* Argh, I have fixed this cut/paste error twice before. I must havepeter2000-11-251-3/+3
| | | | | committed the wrong patch. :-( sn_pccard_products[] should have been static anyway.
* Update the ed driver to probe and attach under a NEWCARD kernel (I waspeter2000-11-252-2/+35
| | | | | | | | | | | | | using a cardbus based system with pccbb providing the pcic interface). Something isn't quite right.. when the driver allocates and activates its resources, the IO space that was requested reads as all zeros (versus the original 0xff's as it normally is when there is no device responding). Also, deactivate the resources before releasing them. OLDCARD doesn't seem to care but NEWCARD/CARDBUS get rather unhappy if you release a resource that hasn't been deactivated yet. Make pcic_p.c only compile with oldcard kernels.
* Network modules are all "if_foo" not "foo". Avoid the confusing spew thatmsmith2000-10-154-4/+4
| | | | ensues when ifconfig tries to load if_ed.ko when it's already in the kernel.
* Remove unneeded #include <machine/clock.h>phk2000-10-152-2/+0
|
* Allocate memory resource to access the attribute memory of a card.tanimura2000-09-251-65/+24
| | | | Reviewed by: imp
* Move the detection of Linksys PCMCIA cards from attach to probe.ps2000-09-123-4/+7
| | | | | | This should solve the problems people were seeing with this driver. Reported by: phk & others.
* - Fixed the conversion to bus_space interface.nyan2000-08-177-608/+2504
| | | | | | - Added PC-98 Cbus devices support. The original patch is submitted by chi@bd.mbn.or.jp (Chiharu Shibata) - Removed old ed driver.
* Newbusify ed driver.tanimura2000-08-143-389/+482
| | | | Partly submitted by: alex
* MFPAO: Add support for AX88190, equipped in MELCO LPC3-TX.tanimura2000-07-234-76/+273
|
* Fix the IRQ9/IRQ2 confusion.phk2000-07-181-0/+1
| | | | Submitted by: Alan Clegg <abc@bsdi.com>
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-132-7/+2
| | | | | | | | | 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
* Only try to detect Linksys PCMCIA cards when we are in a pccardps2000-06-293-22/+18
| | | | | | environment. This fixes the breakage to ISA ethernet cards. Reviewed by: peter
* Allow newer Linksys 10/100 PCMCIA cards to work.ps2000-06-181-12/+10
| | | | Reviewed by: imp
* ed_ioctl() can be called from ifpromisc() after the card has been removed,phk2000-06-011-1/+1
| | | | don't panic on a NULL pointer in that case.
* Move code to handle BPF and bridging for incoming Ethernet packets outarchie2000-05-141-53/+13
| | | | | | | | | | | | | | | 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
|
* sanpai-san (sanpai@sanpai.org) suggested that we put the novel probeimp2000-04-281-2/+2
| | | | | | | | | | | first. This will fix a few cards that hang on the WD probe. He tells me that PAO went one step farther and removed the WD proble completely and none of the cards in the 2.x database broke in PAO3. Since I'm more conservative in this code, I'm just swapping the order, which he said also fixed his problem. Reviewed by: mdodd, iwasaki Submitted by: sanpai@sanpai.org
* 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
|
* Bogusly returned zero always. Return 1 if we pass the checksum.imp2000-03-201-1/+1
|
* Noriyoshi Kawano-san reported in nomads another OUI for linksys. 4 isimp2000-03-201-8/+1
| | | | | | too many, so I removed the checks for the valid OUIs. We already do a checksum of the entire ethernet address, so extra checking against the OUI shouldn't be needed.
* Add another Linksys OUI.imp2000-03-131-1/+3
| | | | | PR: 16922 Submitted by: takawata@shidahara1.planet.sci.kobe-u.ac.jp
* Propagate MAC address in CIS tupple to dev/ed/ driver.hosokawa2000-01-211-0/+10
| | | | | | | | Many ed-based Ethernet PC-cards can't get correct MAC address without this patch. Submitted by: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp> Reviewed by: Warner Losh <imp@village.org>
* Fix pccard ed driver, I think.imp1999-12-103-3/+5
| | | | | | | o Expose ed_stop and call it early to shutdown the hardware. o When releasing the interrupt, pass the cookie for the irq, not a pointer to the cookie (this is the base problem). o Release other resources used, just like the ep driver
* Fix the hang on card eject problem and maybe the hang on suspendimp1999-12-011-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* I forgot to remove the "NCARD == 0" hacks that kept this drivermdodd1999-11-202-8/+0
| | | | | | from blowing up on PCMCIA systems. The hack isn't needed anymore. Reminded by: Blaz Zupan <blaz@gold.amis.net>
* Kill unneeded #includes. They were left over from the short period ofimp1999-11-201-4/+0
| | | | | time when a strcmp against the device name was required. Sio patches sent to peter for review.
* Set port_used and mem_used to the resource size instead of 1.nyan1999-11-183-6/+6
| | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* fix misordering of two lines in this file.jmb1999-11-021-1/+1
|
* rearrange order of tests for NE1000, NE2000, and Linksysjmb1999-11-011-17/+21
| | | | | cards. previous order caused computers with NE2000 cards to hang during boot.
* Change Linksys registers base/offset.nyan1999-10-311-6/+8
| | | | | | On NEC PC-98, asic_addr != nic_addr + 0x10. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* Last change to pccard_nbk now obviates the need to check the name ofimp1999-10-281-6/+0
| | | | | the device in question. Also fix warnings on if_ep_pccard.c
* Add comments to Linksys probe code.imp1999-10-281-7/+20
| | | | | | Add another OUI to those acceptible to linksys (this check may need to be removed). A couple of style(9) nits.
* add support for LinkSys 10/100 cardsjmb1999-10-261-4/+37
| | | | | | new code is conditionalized by the vendor's ethernet OUI Obtained from: PAO Project
* Have only one attach routine, rather than two.imp1999-10-251-4/+2
| | | | | | Remove debug printfs. This should allow the ed driver to work when memory mapping works again.
* Add pccard attachment. This won't work with memory mapped ed devicesimp1999-10-252-100/+67
| | | | | | | | yet, but that should be resolved shortly. Non memory mapped ed devices should work, but I cannot test this since my only ed card is memory mapped. Submitted by: Matt Dodd <mdodd@freebsd.org>
OpenPOWER on IntegriCloud