⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pci.c

📁 linux-2.4.29操作系统的源码
💻 C
字号:
/* * This file is subject to the terms and conditions of the GNU General Public * License.  See the file "COPYING" in the main directory of this archive * for more details. * * SNI specific PCI support for RM200/RM300. * * Copyright (C) 1997 - 2000 Ralf Baechle */#include <linux/config.h>#include <linux/kernel.h>#include <linux/init.h>#include <linux/pci.h>#include <linux/types.h>#include <asm/byteorder.h>#include <asm/sni.h>#if 0/* To do:  Bring this uptodate ...  */static void pcimt_pcibios_fixup (void){	struct pci_dev *dev;	pci_for_each_dev(dev) {		/*		 * TODO: Take care of RM300 revision D boards for where the		 * network slot became an ordinary PCI slot.		 */		if (dev->devfn == PCI_DEVFN(1, 0)) {			/* Evil hack ...  */			set_c0_config(CONF_CM_CMASK, CONF_CM_CACHABLE_NO_WA);			dev->irq = PCIMT_IRQ_SCSI;			continue;		}		if (dev->devfn == PCI_DEVFN(2, 0)) {			dev->irq = PCIMT_IRQ_ETHERNET;			continue;		}		switch(dev->irq) {		case 1 ... 4:			dev->irq += PCIMT_IRQ_INTA - 1;			break;		case 0:			break;		default:			printk("PCI device on bus %d, dev %d, function %d "			       "impossible interrupt configured.\n",			       dev->bus->number, PCI_SLOT(dev->devfn),			       PCI_SLOT(dev->devfn));		}	}}#endifvoid __initpcibios_fixup_bus(struct pci_bus *b){}extern struct pci_ops sni_pci_ops;void __init pcibios_init(void){	struct pci_ops *ops = &sni_pci_ops;	pci_scan_bus(0, ops, NULL);}unsigned __init int pcibios_assign_all_busses(void){	return 0;}struct pci_fixup pcibios_fixups[] = {	{ 0 }};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -