Lines Matching refs:port
2 * Copyright (c) 1999 FreeBSD(98) port team.
80 static int pckbd_probe_unit(device_t dev, int port, int irq,
83 int port, int irq, int flags);
167 pckbd_probe_unit(device_t dev, int port, int irq, int flags)
177 args[0] = port;
186 pckbd_attach_unit(device_t dev, keyboard_t **kbd, int port, int irq, int flags)
199 args[0] = port;
328 int port; /* base port address */
335 static KBDC kbdc_open(int port);
590 /* see if there is something in the keyboard port */
905 #define KBD_STATUS_PORT 2 /* status port, read */
906 #define KBD_DATA_PORT 0 /* data port, read */
919 /* associate a port number with a KBDC */
922 kbdc_open(int port)
924 if (port <= 0)
925 port = IO_KBD;
928 kbdc_softc[0].port = port;
949 return (inb(kbdcp(p)->port + KBD_STATUS_PORT) & KBDS_BUFFER_FULL);
958 int port = kbdc->port;
960 while (!(inb(port + KBD_STATUS_PORT) & KBDS_BUFFER_FULL)) {
977 return inb(kbdcp(p)->port + KBD_DATA_PORT);
986 if (inb(kbdcp(p)->port + KBD_STATUS_PORT) & KBDS_BUFFER_FULL) {
988 return inb(kbdcp(p)->port + KBD_DATA_PORT);