Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
sclp_cmd.c File Reference
#include <linux/completion.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/mmzone.h>
#include <linux/memory.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <asm/chpid.h>
#include <asm/sclp.h>
#include <asm/setup.h>
#include <asm/ctl_reg.h>
#include "sclp.h"

Go to the source code of this file.

Data Structures

struct  read_info_sccb
 
struct  read_cpu_info_sccb
 
struct  cpu_configure_sccb
 
struct  chp_cfg_sccb
 
struct  chp_info_sccb
 

Macros

#define KMSG_COMPONENT   "sclp_cmd"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define SCLP_CMDW_READ_SCP_INFO   0x00020001
 
#define SCLP_CMDW_READ_SCP_INFO_FORCED   0x00120001
 
#define SCLP_CMDW_READ_CPU_INFO   0x00010001
 
#define SCLP_CMDW_CONFIGURE_CPU   0x00110001
 
#define SCLP_CMDW_DECONFIGURE_CPU   0x00100001
 
#define SCLP_CMDW_CONFIGURE_CHPATH   0x000f0001
 
#define SCLP_CMDW_DECONFIGURE_CHPATH   0x000e0001
 
#define SCLP_CMDW_READ_CHPATH_INFORMATION   0x00030001
 

Functions

struct read_info_sccb __attribute__ ((packed, aligned(PAGE_SIZE)))
 
void __init sclp_facilities_detect (void)
 
bool __init sclp_has_linemode (void)
 
bool __init sclp_has_vt220 (void)
 
unsigned long long sclp_get_rnmax (void)
 
unsigned long long sclp_get_rzm (void)
 
u8 sclp_get_fac85 (void)
 
 EXPORT_SYMBOL_GPL (sclp_get_fac85)
 
void __init sclp_get_ipl_info (struct sclp_ipl_info *info)
 
int sclp_get_cpu_info (struct sclp_cpu_info *info)
 
struct cpu_configure_sccb __attribute__ ((packed, aligned(8)))
 
int sclp_cpu_configure (u8 cpu)
 
int sclp_cpu_deconfigure (u8 cpu)
 
struct chp_cfg_sccb __attribute__ ((packed))
 
int sclp_chp_configure (struct chp_id chpid)
 
int sclp_chp_deconfigure (struct chp_id chpid)
 
int sclp_chp_read_info (struct sclp_chp_info *info)
 

Variables

struct sccb_header header
 
u16 rnmax
 
u8 rnsize
 
u8 _reserved0 [24-11]
 
u8 loadparm [8]
 
u8 _reserved1 [48-32]
 
u64 facilities
 
u8 _reserved2 [84-56]
 
u8 fac84
 
u8 fac85
 
u8 _reserved3 [91-86]
 
u8 flags
 
u8 _reserved4 [100-92]
 
u32 rnsize2
 
u64 rnmax2
 
u8 _reserved5 [4096-112]
 
u64 sclp_facilities
 
u16 nr_configured
 
u16 offset_configured
 
u16 nr_standby
 
u16 offset_standby
 
u8 reserved [4096-16]
 
u8 ccm
 
u8 cssid
 
u8 recognized [SCLP_CHP_INFO_MASK_SIZE]
 
u8 standby [SCLP_CHP_INFO_MASK_SIZE]
 
u8 configured [SCLP_CHP_INFO_MASK_SIZE]
 

Macro Definition Documentation

#define KMSG_COMPONENT   "sclp_cmd"

Definition at line 8 of file sclp_cmd.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 9 of file sclp_cmd.c.

#define SCLP_CMDW_CONFIGURE_CHPATH   0x000f0001

Definition at line 708 of file sclp_cmd.c.

#define SCLP_CMDW_CONFIGURE_CPU   0x00110001

Definition at line 240 of file sclp_cmd.c.

#define SCLP_CMDW_DECONFIGURE_CHPATH   0x000e0001

Definition at line 709 of file sclp_cmd.c.

#define SCLP_CMDW_DECONFIGURE_CPU   0x00100001

Definition at line 241 of file sclp_cmd.c.

#define SCLP_CMDW_READ_CHPATH_INFORMATION   0x00030001

Definition at line 710 of file sclp_cmd.c.

#define SCLP_CMDW_READ_CPU_INFO   0x00010001

Definition at line 239 of file sclp_cmd.c.

#define SCLP_CMDW_READ_SCP_INFO   0x00020001

