diff options
author | Paul Mackerras <paulus@samba.org> | 2005-09-05 23:17:54 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-09 08:11:38 -0400 |
commit | 1635317facea3094ddf34082cd86797efb1d9f7e (patch) | |
tree | 67d5a4d4c7af00ac4be4608092fec99a32683715 /arch/ppc64/kernel/pmac_feature.c | |
parent | b28d2582ce8aafe531d909bb9c4dcf29189e786e (diff) |
[PATCH] Separate pci bits out of struct device_node
This patch pulls the PCI-related junk out of struct device_node and
puts it in a separate structure, struct pci_dn. The device_node now
just has a void * pointer in it, which points to a struct pci_dn for
nodes that represent PCI devices. It could potentially be used in
future for device-specific data for other sorts of devices, such as
virtual I/O devices.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/pmac_feature.c')
-rw-r--r-- | arch/ppc64/kernel/pmac_feature.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/pmac_feature.c b/arch/ppc64/kernel/pmac_feature.c index 98ed2bccab1..eb4e6c3f694 100644 --- a/arch/ppc64/kernel/pmac_feature.c +++ b/arch/ppc64/kernel/pmac_feature.c | |||
@@ -674,6 +674,7 @@ void __init pmac_check_ht_link(void) | |||
674 | #if 0 /* Disabled for now */ | 674 | #if 0 /* Disabled for now */ |
675 | u32 ufreq, freq, ucfg, cfg; | 675 | u32 ufreq, freq, ucfg, cfg; |
676 | struct device_node *pcix_node; | 676 | struct device_node *pcix_node; |
677 | struct pci_dn *pdn; | ||
677 | u8 px_bus, px_devfn; | 678 | u8 px_bus, px_devfn; |
678 | struct pci_controller *px_hose; | 679 | struct pci_controller *px_hose; |
679 | 680 | ||
@@ -687,9 +688,10 @@ void __init pmac_check_ht_link(void) | |||
687 | printk("No PCI-X bridge found\n"); | 688 | printk("No PCI-X bridge found\n"); |
688 | return; | 689 | return; |
689 | } | 690 | } |
690 | px_hose = pcix_node->phb; | 691 | pdn = pcix_node->data; |
691 | px_bus = pcix_node->busno; | 692 | px_hose = pdn->phb; |
692 | px_devfn = pcix_node->devfn; | 693 | px_bus = pdn->busno; |
694 | px_devfn = pdn->devfn; | ||
693 | 695 | ||
694 | early_read_config_dword(px_hose, px_bus, px_devfn, 0xc4, &cfg); | 696 | early_read_config_dword(px_hose, px_bus, px_devfn, 0xc4, &cfg); |
695 | early_read_config_dword(px_hose, px_bus, px_devfn, 0xcc, &freq); | 697 | early_read_config_dword(px_hose, px_bus, px_devfn, 0xcc, &freq); |