Changeset c9b550b in mainline


Ignore:
Timestamp:
2009-02-20T21:00:14Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
90e3d6a
Parents:
9979acb
Message:

Let IRQ claim methods take irq_t * instead of the instance argument.

Location:
kernel
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/drivers/gxemul.c

    r9979acb rc9b550b  
    204204}
    205205
    206 static irq_ownership_t gxemul_claim(void *instance)
     206static irq_ownership_t gxemul_claim(irq_t *irq)
    207207{
    208208        return IRQ_ACCEPT;
     
    266266}
    267267
    268 static irq_ownership_t gxemul_timer_claim(void *instance)
     268static irq_ownership_t gxemul_timer_claim(irq_t *irq)
    269269{
    270270        return IRQ_ACCEPT;
  • kernel/arch/ia32/src/drivers/i8254.c

    r9979acb rc9b550b  
    6262static irq_t i8254_irq;
    6363
    64 static irq_ownership_t i8254_claim(void *instance)
     64static irq_ownership_t i8254_claim(irq_t *irq)
    6565{
    6666        return IRQ_ACCEPT;
  • kernel/arch/ia32/src/smp/apic.c

    r9979acb rc9b550b  
    133133}
    134134
    135 static irq_ownership_t l_apic_timer_claim(void *instance)
     135static irq_ownership_t l_apic_timer_claim(irq_t *irq)
    136136{
    137137        return IRQ_ACCEPT;
  • kernel/arch/ia64/src/drivers/it.c

    r9979acb rc9b550b  
    5757static irq_t it_irq;
    5858
    59 static irq_ownership_t it_claim(void *);
    60 static void it_interrupt(irq_t *irq);
     59static irq_ownership_t it_claim(irq_t *);
     60static void it_interrupt(irq_t *);
    6161
    6262/** Initialize Interval Timer. */
     
    105105 * @return Always IRQ_ACCEPT.
    106106 */
    107 irq_ownership_t it_claim(void *instance)
     107irq_ownership_t it_claim(irq_t *irq)
    108108{
    109109        return IRQ_ACCEPT;
  • kernel/arch/ia64/src/ski/ski.c

    r9979acb rc9b550b  
    187187 * @return Always IRQ_DECLINE.
    188188 */
    189 static irq_ownership_t ski_kbd_claim(void *instance)
     189static irq_ownership_t ski_kbd_claim(irq_t *irq)
    190190{
    191191        return IRQ_DECLINE;
  • kernel/arch/mips32/src/drivers/msim.c

    r9979acb rc9b550b  
    110110}
    111111
    112 static irq_ownership_t msim_claim(void *instance)
     112static irq_ownership_t msim_claim(irq_t *irq)
    113113{
    114114        return IRQ_ACCEPT;
  • kernel/arch/mips32/src/drivers/serial.c

    r9979acb rc9b550b  
    121121}
    122122
    123 static irq_ownership_t serial_claim(void *instance)
     123static irq_ownership_t serial_claim(irq_t *irq)
    124124{
    125125        return IRQ_ACCEPT;
  • kernel/arch/mips32/src/interrupt.c

    r9979acb rc9b550b  
    102102}
    103103
    104 static irq_ownership_t timer_claim(void *instance)
     104static irq_ownership_t timer_claim(irq_t *irq)
    105105{
    106106        return IRQ_ACCEPT;
  • kernel/arch/ppc32/src/drivers/cuda.c

    r9979acb rc9b550b  
    265265}
    266266
    267 static irq_ownership_t cuda_claim(void *instance)
     267static irq_ownership_t cuda_claim(irq_t *irq)
    268268{
    269269        return IRQ_ACCEPT;
  • kernel/arch/sparc64/src/drivers/sgcn.c

    r9979acb rc9b550b  
    311311 * The driver works in polled mode, so no interrupt should be handled by it.
    312312 */
    313 static irq_ownership_t sgcn_claim(void *instance)
     313static irq_ownership_t sgcn_claim(irq_t *irq)
    314314{
    315315        return IRQ_DECLINE;
  • kernel/genarch/include/kbd/ns16550.h

    r9979acb rc9b550b  
    7272extern void ns16550_grab(void);
    7373extern void ns16550_release(void);
    74 extern irq_ownership_t ns16550_claim(void *);
     74extern irq_ownership_t ns16550_claim(irq_t *);
    7575extern void ns16550_irq_handler(irq_t *);
    7676
  • kernel/genarch/include/kbd/z8530.h

    r9979acb rc9b550b  
    5050extern void z8530_interrupt(void);
    5151extern char z8530_key_read(chardev_t *);
    52 extern irq_ownership_t z8530_claim(void *);
     52extern irq_ownership_t z8530_claim(irq_t *);
    5353extern void z8530_irq_handler(irq_t *);
    5454
  • kernel/genarch/src/kbd/i8042.c

    r9979acb rc9b550b  
    127127}
    128128
    129 static irq_ownership_t i8042_claim(void *instance)
    130 {
    131         i8042_instance_t *i8042_instance = instance;
     129static irq_ownership_t i8042_claim(irq_t *irq)
     130{
     131        i8042_instance_t *i8042_instance = irq->instance;
    132132        i8042_t *dev = i8042_instance->i8042;
    133133        if (pio_read_8(&dev->status) & i8042_BUFFER_FULL_MASK)
  • kernel/genarch/src/kbd/ns16550.c

    r9979acb rc9b550b  
    157157}
    158158
    159 irq_ownership_t ns16550_claim(void *instance)
     159irq_ownership_t ns16550_claim(irq_t *irq)
    160160{
    161         ns16550_instance_t *ns16550_instance = instance;
     161        ns16550_instance_t *ns16550_instance = irq->instance;
    162162        ns16550_t *dev = ns16550_instance->ns16550;
    163163
  • kernel/genarch/src/kbd/z8530.c

    r9979acb rc9b550b  
    195195}
    196196
    197 irq_ownership_t z8530_claim(void *instance)
     197irq_ownership_t z8530_claim(irq_t *irq)
    198198{
    199199        return (z8530_read_a(&z8530, RR0) & RR0_RCA);
  • kernel/generic/include/ddi/irq.h

    r9979acb rc9b550b  
    140140        irq_trigger_t trigger;
    141141        /** Claim ownership of the IRQ. */
    142         irq_ownership_t (* claim)(void *);
     142        irq_ownership_t (* claim)(struct irq *);
    143143        /** Handler for this IRQ and device. */
    144144        irq_handler_t handler;
  • kernel/generic/src/console/console.c

    r9979acb rc9b550b  
    102102 * @return Always returns IRQ_DECLINE.
    103103 */
    104 static irq_ownership_t klog_claim(void *instance)
     104static irq_ownership_t klog_claim(irq_t *irq)
    105105{
    106106        return IRQ_DECLINE;
  • kernel/generic/src/console/kconsole.c

    r9979acb rc9b550b  
    104104 *
    105105 */
    106 static irq_ownership_t kconsole_claim(void *instance)
     106static irq_ownership_t kconsole_claim(irq_t *irq)
    107107{
    108108        return IRQ_DECLINE;
Note: See TracChangeset for help on using the changeset viewer.