1 #include <linux/console.h>
2 #include <linux/init.h>
3 #include <linux/serial_reg.h>
6 #define PORT(offset) (0x3f8 + (offset))
8 static inline unsigned int serial_in(int offset
)
10 return inb(PORT(offset
));
13 static inline void serial_out(int offset
, int value
)
15 outb(value
, PORT(offset
));
18 int prom_putchar(char c
)
20 while ((serial_in(UART_LSR
) & UART_LSR_THRE
) == 0)
23 serial_out(UART_TX
, c
);