Changeset 8e7c9fe in mainline for uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
- Timestamp:
- 2014-09-12T03:45:25Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c53b58e
- Parents:
- 3eb0c85 (diff), 105d8d6 (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
r3eb0c85 r8e7c9fe 68 68 static s3c24xx_uart_t *uart; 69 69 70 static void s3c24xx_uart_connection(ipc_callid_t iid, ipc_call_t *icall, 71 void *arg); 72 static void s3c24xx_uart_irq_handler(ipc_callid_t iid, ipc_call_t *call); 73 static int s3c24xx_uart_init(s3c24xx_uart_t *uart); 74 static void s3c24xx_uart_sendb(s3c24xx_uart_t *uart, uint8_t byte); 70 static void s3c24xx_uart_connection(ipc_callid_t, ipc_call_t *, void *); 71 static void s3c24xx_uart_irq_handler(ipc_callid_t, ipc_call_t *, void *); 72 static int s3c24xx_uart_init(s3c24xx_uart_t *); 73 static void s3c24xx_uart_sendb(s3c24xx_uart_t *, uint8_t); 75 74 76 75 int main(int argc, char *argv[]) … … 150 149 } 151 150 152 static void s3c24xx_uart_irq_handler(ipc_callid_t iid, ipc_call_t *call) 153 { 154 (void) iid; (void) call; 151 static void s3c24xx_uart_irq_handler(ipc_callid_t iid, ipc_call_t *call, 152 void *arg) 153 { 154 (void) iid; 155 (void) call; 156 (void) arg; 155 157 156 158 while ((pio_read_32(&uart->io->ufstat) & S3C24XX_UFSTAT_RX_COUNT) != 0) { … … 192 194 (void *) uart->paddr, inr); 193 195 194 async_set_interrupt_received(s3c24xx_uart_irq_handler); 195 196 irq_register(inr, device_assign_devno(), 0, &uart_irq_code); 196 async_irq_subscribe(inr, device_assign_devno(), s3c24xx_uart_irq_handler, 197 NULL, &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.