ppbus_gpio.c | 51 #define PORT(r, b, i) { PPBUS_R##r##TR, PPBUS_W##r##TR, b, i} 57 } ppbus_port[PPBUS_NPINS] = { /* parallel port wiring: */ 58 PORT(C, 0, 1), /* 1: /C0 Output */ 59 PORT(D, 0, 0), /* 2: D0 Output */ 60 PORT(D, 1, 0), /* 3: D1 Output */ 61 PORT(D, 2, 0), /* 4: D2 Output */ 62 PORT(D, 3, 0), /* 5: D3 Output */ 63 PORT(D, 4, 0), /* 6: D4 Output */ 64 PORT(D, 5, 0), /* 7: D5 Output */ 65 PORT(D, 6, 0), /* 8: D6 Output * 136 u_char port = ppbus_io(sc->sc_dev, ppbus_port[pin].rreg, NULL, 0, 0); local in function:gpio_ppbus_pin_read 145 u_char port = ppbus_io(sc->sc_dev, ppbus_port[pin].rreg, NULL, 0, 0); local in function:gpio_ppbus_pin_write [all...] |