Changeset cecb0789 in mainline for kernel/generic/include/ddi/irq.h
- Timestamp:
- 2009-02-21T17:27:59Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9688513
- Parents:
- 0cb9fa0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ddi/irq.h
r0cb9fa0 rcecb0789 37 37 38 38 typedef enum { 39 CMD_ MEM_READ_1 = 0,40 CMD_ MEM_READ_2,41 CMD_ MEM_READ_4,42 CMD_ MEM_READ_8,43 CMD_ MEM_WRITE_1,44 CMD_ MEM_WRITE_2,45 CMD_ MEM_WRITE_4,46 CMD_ MEM_WRITE_8,47 CMD_ PORT_READ_1,48 CMD_ PORT_WRITE_1,39 CMD_PIO_READ_8 = 1, 40 CMD_PIO_READ_16, 41 CMD_PIO_READ_32, 42 CMD_PIO_WRITE_8, 43 CMD_PIO_WRITE_16, 44 CMD_PIO_WRITE_32, 45 CMD_BTEST, 46 CMD_PREDICATE, 47 CMD_ACCEPT, 48 CMD_DECLINE, 49 49 CMD_LAST 50 50 } irq_cmd_type; … … 53 53 irq_cmd_type cmd; 54 54 void *addr; 55 unsigned long long value; 56 int dstarg; 55 unsigned long long value; 56 unsigned int srcarg; 57 unsigned int dstarg; 57 58 } irq_cmd_t; 58 59 … … 66 67 #include <arch/types.h> 67 68 #include <adt/list.h> 69 #include <adt/hash_table.h> 68 70 #include <synch/spinlock.h> 69 71 #include <proc/task.h> 72 #include <ipc/ipc.h> 70 73 71 74 typedef enum { … … 97 100 /** Method to be used for the notification. */ 98 101 unative_t method; 102 /** Arguments that will be sent if the IRQ is claimed. */ 103 unative_t scratch[IPC_CALL_LEN]; 99 104 /** Top-half pseudocode. */ 100 105 irq_code_t *code; … … 155 160 } irq_t; 156 161 162 SPINLOCK_EXTERN(irq_uspace_hash_table_lock); 163 extern hash_table_t irq_uspace_hash_table; 164 157 165 extern void irq_init(count_t, count_t); 158 166 extern void irq_initialize(irq_t *); 159 167 extern void irq_register(irq_t *); 160 168 extern irq_t *irq_dispatch_and_lock(inr_t); 161 extern irq_t *irq_find_and_lock(inr_t, devno_t);162 169 163 170 #endif
Note:
See TracChangeset
for help on using the changeset viewer.