Changeset ea28272 in mainline for kernel/generic/src/ddi/irq.c


Ignore:
Timestamp:
2010-12-30T13:43:27Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d770deb
Parents:
d70d80ed (diff), f418e51 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/irq.c

    rd70d80ed rea28272  
    106106 *
    107107 */
    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);
     108static size_t irq_ht_hash(sysarg_t *key);
     109static bool irq_ht_compare(sysarg_t *key, size_t keys, link_t *item);
    110110static void irq_ht_remove(link_t *item);
    111111
     
    123123 *
    124124 */
    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);
     125static size_t irq_lin_hash(sysarg_t *key);
     126static bool irq_lin_compare(sysarg_t *key, size_t keys, link_t *item);
    127127static void irq_lin_remove(link_t *item);
    128128
     
    136136static size_t buckets;
    137137
     138/** Last valid INR. */
     139inr_t last_inr = 0;
     140
    138141/** Initialize IRQ subsystem.
    139142 *
     
    145148{
    146149        buckets = chains;
     150        last_inr = inrs - 1;
     151
    147152        /*
    148153         * Be smart about the choice of the hash table operations.
     
    194199void irq_register(irq_t *irq)
    195200{
    196         unative_t key[] = {
    197                 (unative_t) irq->inr,
    198                 (unative_t) irq->devno
     201        sysarg_t key[] = {
     202                (sysarg_t) irq->inr,
     203                (sysarg_t) irq->devno
    199204        };
    200205       
     
    212217{
    213218        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 */
    217222        };
    218223       
     
    235240{
    236241        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 */
    240245        };
    241246       
     
    306311 *
    307312 */
    308 size_t irq_ht_hash(unative_t key[])
     313size_t irq_ht_hash(sysarg_t key[])
    309314{
    310315        inr_t inr = (inr_t) key[KEY_INR];
     
    333338 *
    334339 */
    335 bool irq_ht_compare(unative_t key[], size_t keys, link_t *item)
     340bool irq_ht_compare(sysarg_t key[], size_t keys, link_t *item)
    336341{
    337342        irq_t *irq = hash_table_get_instance(item, irq_t, link);
     
    381386 *
    382387 */
    383 size_t irq_lin_hash(unative_t key[])
     388size_t irq_lin_hash(sysarg_t key[])
    384389{
    385390        inr_t inr = (inr_t) key[KEY_INR];
     
    408413 *
    409414 */
    410 bool irq_lin_compare(unative_t key[], size_t keys, link_t *item)
     415bool irq_lin_compare(sysarg_t key[], size_t keys, link_t *item)
    411416{
    412417        irq_t *irq = list_get_instance(item, irq_t, link);
Note: See TracChangeset for help on using the changeset viewer.