Changeset 7edfde9 in mainline
- Timestamp:
- 2015-05-13T02:22:50Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0683992
- Parents:
- 6d81e1e
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/ns8250/ns8250.c
r6d81e1e r7edfde9 175 175 bool removed; 176 176 } ns8250_t; 177 178 static irq_cmd_t ns8250_irq_cmds[] = {179 { .cmd = CMD_ACCEPT }180 };181 182 static irq_code_t ns8250_irq_code = {183 .rangecount = 0,184 .cmdcount = sizeof(ns8250_irq_cmds) / sizeof(irq_cmd_t),185 .cmds = ns8250_irq_cmds186 };187 177 188 178 /** Obtain soft-state structure from device node */ … … 793 783 } 794 784 795 796 797 785 /** Register the interrupt handler for the device. 798 786 * … … 802 790 { 803 791 return register_interrupt_handler(ns->dev, ns->irq, 804 ns8250_interrupt_handler, &ns8250_irq_code);792 ns8250_interrupt_handler, NULL); 805 793 } 806 794 -
uspace/lib/c/generic/irq.c
r6d81e1e r7edfde9 35 35 #include <ipc/irq.h> 36 36 #include <libc.h> 37 #include <stdlib.h> 38 #include <macros.h> 39 40 static irq_cmd_t default_cmds[] = { 41 { 42 .cmd = CMD_ACCEPT 43 } 44 }; 45 46 static const irq_code_t default_ucode = { 47 0, 48 NULL, 49 ARRAY_SIZE(default_cmds), 50 default_cmds 51 }; 37 52 38 53 /** Subscribe to IRQ notification. … … 49 64 const irq_code_t *ucode) 50 65 { 66 if (ucode == NULL) 67 ucode = &default_ucode; 68 51 69 return __SYSCALL4(SYS_IPC_IRQ_SUBSCRIBE, inr, devno, method, 52 70 (sysarg_t) ucode); -
uspace/lib/drv/generic/interrupt.c
r6d81e1e r7edfde9 44 44 #include "private/driver.h" 45 45 46 static irq_cmd_t default_cmds[] = {47 {48 .cmd = CMD_ACCEPT49 }50 };51 52 static const irq_code_t default_pseudocode = {53 0,54 NULL,55 ARRAY_SIZE(default_cmds),56 default_cmds57 };58 59 46 int register_interrupt_handler(ddf_dev_t *dev, int irq, 60 47 interrupt_handler_t *handler, const irq_code_t *pseudocode)
Note:
See TracChangeset
for help on using the changeset viewer.