Changeset 346
- Timestamp:
- Apr 18, 2008, 6:32:11 AM (17 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/drv32/rmhelp.cpp
r65 r346 156 156 157 157 Resource.ResourceType = RS_TYPE_IRQ; 158 Resource.IRQResource.IRQLevel = (USHORT)ulIrq ;158 Resource.IRQResource.IRQLevel = (USHORT)ulIrq & 0xff; 159 159 Resource.IRQResource.IRQFlags = ( fShared ) ? RS_IRQ_SHARED : RS_IRQ_EXCLUSIVE; 160 Resource.IRQResource.PCIIrqPin = RS_PCI_INT_NONE;160 Resource.IRQResource.PCIIrqPin = (USHORT)( (ulIrq >> 8) & 0xf); 161 161 162 162 rc = RMAllocResource(DriverHandle, // Handle to driver. -
GPL/trunk/lib32/irq.c
r84 r346 1 /* $Id: irq.c,v 1.1.1.1 2003/07/02 13:57:02 eleph Exp $ */2 1 /* 3 2 * OS/2 implementation of Linux irq kernel services … … 70 69 unsigned long x0, const char *x1, void *x2) 71 70 { 72 IRQ_SLOT *pSlot = FindSlot(irq );71 IRQ_SLOT *pSlot = FindSlot(irq & 0xff); 73 72 unsigned u, uSlotNo = (unsigned)-1; 74 73 if( !pSlot ) … … 96 95 if( pSlot->irqHandlers[u].handler == NULL ) 97 96 { 98 pSlot->irqNo = irq ;97 pSlot->irqNo = irq & 0xff; 99 98 pSlot->irqHandlers[u].handler = handler; 100 99 pSlot->irqHandlers[u].x0 = x0; … … 103 102 104 103 if( pSlot->flHandlers != 0 || 105 ALSA_SetIrq( irq, uSlotNo, (x0 & SA_SHIRQ) != 0) )104 ALSA_SetIrq( irq & 0xff, uSlotNo, (x0 & SA_SHIRQ) != 0) ) 106 105 { 107 106 pSlot->flHandlers |= 1 << u; … … 114 113 } 115 114 116 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 )); 117 116 return 1; 118 117 } … … 163 162 if( pSlot ) pSlot->fEOI = 1; 164 163 */ 165 eoiIrq[irq ]++;164 eoiIrq[irq & 0xff]++; 166 165 } 167 166
Note:
See TracChangeset
for help on using the changeset viewer.