patch-2.1.110 linux/arch/arm/kernel/dec21285.c

Next file: linux/arch/arm/kernel/dma-a5k.c
Previous file: linux/arch/arm/kernel/calls.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/arch/arm/kernel/dec21285.c linux/arch/arm/kernel/dec21285.c
@@ -109,6 +109,7 @@
 {
 	struct pci_dev *dev;
 	unsigned char pin;
+	unsigned int cmd;
 
 	for (dev = pci_devices; dev; dev = dev->next) {
 		pcibios_read_config_byte(dev->bus->number,
@@ -127,6 +128,10 @@
 			dev->bus->number, dev->devfn,
 			dev->vendor, dev->device,
 			pin, dev->irq);
+
+		/* Turn on bus mastering - boot loader doesn't - perhaps it should! */
+		pcibios_read_config_byte(dev->bus->number, dev->devfn, PCI_COMMAND, &cmd);
+		pcibios_write_config_byte(dev->bus->number, dev->devfn, PCI_COMMAND, cmd | PCI_COMMAND_MASTER);
 	}
 }
 
@@ -136,6 +141,10 @@
 
 	rev = *(unsigned char *)0xfe000008;
 	printk("DEC21285 PCI revision %02X\n", rev);
+}
+
+__initfunc(void pcibios_fixup_bus(struct pci_bus *bus))
+{
 }
 
 __initfunc(char *pcibios_setup(char *str))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov