aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ps3
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2008-02-08 17:53:01 -0500
committerPaul Mackerras <paulus@samba.org>2008-02-14 06:11:01 -0500
commit50dad90264096363a35e75d1b8a1c9efc2ee4114 (patch)
tree4dafa5dd65b887e6ff2657baa92ddb6009413421 /drivers/ps3
parent75ffe88d2b3e19ed02d299c9a4c89882bef3b4f7 (diff)
[POWERPC] PS3: Sys-manager code cleanup
General code cleanups for PS3 system-manager: o Move all MODULE_ macros to bottom. o Correct PS3_SM_WAKE_P_O_R value. o Enhance comment on wakeup source values. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/ps3')
-rw-r--r--drivers/ps3/ps3-sys-manager.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/ps3/ps3-sys-manager.c b/drivers/ps3/ps3-sys-manager.c
index 808853a7e9c5..0502e9e7d0b4 100644
--- a/drivers/ps3/ps3-sys-manager.c
+++ b/drivers/ps3/ps3-sys-manager.c
@@ -28,10 +28,6 @@
28 28
29#include "vuart.h" 29#include "vuart.h"
30 30
31MODULE_AUTHOR("Sony Corporation");
32MODULE_LICENSE("GPL v2");
33MODULE_DESCRIPTION("PS3 System Manager");
34
35/** 31/**
36 * ps3_sys_manager - PS3 system manager driver. 32 * ps3_sys_manager - PS3 system manager driver.
37 * 33 *
@@ -181,7 +177,9 @@ enum ps3_sys_manager_next_op {
181 * @PS3_SM_WAKE_P_O_R: Power on reset. 177 * @PS3_SM_WAKE_P_O_R: Power on reset.
182 * 178 *
183 * Additional wakeup sources when specifying PS3_SM_NEXT_OP_SYS_SHUTDOWN. 179 * Additional wakeup sources when specifying PS3_SM_NEXT_OP_SYS_SHUTDOWN.
184 * System will always wake from the PS3_SM_WAKE_DEFAULT sources. 180 * The system will always wake from the PS3_SM_WAKE_DEFAULT sources.
181 * Sources listed here are the only ones available to guests in the
182 * other-os lpar.
185 */ 183 */
186 184
187enum ps3_sys_manager_wake_source { 185enum ps3_sys_manager_wake_source {
@@ -189,7 +187,7 @@ enum ps3_sys_manager_wake_source {
189 PS3_SM_WAKE_DEFAULT = 0, 187 PS3_SM_WAKE_DEFAULT = 0,
190 PS3_SM_WAKE_RTC = 0x00000040, 188 PS3_SM_WAKE_RTC = 0x00000040,
191 PS3_SM_WAKE_RTC_ERROR = 0x00000080, 189 PS3_SM_WAKE_RTC_ERROR = 0x00000080,
192 PS3_SM_WAKE_P_O_R = 0x10000000, 190 PS3_SM_WAKE_P_O_R = 0x80000000,
193}; 191};
194 192
195/** 193/**
@@ -699,4 +697,7 @@ static int __init ps3_sys_manager_init(void)
699module_init(ps3_sys_manager_init); 697module_init(ps3_sys_manager_init);
700/* Module remove not supported. */ 698/* Module remove not supported. */
701 699
700MODULE_AUTHOR("Sony Corporation");
701MODULE_LICENSE("GPL v2");
702MODULE_DESCRIPTION("PS3 System Manager");
702MODULE_ALIAS(PS3_MODULE_ALIAS_SYSTEM_MANAGER); 703MODULE_ALIAS(PS3_MODULE_ALIAS_SYSTEM_MANAGER);