Lines Matching refs:dev
26 * $FreeBSD: releng/11.0/sys/dev/mdio/mdio.c 292750 2015-12-26 17:22:02Z adrian $
34 #include <dev/mdio/mdio.h>
47 mdio_probe(device_t dev)
50 device_set_desc(dev, "MDIO");
56 mdio_attach(device_t dev)
59 bus_generic_probe(dev);
60 bus_enumerate_hinted_children(dev);
61 return (bus_generic_attach(dev));
65 mdio_detach(device_t dev)
68 bus_generic_detach(dev);
73 mdio_readreg(device_t dev, int phy, int reg)
76 return (MDIO_READREG(device_get_parent(dev), phy, reg));
80 mdio_writereg(device_t dev, int phy, int reg, int val)
83 return (MDIO_WRITEREG(device_get_parent(dev), phy, reg, val));
87 mdio_readextreg(device_t dev, int phy, int devad, int reg)
90 return (MDIO_READEXTREG(device_get_parent(dev), phy, devad, reg));
94 mdio_writeextreg(device_t dev, int phy, int devad, int reg,
98 return (MDIO_WRITEEXTREG(device_get_parent(dev), phy, devad, reg, val));
102 mdio_hinted_child(device_t dev, const char *name, int unit)
105 device_add_child(dev, name, unit);