Lines Matching refs:dev
42 #include <dev/puc/puc_bus.h>
44 #include <dev/sio/siovar.h>
45 #include <dev/sio/sioreg.h>
47 static int sio_puc_attach(device_t dev);
48 static int sio_puc_probe(device_t dev);
66 sio_puc_attach(device_t dev)
70 if (BUS_READ_IVAR(device_get_parent(dev), dev, PUC_IVAR_CLOCK,
73 return (sioattach(dev, 0, rclk));
77 sio_puc_probe(device_t dev)
83 parent = device_get_parent(dev);
85 if (BUS_READ_IVAR(parent, dev, PUC_IVAR_TYPE, &type))
90 if (BUS_READ_IVAR(parent, dev, PUC_IVAR_CLOCK, &rclk))
93 SET_FLAG(dev, SET_IFTYPE(COM_IF_NS16550));
95 error = sioprobe(dev, 0, rclk, 1);