Changeset 352 for GPL/branches/uniaud32-2.0/lib32/irq.c
- Timestamp:
- Apr 21, 2008, 11:54:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/lib32/irq.c
r316 r352 69 69 unsigned long x0, const char *x1, void *x2) 70 70 { 71 IRQ_SLOT *pSlot = FindSlot(irq );71 IRQ_SLOT *pSlot = FindSlot(irq & 0xff); 72 72 unsigned u, uSlotNo = (unsigned)-1; 73 73 if( !pSlot ) … … 86 86 if( pSlot ) 87 87 { 88 if(RMRequestIRQ(/*hResMgr,*/ irq, (x0 & SA_SHIRQ) != 0) == FALSE) {88 if(RMRequestIRQ(/*hResMgr,*/ irq , (x0 & SA_SHIRQ) != 0) == FALSE) { 89 89 dprintf(("RMRequestIRQ failed for irq %d", irq)); 90 90 // return 0; … … 95 95 if( pSlot->irqHandlers[u].handler == NULL ) 96 96 { 97 pSlot->irqNo = irq ;97 pSlot->irqNo = irq & 0xff; 98 98 pSlot->irqHandlers[u].handler = handler; 99 99 pSlot->irqHandlers[u].x0 = x0; … … 102 102 103 103 if( pSlot->flHandlers != 0 || 104 ALSA_SetIrq( irq, uSlotNo, (x0 & SA_SHIRQ) != 0) )104 ALSA_SetIrq( irq & 0xff, uSlotNo, (x0 & SA_SHIRQ) != 0) ) 105 105 { 106 106 pSlot->flHandlers |= 1 << u; … … 113 113 } 114 114 115 dprintf(("request_irq: Unable to register irq handler for irq %d\n", irq ));115 dprintf(("request_irq: Unable to register irq handler for irq %d\n", irq & 0xff )); 116 116 return 1; 117 117 } … … 162 162 if( pSlot ) pSlot->fEOI = 1; 163 163 */ 164 eoiIrq[irq ]++;164 eoiIrq[irq & 0xff]++; 165 165 } 166 166
Note:
See TracChangeset
for help on using the changeset viewer.