aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cs
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanup tabs vs spaces.Warner Losh2005-01-283-204/+202
| | | | Notes: svn path=/head/; revision=140927
* For the PC Card implementation of the CS8920M that's in my IBMWarner Losh2005-01-283-3/+8
| | | | | | | | | | | | | | | | EtherJet, the interrupt is selected in the eeprom based on the layout of the PC Card board. Since this is encoded into the EEPROM, and has no relationship to the IRQ that the pccard bridge routes the PC Card's interrupt pin to. As such, stop writing to that register. This gets my EtherJet working. # The eeprom reading code appears to be totally wrong for my EtherJet # card. This causes the card to bogusly detect the media options # available. Notes: svn path=/head/; revision=140926
* Setting hw.cs.recv_delay should set the delay, not the ignore theWarner Losh2005-01-281-1/+1
| | | | | | | eeprom checksum. Notes: svn path=/head/; revision=140925
* error = is needed before ether_ioctl() so that unsupported/unknownWarner Losh2005-01-281-1/+1
| | | | | | | | | | IOCLTs are properly handled. This gets the cs driver properly reporting things via ifconfig. # my pccard still doesn't work. Notes: svn path=/head/; revision=140921
* Write cs_detach() and use it. This resolves the twin problems of theWarner Losh2005-01-273-2/+17
| | | | | | | | cs1 interface linger on card eject, as well as the warnings about the card still using resources. Ooops. Notes: svn path=/head/; revision=140888
* Only attach to network functions (unlikely to matter since I'm notWarner Losh2005-01-201-0/+10
| | | | | | | aware of any multi-function cs cards, but it doesn't hurt). Notes: svn path=/head/; revision=140524
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-065-5/+5
| | | | Notes: svn path=/head/; revision=139749
* Since if_cs doesn't contain locking or run with INTR_MPSAFE, markRobert Watson2004-08-131-1/+2
| | | | | | | the interface as IFF_NEEDSGIANT so if_start is run holding Giant. Notes: svn path=/head/; revision=133681
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewWarner Losh2004-05-271-1/+1
| | | | | | | | | redundant includes and fix some of the include disordering. Submitted by: bde Notes: svn path=/head/; revision=129764
* Move to generating pccarddevs.h on the fly, both for the kernel andWarner Losh2004-05-261-1/+1
| | | | | | | | | | the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment. Notes: svn path=/head/; revision=129740
* We don't need to initialize if_output, ether_ifattach() does itMaxime Henrion2004-05-231-1/+0
| | | | | | | for us. Notes: svn path=/head/; revision=129616
* We don't need the dependency on the pccard module here.Warner Losh2004-05-081-1/+0
| | | | Notes: svn path=/head/; revision=129047
* Remove improper use of if_addrhead in device drivers to checkLuigi Rizzo2004-04-151-4/+0
| | | | | | | | | | | | | | | if the link-level address has been initialized already. The majority of modern drivers never does this and works fine, which makes me think that the check is totally unnecessary and a residue of cut&paste from other drivers. This change is done to simplify locking because now almost none of the drivers uses this field. The exceptions are "ct" "ctau" and "cx" where i am not sure if i can remove that part. Notes: svn path=/head/; revision=128293
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-2/+2
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Announce ethernet MAC addresss in ether_ifattach().Matthew N. Dodd2004-03-141-4/+0
| | | | Notes: svn path=/head/; revision=126966
* o Add sysctl to allow ignoring checksum of eeprom.Warner Losh2003-11-042-53/+77
| | | | | | | | | | | | | | | o Fix minor type problems o Fix minor problem with a couple debug printfs. o Default to a sane media type when none is reported. o Minor style changes The PR complains this will fix the IBM 300GL cards. Submitted by: Max Gotlib PR: 11462 Notes: svn path=/head/; revision=122024
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-314-11/+9
| | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=121816
* There is no way to enter the attach routine twice with the same softcBrooks Davis2003-10-301-67/+65
| | | | | | | | | | without a detach call in between so don't try to deal with that possiability. This is a diff-reduction commit for the upcoming if_xname conversion. Notes: svn path=/head/; revision=121752
* Use __FBSDID().David E. O'Brien2003-08-243-3/+9
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* - Express hard dependencies on bus (pci, isa, pccard) andMatthew N. Dodd2003-04-152-3/+6
| | | | | | | | | | | network layer (ether). - Don't abuse module names to facilitate ifconfig module loading; such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.) Notes: svn path=/head/; revision=113506
* 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
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-2/+2
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-2/+2
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* network interface driver changes:Sam Leffler2002-11-141-18/+6
| | | | | | | | | | | | | | | | | 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
* Use if_printf(ifp, "blah") instead ofBrooks Davis2002-10-011-23/+18
| | | | | | | printf(CS_NAME"%d: blah", ifp->if_unit); Notes: svn path=/head/; revision=104252
* Migrate to PCMCIA_CARD() macrosWarner Losh2001-11-151-3/+1
| | | | Notes: svn path=/head/; revision=86394
* s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharingWarner Losh2001-11-111-3/+3
| | | | Notes: svn path=/head/; revision=86273
* Additional enhancments to allow IBM Etherjet cards to be probed,Warner Losh2001-02-234-110/+136
| | | | | | | | | | | | | | | | | | | | attached and ifconfigable. The card doesn't interrupt yet. Also, move towards bus space by introducing new macros/inline functions which make such a move much easier than before. These inline functions are setup now to work around an IBM EtherJet pccard cardbus bridge incompatibility. The card works in 8 bit mode, but not in 16-bit mode when it is connected to a cardbus bridge for reasons unknown. The Linux driver also has a similar workaround in it. Future work will include making the above workaround runtime conditional rather than compile time conditional, as well as fixing the interrupts in pccards and converting it to bus space. Notes: svn path=/head/; revision=72940
* Break the isa attachment of the Crystal Semiconductor 89x0 into twoWarner Losh2001-01-214-144/+344
| | | | | | | | | | | | parts: isa and pccard. The isa one is known to work with an IBM EtherJet ISA card. The pccard one isn't known to work because the EtherJet pccard I purchased recently arrived DOA :-(. I'll commit the pccard.conf entry when the replacement card arrives. I plan on MFC this in a week or two. Notes: svn path=/head/; revision=71316
* Remove unneeded #include <machine/clock.h>Poul-Henning Kamp2000-10-151-1/+0
| | | | Notes: svn path=/head/; revision=67164
* Make all Ethernet drivers attach using ether_ifattach() and detach usingArchie Cobbs2000-07-131-3/+1
| | | | | | | | | | | | 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-141-7/+0
| | | | | | | | | | | | | | | | | | 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
* NewBus the cs driver.Warner Losh2000-03-302-276/+299
| | | | | | | Submitted by: max@rsu.ru Notes: svn path=/head/; revision=58816
* Remove NBPF conditionality of bpf calls in most of our network drivers.Poul-Henning Kamp1999-09-251-9/+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. Notes: svn path=/head/; revision=51646
* Stub out the old pnp code till these are converted so GENERIC builds again.Peter Wemm1999-09-021-1/+2
| | | | Notes: svn path=/head/; revision=50782
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Rename bpfilter to bpf.Dag-Erling Smørgrav1999-07-061-6/+6
| | | | Notes: svn path=/head/; revision=48645
* Bring the 'new-bus' to the i386. This extensively changes the way thePeter Wemm1999-04-161-5/+2
| | | | | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core Notes: svn path=/head/; revision=45720
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-281-3/+3
| | | | | | | kernel compile Notes: svn path=/head/; revision=43314
* Clean up warnings; a couple of these came because of genuine errors inEivind Eklund1999-01-121-4/+6
| | | | | | | | parameter passing (passing a pointer to u_short where a pointer to int is expected), for which the bugs have been fixed. Notes: svn path=/head/; revision=42545
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticArchie Cobbs1998-12-071-8/+4
| | | | | | | and local variables, goto labels, and functions declared but not defined. Notes: svn path=/head/; revision=41591
* Initialize isa_devtab entries for interrupt handlers in individualBruce Evans1998-10-221-2/+4
| | | | | | | | | | 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 Notes: svn path=/head/; revision=40565
* At net-jp@jp.freebsd.org mailing list, if_cs user in JapanMike Smith1998-10-041-2/+2
| | | | | | | | | | | | | reported bug. At using tcpdump for cs interface, tcpdump only dump packet which src or dst MAC-address is cs interface. cs interface can't look up packet between others. Submitted by: MIHIRA "Sanpei" Yoshiro <sanpei@sanpei.org> Notes: svn path=/head/; revision=39937
* Enable duplex autodetection if UTP media are autodetected.Mike Smith1998-08-271-11/+12
| | | | | | | | | | | | Add a sysctl 'machdep.cs_recv_delay' to specify how long to wait after receiving a packet in order to check for a subsequent (back-to-back) packet. The cs8900 has a very small receive buffer, so this helps avoid overflows at the cost of some extra CPU overhead. Submitted by: Oleg Sharoiko <os@rsu.ru>, MIHIRA "Sanpei" Yoshiro <sanpei@sanpei.org> Notes: svn path=/head/; revision=38592
* Fix BNC/AUI autodetection.Mike Smith1998-08-131-18/+32
| | | | | | | | Submitted by: MIHIRA "Sanpei" Yoshiro <sanpei@sanpei.org> Submitted by: Oleg Sharoiko <os@rsu.ru> Notes: svn path=/head/; revision=38305
* Removed unused includes.Bruce Evans1998-08-121-25/+1
| | | | Notes: svn path=/head/; revision=38286
* Add the 'cs' driver for Crystal Semiconductor CS89x0 devices. ThisMike Smith1998-07-202-0/+1950
supports PnP and if_media. I've been running a slightly older version here for several weeks now. Submitted by: Maxim Bolotin <max@rsu.ru> Notes: svn path=/head/; revision=37785