Changeset 8d2760f in mainline for kernel/genarch/src/ofw/fhc.c


Ignore:
Timestamp:
2008-11-29T20:24:47Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
57e76cb
Parents:
dfd77382
Message:

Add additional members to the irq_t structure so that an interrupt-driven driver
does not need to know how to clear the level interrupt. The z8530 was modified
in this way and is much more generic. The ns16550 driver has also been modified,
but awaits testing. The sparc64 interrupt mapping and dispatch code is now using
the new info and calls the clear-interrupt-routine itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/ofw/fhc.c

    rdfd77382 r8d2760f  
    110110}
    111111
    112 bool ofw_fhc_map_interrupt(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *inr)
     112bool
     113ofw_fhc_map_interrupt(ofw_tree_node_t *node, ofw_fhc_reg_t *reg,
     114    uint32_t interrupt, int *inr, cir_t *cir, void **cir_arg)
    113115{
    114116        fhc_t *fhc = NULL;
     
    127129       
    128130        *inr = interrupt;
     131        *cir = fhc_clear_interrupt;
     132        *cir_arg = fhc;
    129133        return true;
    130134}
Note: See TracChangeset for help on using the changeset viewer.