diff options
Diffstat (limited to 'include/asm-ia64/sn/sn_sal.h')
-rw-r--r-- | include/asm-ia64/sn/sn_sal.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/asm-ia64/sn/sn_sal.h b/include/asm-ia64/sn/sn_sal.h index 2a8b0d92a5d6..e77f0c9b7d3d 100644 --- a/include/asm-ia64/sn/sn_sal.h +++ b/include/asm-ia64/sn/sn_sal.h | |||
@@ -75,7 +75,8 @@ | |||
75 | #define SN_SAL_IOIF_GET_HUBDEV_INFO 0x02000055 | 75 | #define SN_SAL_IOIF_GET_HUBDEV_INFO 0x02000055 |
76 | #define SN_SAL_IOIF_GET_PCIBUS_INFO 0x02000056 | 76 | #define SN_SAL_IOIF_GET_PCIBUS_INFO 0x02000056 |
77 | #define SN_SAL_IOIF_GET_PCIDEV_INFO 0x02000057 | 77 | #define SN_SAL_IOIF_GET_PCIDEV_INFO 0x02000057 |
78 | #define SN_SAL_IOIF_GET_WIDGET_DMAFLUSH_LIST 0x02000058 | 78 | #define SN_SAL_IOIF_GET_WIDGET_DMAFLUSH_LIST 0x02000058 // deprecated |
79 | #define SN_SAL_IOIF_GET_DEVICE_DMAFLUSH_LIST 0x0200005a | ||
79 | 80 | ||
80 | #define SN_SAL_HUB_ERROR_INTERRUPT 0x02000060 | 81 | #define SN_SAL_HUB_ERROR_INTERRUPT 0x02000060 |
81 | #define SN_SAL_BTE_RECOVER 0x02000061 | 82 | #define SN_SAL_BTE_RECOVER 0x02000061 |
@@ -272,7 +273,7 @@ ia64_sn_console_putc(char ch) | |||
272 | ret_stuff.v0 = 0; | 273 | ret_stuff.v0 = 0; |
273 | ret_stuff.v1 = 0; | 274 | ret_stuff.v1 = 0; |
274 | ret_stuff.v2 = 0; | 275 | ret_stuff.v2 = 0; |
275 | SAL_CALL_NOLOCK(ret_stuff, SN_SAL_CONSOLE_PUTC, (uint64_t)ch, 0, 0, 0, 0, 0, 0); | 276 | SAL_CALL_NOLOCK(ret_stuff, SN_SAL_CONSOLE_PUTC, (u64)ch, 0, 0, 0, 0, 0, 0); |
276 | 277 | ||
277 | return ret_stuff.status; | 278 | return ret_stuff.status; |
278 | } | 279 | } |
@@ -289,7 +290,7 @@ ia64_sn_console_putb(const char *buf, int len) | |||
289 | ret_stuff.v0 = 0; | 290 | ret_stuff.v0 = 0; |
290 | ret_stuff.v1 = 0; | 291 | ret_stuff.v1 = 0; |
291 | ret_stuff.v2 = 0; | 292 | ret_stuff.v2 = 0; |
292 | SAL_CALL_NOLOCK(ret_stuff, SN_SAL_CONSOLE_PUTB, (uint64_t)buf, (uint64_t)len, 0, 0, 0, 0, 0); | 293 | SAL_CALL_NOLOCK(ret_stuff, SN_SAL_CONSOLE_PUTB, (u64)buf, (u64)len, 0, 0, 0, 0, 0); |
293 | 294 | ||
294 | if ( ret_stuff.status == 0 ) { | 295 | if ( ret_stuff.status == 0 ) { |
295 | return ret_stuff.v0; | 296 | return ret_stuff.v0; |
@@ -309,7 +310,7 @@ ia64_sn_plat_specific_err_print(int (*hook)(const char*, ...), char *rec) | |||
309 | ret_stuff.v0 = 0; | 310 | ret_stuff.v0 = 0; |
310 | ret_stuff.v1 = 0; | 311 | ret_stuff.v1 = 0; |
311 | ret_stuff.v2 = 0; | 312 | ret_stuff.v2 = 0; |
312 | SAL_CALL_REENTRANT(ret_stuff, SN_SAL_PRINT_ERROR, (uint64_t)hook, (uint64_t)rec, 0, 0, 0, 0, 0); | 313 | SAL_CALL_REENTRANT(ret_stuff, SN_SAL_PRINT_ERROR, (u64)hook, (u64)rec, 0, 0, 0, 0, 0); |
313 | 314 | ||
314 | return ret_stuff.status; | 315 | return ret_stuff.status; |
315 | } | 316 | } |
@@ -397,7 +398,7 @@ ia64_sn_console_intr_status(void) | |||
397 | * Enable an interrupt on the SAL console device. | 398 | * Enable an interrupt on the SAL console device. |
398 | */ | 399 | */ |
399 | static inline void | 400 | static inline void |
400 | ia64_sn_console_intr_enable(uint64_t intr) | 401 | ia64_sn_console_intr_enable(u64 intr) |
401 | { | 402 | { |
402 | struct ia64_sal_retval ret_stuff; | 403 | struct ia64_sal_retval ret_stuff; |
403 | 404 | ||
@@ -414,7 +415,7 @@ ia64_sn_console_intr_enable(uint64_t intr) | |||
414 | * Disable an interrupt on the SAL console device. | 415 | * Disable an interrupt on the SAL console device. |
415 | */ | 416 | */ |
416 | static inline void | 417 | static inline void |
417 | ia64_sn_console_intr_disable(uint64_t intr) | 418 | ia64_sn_console_intr_disable(u64 intr) |
418 | { | 419 | { |
419 | struct ia64_sal_retval ret_stuff; | 420 | struct ia64_sal_retval ret_stuff; |
420 | 421 | ||
@@ -440,7 +441,7 @@ ia64_sn_console_xmit_chars(char *buf, int len) | |||
440 | ret_stuff.v1 = 0; | 441 | ret_stuff.v1 = 0; |
441 | ret_stuff.v2 = 0; | 442 | ret_stuff.v2 = 0; |
442 | SAL_CALL_NOLOCK(ret_stuff, SN_SAL_CONSOLE_XMIT_CHARS, | 443 | SAL_CALL_NOLOCK(ret_stuff, SN_SAL_CONSOLE_XMIT_CHARS, |
443 | (uint64_t)buf, (uint64_t)len, | 444 | (u64)buf, (u64)len, |
444 | 0, 0, 0, 0, 0); | 445 | 0, 0, 0, 0, 0); |
445 | 446 | ||
446 | if (ret_stuff.status == 0) { | 447 | if (ret_stuff.status == 0) { |
@@ -1100,7 +1101,7 @@ ia64_sn_bte_recovery(nasid_t nasid) | |||
1100 | struct ia64_sal_retval rv; | 1101 | struct ia64_sal_retval rv; |
1101 | 1102 | ||
1102 | rv.status = 0; | 1103 | rv.status = 0; |
1103 | SAL_CALL_NOLOCK(rv, SN_SAL_BTE_RECOVER, 0, 0, 0, 0, 0, 0, 0); | 1104 | SAL_CALL_NOLOCK(rv, SN_SAL_BTE_RECOVER, (u64)nasid, 0, 0, 0, 0, 0, 0); |
1104 | if (rv.status == SALRET_NOT_IMPLEMENTED) | 1105 | if (rv.status == SALRET_NOT_IMPLEMENTED) |
1105 | return 0; | 1106 | return 0; |
1106 | return (int) rv.status; | 1107 | return (int) rv.status; |