Lines Matching +full:0 +full:x418
58 #if 0
61 } while (0)
67 #define PL061_DATA 0x3FC
68 #define PL061_DIR 0x400
69 #define PL061_INTSENSE 0x404
70 #define PL061_INTBOTHEDGES 0x408
71 #define PL061_INTEVENT 0x40C
72 #define PL061_INTMASK 0x410
73 #define PL061_RAWSTATUS 0x414
74 #define PL061_STATUS 0x418
75 #define PL061_INTCLR 0x41C
76 #define PL061_MODECTRL 0x420
97 return (0); in pl061_pin_max()
107 name[GPIOMAXNAME - 1] = '\0'; in pl061_pin_getname()
109 return (0); in pl061_pin_getname()
123 *flags = 0; in pl061_pin_getflags()
131 return (0); in pl061_pin_getflags()
142 return (0); in pl061_pin_getcaps()
177 mask_and_set(sc, PL061_DIR, mask, flags & GPIO_PIN_OUTPUT ? mask : 0); in pl061_pin_setflags()
179 return (0); in pl061_pin_setflags()
198 return (0); in pl061_pin_get()
205 uint8_t d = (value == GPIO_PIN_HIGH) ? 0xff : 0x00; in pl061_pin_set()
215 return (0); in pl061_pin_set()
233 return (0); in pl061_pin_toggle()
247 mask_and_set(sc, PL061_INTMASK, mask, 0); in pl061_pic_disable_intr()
291 return (0); in pl061_pic_map_intr()
321 if (isrc->isrc_handlers != 0) { in pl061_pic_setup_intr()
323 return (irqsrc->mode == mode ? 0 : EINVAL); in pl061_pic_setup_intr()
331 mask_and_set(sc, PL061_INTSENSE, mask, 0); in pl061_pic_setup_intr()
333 mask_and_set(sc, PL061_INTBOTHEDGES, mask, 0); in pl061_pic_setup_intr()
334 mask_and_set(sc, PL061_INTSENSE, mask, 0); in pl061_pic_setup_intr()
337 mask_and_set(sc, PL061_INTBOTHEDGES, mask, 0); in pl061_pic_setup_intr()
338 mask_and_set(sc, PL061_INTSENSE, mask, 0); in pl061_pic_setup_intr()
339 mask_and_set(sc, PL061_INTEVENT, mask, 0); in pl061_pic_setup_intr()
341 mask_and_set(sc, PL061_INTBOTHEDGES, mask, 0); in pl061_pic_setup_intr()
345 mask_and_set(sc, PL061_INTBOTHEDGES, mask, 0); in pl061_pic_setup_intr()
347 mask_and_set(sc, PL061_INTEVENT, mask, 0); in pl061_pic_setup_intr()
350 return (0); in pl061_pic_setup_intr()
366 if (isrc->isrc_handlers == 0) { in pl061_pic_teardown_intr()
369 mask_and_set(sc, PL061_INTMASK, mask, 0); in pl061_pic_teardown_intr()
372 return (0); in pl061_pic_teardown_intr()
421 while (status != 0) { in pl061_intr()
425 if (intr_isrc_dispatch(PIC_INTR_ISRC(sc, pin), tf) != 0) in pl061_intr()
446 sc->sc_mem_rid = 0; in pl061_attach()
454 sc->sc_irq_rid = 0; in pl061_attach()
464 bus_write_1(sc->sc_mem_res, PL061_INTMASK, 0); in pl061_attach()
475 for (irq = 0; irq < PL061_NUM_GPIO; irq++) { in pl061_attach()
482 ret = intr_isrc_register(PIC_INTR_ISRC(sc, irq), dev, 0, in pl061_attach()
498 return (0); in pl061_attach()
503 * for (irq = 0; irq < PL061_NUM_GPIO; irq++) in pl061_attach()
511 * intr_pic_deregister(dev, 0); in pl061_attach()
542 return (0); in pl061_detach()