diff options
Diffstat (limited to 'arch/parisc/kernel/firmware.c')
-rw-r--r-- | arch/parisc/kernel/firmware.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/parisc/kernel/firmware.c b/arch/parisc/kernel/firmware.c index 9158b707c0dd..39dc835bf89e 100644 --- a/arch/parisc/kernel/firmware.c +++ b/arch/parisc/kernel/firmware.c | |||
@@ -74,7 +74,7 @@ static DEFINE_SPINLOCK(pdc_lock); | |||
74 | static unsigned long pdc_result[32] __attribute__ ((aligned (8))); | 74 | static unsigned long pdc_result[32] __attribute__ ((aligned (8))); |
75 | static unsigned long pdc_result2[32] __attribute__ ((aligned (8))); | 75 | static unsigned long pdc_result2[32] __attribute__ ((aligned (8))); |
76 | 76 | ||
77 | #ifdef __LP64__ | 77 | #ifdef CONFIG_64BIT |
78 | #define WIDE_FIRMWARE 0x1 | 78 | #define WIDE_FIRMWARE 0x1 |
79 | #define NARROW_FIRMWARE 0x2 | 79 | #define NARROW_FIRMWARE 0x2 |
80 | 80 | ||
@@ -94,12 +94,12 @@ int parisc_narrow_firmware __read_mostly = 1; | |||
94 | * when running a 64-bit kernel on such boxes (e.g. C200 or C360). | 94 | * when running a 64-bit kernel on such boxes (e.g. C200 or C360). |
95 | */ | 95 | */ |
96 | 96 | ||
97 | #ifdef __LP64__ | 97 | #ifdef CONFIG_64BIT |
98 | long real64_call(unsigned long function, ...); | 98 | long real64_call(unsigned long function, ...); |
99 | #endif | 99 | #endif |
100 | long real32_call(unsigned long function, ...); | 100 | long real32_call(unsigned long function, ...); |
101 | 101 | ||
102 | #ifdef __LP64__ | 102 | #ifdef CONFIG_64BIT |
103 | # define MEM_PDC (unsigned long)(PAGE0->mem_pdc_hi) << 32 | PAGE0->mem_pdc | 103 | # define MEM_PDC (unsigned long)(PAGE0->mem_pdc_hi) << 32 | PAGE0->mem_pdc |
104 | # define mem_pdc_call(args...) unlikely(parisc_narrow_firmware) ? real32_call(MEM_PDC, args) : real64_call(MEM_PDC, args) | 104 | # define mem_pdc_call(args...) unlikely(parisc_narrow_firmware) ? real32_call(MEM_PDC, args) : real64_call(MEM_PDC, args) |
105 | #else | 105 | #else |
@@ -117,7 +117,7 @@ long real32_call(unsigned long function, ...); | |||
117 | */ | 117 | */ |
118 | static unsigned long f_extend(unsigned long address) | 118 | static unsigned long f_extend(unsigned long address) |
119 | { | 119 | { |
120 | #ifdef __LP64__ | 120 | #ifdef CONFIG_64BIT |
121 | if(unlikely(parisc_narrow_firmware)) { | 121 | if(unlikely(parisc_narrow_firmware)) { |
122 | if((address & 0xff000000) == 0xf0000000) | 122 | if((address & 0xff000000) == 0xf0000000) |
123 | return 0xf0f0f0f000000000UL | (u32)address; | 123 | return 0xf0f0f0f000000000UL | (u32)address; |
@@ -139,7 +139,7 @@ static unsigned long f_extend(unsigned long address) | |||
139 | */ | 139 | */ |
140 | static void convert_to_wide(unsigned long *addr) | 140 | static void convert_to_wide(unsigned long *addr) |
141 | { | 141 | { |
142 | #ifdef __LP64__ | 142 | #ifdef CONFIG_64BIT |
143 | int i; | 143 | int i; |
144 | unsigned int *p = (unsigned int *)addr; | 144 | unsigned int *p = (unsigned int *)addr; |
145 | 145 | ||
@@ -158,7 +158,7 @@ static void convert_to_wide(unsigned long *addr) | |||
158 | */ | 158 | */ |
159 | void __init set_firmware_width(void) | 159 | void __init set_firmware_width(void) |
160 | { | 160 | { |
161 | #ifdef __LP64__ | 161 | #ifdef CONFIG_64BIT |
162 | int retval; | 162 | int retval; |
163 | unsigned long flags; | 163 | unsigned long flags; |
164 | 164 | ||
@@ -238,7 +238,7 @@ int __init pdc_chassis_info(struct pdc_chassis_info *chassis_info, void *led_inf | |||
238 | * | 238 | * |
239 | * Must be correctly formatted or expect system crash | 239 | * Must be correctly formatted or expect system crash |
240 | */ | 240 | */ |
241 | #ifdef __LP64__ | 241 | #ifdef CONFIG_64BIT |
242 | int pdc_pat_chassis_send_log(unsigned long state, unsigned long data) | 242 | int pdc_pat_chassis_send_log(unsigned long state, unsigned long data) |
243 | { | 243 | { |
244 | int retval = 0; | 244 | int retval = 0; |
@@ -949,7 +949,7 @@ int pdc_tod_set(unsigned long sec, unsigned long usec) | |||
949 | } | 949 | } |
950 | EXPORT_SYMBOL(pdc_tod_set); | 950 | EXPORT_SYMBOL(pdc_tod_set); |
951 | 951 | ||
952 | #ifdef __LP64__ | 952 | #ifdef CONFIG_64BIT |
953 | int pdc_mem_mem_table(struct pdc_memory_table_raddr *r_addr, | 953 | int pdc_mem_mem_table(struct pdc_memory_table_raddr *r_addr, |
954 | struct pdc_memory_table *tbl, unsigned long entries) | 954 | struct pdc_memory_table *tbl, unsigned long entries) |
955 | { | 955 | { |
@@ -965,7 +965,7 @@ int pdc_mem_mem_table(struct pdc_memory_table_raddr *r_addr, | |||
965 | 965 | ||
966 | return retval; | 966 | return retval; |
967 | } | 967 | } |
968 | #endif /* __LP64__ */ | 968 | #endif /* CONFIG_64BIT */ |
969 | 969 | ||
970 | /* FIXME: Is this pdc used? I could not find type reference to ftc_bitmap | 970 | /* FIXME: Is this pdc used? I could not find type reference to ftc_bitmap |
971 | * so I guessed at unsigned long. Someone who knows what this does, can fix | 971 | * so I guessed at unsigned long. Someone who knows what this does, can fix |
@@ -1204,7 +1204,7 @@ int pdc_sti_call(unsigned long func, unsigned long flags, | |||
1204 | } | 1204 | } |
1205 | EXPORT_SYMBOL(pdc_sti_call); | 1205 | EXPORT_SYMBOL(pdc_sti_call); |
1206 | 1206 | ||
1207 | #ifdef __LP64__ | 1207 | #ifdef CONFIG_64BIT |
1208 | /** | 1208 | /** |
1209 | * pdc_pat_cell_get_number - Returns the cell number. | 1209 | * pdc_pat_cell_get_number - Returns the cell number. |
1210 | * @cell_info: The return buffer. | 1210 | * @cell_info: The return buffer. |
@@ -1387,7 +1387,7 @@ int pdc_pat_io_pci_cfg_write(unsigned long pci_addr, int pci_size, u32 val) | |||
1387 | 1387 | ||
1388 | return retval; | 1388 | return retval; |
1389 | } | 1389 | } |
1390 | #endif /* __LP64__ */ | 1390 | #endif /* CONFIG_64BIT */ |
1391 | 1391 | ||
1392 | 1392 | ||
1393 | /***************** 32-bit real-mode calls ***********/ | 1393 | /***************** 32-bit real-mode calls ***********/ |
@@ -1445,7 +1445,7 @@ long real32_call(unsigned long fn, ...) | |||
1445 | return real32_call_asm(&real_stack.sp, &real_stack.arg0, fn); | 1445 | return real32_call_asm(&real_stack.sp, &real_stack.arg0, fn); |
1446 | } | 1446 | } |
1447 | 1447 | ||
1448 | #ifdef __LP64__ | 1448 | #ifdef CONFIG_64BIT |
1449 | /***************** 64-bit real-mode calls ***********/ | 1449 | /***************** 64-bit real-mode calls ***********/ |
1450 | 1450 | ||
1451 | struct wide_stack { | 1451 | struct wide_stack { |
@@ -1496,5 +1496,5 @@ long real64_call(unsigned long fn, ...) | |||
1496 | return real64_call_asm(&real64_stack.sp, &real64_stack.arg0, fn); | 1496 | return real64_call_asm(&real64_stack.sp, &real64_stack.arg0, fn); |
1497 | } | 1497 | } |
1498 | 1498 | ||
1499 | #endif /* __LP64__ */ | 1499 | #endif /* CONFIG_64BIT */ |
1500 | 1500 | ||