linux/drivers/ps3/sys-manager-core.c
<<
optiv3./spaalu v3./formlu v3.a optiv3 href="../linux+v3 <9/drivers/ps3/sys-manager-core.c">optiv3.img src="../.static/gfx/right.png" alt=">>">op./spaaluop.spaa class="lxr_search">optioptiv3.input typ hidden" nam navtarget" > ">optiv3.input typ text" nam search" id search">optiv3.butt1" typ submit">Searchoptiv3Prefsu v3./a>op./spaalutiv3 3./divlutiv3 3.form acn va="ajax+*" method="post" onsubmit="return false;">op.input typ hidden" nam ajax_lookup" id ajax_lookup" > ">otiv3 3./formluotiv3 3.div class="headingbott1m">u .div id file_contents"l
3 31./a>.spaa class="comment">/*./spaalu3 32./a>.spaa class="comment"> *v3PS3 System Manager core../spaalu3 33./a>.spaa class="comment"> *./spaalu3 34./a>.spaa class="comment"> *v3Copyright (C) 2007 Sony3Computer Entertainment Inc../spaalu3 35./a>.spaa class="comment"> *v3Copyright 2007 Sony3Corp../spaalu3 36./a>.spaa class="comment"> *./spaalu3 37./a>.spaa class="comment"> *v3This program is free software; you caa redistribute it and/or modify./spaalu3 38./a>.spaa class="comment"> *v3it under the terms of the GNU General Public License as published by./spaalu3 39./a>.spaa class="comment"> *v3the Free Software Foundan va; vers11"
2 of the License../spaalu3 .spaa class="comment"> *./spaalu3 11./a>.spaa class="comment"> *v3This program is distributed in the hope that3it will be useful,./spaalu3 12./a>.spaa class="comment"> *v3but WITHOUT ANY WARRANTY; without even the implied warranty of./spaalu3 13./a>.spaa class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the./spaalu3 14./a>.spaa class="comment"> *v3GNU General Public License for more details../spaalu3 15./a>.spaa class="comment"> *./spaalu3 16./a>.spaa class="comment"> *  You should have received a copy of the GNU General Public License./spaalu3 17./a>.spaa class="comment"> *v3along with this program; if not, write to3the Free Software./spaalu3 18./a>.spaa class="comment"> *v3Foundan va, Inc., 59 Temple Place, Suite 330, Bostva, MA  02111-1307  USA./spaalu3 19./a>.spaa class="comment"> */./spaalu3 2opta>u3 21./a>#include <linux/kernel.h./a>>u3 22./a>#include <linux/export.h./a>>u3 23./a>#include <asm/lv1call.h./a>>u3 24./a>#include <asm/ps3.h./a>>u3 25pta>u3 26./a>.spaa class="comment">/**./spaalu3 27./a>.spaa class="comment"> *vStaticly linked routines that3allow late binding of a loaded sys-manager./spaalu3 28./a>.spaa class="comment"> *vmodule../spaalu3 29./a>.spaa class="comment"> */./spaalu3 3opta>u3 31./a>static struct3.a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>3.a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>;u3 32pta>u3 33./a>.spaa class="comment">/**./spaalu3 34./a>.spaa class="comment"> *vps3_register_sys_manager_ops - Bind ps3_sys_manager_ops to3avmodule../spaalu3 35./a>.spaa class="comment"> *v@ops: struct3ps3_sys_manager_ops../spaalu3 36./a>.spaa class="comment"> *./spaalu3 37./a>.spaa class="comment"> *vTo be called from3ps3_sys_manager_probe() and3ps3_sys_manager_remove() to./spaalu3 38./a>.spaa class="comment"> *vregister call back ops for power control.v3Copies data to3the static./spaalu3 39./a>.spaa class="comment"> *vvariable3ps3_sys_manager_ops../spaalu3 4opta>.spaa class="comment"> */./spaalu3 41pta>u3 42pta>void3.a href="+code=ps3_sys_manager_register_ops" class="sref">ps3_sys_manager_register_opspta>(const struct3.a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>3*.a href="+code=ops" class="sref">ops./a>)u3 43./a>{u3 44./a>        .a href="+code=BUG_ON" class="sref">BUG_ONpta>(!.a href="+code=ops" class="sref">ops./a>);u3 45./a>        .a href="+code=BUG_ON" class="sref">BUG_ONpta>(!.a href="+code=ops" class="sref">ops./a>->.a href="+code=dev" class="sref">dev./a>);u3 46./a>        .a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>3= .a href="+code=ops" class="sref">ops./a> ?3*.a href="+code=ops" class="sref">ops./a> :3.a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>;u3 47./a>}u3 48./a>.a href="+code=EXPORT_SYMBOL_GPL" class="sref">EXPORT_SYMBOL_GPLpta>(.a href="+code=ps3_sys_manager_register_ops" class="sref">ps3_sys_manager_register_opspta>);u3 49pta>u3 50pta>void3.a href="+code=ps3_sys_manager_power_off" class="sref">ps3_sys_manager_power_offpta>(void)u3 51./a>{u3 52./a>        if (.a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>..a href="+code=power_off" class="sref">power_offpta>)u3 53./a>                .a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>..a href="+code=power_off" class="sref">power_offpta>(.a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>..a href="+code=dev" class="sref">dev./a>);u3 54pta>u3 55./a>        .a href="+code=ps3_sys_manager_halt" class="sref">ps3_sys_manager_haltpta>();u3 56./a>}u3 57pta>u3 58pta>void3.a href="+code=ps3_sys_manager_restart" class="sref">ps3_sys_manager_restartpta>(void)u3 59./a>{u3 60./a>        if (.a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>..a href="+code=restart" class="sref">restartpta>)u3 61./a>                .a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>..a href="+code=restart" class="sref">restartpta>(.a href="+code=ps3_sys_manager_ops" class="sref">ps3_sys_manager_ops./a>..a href="+code=dev" class="sref">dev./a>);u3 62pta>u3 63./a>        .a href="+code=ps3_sys_manager_halt" class="sref">ps3_sys_manager_haltpta>();u3 64./a>}u3 65pta>u3 66pta>void3.a href="+code=ps3_sys_manager_halt" class="sref">ps3_sys_manager_haltpta>(void)u3 67./a>{u3 68./a>        .a href="+code=pr_emerg" class="sref">pr_emergpta>(.spaa class="string">"System Halted, OK to3turn off power\n"./spaal);u3 69./a>        .a href="+code=local_irq_disable" class="sref">local_irq_disablepta>();u3 70./a>        while (1)u3 71./a>                .a href="+code=lv1_pause" class="sref">lv1_pausepta>(1);u3 72./a>}u3 73pta>u3 74./a>./pre>
The original LXR software by3the LXR community./a>, this experimental vers11"
by3lxr@linux.no./a>.
./divlu.div class="subfooter">
lxr.linux.no kindly hosted by Redpill Linpro AS./a>, provider of Linux consulting and3operan vas services since 1995.
./divlu
./bodylu./htmllu