diff options
Diffstat (limited to 'arch/powerpc/kernel/rtas.c')
-rw-r--r-- | arch/powerpc/kernel/rtas.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index 0f14c2e63a67..b6aed765966a 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c | |||
@@ -38,16 +38,19 @@ | |||
38 | struct rtas_t rtas = { | 38 | struct rtas_t rtas = { |
39 | .lock = SPIN_LOCK_UNLOCKED | 39 | .lock = SPIN_LOCK_UNLOCKED |
40 | }; | 40 | }; |
41 | EXPORT_SYMBOL(rtas); | ||
41 | 42 | ||
42 | struct rtas_suspend_me_data { | 43 | struct rtas_suspend_me_data { |
43 | long waiting; | 44 | long waiting; |
44 | struct rtas_args *args; | 45 | struct rtas_args *args; |
45 | }; | 46 | }; |
46 | 47 | ||
47 | EXPORT_SYMBOL(rtas); | ||
48 | |||
49 | DEFINE_SPINLOCK(rtas_data_buf_lock); | 48 | DEFINE_SPINLOCK(rtas_data_buf_lock); |
49 | EXPORT_SYMBOL(rtas_data_buf_lock); | ||
50 | |||
50 | char rtas_data_buf[RTAS_DATA_BUF_SIZE] __cacheline_aligned; | 51 | char rtas_data_buf[RTAS_DATA_BUF_SIZE] __cacheline_aligned; |
52 | EXPORT_SYMBOL(rtas_data_buf); | ||
53 | |||
51 | unsigned long rtas_rmo_buf; | 54 | unsigned long rtas_rmo_buf; |
52 | 55 | ||
53 | /* | 56 | /* |
@@ -236,6 +239,7 @@ int rtas_token(const char *service) | |||
236 | tokp = (int *) get_property(rtas.dev, service, NULL); | 239 | tokp = (int *) get_property(rtas.dev, service, NULL); |
237 | return tokp ? *tokp : RTAS_UNKNOWN_SERVICE; | 240 | return tokp ? *tokp : RTAS_UNKNOWN_SERVICE; |
238 | } | 241 | } |
242 | EXPORT_SYMBOL(rtas_token); | ||
239 | 243 | ||
240 | #ifdef CONFIG_RTAS_ERROR_LOGGING | 244 | #ifdef CONFIG_RTAS_ERROR_LOGGING |
241 | /* | 245 | /* |
@@ -369,6 +373,7 @@ int rtas_call(int token, int nargs, int nret, int *outputs, ...) | |||
369 | } | 373 | } |
370 | return ret; | 374 | return ret; |
371 | } | 375 | } |
376 | EXPORT_SYMBOL(rtas_call); | ||
372 | 377 | ||
373 | /* For RTAS_BUSY (-2), delay for 1 millisecond. For an extended busy status | 378 | /* For RTAS_BUSY (-2), delay for 1 millisecond. For an extended busy status |
374 | * code of 990n, perform the hinted delay of 10^n (last digit) milliseconds. | 379 | * code of 990n, perform the hinted delay of 10^n (last digit) milliseconds. |
@@ -388,6 +393,7 @@ unsigned int rtas_busy_delay_time(int status) | |||
388 | 393 | ||
389 | return ms; | 394 | return ms; |
390 | } | 395 | } |
396 | EXPORT_SYMBOL(rtas_busy_delay_time); | ||
391 | 397 | ||
392 | /* For an RTAS busy status code, perform the hinted delay. */ | 398 | /* For an RTAS busy status code, perform the hinted delay. */ |
393 | unsigned int rtas_busy_delay(int status) | 399 | unsigned int rtas_busy_delay(int status) |
@@ -401,6 +407,7 @@ unsigned int rtas_busy_delay(int status) | |||
401 | 407 | ||
402 | return ms; | 408 | return ms; |
403 | } | 409 | } |
410 | EXPORT_SYMBOL(rtas_busy_delay); | ||
404 | 411 | ||
405 | int rtas_error_rc(int rtas_rc) | 412 | int rtas_error_rc(int rtas_rc) |
406 | { | 413 | { |
@@ -446,6 +453,7 @@ int rtas_get_power_level(int powerdomain, int *level) | |||
446 | return rtas_error_rc(rc); | 453 | return rtas_error_rc(rc); |
447 | return rc; | 454 | return rc; |
448 | } | 455 | } |
456 | EXPORT_SYMBOL(rtas_get_power_level); | ||
449 | 457 | ||
450 | int rtas_set_power_level(int powerdomain, int level, int *setlevel) | 458 | int rtas_set_power_level(int powerdomain, int level, int *setlevel) |
451 | { | 459 | { |
@@ -463,6 +471,7 @@ int rtas_set_power_level(int powerdomain, int level, int *setlevel) | |||
463 | return rtas_error_rc(rc); | 471 | return rtas_error_rc(rc); |
464 | return rc; | 472 | return rc; |
465 | } | 473 | } |
474 | EXPORT_SYMBOL(rtas_set_power_level); | ||
466 | 475 | ||
467 | int rtas_get_sensor(int sensor, int index, int *state) | 476 | int rtas_get_sensor(int sensor, int index, int *state) |
468 | { | 477 | { |
@@ -480,6 +489,7 @@ int rtas_get_sensor(int sensor, int index, int *state) | |||
480 | return rtas_error_rc(rc); | 489 | return rtas_error_rc(rc); |
481 | return rc; | 490 | return rc; |
482 | } | 491 | } |
492 | EXPORT_SYMBOL(rtas_get_sensor); | ||
483 | 493 | ||
484 | int rtas_set_indicator(int indicator, int index, int new_value) | 494 | int rtas_set_indicator(int indicator, int index, int new_value) |
485 | { | 495 | { |
@@ -497,6 +507,7 @@ int rtas_set_indicator(int indicator, int index, int new_value) | |||
497 | return rtas_error_rc(rc); | 507 | return rtas_error_rc(rc); |
498 | return rc; | 508 | return rc; |
499 | } | 509 | } |
510 | EXPORT_SYMBOL(rtas_set_indicator); | ||
500 | 511 | ||
501 | void rtas_restart(char *cmd) | 512 | void rtas_restart(char *cmd) |
502 | { | 513 | { |
@@ -790,15 +801,3 @@ void __init rtas_initialize(void) | |||
790 | rtas_last_error_token = rtas_token("rtas-last-error"); | 801 | rtas_last_error_token = rtas_token("rtas-last-error"); |
791 | #endif | 802 | #endif |
792 | } | 803 | } |
793 | |||
794 | |||
795 | EXPORT_SYMBOL(rtas_token); | ||
796 | EXPORT_SYMBOL(rtas_call); | ||
797 | EXPORT_SYMBOL(rtas_data_buf); | ||
798 | EXPORT_SYMBOL(rtas_data_buf_lock); | ||
799 | EXPORT_SYMBOL(rtas_busy_delay_time); | ||
800 | EXPORT_SYMBOL(rtas_busy_delay); | ||
801 | EXPORT_SYMBOL(rtas_get_sensor); | ||
802 | EXPORT_SYMBOL(rtas_get_power_level); | ||
803 | EXPORT_SYMBOL(rtas_set_power_level); | ||
804 | EXPORT_SYMBOL(rtas_set_indicator); | ||