Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/reboot.h>
#include <linux/ctype.h>
#include <linux/fs.h>
#include <linux/gfp.h>
#include <linux/crash_dump.h>
#include <linux/debug_locks.h>
#include <asm/ipl.h>
#include <asm/smp.h>
#include <asm/setup.h>
#include <asm/cpcmd.h>
#include <asm/cio.h>
#include <asm/ebcdic.h>
#include <asm/reset.h>
#include <asm/sclp.h>
#include <asm/checksum.h>
#include <asm/debug.h>
#include <asm/os_info.h>
#include "entry.h"
Go to the source code of this file.
Data Structures | |
struct | shutdown_trigger |
struct | shutdown_action |
Macros | |
#define | IPL_PARM_BLOCK_VERSION 0 |
#define | IPL_UNKNOWN_STR "unknown" |
#define | IPL_CCW_STR "ccw" |
#define | IPL_FCP_STR "fcp" |
#define | IPL_FCP_DUMP_STR "fcp_dump" |
#define | IPL_NSS_STR "nss" |
#define | DUMP_CCW_STR "ccw" |
#define | DUMP_FCP_STR "fcp" |
#define | DUMP_NONE_STR "none" |
#define | ON_PANIC_STR "on_panic" |
#define | ON_HALT_STR "on_halt" |
#define | ON_POFF_STR "on_poff" |
#define | ON_REIPL_STR "on_reboot" |
#define | ON_RESTART_STR "on_restart" |
#define | SHUTDOWN_ACTION_IPL_STR "ipl" |
#define | SHUTDOWN_ACTION_REIPL_STR "reipl" |
#define | SHUTDOWN_ACTION_DUMP_STR "dump" |
#define | SHUTDOWN_ACTION_VMCMD_STR "vmcmd" |
#define | SHUTDOWN_ACTION_STOP_STR "stop" |
#define | SHUTDOWN_ACTION_DUMP_REIPL_STR "dump_reipl" |
#define | DEFINE_IPL_ATTR_RO(_prefix, _name, _format, _value) |
#define | DEFINE_IPL_ATTR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) |
#define | DEFINE_IPL_ATTR_STR_RW(_prefix, _name, _fmt_out, _fmt_in, _value) |
#define | SHUTDOWN_ACTIONS_COUNT (sizeof(shutdown_actions_list) / sizeof(void *)) |
Functions | |
int | diag308 (unsigned long subcode, void *addr) |
EXPORT_SYMBOL_GPL (diag308) | |
EXPORT_SYMBOL_GPL (ipl_info) | |
size_t | append_ipl_vmparm (char *dest, size_t size) |
size_t | append_ipl_scpdata (char *dest, size_t len) |
DEFINE_IPL_ATTR_RO (ipl_nss, name,"%s\n", kernel_nss_name) | |
DEFINE_IPL_ATTR_RW (reipl_fcp, wwpn,"0x%016llx\n","%016llx\n", reipl_block_fcp->ipl_info.fcp.wwpn) | |
DEFINE_IPL_ATTR_RW (reipl_fcp, lun,"0x%016llx\n","%016llx\n", reipl_block_fcp->ipl_info.fcp.lun) | |
DEFINE_IPL_ATTR_RW (reipl_fcp, bootprog,"%lld\n","%lld\n", reipl_block_fcp->ipl_info.fcp.bootprog) | |
DEFINE_IPL_ATTR_RW (reipl_fcp, br_lba,"%lld\n","%lld\n", reipl_block_fcp->ipl_info.fcp.br_lba) | |
DEFINE_IPL_ATTR_RW (reipl_fcp, device,"0.0.%04llx\n","0.0.%llx\n", reipl_block_fcp->ipl_info.fcp.devno) | |
DEFINE_IPL_ATTR_RW (reipl_ccw, device,"0.0.%04llx\n","0.0.%llx\n", reipl_block_ccw->ipl_info.ccw.devno) | |
DEFINE_IPL_ATTR_RW (dump_fcp, wwpn,"0x%016llx\n","%016llx\n", dump_block_fcp->ipl_info.fcp.wwpn) | |
DEFINE_IPL_ATTR_RW (dump_fcp, lun,"0x%016llx\n","%016llx\n", dump_block_fcp->ipl_info.fcp.lun) | |
DEFINE_IPL_ATTR_RW (dump_fcp, bootprog,"%lld\n","%lld\n", dump_block_fcp->ipl_info.fcp.bootprog) | |
DEFINE_IPL_ATTR_RW (dump_fcp, br_lba,"%lld\n","%lld\n", dump_block_fcp->ipl_info.fcp.br_lba) | |
DEFINE_IPL_ATTR_RW (dump_fcp, device,"0.0.%04llx\n","0.0.%llx\n", dump_block_fcp->ipl_info.fcp.devno) | |
DEFINE_IPL_ATTR_RW (dump_ccw, device,"0.0.%04llx\n","0.0.%llx\n", dump_block_ccw->ipl_info.ccw.devno) | |
DEFINE_IPL_ATTR_STR_RW (vmcmd, on_reboot,"%s\n","%s\n", vmcmd_on_reboot) | |
DEFINE_IPL_ATTR_STR_RW (vmcmd, on_panic,"%s\n","%s\n", vmcmd_on_panic) | |
DEFINE_IPL_ATTR_STR_RW (vmcmd, on_halt,"%s\n","%s\n", vmcmd_on_halt) | |
DEFINE_IPL_ATTR_STR_RW (vmcmd, on_poff,"%s\n","%s\n", vmcmd_on_poff) | |
DEFINE_IPL_ATTR_STR_RW (vmcmd, on_restart,"%s\n","%s\n", vmcmd_on_restart) | |
void | do_restart (void) |
__initcall (s390_ipl_init) | |
__setup ("vmreboot=", vmcmd_on_reboot_setup) | |
void __init | setup_ipl (void) |
void __init | ipl_update_parameters (void) |
void __init | ipl_save_parameters (void) |
void | register_reset_call (struct reset_call *reset) |
EXPORT_SYMBOL_GPL (register_reset_call) | |
void | unregister_reset_call (struct reset_call *reset) |
EXPORT_SYMBOL_GPL (unregister_reset_call) | |
void | s390_reset_system (void(*func)(void *), void *data) |
Variables | |
struct ipl_info | ipl_info |
IPL_PARMBLOCK_START ipl_info fcp | wwpn |
IPL_PARMBLOCK_START ipl_info fcp | lun |
IPL_PARMBLOCK_START ipl_info fcp | bootprog |
IPL_PARMBLOCK_START ipl_info fcp | br_lba |
void(* | _machine_restart )(char *command) = do_machine_restart |
void(* | _machine_halt )(void) = do_machine_halt |
void(* | _machine_power_off )(void) = do_machine_power_off |
u32 | dump_prefix_page |
#define DEFINE_IPL_ATTR_RO | ( | _prefix, | |
_name, | |||
_format, | |||
_value | |||
) |
#define DEFINE_IPL_ATTR_RW | ( | _prefix, | |
_name, | |||
_fmt_out, | |||
_fmt_in, | |||
_value | |||
) |
#define DEFINE_IPL_ATTR_STR_RW | ( | _prefix, | |
_name, | |||
_fmt_out, | |||
_fmt_in, | |||
_value | |||
) |
enum dump_method |
enum dump_type |
enum ipl_method |
__initcall | ( | s390_ipl_init | ) |
__setup | ( | ) |
DEFINE_IPL_ATTR_RO | ( | ipl_nss | , |
name | , | ||
"%s\n" | , | ||
kernel_nss_name | |||
) |
DEFINE_IPL_ATTR_RW | ( | reipl_fcp | , |
wwpn | , | ||
"0x%016llx\n" | , | ||
"%016llx\n" | , | ||
reipl_block_fcp->ipl_info.fcp. | wwpn | ||
) |
DEFINE_IPL_ATTR_RW | ( | reipl_fcp | , |
lun | , | ||
"0x%016llx\n" | , | ||
"%016llx\n" | , | ||
reipl_block_fcp->ipl_info.fcp. | lun | ||
) |
DEFINE_IPL_ATTR_RW | ( | reipl_fcp | , |
bootprog | , | ||
"%lld\n" | , | ||
"%lld\n" | , | ||
reipl_block_fcp->ipl_info.fcp. | bootprog | ||
) |
DEFINE_IPL_ATTR_RW | ( | reipl_fcp | , |
br_lba | , | ||
"%lld\n" | , | ||
"%lld\n" | , | ||
reipl_block_fcp->ipl_info.fcp. | br_lba | ||
) |
DEFINE_IPL_ATTR_RW | ( | reipl_fcp | , |
device | , | ||
"0.0.%04llx\n" | , | ||
"0.0.%llx\n" | , | ||
reipl_block_fcp->ipl_info.fcp. | devno | ||
) |
DEFINE_IPL_ATTR_RW | ( | reipl_ccw | , |
device | , | ||
"0.0.%04llx\n" | , | ||
"0.0.%llx\n" | , | ||
reipl_block_ccw->ipl_info.ccw. | devno | ||
) |
DEFINE_IPL_ATTR_RW | ( | dump_fcp | , |
wwpn | , | ||
"0x%016llx\n" | , | ||
"%016llx\n" | , | ||
dump_block_fcp->ipl_info.fcp. | wwpn | ||
) |
DEFINE_IPL_ATTR_RW | ( | dump_fcp | , |
lun | , | ||
"0x%016llx\n" | , | ||
"%016llx\n" | , | ||
dump_block_fcp->ipl_info.fcp. | lun | ||
) |
DEFINE_IPL_ATTR_RW | ( | dump_fcp | , |
bootprog | , | ||
"%lld\n" | , | ||
"%lld\n" | , | ||
dump_block_fcp->ipl_info.fcp. | bootprog | ||
) |
DEFINE_IPL_ATTR_RW | ( | dump_fcp | , |
br_lba | , | ||
"%lld\n" | , | ||
"%lld\n" | , | ||
dump_block_fcp->ipl_info.fcp. | br_lba | ||
) |
DEFINE_IPL_ATTR_RW | ( | dump_fcp | , |
device | , | ||
"0.0.%04llx\n" | , | ||
"0.0.%llx\n" | , | ||
dump_block_fcp->ipl_info.fcp. | devno | ||
) |
DEFINE_IPL_ATTR_RW | ( | dump_ccw | , |
device | , | ||
"0.0.%04llx\n" | , | ||
"0.0.%llx\n" | , | ||
dump_block_ccw->ipl_info.ccw. | devno | ||
) |
DEFINE_IPL_ATTR_STR_RW | ( | vmcmd | , |
on_reboot | , | ||
"%s\n" | , | ||
"%s\n" | , | ||
vmcmd_on_reboot | |||
) |
DEFINE_IPL_ATTR_STR_RW | ( | vmcmd | , |
on_panic | , | ||
"%s\n" | , | ||
"%s\n" | , | ||
vmcmd_on_panic | |||
) |
DEFINE_IPL_ATTR_STR_RW | ( | vmcmd | , |
on_halt | , | ||
"%s\n" | , | ||
"%s\n" | , | ||
vmcmd_on_halt | |||
) |
DEFINE_IPL_ATTR_STR_RW | ( | vmcmd | , |
on_poff | , | ||
"%s\n" | , | ||
"%s\n" | , | ||
vmcmd_on_poff | |||
) |
DEFINE_IPL_ATTR_STR_RW | ( | vmcmd | , |
on_restart | , | ||
"%s\n" | , | ||
"%s\n" | , | ||
vmcmd_on_restart | |||
) |
EXPORT_SYMBOL_GPL | ( | diag308 | ) |
EXPORT_SYMBOL_GPL | ( | ipl_info | ) |
EXPORT_SYMBOL_GPL | ( | register_reset_call | ) |
EXPORT_SYMBOL_GPL | ( | unregister_reset_call | ) |
void register_reset_call | ( | struct reset_call * | reset | ) |
void unregister_reset_call | ( | struct reset_call * | reset | ) |
IPL_PARMBLOCK_START ipl_info fcp bootprog |
IPL_PARMBLOCK_START ipl_info fcp br_lba |