Home | History | Annotate | Download | only in ppbus

Lines Matching defs:PORT

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 */
66 PORT(D, 7, 0), /* 9: D7 Output */
67 PORT(S, 6, 0), /* 10: S6 Input */
68 PORT(S, 7, 1), /* 11: /S7 Input */
69 PORT(S, 5, 0), /* 12: S5 Input */
70 PORT(S, 4, 0), /* 13: S4 Input */
71 PORT(C, 1, 1), /* 14: /C1 Output */
72 PORT(S, 3, 0), /* 15: S3 Input */
73 PORT(C, 2, 0), /* 16: C2 Output */
74 PORT(C, 3, 1), /* 17: /C3 Output */
136 u_char port = ppbus_io(sc->sc_dev, ppbus_port[pin].rreg, NULL, 0, 0);
138 return ((port >> ppbus_port[pin].bit) & 1) ^ ppbus_port[pin].inv;
145 u_char port = ppbus_io(sc->sc_dev, ppbus_port[pin].rreg, NULL, 0, 0);
149 port &= ~(1 << ppbus_port[pin].bit);
150 port |= value;
152 ppbus_io(sc->sc_dev, ppbus_port[pin].wreg, NULL, 0, port);
158 /* can't change parallel port pin configuration */