aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xe/if_xevar.h
Commit message (Collapse)AuthorAgeFilesLines
* FCP-101: Remove xe(4)Brooks Davis2019-05-171-92/+0
| | | | | | | | | | Relnotes: yes FCP: https://github.com/freebsd/fcp/blob/master/fcp-0101.md Reviewed by: jhb, imp Differential Revision: https://reviews.freebsd.org/D20230 Notes: svn path=/head/; revision=347923
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Style(9) xe(4). The MD5 sums are different, but comparing the dissassembliesJohn Baldwin2008-06-041-43/+43
| | | | | | | the only changes are from gcc moving some global variables around slightly. Notes: svn path=/head/; revision=179551
* - Split the interrupt handler up into separate subroutines for rx, tx, andJohn Baldwin2008-06-041-14/+4
| | | | | | | | | | MAC events. - Use bus_*() rather than bus_space_*() and remove the bus space tag and handle from the softc. - Retire unused macros for examining CIS tuples. Notes: svn path=/head/; revision=179543
* - Change the watchdog timer logic to match other drivers that use their ownJohn Baldwin2008-06-031-0/+1
| | | | | | | | | | timer by keeping a once-a-second timer running that decrements a counter similar to if_timer and reset the chip if it gets down to zero via the decrement. - Use IFQ_SET_MAXLEN(). Notes: svn path=/head/; revision=179527
* Add locking and make xe(4) MPSAFE:John Baldwin2008-06-021-1/+8
| | | | | | | | | | | | | | - Add a mutex to protect the softc and device hardware. - Use a callout rather than a callout_handle for the media timer. - Use a dedicated timer for managing the tx watchdog rather than if_timer. - Fix some resource leaks if xe_attach() fails. - Shutdown the device before detaching the driver. - Setup the interrupt handler after ether_ifattach(). Tested by: Ian FREISLICH ianf of clue.co.za Notes: svn path=/head/; revision=179492
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam Notes: svn path=/head/; revision=147256
* Fix probe routine to use card IDs from pccarddevs for NEWCARD and OLDCARD.Scott Mitchell2004-04-091-2/+2
| | | | | | | | | Should now correctly probe and attach all supported cards in either mode. Reviewed by: imp (mentor) Notes: svn path=/head/; revision=128068
* Major update to xe driver:Scott Mitchell2003-10-141-1/+4
| | | | | | | | | | | | | | | | | | | | - 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
* Update xe driver to probe and attach in a NEWCARD kernel.Takeshi Shibagaki2002-02-201-0/+4
| | | | | | | | | | 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
* First cut at adding CIS reading to xe driver. I don't have a cardWarner Losh2000-04-251-3/+3
| | | | | | | | | 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
* Move xe driver from dev/pccard to dev/xe. Convert driver to newbus.Warner Losh2000-01-101-0/+85
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