aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/rtas.c27
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 @@
38struct rtas_t rtas = { 38struct rtas_t rtas = {
39 .lock = SPIN_LOCK_UNLOCKED 39 .lock = SPIN_LOCK_UNLOCKED
40}; 40};
41EXPORT_SYMBOL(rtas);
41 42
42struct rtas_suspend_me_data { 43struct rtas_suspend_me_data {
43 long waiting; 44 long waiting;
44 struct rtas_args *args; 45 struct rtas_args *args;
45}; 46};
46 47
47EXPORT_SYMBOL(rtas);
48
49DEFINE_SPINLOCK(rtas_data_buf_lock); 48DEFINE_SPINLOCK(rtas_data_buf_lock);
49EXPORT_SYMBOL(rtas_data_buf_lock);
50
50char rtas_data_buf[RTAS_DATA_BUF_SIZE] __cacheline_aligned; 51char rtas_data_buf[RTAS_DATA_BUF_SIZE] __cacheline_aligned;
52EXPORT_SYMBOL(rtas_data_buf);
53
51unsigned long rtas_rmo_buf; 54unsigned 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}
242EXPORT_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}
376EXPORT_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}
396EXPORT_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. */
393unsigned int rtas_busy_delay(int status) 399unsigned 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}
410EXPORT_SYMBOL(rtas_busy_delay);
404 411
405int rtas_error_rc(int rtas_rc) 412int 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}
456EXPORT_SYMBOL(rtas_get_power_level);
449 457
450int rtas_set_power_level(int powerdomain, int level, int *setlevel) 458int 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}
474EXPORT_SYMBOL(rtas_set_power_level);
466 475
467int rtas_get_sensor(int sensor, int index, int *state) 476int 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}
492EXPORT_SYMBOL(rtas_get_sensor);
483 493
484int rtas_set_indicator(int indicator, int index, int new_value) 494int 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}
510EXPORT_SYMBOL(rtas_set_indicator);
500 511
501void rtas_restart(char *cmd) 512void 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
795EXPORT_SYMBOL(rtas_token);
796EXPORT_SYMBOL(rtas_call);
797EXPORT_SYMBOL(rtas_data_buf);
798EXPORT_SYMBOL(rtas_data_buf_lock);
799EXPORT_SYMBOL(rtas_busy_delay_time);
800EXPORT_SYMBOL(rtas_busy_delay);
801EXPORT_SYMBOL(rtas_get_sensor);
802EXPORT_SYMBOL(rtas_get_power_level);
803EXPORT_SYMBOL(rtas_set_power_level);
804EXPORT_SYMBOL(rtas_set_indicator);