Changeset 63e27ef in mainline for kernel/genarch/src/drivers
- Timestamp:
- 2017-06-19T21:47:42Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- Location:
- kernel/genarch/src/drivers
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/am335x/timer.c
r7354b5e r63e27ef 34 34 */ 35 35 36 #include <assert.h> 36 37 #include <genarch/drivers/am335x/timer.h> 37 38 #include <mm/km.h> … … 90 91 size_t size; 91 92 92 ASSERT(id < TIMERS_MAX);93 ASSERT(timer != NULL);93 assert(id < TIMERS_MAX); 94 assert(timer != NULL); 94 95 95 96 if (id == DMTIMER1_1MS) … … 100 101 101 102 timer->regs = (void *) km_map(base_addr, size, PAGE_NOT_CACHEABLE); 102 ASSERT(timer->regs != NULL);103 assert(timer->regs != NULL); 103 104 104 105 timer->id = id; -
kernel/genarch/src/drivers/dsrln/dsrlnin.c
r7354b5e r63e27ef 35 35 */ 36 36 37 #include <assert.h> 37 38 #include <genarch/drivers/dsrln/dsrlnin.h> 38 39 #include <console/chardev.h> … … 75 76 void dsrlnin_wire(dsrlnin_instance_t *instance, indev_t *srlnin) 76 77 { 77 ASSERT(instance);78 ASSERT(srlnin);78 assert(instance); 79 assert(srlnin); 79 80 80 81 instance->srlnin = srlnin; -
kernel/genarch/src/drivers/ega/ega.c
r7354b5e r63e27ef 35 35 */ 36 36 37 #include <debug.h> 37 38 #include <genarch/drivers/ega/ega.h> 38 39 #include <putchar.h> -
kernel/genarch/src/drivers/i8042/i8042.c
r7354b5e r63e27ef 38 38 */ 39 39 40 #include <assert.h> 40 41 #include <genarch/drivers/i8042/i8042.h> 41 42 #include <genarch/drivers/legacy/ia32/io.h> … … 124 125 void i8042_wire(i8042_instance_t *instance, indev_t *kbrdin) 125 126 { 126 ASSERT(instance);127 ASSERT(kbrdin);127 assert(instance); 128 assert(kbrdin); 128 129 129 130 i8042_clear_buffer(instance->i8042); -
kernel/genarch/src/drivers/ns16550/ns16550.c
r7354b5e r63e27ef 35 35 */ 36 36 37 #include <assert.h> 37 38 #include <genarch/drivers/ns16550/ns16550.h> 38 39 #include <ddi/irq.h> … … 157 158 void ns16550_wire(ns16550_instance_t *instance, indev_t *input) 158 159 { 159 ASSERT(instance);160 ASSERT(input);160 assert(instance); 161 assert(input); 161 162 162 163 instance->input = input; -
kernel/genarch/src/drivers/omap/uart.c
r7354b5e r63e27ef 35 35 */ 36 36 37 #include <assert.h> 37 38 #include <genarch/drivers/omap/uart.h> 38 39 #include <ddi/device.h> … … 86 87 omap_uart_t *uart, inr_t interrupt, uintptr_t addr, size_t size) 87 88 { 88 ASSERT(uart);89 assert(uart); 89 90 uart->regs = (void *)km_map(addr, size, PAGE_NOT_CACHEABLE); 90 91 91 ASSERT(uart->regs);92 assert(uart->regs); 92 93 93 94 /* Soft reset the port */ … … 171 172 void omap_uart_input_wire(omap_uart_t *uart, indev_t *indev) 172 173 { 173 ASSERT(uart);174 assert(uart); 174 175 /* Set indev */ 175 176 uart->indev = indev; -
kernel/genarch/src/drivers/pl011/pl011.c
r7354b5e r63e27ef 35 35 */ 36 36 37 #include <assert.h> 37 38 #include <genarch/drivers/pl011/pl011.h> 38 39 #include <console/chardev.h> … … 98 99 bool pl011_uart_init(pl011_uart_t *uart, inr_t interrupt, uintptr_t addr) 99 100 { 100 ASSERT(uart);101 assert(uart); 101 102 uart->regs = (void*)km_map(addr, sizeof(pl011_uart_regs_t), 102 103 PAGE_NOT_CACHEABLE); 103 ASSERT(uart->regs);104 assert(uart->regs); 104 105 105 106 /* Disable UART */ … … 137 138 void pl011_uart_input_wire(pl011_uart_t *uart, indev_t *indev) 138 139 { 139 ASSERT(uart);140 ASSERT(indev);140 assert(uart); 141 assert(indev); 141 142 142 143 uart->indev = indev; -
kernel/genarch/src/drivers/s3c24xx/uart.c
r7354b5e r63e27ef 38 38 */ 39 39 40 #include <assert.h> 40 41 #include <genarch/drivers/s3c24xx/uart.h> 41 42 #include <console/chardev.h> … … 161 162 void s3c24xx_uart_input_wire(s3c24xx_uart_t *uart, indev_t *indev) 162 163 { 163 ASSERT(uart);164 ASSERT(indev);164 assert(uart); 165 assert(indev); 165 166 166 167 uart->indev = indev; -
kernel/genarch/src/drivers/via-cuda/cuda.c
r7354b5e r63e27ef 34 34 */ 35 35 36 #include <assert.h> 36 37 #include <genarch/drivers/via-cuda/cuda.h> 37 38 #include <console/chardev.h> … … 123 124 cuda_t *dev = instance->cuda; 124 125 125 ASSERT(instance);126 ASSERT(kbrdin);126 assert(instance); 127 assert(kbrdin); 127 128 128 129 instance->kbrdin = kbrdin; … … 341 342 cuda_t *dev = instance->cuda; 342 343 343 ASSERT(instance->xstate == cx_listen);344 assert(instance->xstate == cx_listen); 344 345 345 346 if (instance->snd_bytes == 0)
Note:
See TracChangeset
for help on using the changeset viewer.