- Timestamp:
- 2017-08-18T23:27:08Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d76cfc
- Parents:
- e9d15d9
- Location:
- uspace
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
re9d15d9 r24abb85d 1022 1022 * 1023 1023 * @param inr IRQ number. 1024 * @param devno Device number of the device generating inr.1025 1024 * @param handler Notification handler. 1026 1025 * @param data Notification handler client data. … … 1031 1030 * 1032 1031 */ 1033 int async_irq_subscribe(int inr, int devno,1034 async_notification_handler_t handler,void *data, const irq_code_t *ucode)1032 int async_irq_subscribe(int inr, async_notification_handler_t handler, 1033 void *data, const irq_code_t *ucode) 1035 1034 { 1036 1035 notification_t *notification = … … 1052 1051 futex_up(&async_futex); 1053 1052 1054 return ipc_irq_subscribe(inr, devno,imethod, ucode);1053 return ipc_irq_subscribe(inr, imethod, ucode); 1055 1054 } 1056 1055 -
uspace/lib/c/generic/ddi.c
re9d15d9 r24abb85d 50 50 #include "private/libc.h" 51 51 52 53 /** Return unique device number.54 *55 * @return New unique device number.56 *57 */58 int device_assign_devno(void)59 {60 return __SYSCALL0(SYS_DEVICE_ASSIGN_DEVNO);61 }62 52 63 53 /** Map a piece of physical memory to task. -
uspace/lib/c/generic/irq.c
re9d15d9 r24abb85d 55 55 * 56 56 * @param inr IRQ number. 57 * @param devno Device number of the device generating inr.58 57 * @param method Use this method for notifying me. 59 58 * @param ucode Top-half pseudocode handler. … … 63 62 * 64 63 */ 65 int ipc_irq_subscribe(int inr, int devno, sysarg_t method, 66 const irq_code_t *ucode) 64 int ipc_irq_subscribe(int inr, sysarg_t method, const irq_code_t *ucode) 67 65 { 68 66 if (ucode == NULL) 69 67 ucode = &default_ucode; 70 68 71 return __SYSCALL4(SYS_IPC_IRQ_SUBSCRIBE, inr, devno, method, 72 (sysarg_t) ucode); 69 return __SYSCALL3(SYS_IPC_IRQ_SUBSCRIBE, inr, method, (sysarg_t) ucode); 73 70 } 74 71 -
uspace/lib/c/include/async.h
re9d15d9 r24abb85d 166 166 sysarg_t, async_port_handler_t, void *, port_id_t *); 167 167 168 extern int async_irq_subscribe(int, int,async_notification_handler_t, void *,168 extern int async_irq_subscribe(int, async_notification_handler_t, void *, 169 169 const irq_code_t *); 170 170 extern int async_irq_unsubscribe(int); -
uspace/lib/c/include/ipc/irq.h
re9d15d9 r24abb85d 39 39 #include <abi/ddi/irq.h> 40 40 41 extern int ipc_irq_subscribe(int, int,sysarg_t, const irq_code_t *);41 extern int ipc_irq_subscribe(int, sysarg_t, const irq_code_t *); 42 42 extern int ipc_irq_unsubscribe(int); 43 43 -
uspace/lib/drv/generic/interrupt.c
re9d15d9 r24abb85d 46 46 interrupt_handler_t *handler, const irq_code_t *irq_code) 47 47 { 48 return async_irq_subscribe(irq, dev->handle,49 (async_notification_handler_t) handler,dev, irq_code);48 return async_irq_subscribe(irq, (async_notification_handler_t) handler, 49 dev, irq_code); 50 50 } 51 51 -
uspace/srv/hid/input/port/msim.c
re9d15d9 r24abb85d 97 97 msim_ranges[0].base = paddr; 98 98 msim_cmds[0].addr = (void *) paddr; 99 async_irq_subscribe(inr, device_assign_devno(), msim_irq_handler, NULL, 100 &msim_kbd); 99 async_irq_subscribe(inr, msim_irq_handler, NULL, &msim_kbd); 101 100 102 101 return 0; -
uspace/srv/hid/s3c24xx_ts/s3c24xx_ts.c
re9d15d9 r24abb85d 137 137 (void *) ts->paddr, inr); 138 138 139 async_irq_subscribe(inr, device_assign_devno(), s3c24xx_ts_irq_handler, 140 NULL, &ts_irq_code); 139 async_irq_subscribe(inr, s3c24xx_ts_irq_handler, NULL, &ts_irq_code); 141 140 142 141 s3c24xx_ts_wait_for_int_mode(ts, updn_down); -
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
re9d15d9 r24abb85d 282 282 cuda_irq_code.ranges[0].base = (uintptr_t) instance->cuda_physical; 283 283 cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_physical)->ifr; 284 async_irq_subscribe(10, device_assign_devno(), cuda_irq_handler, NULL, 285 &cuda_irq_code); 284 async_irq_subscribe(10, cuda_irq_handler, NULL, &cuda_irq_code); 286 285 287 286 /* Enable SR interrupt. */ -
uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c
re9d15d9 r24abb85d 193 193 (void *) uart->paddr, inr); 194 194 195 async_irq_subscribe(inr, device_assign_devno(), s3c24xx_uart_irq_handler, 196 NULL, &uart_irq_code); 195 async_irq_subscribe(inr, s3c24xx_uart_irq_handler, NULL, &uart_irq_code); 197 196 198 197 /* Enable FIFO, Tx trigger level: empty, Rx trigger level: 1 byte. */
Note:
See TracChangeset
for help on using the changeset viewer.