Lines Matching refs:port
49 /* Store the port number of a serial unit. */
64 /* Read a byte from a port. */
66 inb (unsigned short port)
70 asm volatile ("inb %w1, %0" : "=a" (value) : "Nd" (port));
76 /* Write a byte to a port. */
78 outb (unsigned short port, unsigned char value)
80 asm volatile ("outb %b0, %w1" : : "a" (value), "Nd" (port));
117 /* Return the port number for the UNITth serial device. */
127 /* Initialize a serial device. PORT is the port number for a serial device.
135 serial_hw_init (unsigned short port, unsigned int speed,
143 outb (port + UART_IER, 0);
146 outb (port + UART_LCR, UART_DLAB);
159 outb (port + UART_DLL, div & 0xFF);
160 outb (port + UART_DLH, div >> 8);
164 outb (port + UART_LCR, status);
167 outb (port + UART_FCR, UART_ENABLE_FIFO);
170 outb (port + UART_MCR, UART_ENABLE_MODEM);
172 /* Store the port number. */
173 serial_hw_port = port;