diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-09-22 22:05:02 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 01:48:48 -0400 |
commit | 4f89363b1187ca0cc36ee6aebe0bee550f74288d (patch) | |
tree | e0f7254fb81e1b75a92c1afaad9d8f18b6b4c466 /arch/powerpc/include/asm/opal.h | |
parent | 3a1a46612d4882462e8d06866df717e1707abbba (diff) |
powerpc/powernv: Fix endian issues in OPAL console and udbg backend
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/opal.h')
-rw-r--r-- | arch/powerpc/include/asm/opal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h index c5cd72833d6e..6622ea438f0e 100644 --- a/arch/powerpc/include/asm/opal.h +++ b/arch/powerpc/include/asm/opal.h | |||
@@ -537,12 +537,12 @@ typedef struct oppanel_line { | |||
537 | } oppanel_line_t; | 537 | } oppanel_line_t; |
538 | 538 | ||
539 | /* API functions */ | 539 | /* API functions */ |
540 | int64_t opal_console_write(int64_t term_number, int64_t *length, | 540 | int64_t opal_console_write(int64_t term_number, __be64 *length, |
541 | const uint8_t *buffer); | 541 | const uint8_t *buffer); |
542 | int64_t opal_console_read(int64_t term_number, int64_t *length, | 542 | int64_t opal_console_read(int64_t term_number, __be64 *length, |
543 | uint8_t *buffer); | 543 | uint8_t *buffer); |
544 | int64_t opal_console_write_buffer_space(int64_t term_number, | 544 | int64_t opal_console_write_buffer_space(int64_t term_number, |
545 | int64_t *length); | 545 | __be64 *length); |
546 | int64_t opal_rtc_read(uint32_t *year_month_day, | 546 | int64_t opal_rtc_read(uint32_t *year_month_day, |
547 | uint64_t *hour_minute_second_millisecond); | 547 | uint64_t *hour_minute_second_millisecond); |
548 | int64_t opal_rtc_write(uint32_t year_month_day, | 548 | int64_t opal_rtc_write(uint32_t year_month_day, |
@@ -552,7 +552,7 @@ int64_t opal_cec_reboot(void); | |||
552 | int64_t opal_read_nvram(uint64_t buffer, uint64_t size, uint64_t offset); | 552 | int64_t opal_read_nvram(uint64_t buffer, uint64_t size, uint64_t offset); |
553 | int64_t opal_write_nvram(uint64_t buffer, uint64_t size, uint64_t offset); | 553 | int64_t opal_write_nvram(uint64_t buffer, uint64_t size, uint64_t offset); |
554 | int64_t opal_handle_interrupt(uint64_t isn, uint64_t *outstanding_event_mask); | 554 | int64_t opal_handle_interrupt(uint64_t isn, uint64_t *outstanding_event_mask); |
555 | int64_t opal_poll_events(uint64_t *outstanding_event_mask); | 555 | int64_t opal_poll_events(__be64 *outstanding_event_mask); |
556 | int64_t opal_pci_set_hub_tce_memory(uint64_t hub_id, uint64_t tce_mem_addr, | 556 | int64_t opal_pci_set_hub_tce_memory(uint64_t hub_id, uint64_t tce_mem_addr, |
557 | uint64_t tce_mem_size); | 557 | uint64_t tce_mem_size); |
558 | int64_t opal_pci_set_phb_tce_memory(uint64_t phb_id, uint64_t tce_mem_addr, | 558 | int64_t opal_pci_set_phb_tce_memory(uint64_t phb_id, uint64_t tce_mem_addr, |