aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xe
Commit message (Collapse)AuthorAgeFilesLines
...
* Stop xe claiming ownership of every card passed to xe_pccard_match.Scott Mitchell2004-04-111-1/+1
| | | | | | | | | Found by: Pete Carss <itinerant at mac dot com> Reviewed by: imp (mentor) Pointy hat to: rsm Notes: svn path=/head/; revision=128123
* Band-aid fix to extract MAC address from some CEM2/CEM28 cards with brokenScott Mitchell2004-04-091-0/+93
| | | | | | | | | CIS. Really needs a better interface to the CIS in pccard driver. Reviewed by: imp (mentor) Notes: svn path=/head/; revision=128070
* Fix probe routine to use card IDs from pccarddevs for NEWCARD and OLDCARD.Scott Mitchell2004-04-092-146/+98
| | | | | | | | | Should now correctly probe and attach all supported cards in either mode. Reviewed by: imp (mentor) Notes: svn path=/head/; revision=128068
* 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-1/+0
| | | | Notes: svn path=/head/; revision=126966
* Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones.David E. O'Brien2003-12-081-4/+4
| | | | | | | Requested by: bde,imp Notes: svn path=/head/; revision=123289
* Try to create some sort of consistency in how the routings to find theDavid E. O'Brien2003-11-131-27/+28
| | | | | | | | | | multicast hash are written. There are still two distinct algorithms used, and there actually isn't any reason each driver should have its own copy of this function as they could all share one copy of it (if it grew an additional argument). Notes: svn path=/head/; revision=122625
* Disable the (currently unused) xe_reg_dump() function, until I know forScott Mitchell2003-11-061-1/+9
| | | | | | | | | sure that it's not needed any more. Reviewed by: imp (mentor) Notes: svn path=/head/; revision=122170
* Make xe_reg_dump non-static to avoid warnings (and tinerbox mail)Warner Losh2003-11-051-2/+2
| | | | | | | for now. Notes: svn path=/head/; revision=122106
* Convert XE_DEBUG define to hw.xe.debug sysctl, to set debug logging levelScott Mitchell2003-11-042-206/+128
| | | | | | | | | | | from the xe driver. Should probably be removed when current probe/attach problems with the driver are fixed, but is useful now when requesting diagnostic information from users. Reviewed by: imp (mentor) Notes: svn path=/head/; revision=122081
* Constify a few more strings that were hidden behind XE_DEBUG define.Scott Mitchell2003-11-021-14/+8
| | | | | | | | | Remove XE_VENDOR_ID_* defines in favour of PCMCIA_VENDOR_*. Reviewed by: imp (mentor) Notes: svn path=/head/; revision=121916
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-2/+1
| | | | | | | | | | | | | | | | 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-16/+14
| | | | | | | | | | 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
* Const poison string accessor functions.Warner Losh2003-10-261-1/+1
| | | | Notes: svn path=/head/; revision=121521
* Major update to xe driver:Scott Mitchell2003-10-144-578/+783
| | | | | | | | | | | | | | | | | | | | - Make multicast work - Fix (some of) the watchdog timeouts after card reset - Add support for CE2, CEM28 and CEM33 cards - General code cleanup Any card that worked previously should still work, as well as a lot that didn't. The driver is not yet style(9) compliant; those changes are forthcoming, once the functional changes are done. PR: kern/50644 Reviewed by: imp Approved by: imp Notes: svn path=/head/; revision=121099
* Use __FBSDID().David E. O'Brien2003-08-242-5/+8
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Add a comment saying it might be ParalonWarner Losh2003-08-211-1/+1
| | | | Notes: svn path=/head/; revision=119237
* Remove unused variable(s).Poul-Henning Kamp2003-05-311-6/+2
| | | | | | | | | Put XXX comment where intent is unclear. Found by: FlexeLint Notes: svn path=/head/; revision=115547
* 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
* 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