Changeset 587 for GPL/trunk/lib32
- Timestamp:
- Jun 9, 2016, 10:38:13 PM (9 years ago)
- Location:
- GPL/trunk/lib32
- Files:
-
- 6 added
- 5 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/initcall.h
r455 r587 8 8 typedef void (*exitcall_t)(void); 9 9 10 extern "C"int use_internal_drums;10 extern int use_internal_drums; 11 11 12 12 #define __initcall(fn) \ … … 19 19 #define module_exit(x) __exitcall(x); 20 20 21 #define extern_module_init(x) extern "C"initcall_t __initcall_##x;22 #define extern_module_exit(x) extern "C"exitcall_t __exitcall_##x;21 #define extern_module_init(x) extern initcall_t __initcall_##x; 22 #define extern_module_exit(x) extern exitcall_t __exitcall_##x; 23 23 24 24 #define call_module_init(x) __initcall_##x() -
GPL/trunk/lib32/pci.c
r577 r587 31 31 #include <asm/hardirq.h> 32 32 #include <asm/io.h> 33 #include < sound/config.h>33 #include <config.h> 34 34 #include <sound/core.h> 35 35 #include <sound/asound.h> … … 55 55 #define PCI_CONFIG_DATA 0xCFC 56 56 57 #ifdef ACPI58 APIRET APIENTRY ACPIFindPCIDevice(ULONG Bus, ULONG Dev, ULONG Fun, ULONG *PicIRQ, ULONG *ApicIRQ, ULONG *Hdl, char *Component);59 #endif60 61 57 //****************************************************************************** 62 58 #define CONFIG_CMD(dev, where) \ … … 140 136 int resNo, addr; 141 137 u32 devNr, busNr, funcNr, detectedId, cfgaddrreg, ulPciAdr, ulTmp1, ulTmp2; 142 #ifdef ACPI143 APIRET rc;144 ULONG PicIRQ, ApicIRQ;145 #endif146 138 u8 headerType; 147 139 … … 239 231 pci_read_config_dword(pcidev, PCI_INTERRUPT_LINE, &ulTmp1); 240 232 rprintf(("pci_query_device: PCI config IRQ=%d", ulTmp1&0xff)); 241 #ifdef ACPI242 rc = ACPIFindPCIDevice( (ULONG)busNr, // Bus243 (ULONG)devNr, // Dev244 (ULONG)(pcidev->devfn >> 8) & 7, // Function245 &PicIRQ, // PIC IRQ246 &ApicIRQ, // APIC IRQ247 NULL, // ACPI handle to finding device248 "Uniaud32"); // Name for acpi log249 if (!rc) {250 if (PicIRQ) ulTmp1 = (ulTmp1 & (~0xff)) | (PicIRQ & 0xff); // Choose Pic interrupt for init time processing251 else if (ApicIRQ) ulTmp1 = (ulTmp1 & (~0xff)) | (ApicIRQ & 0xff);252 rprintf(("pci_query_device: IRQs ACPI PIC=%ld APIC=%ld chosen=%d", PicIRQ, ApicIRQ, ulTmp1&0xff));253 pcidev->picirq = PicIRQ; // Save the Pic and254 pcidev->apicirq = ApicIRQ; // Save the Apic interrupt for switching later255 }256 #endif /* ACPI */257 233 if( (u8)ulTmp1 && (u8)ulTmp1 != 0xff ) { 258 234 pcidev->irq_resource[0].flags = IORESOURCE_IRQ; … … 972 948 } 973 949 974 #ifdef ACPI975 void PciAdjustInterrupts() {976 int i;977 struct pci_dev *pcidev;978 struct pci_driver *driver;979 ULONG ulTmp1, rc;980 981 for (i=0; i<MAX_PCI_DEVICES; i++) {982 if (!pci_devices[i].devfn) continue;983 pcidev = &pci_devices[i];984 ulTmp1 = pcidev->irq;985 if (pcidev->apicirq) ulTmp1 = pcidev->apicirq;986 else if (pcidev->picirq) ulTmp1 = pcidev->picirq;987 rprintf(("PciAdjustInterrupts: IRQs ACPI PIC=%ld APIC=%ld was=%d chosen=%ld", pcidev->picirq, pcidev->apicirq, pcidev->irq, ulTmp1));988 if( (u8)ulTmp1 && ((u8)ulTmp1 != 0xff) && ((u8)ulTmp1 != pcidev->irq) ) {989 RMSetHandles(pcidev->hAdapter, pcidev->hDevice); /* DAZ - dirty hack */990 driver = pcidev->pcidriver;991 if(driver && driver->suspend) driver->suspend(pcidev, SNDRV_CTL_POWER_D0);992 993 pcidev->irq_resource[0].flags = IORESOURCE_IRQ;994 pcidev->irq_resource[0].start = pcidev->irq_resource[0].end = ulTmp1 & 0xffff;995 pcidev->irq = (u8)ulTmp1;996 997 fRewired = TRUE;998 // if(driver && driver->resume) driver->resume(pcidev);999 }1000 } /* for loop */1001 }1002 #endif -
GPL/trunk/lib32/soundmidi.c
r518 r587 30 30 #include <sound/minors.h> 31 31 #include <sound/asequencer.h> 32 #include <s ound/seqmid.h>32 #include <seqmid.h> 33 33 #include <sound/seq_kernel.h> 34 34 #include <linux/file.h>
Note:
See TracChangeset
for help on using the changeset viewer.