mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04:00
Taken from: https://github.com/freebsd/freebsd.git Commit id: d44ce30d3054a38723f89a161c5e003e64d1aaae
24 lines
281 B
Objective-C
24 lines
281 B
Objective-C
# $FreeBSD$
|
|
|
|
#include <sys/bus.h>
|
|
|
|
INTERFACE mdio;
|
|
|
|
#
|
|
# Read register from device on MDIO bus
|
|
#
|
|
METHOD int readreg {
|
|
device_t dev;
|
|
int phy;
|
|
int reg;
|
|
};
|
|
|
|
#
|
|
# Write register to device on MDIO bus
|
|
#
|
|
METHOD int writereg {
|
|
device_t dev;
|
|
int phy;
|
|
int reg;
|
|
int val;
|
|
};
|