Changeset 34 for GPL/trunk/lib32/irq.c


Ignore:
Timestamp:
Dec 11, 2005, 5:57:39 PM (20 years ago)
Author:
vladest
Message:

Latest update from ALSA. some intial > 15 interrupts support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/lib32/irq.c

    r33 r34  
    4747//******************************************************************************
    4848int request_irq(unsigned int irq,
    49                 void (*handler)(int, void *, struct pt_regs *),
     49                int (near *handler)(int, void *, struct pt_regs *),
    5050                unsigned long x0, const char *x1, void *x2)
    5151{
     
    5454    if(RMRequestIRQ(hResMgr, irq, (x0 & SA_SHIRQ) ? TRUE : FALSE) == FALSE) {
    5555        dprintf(("RMRequestIRQ failed for irq %d", irq));
    56         return NULL;
     56        return 0;
    5757    }
    5858
     
    109109void eoi_irq(unsigned int irq)
    110110{
    111     if(irq > 0xf) {
     111    if(irq > 0xff) {
    112112        DebugInt3();
    113113        return;
     
    119119BOOL oss_process_interrupt(int irq)
    120120{
    121  BOOL rc;
     121 int rc;
    122122 int  i;
    123123
     
    142142        {
    143143            fInInterrupt = TRUE;
    144             irqHandlers[irq][i].handler(irq, irqHandlers[irq][i].x2, 0);
    145             rc = (eoiIrq[irq] > 0);
     144            rc = irqHandlers[irq][i].handler(irq, irqHandlers[irq][i].x2, 0);
     145            //rc = (eoiIrq[irq] > 0);
    146146            fInInterrupt = FALSE;
    147             if(rc) {
     147            if(rc == 1) {
    148148                //ok, this interrupt was intended for us; notify the 16 bits MMPM/2 driver
    149149                OSS32_ProcessIRQ();
Note: See TracChangeset for help on using the changeset viewer.