Lines Matching +full:0 +full:x23c

44 #define	REG_BASE_RID	0
46 #define MDIO_RATE_ADJ_EXT_OFFSET 0x000
47 #define MDIO_RATE_ADJ_INT_OFFSET 0x004
50 #define MDIO_SCAN_CTRL_OFFSET 0x008
53 #define MDIO_PARAM_OFFSET 0x23c
59 #define MDIO_PARAM_PHY_DATA 0
61 #define MDIO_READ_OFFSET 0x240
62 #define MDIO_READ_DATA_MASK 0xffff
63 #define MDIO_ADDR_OFFSET 0x244
65 #define MDIO_CTRL_OFFSET 0x248
66 #define MDIO_CTRL_WRITE_OP 0x1
67 #define MDIO_CTRL_READ_OP 0x2
69 #define MDIO_STAT_OFFSET 0x24c
75 #define MDIO_REG_ADDR_SPACE_SIZE 0x250
138 EARLY_DRIVER_MODULE(brcm_iproc_mdio, ofwbus, brcm_iproc_mdio_driver, 0, 0,
140 EARLY_DRIVER_MODULE(brcm_iproc_mdio, simplebus, brcm_iproc_mdio_driver, 0, 0,
158 param = (bus_dir ? 1 : 0) << MDIO_PARAM_INTERNAL_SEL; in brcm_iproc_switch()
163 return (0); in brcm_iproc_switch()
175 return (0); in iproc_mdio_wait_for_idle()
187 * @val :0 if read op else value to be written in @reg;
193 * operation returns 0. Failure operation returns negative error code.
202 bus_write_4(sc->reg_base, MDIO_CTRL_OFFSET, 0); in brcm_iproc_mdio_op()
204 ret = iproc_mdio_wait_for_idle(sc, 0); in brcm_iproc_mdio_op()
253 return (0); in brcm_iproc_config()
263 if (brcm_iproc_switch(sc, bus) != 0) { in brcm_iproc_mdio_write_mux()
278 if (brcm_iproc_switch(sc, bus) != 0) { in brcm_iproc_mdio_read_mux()
283 return (brcm_iproc_mdio_op(sc, phy, reg, 0, MDIO_CTRL_READ_OP)); in brcm_iproc_mdio_read_mux()
321 if (brcm_iproc_config(sc) < 0) { in brcm_iproc_mdio_attach()
330 for (node = OF_child(parent); node > 0; node = OF_peer(node)) { in brcm_iproc_mdio_attach()
333 if (ofw_bus_gen_setup_devinfo(&di->di_dinfo, node) != 0) { in brcm_iproc_mdio_attach()
366 return (0); in brcm_iproc_mdio_attach()
394 return (0); in brcm_iproc_mdio_detach()