Definition at line 29 of file sclp_cmd.c.

#define SCLP_CMDW_READ_SCP_INFO_FORCED   0x00120001

Definition at line 30 of file sclp_cmd.c.

Function Documentation

struct chp_cfg_sccb __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

EXPORT_SYMBOL_GPL ( sclp_get_fac85  )
int sclp_chp_configure ( struct chp_id  chpid)

sclp_chp_configure - perform configure channel-path sclp command : channel-path ID

Perform configure channel-path command sclp command for specified chpid. Return 0 after command successfully finished, non-zero otherwise.

Definition at line 759 of file sclp_cmd.c.

int sclp_chp_deconfigure ( struct chp_id  chpid)

sclp_chp_deconfigure - perform deconfigure channel-path sclp command : channel-path ID

Perform deconfigure channel-path command sclp command for specified chpid and wait for completion. On success return 0. Return non-zero otherwise.

Definition at line 771 of file sclp_cmd.c.

int sclp_chp_read_info ( struct sclp_chp_info info)

sclp_chp_read_info - perform read channel-path information sclp command : resulting channel-path information data

Perform read channel-path information sclp command and wait for completion. On success, store channel-path information in and return 0. Return non-zero otherwise.

Definition at line 794 of file sclp_cmd.c.

int sclp_cpu_configure ( u8  cpu)

Definition at line 330 of file sclp_cmd.c.

int sclp_cpu_deconfigure ( u8  cpu)

Definition at line 335 of file sclp_cmd.c.

void __init sclp_facilities_detect ( void  )

Definition at line 121 of file sclp_cmd.c.

int sclp_get_cpu_info ( struct sclp_cpu_info info)

Definition at line 266 of file sclp_cmd.c.

u8 sclp_get_fac85 ( void  )

Definition at line 172 of file sclp_cmd.c.

void __init sclp_get_ipl_info ( struct sclp_ipl_info info)

Definition at line 182 of file sclp_cmd.c.

unsigned long long sclp_get_rnmax ( void  )

Definition at line 162 of file sclp_cmd.c.

unsigned long long sclp_get_rzm ( void  )

Definition at line 167 of file sclp_cmd.c.

bool __init sclp_has_linemode ( void  )

Definition at line 140 of file sclp_cmd.c.

bool __init sclp_has_vt220 ( void  )

Definition at line 151 of file sclp_cmd.c.

Variable Documentation

u8 _reserved0[24-11]

Definition at line 53 of file sclp_cmd.c.

u8 _reserved1[48-32]

Definition at line 55 of file sclp_cmd.c.

u8 _reserved2[84-56]

Definition at line 57 of file sclp_cmd.c.

u8 _reserved3[91-86]

Definition at line 60 of file sclp_cmd.c.

u8 _reserved4[100-92]

Definition at line 62 of file sclp_cmd.c.

u8 _reserved5[4096-112]

Definition at line 65 of file sclp_cmd.c.

u8 ccm

Definition at line 719 of file sclp_cmd.c.

Definition at line 788 of file sclp_cmd.c.

u8 cssid

Definition at line 721 of file sclp_cmd.c.

u8 fac84

Definition at line 58 of file sclp_cmd.c.

u8 fac85

Definition at line 59 of file sclp_cmd.c.

u64 facilities

Definition at line 56 of file sclp_cmd.c.

u8 flags

Definition at line 61 of file sclp_cmd.c.

Definition at line 50 of file sclp_cmd.c.

u8 loadparm[8]

Definition at line 54 of file sclp_cmd.c.

u16 nr_configured

Definition at line 252 of file sclp_cmd.c.

u16 nr_standby

Definition at line 254 of file sclp_cmd.c.

u16 offset_configured

Definition at line 253 of file sclp_cmd.c.

u16 offset_standby

Definition at line 255 of file sclp_cmd.c.

Definition at line 786 of file sclp_cmd.c.

u8 reserved[6]

Definition at line 256 of file sclp_cmd.c.

static unsigned long long rnmax

Definition at line 51 of file sclp_cmd.c.

u64 rnmax2

Definition at line 64 of file sclp_cmd.c.

u8 rnsize

Definition at line 52 of file sclp_cmd.c.

u32 rnsize2

Definition at line 63 of file sclp_cmd.c.

u64 sclp_facilities

Definition at line 55 of file sclp_cmd.c.

Definition at line 787 of file sclp_cmd.c.