ppbus_gpio.c | 57 } ppbus_port[PPBUS_NPINS] = { /* parallel port wiring: */ variable in typeref:typename:const struct __anon3407ec8b0108[] 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); 147 value ^= ppbus_port[pin].inv; 148 value <<= ppbus_port[pin].bit; 149 port &= ~(1 << ppbus_port[pin].bit); 152 ppbus_io(sc->sc_dev, ppbus_port[pin].wreg, NULL, 0, port);
|