Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sys-manager-core.c
Go to the documentation of this file.
1 /*
2  * PS3 System Manager core.
3  *
4  * Copyright (C) 2007 Sony Computer Entertainment Inc.
5  * Copyright 2007 Sony Corp.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; version 2 of the License.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 #include <linux/kernel.h>
22 #include <linux/export.h>
23 #include <asm/lv1call.h>
24 #include <asm/ps3.h>
25 
32 
43 {
44  BUG_ON(!ops);
45  BUG_ON(!ops->dev);
47 }
49 
51 {
54 
56 }
57 
59 {
62 
64 }
65 
67 {
68  pr_emerg("System Halted, OK to turn off power\n");
70  while (1)
71  lv1_pause(1);
72 }
73