aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xe
Commit message (Collapse)AuthorAgeFilesLines
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-2/+2
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* The Xircom hardware always delivers received packets with the FCS appended.Joerg Wunsch2003-01-291-0/+2
| | | | | | | | Thus, mark the M_HASFCS flag so the generic ethernet layers will account for this. Notes: svn path=/head/; revision=110044
* Add INTEL EEPRO100Warner Losh2003-01-251-0/+1
| | | | | | | Submitted by: joerg Notes: svn path=/head/; revision=109838
* 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
* Add Accton EN2216.Takeshi Shibagaki2003-01-181-0/+1
| | | | Notes: svn path=/head/; revision=109453
* When reading PHY regs over the i2c bus, the turnaround ACK bitMartin Blapp2003-01-101-1/+1
| | | | | | | | | | | | | is read one clock edge too late. This bit is driven low by slave (as any other input data bits from slave) when the clock is LOW. The current code did read the bit after the clock was driven high again. Reviewed by: luoqi MFC after: 2 weeks Notes: svn path=/head/; revision=109058
* network interface driver changes:Sam Leffler2002-11-142-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, "foo") instead of printf("xe%d: foo", ifp->it_unit).Brooks Davis2002-10-011-2/+2
| | | | Notes: svn path=/head/; revision=104260
* Three minor changes:Warner Losh2002-07-221-14/+15
| | | | | | | | | 1) Add support for compaq cpq 10/100 card (a rebadged ce3) 2) Minor protection for failure on vendor lookup 3) Minor style(9) nits. Notes: svn path=/head/; revision=100530
* The CNW_801 and CNW_802 are wireless cards that the cnw driver supports.Warner Losh2002-07-211-2/+0
| | | | Notes: svn path=/head/; revision=100428
* Fix build breakage on my pccard related commit.Takanori Watanabe2002-05-311-1/+1
| | | | Notes: svn path=/head/; revision=97645
* Remove an unused variable.Warner Losh2002-02-261-1/+0
| | | | Notes: svn path=/head/; revision=91279
* Update xe driver to probe and attach in a NEWCARD kernel.Takeshi Shibagaki2002-02-203-310/+365
| | | | | | | | | | And separate probe and attach routine for PC Card from if_xe.c to if_xe_pccard.c. Reviewed by: imp Notes: svn path=/head/; revision=90962
* Add some seat belts. If we set the error rc, then return it and don'tWarner Losh2001-08-291-1/+3
| | | | | | | | | pretend things succeeded. This can happen if the address returned form bus_alloc_resource for the cis memory is occupied by some of thing. Notes: svn path=/head/; revision=82481
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedPoul-Henning Kamp2001-02-061-4/+4
| | | | | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh Notes: svn path=/head/; revision=72084
* Mechanical change to use <sys/queue.h> macro API instead ofPoul-Henning Kamp2001-02-041-4/+4
| | | | | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1) Notes: svn path=/head/; revision=71999
* Tag unused functions with __unused.John Baldwin2001-01-231-2/+2
| | | | Notes: svn path=/head/; revision=71479
* select() DKI is now in <sys/selinfo.h>.Garrett Wollman2001-01-091-1/+0
| | | | Notes: svn path=/head/; revision=70834
* 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-9/+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 Notes: svn path=/head/; revision=63090
* Remove the XE_DEBUG define. It shouldn't be defined now that thingsWarner Losh2000-07-101-2/+3
| | | | | | | | | | are working. Add a small blurb about XE_DEBUG as it might be useful to some people troubelshooting problems in the future. Submitted by: "Kevin Oberman" <oberman@es.net> Notes: svn path=/head/; revision=62912
* Add support for the modem side of the 56k combo card.Warner Losh2000-05-301-76/+76
| | | | | | | Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk> Notes: svn path=/head/; revision=61084
* Move code to handle BPF and bridging for incoming Ethernet packets outArchie Cobbs2000-05-141-23/+1
| | | | | | | | | | | | | | | | | | 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
* Now that I've got reports that this works, let's turn the debugging off.Warner Losh2000-05-011-4/+0
| | | | | | | | | MIHIRA-san pointed out that debugging is rather big for tcpdump... Submitted by: sanpei@sanpei.org (MIHIRA Yoshiro) Notes: svn path=/head/; revision=59813
* Return 0 from attach.Warner Losh2000-04-291-1/+1
| | | | | | | Submitted by: mihira-san <sanpei@sanpei.org> Notes: svn path=/head/; revision=59763
* First cut at adding CIS reading to xe driver. I don't have a cardWarner Losh2000-04-252-9/+16
| | | | | | | | | that seems to be working (I have a MF card that has a 336 modem and ethernet that the probe routine finds, but the attach fails on because pccardd doesn't do what you'd like with MF cards all the time). Notes: svn path=/head/; revision=59620
* o Preliminary support for mapping the CIS by the driver.Warner Losh2000-04-201-4/+6
| | | | | | | | | | | o Modify xe driver to use this. There's still some issues with this code, so xe can't map the cis just yet. I'm thinking about how to resolve the issue. pccard_nbk's pccard_alloc_resource is getting in the way. Notes: svn path=/head/; revision=59430
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-191-2/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* Remove #if 0'ed reference to isa_device->id_alivePeter Wemm2000-01-231-1/+0
| | | | Notes: svn path=/head/; revision=56473
* Move xe driver from dev/pccard to dev/xe. Convert driver to newbus.Warner Losh2000-01-103-533/+394
| | | | | | | | | | Driver is not functional yet, but does compile. Tests with xe cards indicates that it doesn't panic the machine when they are present, but fail to probe. Interface help in the pcic/pccard layers are needed to complete this driver. Notes: svn path=/head/; revision=55723
* Disable old PCCARD_MODULE code.Warner Losh1999-10-291-0/+2
| | | | | | | | | This should fix LINT. Prompted by: phk's explicit message about LINT breakage Notes: svn path=/head/; revision=52632
* 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
* Restore vendor $Id$ now that it won't be clobbered.Peter Wemm1999-09-232-2/+2
| | | | Notes: svn path=/head/; revision=51594
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-4/+4
| | | | Notes: svn path=/head/; revision=50477
* Decommision miscfs/specfs/specdev.h. Most of it goes into <sys/conf.h>,Poul-Henning Kamp1999-08-081-1/+1
| | | | | | | | | a few lines into <sys/vnode.h>. Add a few fields to struct specinfo, paving the way for the fun part. Notes: svn path=/head/; revision=49535
* Rename bpfilter to bpf.Dag-Erling Smørgrav1999-07-061-8/+8
| | | | Notes: svn path=/head/; revision=48645
* Wrap the definition of "XE_DEBUG" so it is overridable from the ``cc''David E. O'Brien1999-06-221-0/+2
| | | | | | | commandline or kernel conf file. Notes: svn path=/head/; revision=48118
* Fix conflicts.David E. O'Brien1999-06-222-120/+214
| | | | Notes: svn path=/head/; revision=48117
* Virgin import of Xircom PCCARD driver v1.20 (1999/06/13):David E. O'Brien1999-06-221-114/+514
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Conformance with Dingo specification. This includes: Collision/error statistics gathering. Multicast address filtering, eg. the hash filter. Initialisation and interrupt handling sequences. Note that I've started on some of this already in v1.20. * The probe routine needs some more work, to identify oddities such as the REM10. * There are still problems with the autonegotiation code; specifically, it won't autonegotiate with some 10/100 hubs. This might simply be the hardware not getting along, in which case there's nothing we can do, but it's still worth investigating * CEM28/CEM33 support. Should be able to integrate this directly from the Linux code. * Performance enhancements: Full-duplex on 10Mbit networks. Virtual shared-memory mode. Early send and receive modes. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/ Notes: svn path=/head/; revision=48114
* Simplify cdevsw registration.Poul-Henning Kamp1999-05-311-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up. Notes: svn path=/head/; revision=47640
* if_xe* now lives in sys/dev/pccard/David E. O'Brien1999-05-141-1/+2
| | | | Notes: svn path=/head/; revision=47156
* Virgin import of Xircom PCCARD driver v1.19.David E. O'Brien1999-05-141-78/+63
| | | | | | | | | | | | | | | | | v1.19 (1999/04/15) updates the CEM56/REM56 support. Current bugs & misfeatures -------------------------- * CE2 cards still not working reliably. Unclear if this is related to packet I/O code or interrupt handling. * Autonegotiation support remains flaky. We're now OK with 10Mbit auto hubs, but certain combination of hardware will fail to connect. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/ Notes: svn path=/head/; revision=47151
* Virgin import of Xircom PCCARD driver v1.18David E. O'Brien1999-05-141-14/+160
| | | | | | | | | | v1.18 (1999/04/08) adds support for CEM56 and REM56 multifunction cards. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/ Notes: svn path=/head/; revision=47148
* Virgin import of Xircom PCCARD driver v1.17David E. O'Brien1999-05-141-34/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | v1.17 (1999/03/28) has xperimental fixes to 10Mbit autonegotiation and CE2 input lockup. KNOWN BUGS ========== * Media auto-negotiation is definitely not right. It will work in most circumstances and seems to connect OK to most 100Mbit networks, however some pathological combinations of hubs/networks/peers seem to confuse it. * CE2 support is somewhat flakey (ranging from 'works perfectly' to 'hangs the machine' so far). I've fixed the probe routine and a potential lockup in the output routine, but a lot of people still report that they can't receive or transmit. * You won't be able to use the modem and Ethenet parts of a multifunction card simultaneously. This is limitation the current FreeBSD PCMCIA support. Likewise, there is no support for CardBus devices. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/ Notes: svn path=/head/; revision=47145
* Virgin import of Xircom PCCARD driver v1.16.David E. O'Brien1999-05-141-4/+6
| | | | | | | | | | | v1.16 (1999/03/08) fixed BPF input hang and infinite loop on CE2 short-packet output. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/ Notes: svn path=/head/; revision=47142
* Virgin import of Xircom PCCARD driver v1.15David E. O'Brien1999-05-141-5/+9
| | | | | | | | | | v1.15 fixed driver registration bug under 3.1-STABLE. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/ Notes: svn path=/head/; revision=47139
* Virgin import of Xircom PCCARD driver v1.14David E. O'Brien1999-05-142-1299/+1369
| | | | | | | | | | | | | | | | | | | | | This driver is mostly based on the `xirc2ps' driver for Linux by Werner Koch. Werner has even allowed his code to be distributed under a BSD licence, making our life considerably easier -- thanks Werner! This driver supports: * Intel EtherExpress(TM) PRO/100 PCCARD (16-bit version) * Xircom CreditCard CE2 / CEM28 / CEM33 / CE3 / CEM56 Ethernet adapters. * Toshiba Advanced Network 10/100 PCCARD * Certain Compaq Netelligent 10/100 branded cards v1.14 has major changes to media selection code, and bugfixes in the probe routine. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/ Notes: svn path=/head/; revision=47136
* Virgin import of Xircom PCCARD driver v1.13David E. O'Brien1999-05-142-0/+2439
Notes: svn path=/head/; revision=47133