git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: nearly complete POSIX.1-2008 compliant terminal interface implementation
[lunaix-os.git]
/
lunaix-os
/
hal
/
char
/
uart
/
16550_pmio.c
diff --git
a/lunaix-os/hal/char/uart/16550_pmio.c
b/lunaix-os/hal/char/uart/16550_pmio.c
index ed3a6186504b2210f6dcb7059145d218a143add2..7bd99da8d36dce4c5a8b491487391cde36a856ce 100644
(file)
--- a/
lunaix-os/hal/char/uart/16550_pmio.c
+++ b/
lunaix-os/hal/char/uart/16550_pmio.c
@@
-77,7
+77,7
@@
upiom_init(struct device_def* def)
uart_enable_fifo(uart, UART_FIFO8);
llist_append(&com_ports, &uart->local_ports);
uart_enable_fifo(uart, UART_FIFO8);
llist_append(&com_ports, &uart->local_ports);
- struct serial_dev* sdev = serial_create(&def->class);
+ struct serial_dev* sdev = serial_create(&def->class
, "S"
);
sdev->backend = uart;
sdev->write = uart_general_tx;
sdev->exec_cmd = uart_general_exec_cmd;
sdev->backend = uart;
sdev->write = uart_general_tx;
sdev->exec_cmd = uart_general_exec_cmd;
@@
-97,8
+97,8
@@
upiom_init(struct device_def* def)
}
static struct device_def uart_pmio_def = {
}
static struct device_def uart_pmio_def = {
- .class = DEVCLASS(DEVIF_SOC, DEVFN_CHAR, DEV_
SERIAL,
0),
+ .class = DEVCLASS(DEVIF_SOC, DEVFN_CHAR, DEV_
UART1655
0),
.name = "16550 Generic UART (I/O)",
.init = upiom_init
};
.name = "16550 Generic UART (I/O)",
.init = upiom_init
};
-EXPORT_DEVICE(uart16550_pmio, &uart_pmio_def, load_
earlystage
);
\ No newline at end of file
+EXPORT_DEVICE(uart16550_pmio, &uart_pmio_def, load_
onboot
);
\ No newline at end of file