|
|
|
@ -21,7 +21,6 @@ |
|
|
|
|
#include <linux/kernel.h> |
|
|
|
|
#include <linux/init.h> |
|
|
|
|
|
|
|
|
|
//#include <asm/pci_channel.h>
|
|
|
|
|
#include <bcmpci.h> |
|
|
|
|
|
|
|
|
|
static struct resource bcm_pci_io_resource = { |
|
|
|
@ -46,9 +45,18 @@ struct pci_controller bcm96348_controller = { |
|
|
|
|
.mem_resource = &bcm_pci_mem_resource, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
static void bcm96348_pci_init(void) |
|
|
|
|
static __init int bcm96348_pci_init(void) |
|
|
|
|
{ |
|
|
|
|
/* Avoid ISA compat ranges. */ |
|
|
|
|
PCIBIOS_MIN_IO = 0x00000000; |
|
|
|
|
PCIBIOS_MIN_MEM = 0x00000000; |
|
|
|
|
|
|
|
|
|
/* Set I/O resource limits. */ |
|
|
|
|
ioport_resource.end = 0x1fffffff; |
|
|
|
|
iomem_resource.end = 0xffffffff; |
|
|
|
|
|
|
|
|
|
register_pci_controller(&bcm96348_controller); |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
arch_initcall(bcm96348_pci_init); |
|
|
|
|
subsys_initcall(bcm96348_pci_init); |
|
|
|
|