summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fix compiling PCCARD kernels.mdodd1999-10-241-0/+4
| | | | | | This is a hack and I don't like it. Hopefully the new PCCARD stuff should be in working order in a day or so.
* This fixes the problem with SMC NE2000 cards hanging the box onmdodd1999-10-181-0/+1
| | | | | | | | | | | | bootup. Somehow my backout of an abortaive attempt at shared memory autoconfiguration included this line: sc->mem_shared = 1; Which is fairly important as it turns out. Since I performed my pre-commit testing on a different box with a generic NE2000 I didn't catch this. Pointy hat.
* - Remove the ISA, PCI, and PCCARD specific code from if_ed.c; itmdodd1999-10-154-306/+72
| | | | | | | now lives in the respective bus front end files. - Add various function prototypes to if_edvar.h - Clean up some debugging code that snuck into if_ed_isa.c - Turn on the right bits in files.i386
* Break out the bus front end code into separate files.mdodd1999-10-152-0/+344
| | | | | Note that these haven't been turned on nor has the old code been removed from if_ed.c. The next commit will address that.
* * Add struct resource_list* argument to resource_list_alloc anddfr1999-10-121-22/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | resource_list_release. This removes the dependancy on the layout of ivars. * Move set_resource, get_resource and delete_resource from isa_if.m to bus_if.m. * Simplify driver code by providing wrappers to those methods: bus_set_resource(dev, type, rid, start, count); bus_get_resource(dev, type, rid, startp, countp); bus_get_resource_start(dev, type, rid); bus_get_resource_count(dev, type, rid); bus_delete_resource(dev, type, rid); * Delete isa_get_rsrc and use bus_get_resource_start instead. * Fix a stupid typo in isa_alloc_resource reported by Takahashi Yoshihiro <nyan@FreeBSD.org>. * Print a diagnostic message if we can't assign resources to a PnP device. * Change device_print_prettyname() so that it doesn't print "(no driver assigned)-1" for anonymous devices.
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-251-15/+0
| | | | | | | | | | | | 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.
* Make if_ed work again on pci, isa, isapnp. The hack to make it work onpeter1999-09-202-6/+16
| | | | | | PCCARD is pretty revolting but should buy us time while the pccard driver angle is sorted out. A commit for the MCA ed attachment will follow shortly.
* The sense of probes has inverted. They return an error, rather thanpeter1999-09-131-7/+7
| | | | | | | true/false. Fix ed_probe_HP_pclanp() so that it doesn't "succeed" on non-existing hardware. Submitted by: Mark Hittinger <bugs@freebsd.netcom.com>
* Change isa_get/set_flags() to device_get/set_flags().dfr1999-09-071-5/+5
|
* $Id$ -> $FreeBSD$peter1999-09-051-1/+1
|
* Commit a checkpoint of an updated if_ed driver. This is pretty muchpeter1999-09-032-434/+512
| | | | | | Doug Rabson's work, with a few tweaks from Warner Losh and I. There are still some quirks to resolve, but the old driver is presently breaking the build.
* - Added new macros ED_P1_MAR(i) and ED_P1_PAR(i) that replacekato1999-09-022-6/+9
| | | | | | | | `ED_P1_MAR + i' and `ED_P1_PAR + i', respectively. - convert ED_PC_RESET and ED_PC_MISC into relative offset from ED_PC_ASIC_OFFSET (those macros are not used in current source). Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* The ed_probe_Novell should not clear id_maddr when it fails to probe.kato1999-09-021-2/+6
| | | | | | This fixes potential panic by kvtop at addr == 0. Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* This is part of an untested set of changes to the ed driver to supportdfr1999-09-011-0/+90
| | | | | | the new PnP code. Since the bulk of the driver changes are not being committed at this time, it will not affect the driver. The code is being committed early to allow others synchronise changes.
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Rename bpfilter to bpf.des1999-07-061-8/+8
|
OpenPOWER on IntegriCloud