Changeset f044e96 in mainline
- Timestamp:
- 2011-12-19T15:42:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 17b3cc6
- Parents:
- 1761268
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/syscall.h
r1761268 rf044e96 88 88 SYS_DMAMEM_UNMAP, 89 89 SYS_IOSPACE_ENABLE, 90 SYS_ REGISTER_IRQ,91 SYS_ UNREGISTER_IRQ,90 SYS_IRQ_REGISTER, 91 SYS_IRQ_UNREGISTER, 92 92 93 93 SYS_SYSINFO_GET_VAL_TYPE, -
kernel/generic/include/ipc/sysipc.h
r1761268 rf044e96 56 56 unsigned int); 57 57 extern sysarg_t sys_ipc_hangup(sysarg_t); 58 extern sysarg_t sys_ register_irq(inr_t, devno_t, sysarg_t, irq_code_t *);59 extern sysarg_t sys_ unregister_irq(inr_t, devno_t);58 extern sysarg_t sys_irq_register(inr_t, devno_t, sysarg_t, irq_code_t *); 59 extern sysarg_t sys_irq_unregister(inr_t, devno_t); 60 60 61 61 #ifdef __32_BITS__ -
kernel/generic/src/ipc/sysipc.c
r1761268 rf044e96 1185 1185 * 1186 1186 */ 1187 sysarg_t sys_ register_irq(inr_t inr, devno_t devno, sysarg_t imethod,1187 sysarg_t sys_irq_register(inr_t inr, devno_t devno, sysarg_t imethod, 1188 1188 irq_code_t *ucode) 1189 1189 { … … 1202 1202 * 1203 1203 */ 1204 sysarg_t sys_ unregister_irq(inr_t inr, devno_t devno)1204 sysarg_t sys_irq_unregister(inr_t inr, devno_t devno) 1205 1205 { 1206 1206 if (!(cap_get(TASK) & CAP_IRQ_REG)) -
kernel/generic/src/syscall/syscall.c
r1761268 rf044e96 179 179 (syshandler_t) sys_dmamem_unmap, 180 180 (syshandler_t) sys_iospace_enable, 181 (syshandler_t) sys_ register_irq,182 (syshandler_t) sys_ unregister_irq,181 (syshandler_t) sys_irq_register, 182 (syshandler_t) sys_irq_unregister, 183 183 184 184 /* Sysinfo syscalls. */ -
uspace/app/trace/syscalls.c
r1761268 rf044e96 72 72 [SYS_PHYSMEM_MAP] = { "physmem_map", 4, V_ERRNO }, 73 73 [SYS_IOSPACE_ENABLE] = { "iospace_enable", 1, V_ERRNO }, 74 [SYS_ REGISTER_IRQ] = { "register_irq", 4, V_ERRNO },75 [SYS_ UNREGISTER_IRQ] = { "unregister_irq", 2, V_ERRNO },74 [SYS_IRQ_REGISTER] = { "irq_register", 4, V_ERRNO }, 75 [SYS_IRQ_UNREGISTER] = { "irq_unregister", 2, V_ERRNO }, 76 76 77 77 [SYS_SYSINFO_GET_VAL_TYPE] = { "sysinfo_get_val_type", 2, V_INTEGER }, -
uspace/lib/c/generic/ddi.c
r1761268 rf044e96 176 176 * 177 177 */ 178 int register_irq(int inr, int devno, int method, irq_code_t *ucode)178 int irq_register(int inr, int devno, int method, irq_code_t *ucode) 179 179 { 180 return __SYSCALL4(SYS_ REGISTER_IRQ, inr, devno, method,180 return __SYSCALL4(SYS_IRQ_REGISTER, inr, devno, method, 181 181 (sysarg_t) ucode); 182 182 } … … 190 190 * 191 191 */ 192 int unregister_irq(int inr, int devno)192 int irq_unregister(int inr, int devno) 193 193 { 194 return __SYSCALL2(SYS_ UNREGISTER_IRQ, inr, devno);194 return __SYSCALL2(SYS_IRQ_UNREGISTER, inr, devno); 195 195 } 196 196 -
uspace/lib/c/include/ddi.h
r1761268 rf044e96 53 53 extern int pio_enable(void *, size_t, void **); 54 54 55 extern int register_irq(int, int, int, irq_code_t *);56 extern int unregister_irq(int, int);55 extern int irq_register(int, int, int, irq_code_t *); 56 extern int irq_unregister(int, int); 57 57 58 58 #endif -
uspace/lib/drv/generic/driver.c
r1761268 rf044e96 198 198 pseudocode = &default_pseudocode; 199 199 200 int res = register_irq(irq, dev->handle, ctx->id, pseudocode);200 int res = irq_register(irq, dev->handle, ctx->id, pseudocode); 201 201 if (res != EOK) { 202 202 remove_interrupt_context(&interrupt_contexts, ctx); … … 211 211 interrupt_context_t *ctx = find_interrupt_context(&interrupt_contexts, 212 212 dev, irq); 213 int res = unregister_irq(irq, dev->handle);213 int res = irq_unregister(irq, dev->handle); 214 214 215 215 if (ctx != NULL) { -
uspace/srv/hid/input/port/gxemul.c
r1761268 rf044e96 90 90 async_set_interrupt_received(gxemul_irq_handler); 91 91 gxemul_cmds[0].addr = (void *) addr; 92 register_irq(inr, device_assign_devno(), 0, &gxemul_kbd);92 irq_register(inr, device_assign_devno(), 0, &gxemul_kbd); 93 93 return 0; 94 94 } -
uspace/srv/hid/input/port/msim.c
r1761268 rf044e96 89 89 msim_cmds[0].addr = (void *) vaddr; 90 90 async_set_interrupt_received(msim_irq_handler); 91 register_irq(inr, device_assign_devno(), 0, &msim_kbd);91 irq_register(inr, device_assign_devno(), 0, &msim_kbd); 92 92 93 93 return 0; -
uspace/srv/hid/input/port/ns16550.c
r1761268 rf044e96 135 135 136 136 async_set_interrupt_received(ns16550_irq_handler); 137 register_irq(inr, device_assign_devno(), inr, &ns16550_kbd);137 irq_register(inr, device_assign_devno(), inr, &ns16550_kbd); 138 138 139 139 return pio_enable((void *) ns16550_physical, 8, &vaddr); -
uspace/srv/hid/input/port/pl050.c
r1761268 rf044e96 117 117 118 118 async_set_interrupt_received(pl050_irq_handler); 119 register_irq(inr, device_assign_devno(), 0, &pl050_kbd);119 irq_register(inr, device_assign_devno(), 0, &pl050_kbd); 120 120 121 121 return 0; -
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
r1761268 rf044e96 139 139 140 140 async_set_interrupt_received(s3c24xx_ts_irq_handler); 141 register_irq(inr, device_assign_devno(), 0, &ts_irq_code);141 irq_register(inr, device_assign_devno(), 0, &ts_irq_code); 142 142 143 143 s3c24xx_ts_wait_for_int_mode(ts, updn_down); -
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
r1761268 rf044e96 275 275 cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_kernel)->ifr; 276 276 async_set_interrupt_received(cuda_irq_handler); 277 register_irq(10, device_assign_devno(), 0, &cuda_irq_code);277 irq_register(10, device_assign_devno(), 0, &cuda_irq_code); 278 278 279 279 /* Enable SR interrupt. */ -
uspace/srv/hw/char/i8042/i8042.c
r1761268 rf044e96 197 197 i8042_kbd.cmds[0].addr = (void *) &((i8042_t *) i8042_kernel)->status; 198 198 i8042_kbd.cmds[3].addr = (void *) &((i8042_t *) i8042_kernel)->data; 199 register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd);200 register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd);199 irq_register(inr_a, device_assign_devno(), 0, &i8042_kbd); 200 irq_register(inr_b, device_assign_devno(), 0, &i8042_kbd); 201 201 printf("%s: registered for interrupts %" PRIun " and %" PRIun "\n", 202 202 NAME, inr_a, inr_b); -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
r1761268 rf044e96 194 194 async_set_interrupt_received(s3c24xx_uart_irq_handler); 195 195 196 register_irq(inr, device_assign_devno(), 0, &uart_irq_code);196 irq_register(inr, device_assign_devno(), 0, &uart_irq_code); 197 197 198 198 /* Enable FIFO, Tx trigger level: empty, Rx trigger level: 1 byte. */
Note:
See TracChangeset
for help on using the changeset viewer.