Lines Matching refs:rid
53 int type, int *rid, rman_res_t start, rman_res_t end,
102 int rid; in atkbdc_isa_probe() local
128 rid = 0; in atkbdc_isa_probe()
129 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0) in atkbdc_isa_probe()
136 bus_set_resource(dev, SYS_RES_IOPORT, rid, start, 1); in atkbdc_isa_probe()
137 port0 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in atkbdc_isa_probe()
140 rid = 1; in atkbdc_isa_probe()
141 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, NULL, NULL) != 0) in atkbdc_isa_probe()
144 port1 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in atkbdc_isa_probe()
192 int rid; in atkbdc_isa_attach() local
209 rid = 0; in atkbdc_isa_attach()
211 sc->port0 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, in atkbdc_isa_attach()
215 rid = 1; in atkbdc_isa_attach()
216 sc->port1 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, in atkbdc_isa_attach()
228 rid = 0; in atkbdc_isa_attach()
229 sc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in atkbdc_isa_attach()
268 ivar->rid = order; in atkbdc_isa_add_child()
284 ivar->rid, t, t, 1); in atkbdc_isa_add_child()
296 atkbdc_isa_alloc_resource(device_t dev, device_t child, int type, int *rid, in atkbdc_isa_alloc_resource() argument
302 if (type == SYS_RES_IRQ && *rid == KBDC_RID_KBD && sc->irq != NULL) in atkbdc_isa_alloc_resource()
304 return (bus_generic_rl_alloc_resource(dev, child, type, rid, start, in atkbdc_isa_alloc_resource()