Changeset 24abb85d in mainline for uspace/lib/c/generic
- 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/lib/c/generic
- Files:
-
- 3 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
Note:
See TracChangeset
for help on using the changeset viewer.