Rev | Line | |
---|
[34] | 1 | /* |
---|
| 2 | * HP Ski simulator serial I/O |
---|
| 3 | * |
---|
| 4 | * Copyright (C) 2004 Hewlett-Packard Co |
---|
| 5 | * Dan Magenheimer <dan.magenheimer@hp.com> |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <linux/config.h> |
---|
| 9 | #include <xen/sched.h> |
---|
| 10 | #include <xen/serial.h> |
---|
| 11 | #include "hpsim_ssc.h" |
---|
| 12 | |
---|
| 13 | static void hp_ski_putc(struct serial_port *port, char c) |
---|
| 14 | { |
---|
| 15 | ia64_ssc(c,0,0,0,SSC_PUTCHAR); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | static struct uart_driver hp_ski = { .putc = hp_ski_putc }; |
---|
| 19 | |
---|
| 20 | void hpsim_serial_init(void) |
---|
| 21 | { |
---|
| 22 | serial_register_uart(0, &hp_ski, 0); |
---|
| 23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.