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