aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/utopia
Commit message (Collapse)AuthorAgeFilesLines
* Fix a use-after-free.Philip Paeps2007-12-051-2/+1
| | | | | | | | | Submitted by: Ilja van Sprundel <ilja -at- netric.org> Reviewed by: secteam MFC after: 1 day Notes: svn path=/head/; revision=174318
* Rename the kthread_xxx (e.g. kthread_create()) callsJulian Elischer2007-10-201-2/+2
| | | | | | | | | | | | | | to kproc_xxx as they actually make whole processes. Thos makes way for us to add REAL kthread_create() and friends that actually make theads. it turns out that most of these calls actually end up being moved back to the thread version when it's added. but we need to make this cosmetic change first. I'd LOVE to do this rename in 7.0 so that we can eventually MFC the new kthread_xxx() calls. Notes: svn path=/head/; revision=172836
* Struct ifatm isn't at the beginning of the softc anymore. Use theHartmut Brandt2005-06-221-2/+2
| | | | | | | | | correct way (IFP2IFATM()) to access it. Approved by: re Notes: svn path=/head/; revision=147526
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-3/+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 Notes: svn path=/head/; revision=147256
* Split the chip-specific code from the generic Utopia code. This simplifiesHartmut Brandt2005-02-245-923/+1120
| | | | | | | | adding of new physical chips. Now one just needs to add a .h and a .c file for the new chip and add one line to utopia.c for that chip. Notes: svn path=/head/; revision=142384
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-064-4/+4
| | | | Notes: svn path=/head/; revision=139749
* Do a pass over all modules in the kernel and make them return EOPNOTSUPPPoul-Henning Kamp2004-07-151-0/+2
| | | | | | | | | | | for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything". Notes: svn path=/head/; revision=132199
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* kthread_exit() no longer requires Giant, so don't force callers to acquireJohn Baldwin2004-03-051-1/+0
| | | | | | | | | Giant just to call kthread_exit(). Requested by: many Notes: svn path=/head/; revision=126674
* Generate events when the carrier goes up or down.Hartmut Brandt2003-07-301-0/+10
| | | | | | | | Add two sysctl's that allow read-only access to the current state of the utopia interface and to the carrier state. Notes: svn path=/head/; revision=118202
* Implement statistics for the PHY chips. Statistics are hold inHartmut Brandt2003-07-142-4/+280
| | | | | | | | | | 64-bit counters that wrap on overflow. They are collecte once per second from the chips. Currently they can be retrieved via a sysctl phy_stats. A write of an arbitrary value to the sysctl atomically retrieves the statistics and clears them. Notes: svn path=/head/; revision=117552
* Add support for the IDT77155 Sonet/SDH PHY.Hartmut Brandt2003-07-143-1/+865
| | | | Notes: svn path=/head/; revision=117546
* This is a driver for the physical layer chips used in ATM interfaces.Hartmut Brandt2003-06-124-0/+2891
It currently supports the PMC Sierra Lite, Ultra and 622 chips and the IDT 77105. The driver handles media options and state in a consistent manner for ATM drivers. The next commit to the midway driver will make it use utopia. Notes: svn path=/head/; revision=116258