207 |
pci_data->cur_device = device; |
pci_data->cur_device = device; |
208 |
pci_data->cur_func = function; |
pci_data->cur_func = function; |
209 |
pci_data->cur_reg = reg; |
pci_data->cur_reg = reg; |
210 |
|
debug("bus_pci_setaddr( bus %d device 0x%x func 0x%x reg 0x%x )\n", bus, device, function, reg ); |
211 |
} |
} |
212 |
|
|
213 |
|
|
385 |
d->cur_pci_membase += 0x10000; |
d->cur_pci_membase += 0x10000; |
386 |
} |
} |
387 |
|
|
388 |
|
debug("bus_pci_init( pci_actual_io_offset %x pci_actual_mem_offset 0x%x pci_portbase 0x%x pci_membase 0x%x isa_portbase %x isa_membase %x )\n", pci_actual_io_offset, pci_actual_mem_offset, pci_portbase, pci_membase, isa_portbase, isa_membase ); |
389 |
|
|
390 |
return d; |
return d; |
391 |
} |
} |
392 |
|
|
910 |
|
|
911 |
PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE, |
PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE, |
912 |
PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00); /* Revision? */ |
PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00); /* Revision? */ |
913 |
|
|
914 |
|
PCI_SET_DATA(PCI_BHLC_REG, |
915 |
|
PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0)); |
916 |
|
} |
917 |
|
|
918 |
|
/* |
919 |
|
* Sandpoint host bridge |
920 |
|
*/ |
921 |
|
|
922 |
|
#define PCI_VENDOR_MOT 0x1057 |
923 |
|
#define PCI_DEVICE_ID_MOTOROLA_MPC106 0x0002 |
924 |
|
#define PCI_DEVICE_ID_MOTOROLA_MPC107 0x0004 |
925 |
|
|
926 |
|
PCIINIT(mpc10x_host_bridge) |
927 |
|
{ |
928 |
|
debug("sandpoint mpx10x host bridge\n"); |
929 |
|
|
930 |
|
PCI_SET_DATA(PCI_ID_REG, PCI_ID_CODE(PCI_VENDOR_MOT, |
931 |
|
PCI_DEVICE_ID_MOTOROLA_MPC106)); |
932 |
|
|
933 |
|
PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE, |
934 |
|
PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00); /* Revision? */ |
935 |
|
|
936 |
PCI_SET_DATA(PCI_BHLC_REG, |
PCI_SET_DATA(PCI_BHLC_REG, |
937 |
PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0)); |
PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0)); |