diff options
author | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-15 14:11:45 -0400 |
commit | ee3e542fec6e69bc9fb668698889a37d93950ddf (patch) | |
tree | e74ee766a4764769ef1d3d45d266b4dea64101d3 /arch/arm/include/asm/mach | |
parent | fe2a801b50c0bb8039d627e5ae1fec249d10ff39 (diff) | |
parent | f1d6e17f540af37bb1891480143669ba7636c4cf (diff) |
Merge remote-tracking branch 'linus/master' into testing
Diffstat (limited to 'arch/arm/include/asm/mach')
-rw-r--r-- | arch/arm/include/asm/mach/arch.h | 10 | ||||
-rw-r--r-- | arch/arm/include/asm/mach/pci.h | 17 |
2 files changed, 19 insertions, 8 deletions
diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h index 308ad7d6f98b..441efc491b50 100644 --- a/arch/arm/include/asm/mach/arch.h +++ b/arch/arm/include/asm/mach/arch.h | |||
@@ -8,7 +8,10 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/types.h> | ||
12 | |||
11 | #ifndef __ASSEMBLY__ | 13 | #ifndef __ASSEMBLY__ |
14 | #include <linux/reboot.h> | ||
12 | 15 | ||
13 | struct tag; | 16 | struct tag; |
14 | struct meminfo; | 17 | struct meminfo; |
@@ -16,8 +19,10 @@ struct pt_regs; | |||
16 | struct smp_operations; | 19 | struct smp_operations; |
17 | #ifdef CONFIG_SMP | 20 | #ifdef CONFIG_SMP |
18 | #define smp_ops(ops) (&(ops)) | 21 | #define smp_ops(ops) (&(ops)) |
22 | #define smp_init_ops(ops) (&(ops)) | ||
19 | #else | 23 | #else |
20 | #define smp_ops(ops) (struct smp_operations *)NULL | 24 | #define smp_ops(ops) (struct smp_operations *)NULL |
25 | #define smp_init_ops(ops) (bool (*)(void))NULL | ||
21 | #endif | 26 | #endif |
22 | 27 | ||
23 | struct machine_desc { | 28 | struct machine_desc { |
@@ -39,8 +44,9 @@ struct machine_desc { | |||
39 | unsigned char reserve_lp0 :1; /* never has lp0 */ | 44 | unsigned char reserve_lp0 :1; /* never has lp0 */ |
40 | unsigned char reserve_lp1 :1; /* never has lp1 */ | 45 | unsigned char reserve_lp1 :1; /* never has lp1 */ |
41 | unsigned char reserve_lp2 :1; /* never has lp2 */ | 46 | unsigned char reserve_lp2 :1; /* never has lp2 */ |
42 | char restart_mode; /* default restart mode */ | 47 | enum reboot_mode reboot_mode; /* default restart mode */ |
43 | struct smp_operations *smp; /* SMP operations */ | 48 | struct smp_operations *smp; /* SMP operations */ |
49 | bool (*smp_init)(void); | ||
44 | void (*fixup)(struct tag *, char **, | 50 | void (*fixup)(struct tag *, char **, |
45 | struct meminfo *); | 51 | struct meminfo *); |
46 | void (*reserve)(void);/* reserve mem blocks */ | 52 | void (*reserve)(void);/* reserve mem blocks */ |
@@ -53,7 +59,7 @@ struct machine_desc { | |||
53 | #ifdef CONFIG_MULTI_IRQ_HANDLER | 59 | #ifdef CONFIG_MULTI_IRQ_HANDLER |
54 | void (*handle_irq)(struct pt_regs *); | 60 | void (*handle_irq)(struct pt_regs *); |
55 | #endif | 61 | #endif |
56 | void (*restart)(char, const char *); | 62 | void (*restart)(enum reboot_mode, const char *); |
57 | }; | 63 | }; |
58 | 64 | ||
59 | /* | 65 | /* |
diff --git a/arch/arm/include/asm/mach/pci.h b/arch/arm/include/asm/mach/pci.h index 7d2c3c843801..a1c90d7feb0e 100644 --- a/arch/arm/include/asm/mach/pci.h +++ b/arch/arm/include/asm/mach/pci.h | |||
@@ -16,6 +16,7 @@ | |||
16 | struct pci_sys_data; | 16 | struct pci_sys_data; |
17 | struct pci_ops; | 17 | struct pci_ops; |
18 | struct pci_bus; | 18 | struct pci_bus; |
19 | struct device; | ||
19 | 20 | ||
20 | struct hw_pci { | 21 | struct hw_pci { |
21 | #ifdef CONFIG_PCI_DOMAINS | 22 | #ifdef CONFIG_PCI_DOMAINS |
@@ -68,7 +69,16 @@ struct pci_sys_data { | |||
68 | /* | 69 | /* |
69 | * Call this with your hw_pci struct to initialise the PCI system. | 70 | * Call this with your hw_pci struct to initialise the PCI system. |
70 | */ | 71 | */ |
71 | void pci_common_init(struct hw_pci *); | 72 | void pci_common_init_dev(struct device *, struct hw_pci *); |
73 | |||
74 | /* | ||
75 | * Compatibility wrapper for older platforms that do not care about | ||
76 | * passing the parent device. | ||
77 | */ | ||
78 | static inline void pci_common_init(struct hw_pci *hw) | ||
79 | { | ||
80 | pci_common_init_dev(NULL, hw); | ||
81 | } | ||
72 | 82 | ||
73 | /* | 83 | /* |
74 | * Setup early fixed I/O mapping. | 84 | * Setup early fixed I/O mapping. |
@@ -96,9 +106,4 @@ extern struct pci_ops via82c505_ops; | |||
96 | extern int via82c505_setup(int nr, struct pci_sys_data *); | 106 | extern int via82c505_setup(int nr, struct pci_sys_data *); |
97 | extern void via82c505_init(void *sysdata); | 107 | extern void via82c505_init(void *sysdata); |
98 | 108 | ||
99 | extern struct pci_ops pci_v3_ops; | ||
100 | extern int pci_v3_setup(int nr, struct pci_sys_data *); | ||
101 | extern void pci_v3_preinit(void); | ||
102 | extern void pci_v3_postinit(void); | ||
103 | |||
104 | #endif /* __ASM_MACH_PCI_H */ | 109 | #endif /* __ASM_MACH_PCI_H */ |