Changes in kernel/generic/src/ddi/irq.c [da1bafb:78ffb70] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/irq.c
rda1bafb r78ffb70 106 106 * 107 107 */ 108 static size_t irq_ht_hash( unative_t *key);109 static bool irq_ht_compare( unative_t *key, size_t keys, link_t *item);108 static size_t irq_ht_hash(sysarg_t *key); 109 static bool irq_ht_compare(sysarg_t *key, size_t keys, link_t *item); 110 110 static void irq_ht_remove(link_t *item); 111 111 … … 123 123 * 124 124 */ 125 static size_t irq_lin_hash( unative_t *key);126 static bool irq_lin_compare( unative_t *key, size_t keys, link_t *item);125 static size_t irq_lin_hash(sysarg_t *key); 126 static bool irq_lin_compare(sysarg_t *key, size_t keys, link_t *item); 127 127 static void irq_lin_remove(link_t *item); 128 128 … … 136 136 static size_t buckets; 137 137 138 /** Last valid INR. */ 139 inr_t last_inr = 0; 140 138 141 /** Initialize IRQ subsystem. 139 142 * … … 145 148 { 146 149 buckets = chains; 150 last_inr = inrs - 1; 151 147 152 /* 148 153 * Be smart about the choice of the hash table operations. … … 194 199 void irq_register(irq_t *irq) 195 200 { 196 unative_t key[] = {197 ( unative_t) irq->inr,198 ( unative_t) irq->devno201 sysarg_t key[] = { 202 (sysarg_t) irq->inr, 203 (sysarg_t) irq->devno 199 204 }; 200 205 … … 212 217 { 213 218 link_t *lnk; 214 unative_t key[] = {215 ( unative_t) inr,216 ( unative_t) -1 /* Search will use claim() instead of devno */219 sysarg_t key[] = { 220 (sysarg_t) inr, 221 (sysarg_t) -1 /* Search will use claim() instead of devno */ 217 222 }; 218 223 … … 235 240 { 236 241 link_t *lnk; 237 unative_t key[] = {238 ( unative_t) inr,239 ( unative_t) -1 /* Search will use claim() instead of devno */242 sysarg_t key[] = { 243 (sysarg_t) inr, 244 (sysarg_t) -1 /* Search will use claim() instead of devno */ 240 245 }; 241 246 … … 306 311 * 307 312 */ 308 size_t irq_ht_hash( unative_t key[])313 size_t irq_ht_hash(sysarg_t key[]) 309 314 { 310 315 inr_t inr = (inr_t) key[KEY_INR]; … … 333 338 * 334 339 */ 335 bool irq_ht_compare( unative_t key[], size_t keys, link_t *item)340 bool irq_ht_compare(sysarg_t key[], size_t keys, link_t *item) 336 341 { 337 342 irq_t *irq = hash_table_get_instance(item, irq_t, link); … … 381 386 * 382 387 */ 383 size_t irq_lin_hash( unative_t key[])388 size_t irq_lin_hash(sysarg_t key[]) 384 389 { 385 390 inr_t inr = (inr_t) key[KEY_INR]; … … 408 413 * 409 414 */ 410 bool irq_lin_compare( unative_t key[], size_t keys, link_t *item)415 bool irq_lin_compare(sysarg_t key[], size_t keys, link_t *item) 411 416 { 412 417 irq_t *irq = list_get_instance(item, irq_t, link);
Note:
See TracChangeset
for help on using the changeset viewer.