summaryrefslogtreecommitdiff
path: root/sys/dev/utopia
AgeCommit message (Collapse)Author
2017-04-24Remove the NATM framework including the en(4), fatm(4), hatm(4), andBrooks Davis
patm(4) devices. Maintaining an address family and framework has real costs when we make infrastructure improvements. In the case of NATM we support no devices manufactured in the last 20 years and some will not even work in modern motherboards (some newer devices that patm(4) could be updated to support apparently exist, but we do not currently have support). With this change, support remains for some netgraph modules that don't require NATM support code. It is unclear if all these should remain, though ng_atmllc certainly stands alone. Note well: FreeBSD 11 supports NATM and will continue to do so until at least September 30, 2021. Improvements to the code in FreeBSD 11 are certainly welcome. Reviewed by: philip Approved by: harti Notes: svn path=/head/; revision=317383
2012-10-10Revert previous commit...Kevin Lo
Pointyhat to: kevlo (myself) Notes: svn path=/head/; revision=241394
2012-10-09Prefer NULL over 0 for pointersKevin Lo
Notes: svn path=/head/; revision=241370
2007-12-05Fix a use-after-free.Philip Paeps
Submitted by: Ilja van Sprundel <ilja -at- netric.org> Reviewed by: secteam MFC after: 1 day Notes: svn path=/head/; revision=174318
2007-10-20Rename the kthread_xxx (e.g. kthread_create()) callsJulian Elischer
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
2005-06-22Struct ifatm isn't at the beginning of the softc anymore. Use theHartmut Brandt
correct way (IFP2IFATM()) to access it. Approved by: re Notes: svn path=/head/; revision=147526
2005-06-10Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis
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
2005-02-24Split the chip-specific code from the generic Utopia code. This simplifiesHartmut Brandt
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
2005-01-06Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh
Notes: svn path=/head/; revision=139749
2004-07-15Do a pass over all modules in the kernel and make them return EOPNOTSUPPPoul-Henning Kamp
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
2004-05-30Add missing <sys/module.h> includesPoul-Henning Kamp
Notes: svn path=/head/; revision=129879
2004-03-05kthread_exit() no longer requires Giant, so don't force callers to acquireJohn Baldwin
Giant just to call kthread_exit(). Requested by: many Notes: svn path=/head/; revision=126674
2003-07-30Generate events when the carrier goes up or down.Hartmut Brandt
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
2003-07-14Implement statistics for the PHY chips. Statistics are hold inHartmut Brandt
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
2003-07-14Add support for the IDT77155 Sonet/SDH PHY.Hartmut Brandt
Notes: svn path=/head/; revision=117546
2003-06-12This is a driver for the physical layer chips used in ATM interfaces.Hartmut Brandt
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