mdio_if.m (b626f5a73a48f44a31a200291b141e1da408a2ff) mdio_if.m (36c1a376555e58a1c6b2f9cd0f72fe95dd030aef)
1# $FreeBSD$
2
3#include <sys/bus.h>
4
5INTERFACE mdio;
6
7CODE {
8 #include <dev/mdio/mdio.h>

--- 26 unchanged lines hidden (view full) ---

35 */
36METHOD int readreg {
37 device_t dev;
38 int phy;
39 int reg;
40};
41
42/**
1# $FreeBSD$
2
3#include <sys/bus.h>
4
5INTERFACE mdio;
6
7CODE {
8 #include <dev/mdio/mdio.h>

--- 26 unchanged lines hidden (view full) ---

35 */
36METHOD int readreg {
37 device_t dev;
38 int phy;
39 int reg;
40};
41
42/**
43 * @brief Read register from device on MDIO muxed bus.
44 *
45 * @param dev MDIO bus device.
46 * @param bus MDIO bus mux position
47 * @param phy PHY address.
48 * @param reg The PHY register offset.
49 */
50METHOD int readreg_mux {
51 device_t dev;
52 int bus;
53 int phy;
54 int reg;
55};
56
57/**
43 * @brief Write register to device on MDIO bus.
44 *
45 * @param dev MDIO bus device.
46 * @param phy PHY address.
47 * @param reg The PHY register offset.
48 * @param val The value to write at offset @p reg.
49 */
50METHOD int writereg {
51 device_t dev;
52 int phy;
53 int reg;
54 int val;
55};
56
58 * @brief Write register to device on MDIO bus.
59 *
60 * @param dev MDIO bus device.
61 * @param phy PHY address.
62 * @param reg The PHY register offset.
63 * @param val The value to write at offset @p reg.
64 */
65METHOD int writereg {
66 device_t dev;
67 int phy;
68 int reg;
69 int val;
70};
71
72/**
73 * @brief Write register to device on MDIO muxed bus.
74 *
75 * @param dev MDIO bus device.
76 * @param bus MDIO bus mux position
77 * @param phy PHY address.
78 * @param reg The PHY register offset.
79 * @param val The value to write at offset @p reg.
80 */
81METHOD int writereg_mux {
82 device_t dev;
83 int bus;
84 int phy;
85 int reg;
86 int val;
87};
57
88
89
58/**
59 * @brief Read extended register from device on MDIO bus.
60 *
61 * @param dev MDIO bus device.
62 * @param phy PHY address.
63 * @param devad The MDIO IEEE 802.3 Clause 45 device address, or
64 * MDIO_DEVADDR_NONE to request Clause 22 register addressing.
65 * @param reg The PHY register offset.

--- 26 unchanged lines hidden ---
90/**
91 * @brief Read extended register from device on MDIO bus.
92 *
93 * @param dev MDIO bus device.
94 * @param phy PHY address.
95 * @param devad The MDIO IEEE 802.3 Clause 45 device address, or
96 * MDIO_DEVADDR_NONE to request Clause 22 register addressing.
97 * @param reg The PHY register offset.

--- 26 unchanged lines hidden ---