diff options
author | Robert Richter <robert.richter@amd.com> | 2008-07-02 16:50:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 05:44:34 -0400 |
commit | 42a4b427a8d7bff95d9622ffa2365cb56da8e7d6 (patch) | |
tree | 71330aa3cc53b8b9243e4781b7c75bc9f7f2ec69 /arch/x86/pci | |
parent | 8eefc6640311bb56408fa0abe3f2930b3037f91a (diff) |
x86/pci: mp_bus_to_node merge: moving code in amd_bus.c
Signed-off-by: Robert Richter <robert.richter@amd.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/amd_bus.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/arch/x86/pci/amd_bus.c b/arch/x86/pci/amd_bus.c index d02c598451ec..465b3a6f1c12 100644 --- a/arch/x86/pci/amd_bus.c +++ b/arch/x86/pci/amd_bus.c | |||
@@ -14,27 +14,6 @@ | |||
14 | * also get peer root bus resource for io,mmio | 14 | * also get peer root bus resource for io,mmio |
15 | */ | 15 | */ |
16 | 16 | ||
17 | |||
18 | /* | ||
19 | * sub bus (transparent) will use entres from 3 to store extra from root, | ||
20 | * so need to make sure have enought slot there, increase PCI_BUS_NUM_RESOURCES? | ||
21 | */ | ||
22 | #define RES_NUM 16 | ||
23 | struct pci_root_info { | ||
24 | char name[12]; | ||
25 | unsigned int res_num; | ||
26 | struct resource res[RES_NUM]; | ||
27 | int bus_min; | ||
28 | int bus_max; | ||
29 | int node; | ||
30 | int link; | ||
31 | }; | ||
32 | |||
33 | /* 4 at this time, it may become to 32 */ | ||
34 | #define PCI_ROOT_NR 4 | ||
35 | static int pci_root_num; | ||
36 | static struct pci_root_info pci_root_info[PCI_ROOT_NR]; | ||
37 | |||
38 | #ifdef CONFIG_NUMA | 17 | #ifdef CONFIG_NUMA |
39 | 18 | ||
40 | #define BUS_NR 256 | 19 | #define BUS_NR 256 |
@@ -65,8 +44,29 @@ int get_mp_bus_to_node(int busnum) | |||
65 | 44 | ||
66 | return node; | 45 | return node; |
67 | } | 46 | } |
47 | |||
68 | #endif | 48 | #endif |
69 | 49 | ||
50 | /* | ||
51 | * sub bus (transparent) will use entres from 3 to store extra from root, | ||
52 | * so need to make sure have enought slot there, increase PCI_BUS_NUM_RESOURCES? | ||
53 | */ | ||
54 | #define RES_NUM 16 | ||
55 | struct pci_root_info { | ||
56 | char name[12]; | ||
57 | unsigned int res_num; | ||
58 | struct resource res[RES_NUM]; | ||
59 | int bus_min; | ||
60 | int bus_max; | ||
61 | int node; | ||
62 | int link; | ||
63 | }; | ||
64 | |||
65 | /* 4 at this time, it may become to 32 */ | ||
66 | #define PCI_ROOT_NR 4 | ||
67 | static int pci_root_num; | ||
68 | static struct pci_root_info pci_root_info[PCI_ROOT_NR]; | ||
69 | |||
70 | void set_pci_bus_resources_arch_default(struct pci_bus *b) | 70 | void set_pci_bus_resources_arch_default(struct pci_bus *b) |
71 | { | 71 | { |
72 | int i; | 72 | int i; |