The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/netif/mii_layer/miibus_if.m

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # $FreeBSD: src/sys/dev/mii/miibus_if.m,v 1.2 1999/08/28 00:42:14 peter Exp $
    2 # $DragonFly: src/sys/dev/netif/mii_layer/miibus_if.m,v 1.3 2003/11/17 00:54:40 asmodai Exp $
    3 
    4 #include <sys/bus.h>
    5 
    6 INTERFACE miibus;
    7 
    8 #
    9 # Read register from device on MII bus
   10 #
   11 METHOD int readreg {
   12         device_t                dev;
   13         int                     phy;
   14         int                     reg;
   15 };
   16 
   17 #
   18 # Write register to device on MII bus
   19 #
   20 METHOD int writereg {
   21         device_t                dev;
   22         int                     phy;
   23         int                     reg;
   24         int                     val;
   25 };
   26 
   27 #
   28 # Notify bus about PHY status change.
   29 #
   30 METHOD void statchg {
   31         device_t                dev;
   32 };
   33 
   34 #
   35 # Notify bus that media has been set.
   36 #
   37 METHOD void mediainit {
   38         device_t                dev;
   39 };

Cache object: 14874732c3709f7bdf703ddade717823


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.