Changeset 421 for GPL/branches/uniaud32-2.0/lib32/pci.c
- Timestamp:
- Mar 23, 2009, 9:13:00 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/lib32/pci.c
r410 r421 135 135 //****************************************************************************** 136 136 //****************************************************************************** 137 #ifdef ACPI 138 struct SaveIRQForSlot 139 { 140 ULONG ulSlotNo; 141 BYTE LowIRQ; 142 BYTE HighIRQ; 143 BYTE Pin; 144 }; 145 extern struct SaveIRQForSlot sISRHigh[]; 146 extern int SaveIRQCounter; 147 #endif 148 137 149 static int pci_query_device(unsigned int vendor, unsigned int device, 138 150 struct pci_dev near *pcidev, int idx) … … 230 242 // IRQ and PIN 231 243 pci_read_config_dword(pcidev, PCI_INTERRUPT_LINE, &temp); 244 sISRHigh[SaveIRQCounter].Pin = (temp >> 8) & 0xf; 232 245 #ifdef ACPI 233 246 temp2 = temp3 = 0; … … 242 255 { 243 256 // Check APIC IRQ, if we have /SMP /APIC, must be set 244 if (temp 3)245 temp = (temp & (~0xff)) | (temp 3& 0xff);257 if (temp1) 258 temp = (temp & (~0xff)) | (temp1 & 0xff); 246 259 // Check PIC IRQ 247 else if (temp 1)248 temp = (temp & (~0xff)) | (temp 1& 0xff);260 else if (temp3) 261 temp = (temp & (~0xff)) | (temp3 & 0xff); 249 262 dprintf(("pci_query_device: IRQs ACPI PIC%d APIC%d", temp1, temp3)); 263 sISRHigh[SaveIRQCounter].LowIRQ = temp1; 264 sISRHigh[SaveIRQCounter].HighIRQ = temp3; 250 265 } 251 266 #endif /* ACPI */
Note:
See TracChangeset
for help on using the changeset viewer.