Changeset 9359aae in mainline
- Timestamp:
- 2013-12-31T03:49:00Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0c322fa
- Parents:
- 7f80313
- Location:
- uspace/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ddi.c
r7f80313 r9359aae 280 280 * 281 281 */ 282 int irq_register(int inr, int devno, int method, irq_code_t *ucode)282 int irq_register(int inr, int devno, int method, const irq_code_t *ucode) 283 283 { 284 284 return __SYSCALL4(SYS_IRQ_REGISTER, inr, devno, method, -
uspace/lib/c/include/ddi.h
r7f80313 r9359aae 130 130 } 131 131 132 extern int irq_register(int, int, int, irq_code_t *);132 extern int irq_register(int, int, int, const irq_code_t *); 133 133 extern int irq_unregister(int, int); 134 134 -
uspace/lib/drv/generic/interrupt.c
r7f80313 r9359aae 39 39 #include <errno.h> 40 40 #include <sys/types.h> 41 #include <macros.h> 41 42 42 43 #include "ddf/interrupt.h" … … 55 56 static interrupt_context_t *find_interrupt_context( 56 57 interrupt_context_list_t *list, ddf_dev_t *dev, int irq); 57 int register_interrupt_handler(ddf_dev_t *dev, int irq,58 interrupt_handler_t *handler, irq_code_t *pseudocode);59 int unregister_interrupt_handler(ddf_dev_t *dev, int irq);60 58 61 59 /** Interrupts */ … … 68 66 }; 69 67 70 static irq_code_t default_pseudocode = {68 static const irq_code_t default_pseudocode = { 71 69 0, 72 70 NULL, 73 sizeof(default_cmds) / sizeof(irq_cmd_t),71 ARRAY_SIZE(default_cmds), 74 72 default_cmds 75 73 }; … … 169 167 170 168 int register_interrupt_handler(ddf_dev_t *dev, int irq, 171 interrupt_handler_t *handler, irq_code_t *pseudocode)169 interrupt_handler_t *handler, const irq_code_t *pseudocode) 172 170 { 173 171 interrupt_context_t *ctx = create_interrupt_context(); -
uspace/lib/drv/include/ddf/interrupt.h
r7f80313 r9359aae 67 67 extern void interrupt_init(void); 68 68 extern int register_interrupt_handler(ddf_dev_t *, int, interrupt_handler_t *, 69 irq_code_t *);69 const irq_code_t *); 70 70 extern int unregister_interrupt_handler(ddf_dev_t *, int); 71 71
Note:
See TracChangeset
for help on using the changeset viewer.