Changeset 6843a9c in mainline for uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
- Timestamp:
- 2012-06-29T13:02:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 722912e
- Parents:
- ba72f2b (diff), 0bbd13e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
rba72f2b r6843a9c 60 60 61 61 static irq_code_t uart_irq_code = { 62 0, 63 NULL, 62 64 sizeof(uart_irq_cmds) / sizeof(irq_cmd_t), 63 65 uart_irq_cmds … … 75 77 int main(int argc, char *argv[]) 76 78 { 77 int rc; 78 79 printf(NAME ": S3C24xx on-chip UART driver\n"); 80 81 rc = loc_server_register(NAME, s3c24xx_uart_connection); 82 if (rc < 0) { 83 printf(NAME ": Unable to register server.\n"); 84 return -1; 79 printf("%s: S3C24xx on-chip UART driver\n", NAME); 80 81 async_set_client_connection(s3c24xx_uart_connection); 82 int rc = loc_server_register(NAME); 83 if (rc != EOK) { 84 printf("%s: Unable to register server.\n", NAME); 85 return rc; 85 86 } 86 87 … … 194 195 async_set_interrupt_received(s3c24xx_uart_irq_handler); 195 196 196 register_irq(inr, device_assign_devno(), 0, &uart_irq_code);197 irq_register(inr, device_assign_devno(), 0, &uart_irq_code); 197 198 198 199 /* Enable FIFO, Tx trigger level: empty, Rx trigger level: 1 byte. */
Note:
See TracChangeset
for help on using the changeset viewer.