Lines Matching refs:dev

43 #include <dev/ofw/ofw_bus.h>
44 #include <dev/ofw/ofw_bus_subr.h>
60 omap4_wugen_activate_intr(device_t dev, struct intr_irqsrc *isrc,
63 struct omap4_wugen_sc *sc = device_get_softc(dev);
69 omap4_wugen_disable_intr(device_t dev, struct intr_irqsrc *isrc)
71 struct omap4_wugen_sc *sc = device_get_softc(dev);
77 omap4_wugen_enable_intr(device_t dev, struct intr_irqsrc *isrc)
79 struct omap4_wugen_sc *sc = device_get_softc(dev);
85 omap4_wugen_map_intr(device_t dev, struct intr_map_data *data,
88 struct omap4_wugen_sc *sc = device_get_softc(dev);
94 omap4_wugen_deactivate_intr(device_t dev, struct intr_irqsrc *isrc,
97 struct omap4_wugen_sc *sc = device_get_softc(dev);
103 omap4_wugen_setup_intr(device_t dev, struct intr_irqsrc *isrc,
106 struct omap4_wugen_sc *sc = device_get_softc(dev);
112 omap4_wugen_teardown_intr(device_t dev, struct intr_irqsrc *isrc,
115 struct omap4_wugen_sc *sc = device_get_softc(dev);
121 omap4_wugen_pre_ithread(device_t dev, struct intr_irqsrc *isrc)
123 struct omap4_wugen_sc *sc = device_get_softc(dev);
130 omap4_wugen_post_ithread(device_t dev, struct intr_irqsrc *isrc)
132 struct omap4_wugen_sc *sc = device_get_softc(dev);
138 omap4_wugen_post_filter(device_t dev, struct intr_irqsrc *isrc)
140 struct omap4_wugen_sc *sc = device_get_softc(dev);
147 omap4_wugen_bind_intr(device_t dev, struct intr_irqsrc *isrc)
149 struct omap4_wugen_sc *sc = device_get_softc(dev);
156 omap4_wugen_probe(device_t dev)
159 if (!ofw_bus_status_okay(dev))
162 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
169 omap4_wugen_detach(device_t dev)
173 sc = device_get_softc(dev);
175 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_mem_res);
182 omap4_wugen_attach(device_t dev)
189 sc = device_get_softc(dev);
190 sc->sc_dev = dev;
191 node = ofw_bus_get_node(dev);
196 device_printf(dev, "can't read parent node property\n");
201 device_printf(dev, "can't find parent controller\n");
206 sc->sc_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
209 device_printf(dev, "can't allocate resources\n");
213 if (intr_pic_register(dev, OF_xref_from_node(node)) == NULL) {
214 device_printf(dev, "can't register PIC\n");
220 omap4_wugen_detach(dev);