summaryrefslogtreecommitdiffstats
path: root/sys/dev/cs/if_csvar.h
Commit message (Collapse)AuthorAgeFilesLines
* Use bus space functions rather than inw/outwandrew2011-01-291-1/+0
| | | | | | to help a future port of the driver to ARM. Approved by: imp (mentor)
* Minor clean up to shave about 1.5k off the size of the driver:imp2008-06-061-3/+1
| | | | | | | | | o remove unused fields from softc and args from cs_alloc_irq o remove some commented code that will never be implemented. o Don't try to send a packet and see if it worked. We don't need this anymore, and it doesn't add any value. o tweaks for BNC and AUI. o limit possible time hung in the kernel to 4s rather than 40s.
* Remove unused fields in softc. If they are ever really needed again,imp2008-06-061-4/+0
| | | | | | they can re-added. Remove CS_NAME. Don't whine when there's an ignored checksum error: User has said STFU, so we should S the FU. (remove mandated properties).
* Make the cs(4) driver MPSAFE:jhb2008-06-051-0/+7
| | | | | | | | | - Add a mutex to the softc to protect the softc and the device hardware. - Add a private timer to manage transmit watchdogs rather than using if_timer/if_watchdog. - Setup the interrupt handler after ether_ifattach(). Tested by: imp
* - Consistently use if_printf() only in interface methods: if_start(),glebius2006-09-151-0/+1
| | | | | | | | if_watchdog, etc., or in functions used only in these methods. In all other functions in the driver use device_printf(). - Use __func__ instead of typing function name. Submitted by: Alex Lyashkov <umka sevcity.net>
* Use ETHER_ADDR_LEN rather than 6.imp2006-02-111-1/+1
|
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-101-1/+3
| | | | | | | | | | | | | | | | | | | | 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
* Cleanup tabs vs spaces.imp2005-01-281-18/+17
|
* For the PC Card implementation of the CS8920M that's in my IBMimp2005-01-281-0/+2
| | | | | | | | | | | | | 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.
* Write cs_detach() and use it. This resolves the twin problems of theimp2005-01-271-0/+1
| | | | | cs1 interface linger on card eject, as well as the warnings about the card still using resources. Ooops.
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-1/+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)
* Break the isa attachment of the Crystal Semiconductor 89x0 into twoimp2001-01-211-0/+78
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.
OpenPOWER on IntegriCloud