Changeset 95c675b in mainline for kernel/genarch/src/drivers/pl011/pl011.c
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (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
-
kernel/genarch/src/drivers/pl011/pl011.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/pl011/pl011.c
rdbf32b1 r95c675b 35 35 */ 36 36 37 #include <assert.h> 37 38 #include <genarch/drivers/pl011/pl011.h> 38 39 #include <console/chardev.h> 39 40 #include <console/console.h> 40 #include <ddi/device.h>41 41 #include <arch/asm.h> 42 42 #include <mm/slab.h> … … 98 98 bool pl011_uart_init(pl011_uart_t *uart, inr_t interrupt, uintptr_t addr) 99 99 { 100 ASSERT(uart);100 assert(uart); 101 101 uart->regs = (void*)km_map(addr, sizeof(pl011_uart_regs_t), 102 102 PAGE_NOT_CACHEABLE); 103 ASSERT(uart->regs);103 assert(uart->regs); 104 104 105 105 /* Disable UART */ … … 126 126 /* Initialize IRQ */ 127 127 irq_initialize(&uart->irq); 128 uart->irq.devno = device_assign_devno();129 128 uart->irq.inr = interrupt; 130 129 uart->irq.claim = pl011_uart_claim; … … 137 136 void pl011_uart_input_wire(pl011_uart_t *uart, indev_t *indev) 138 137 { 139 ASSERT(uart);140 ASSERT(indev);138 assert(uart); 139 assert(indev); 141 140 142 141 uart->indev = indev;
Note:
See TracChangeset
for help on using the changeset viewer.
