From: James S. <jsi...@us...> - 2001-10-24 21:41:35
|
Update of /cvsroot/linux-mips/linux/arch/mips/cobalt In directory usw-pr-cvs1:/tmp/cvs-serv715 Modified Files: pci_ops.c Log Message: Fixed a Oops. The new pci code expects a IO and MEM PCI spcae. The Qube at present only supports IO space :-(. So I had to add in a dummy MEM space to prevent it from crashing. WARNING: The code is at present broken with the new pci stuff Index: pci_ops.c =================================================================== RCS file: /cvsroot/linux-mips/linux/arch/mips/cobalt/pci_ops.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- pci_ops.c 2001/10/24 16:32:36 1.3 +++ pci_ops.c 2001/10/24 21:41:32 1.4 @@ -56,6 +56,13 @@ IORESOURCE_IO }; +static struct resource pci_mem_resource = { + "pci memory space", + 0, + 0, + IORESOURCE_MEM +}; + extern struct pci_ops qube_pci_ops; /* @@ -68,7 +75,7 @@ * to limit the scan. */ struct pci_channel mips_pci_channels[] = { - { &qube_pci_ops, &pci_io_resource, NULL, 0, 0xFF }, + { &qube_pci_ops, &pci_io_resource, &pci_mem_resource, 0, 0xFF }, { NULL, NULL, NULL, NULL, NULL} }; |