Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
sclp.h File Reference
#include <linux/types.h>
#include <linux/list.h>
#include <asm/sclp.h>
#include <asm/ebcdic.h>

Go to the source code of this file.

Data Structures

struct  sccb_header
 
struct  init_sccb
 
struct  gds_subvector
 
struct  gds_vector
 
struct  evbuf_header
 
struct  sclp_req
 
struct  sclp_register
 

Macros

#define MAX_KMEM_PAGES   (sizeof(unsigned long) << 3)
 
#define MAX_CONSOLE_PAGES   6
 
#define EVTYP_OPCMD   0x01
 
#define EVTYP_MSG   0x02
 
#define EVTYP_STATECHANGE   0x08
 
#define EVTYP_PMSGCMD   0x09
 
#define EVTYP_CNTLPROGOPCMD   0x20
 
#define EVTYP_CNTLPROGIDENT   0x0B
 
#define EVTYP_SIGQUIESCE   0x1D
 
#define EVTYP_VT220MSG   0x1A
 
#define EVTYP_CONFMGMDATA   0x04
 
#define EVTYP_SDIAS   0x1C
 
#define EVTYP_ASYNC   0x0A
 
#define EVTYP_OCF   0x1E
 
#define EVTYP_OPCMD_MASK   0x80000000
 
#define EVTYP_MSG_MASK   0x40000000
 
#define EVTYP_STATECHANGE_MASK   0x01000000
 
#define EVTYP_PMSGCMD_MASK   0x00800000
 
#define EVTYP_CTLPROGOPCMD_MASK   0x00000001
 
#define EVTYP_CTLPROGIDENT_MASK   0x00200000
 
#define EVTYP_SIGQUIESCE_MASK   0x00000008
 
#define EVTYP_VT220MSG_MASK   0x00000040
 
#define EVTYP_CONFMGMDATA_MASK   0x10000000
 
#define EVTYP_SDIAS_MASK   0x00000010
 
#define EVTYP_ASYNC_MASK   0x00400000
 
#define EVTYP_OCF_MASK   0x00000004
 
#define GNRLMSGFLGS_DOM   0x8000
 
#define GNRLMSGFLGS_SNDALRM   0x4000
 
#define GNRLMSGFLGS_HOLDMSG   0x2000
 
#define LNTPFLGS_CNTLTEXT   0x8000
 
#define LNTPFLGS_LABELTEXT   0x4000
 
#define LNTPFLGS_DATATEXT   0x2000
 
#define LNTPFLGS_ENDTEXT   0x1000
 
#define LNTPFLGS_PROMPTTEXT   0x0800
 
#define SCLP_CMDW_READ_EVENT_DATA   0x00770005
 
#define SCLP_CMDW_WRITE_EVENT_DATA   0x00760005
 
#define SCLP_CMDW_WRITE_EVENT_MASK   0x00780005
 
#define GDS_ID_MDSMU   0x1310
 
#define GDS_ID_MDSROUTEINFO   0x1311
 
#define GDS_ID_AGUNWRKCORR   0x1549
 
#define GDS_ID_SNACONDREPORT   0x1532
 
#define GDS_ID_CPMSU   0x1212
 
#define GDS_ID_ROUTTARGINSTR   0x154D
 
#define GDS_ID_OPREQ   0x8070
 
#define GDS_ID_TEXTCMD   0x1320
 
#define GDS_KEY_SELFDEFTEXTMSG   0x31
 
#define SCLP_PANIC_PRIO   1
 
#define SCLP_PANIC_PRIO_CLIENT   0
 
#define SCLP_HAS_CHP_INFO   (sclp_facilities & 0x8000000000000000ULL)
 
#define SCLP_HAS_CHP_RECONFIG   (sclp_facilities & 0x2000000000000000ULL)
 
#define SCLP_HAS_CPU_INFO   (sclp_facilities & 0x0800000000000000ULL)
 
#define SCLP_HAS_CPU_RECONFIG   (sclp_facilities & 0x0400000000000000ULL)
 
#define SCLP_REQ_FILLED   0x00 /* request is ready to be processed */
 
#define SCLP_REQ_QUEUED   0x01 /* request is queued to be processed */
 
#define SCLP_REQ_RUNNING   0x02 /* request is currently running */
 
#define SCLP_REQ_DONE   0x03 /* request is completed successfully */
 
#define SCLP_REQ_FAILED   0x05 /* request is finally failed */
 

Typedefs

typedef unsigned int sclp_cmdw_t
 
typedef u32 sccb_mask_t
 

Enumerations

enum  sclp_pm_event { SCLP_PM_EVENT_FREEZE, SCLP_PM_EVENT_THAW, SCLP_PM_EVENT_RESTORE }
 

Functions

struct sccb_header __attribute__ ((packed))
 
int sclp_add_request (struct sclp_req *req)
 
void sclp_sync_wait (void)
 
int sclp_register (struct sclp_register *reg)
 
void sclp_unregister (struct sclp_register *reg)
 
int sclp_remove_processed (struct sccb_header *sccb)
 
int sclp_deactivate (void)
 
int sclp_reactivate (void)
 
int sclp_service_call (sclp_cmdw_t command, void *sccb)
 
int sclp_sdias_init (void)
 
void sclp_sdias_exit (void)
 

Variables

enum sclp_pm_event __attribute__
 
u16 length
 
u8 function_code
 
u8 control_mask [3]
 
u16 response_code
 
struct sccb_header header
 
u16 _reserved
 
u16 mask_length
 
sccb_mask_t receive_mask
 
sccb_mask_t send_mask
 
sccb_mask_t sclp_receive_mask
 
sccb_mask_t sclp_send_mask
 
u64 sclp_facilities
 
u8 key
 
u16 gds_id
 
u8 type
 
u8 flags
 

Macro Definition Documentation

#define EVTYP_ASYNC   0x0A

Definition at line 30 of file sclp.h.

#define EVTYP_ASYNC_MASK   0x00400000

Definition at line 43 of file sclp.h.

#define EVTYP_CNTLPROGIDENT   0x0B

Definition at line 25 of file sclp.h.

#define EVTYP_CNTLPROGOPCMD   0x20

Definition at line 24 of file sclp.h.

#define EVTYP_CONFMGMDATA   0x04

Definition at line 28 of file sclp.h.

#define EVTYP_CONFMGMDATA_MASK   0x10000000

Definition at line 41 of file sclp.h.

#define EVTYP_CTLPROGIDENT_MASK   0x00200000

Definition at line 38 of file sclp.h.

#define EVTYP_CTLPROGOPCMD_MASK   0x00000001

Definition at line 37 of file sclp.h.

#define EVTYP_MSG   0x02

Definition at line 21 of file sclp.h.

#define EVTYP_MSG_MASK   0x40000000

Definition at line 34 of file sclp.h.

#define EVTYP_OCF   0x1E

Definition at line 31 of file sclp.h.

#define EVTYP_OCF_MASK   0x00000004

Definition at line 44 of file sclp.h.

#define EVTYP_OPCMD   0x01

Definition at line 20 of file sclp.h.

#define EVTYP_OPCMD_MASK   0x80000000

Definition at line 33 of file sclp.h.

#define EVTYP_PMSGCMD   0x09

Definition at line 23 of file sclp.h.

#define EVTYP_PMSGCMD_MASK   0x00800000

Definition at line 36 of file sclp.h.

#define EVTYP_SDIAS   0x1C

Definition at line 29 of file sclp.h.

#define EVTYP_SDIAS_MASK   0x00000010

Definition at line 42 of file sclp.h.

#define EVTYP_SIGQUIESCE   0x1D

Definition at line 26 of file sclp.h.

#define EVTYP_SIGQUIESCE_MASK   0x00000008

Definition at line 39 of file sclp.h.

#define EVTYP_STATECHANGE   0x08

Definition at line 22 of file sclp.h.

#define EVTYP_STATECHANGE_MASK   0x01000000

Definition at line 35 of file sclp.h.

#define EVTYP_VT220MSG   0x1A

Definition at line 27 of file sclp.h.

#define EVTYP_VT220MSG_MASK   0x00000040

Definition at line 40 of file sclp.h.

#define GDS_ID_AGUNWRKCORR   0x1549

Definition at line 64 of file sclp.h.

#define GDS_ID_CPMSU   0x1212

Definition at line 66 of file sclp.h.

#define GDS_ID_MDSMU   0x1310

Definition at line 62 of file sclp.h.

#define GDS_ID_MDSROUTEINFO   0x1311

Definition at line 63 of file sclp.h.

#define GDS_ID_OPREQ   0x8070

Definition at line 68 of file sclp.h.

#define GDS_ID_ROUTTARGINSTR   0x154D

Definition at line 67 of file sclp.h.

#define GDS_ID_SNACONDREPORT   0x1532

Definition at line 65 of file sclp.h.

#define GDS_ID_TEXTCMD   0x1320

Definition at line 69 of file sclp.h.

#define GDS_KEY_SELFDEFTEXTMSG   0x31

Definition at line 71 of file sclp.h.

#define GNRLMSGFLGS_DOM   0x8000

Definition at line 46 of file sclp.h.

#define GNRLMSGFLGS_HOLDMSG   0x2000

Definition at line 48 of file sclp.h.

#define GNRLMSGFLGS_SNDALRM   0x4000

Definition at line 47 of file sclp.h.

#define LNTPFLGS_CNTLTEXT   0x8000

Definition at line 50 of file sclp.h.

#define LNTPFLGS_DATATEXT   0x2000

Definition at line 52 of file sclp.h.

#define LNTPFLGS_ENDTEXT   0x1000

Definition at line 53 of file sclp.h.

#define LNTPFLGS_LABELTEXT   0x4000

Definition at line 51 of file sclp.h.

#define LNTPFLGS_PROMPTTEXT   0x0800

Definition at line 54 of file sclp.h.

#define MAX_CONSOLE_PAGES   6

Definition at line 18 of file sclp.h.

#define MAX_KMEM_PAGES   (sizeof(unsigned long) << 3)

Definition at line 17 of file sclp.h.

#define SCLP_CMDW_READ_EVENT_DATA   0x00770005

Definition at line 58 of file sclp.h.

#define SCLP_CMDW_WRITE_EVENT_DATA   0x00760005

Definition at line 59 of file sclp.h.

#define SCLP_CMDW_WRITE_EVENT_MASK   0x00780005

Definition at line 60 of file sclp.h.

#define SCLP_HAS_CHP_INFO   (sclp_facilities & 0x8000000000000000ULL)

Definition at line 102 of file sclp.h.

#define SCLP_HAS_CHP_RECONFIG   (sclp_facilities & 0x2000000000000000ULL)

Definition at line 103 of file sclp.h.

#define SCLP_HAS_CPU_INFO   (sclp_facilities & 0x0800000000000000ULL)

Definition at line 104 of file sclp.h.

#define SCLP_HAS_CPU_RECONFIG   (sclp_facilities & 0x0400000000000000ULL)

Definition at line 105 of file sclp.h.

#define SCLP_PANIC_PRIO   1

Definition at line 79 of file sclp.h.

#define SCLP_PANIC_PRIO_CLIENT   0

Definition at line 80 of file sclp.h.

#define SCLP_REQ_DONE   0x03 /* request is completed successfully */

Definition at line 139 of file sclp.h.

#define SCLP_REQ_FAILED   0x05 /* request is finally failed */

Definition at line 140 of file sclp.h.

#define SCLP_REQ_FILLED   0x00 /* request is ready to be processed */

Definition at line 136 of file sclp.h.

#define SCLP_REQ_QUEUED   0x01 /* request is queued to be processed */

Definition at line 137 of file sclp.h.

#define SCLP_REQ_RUNNING   0x02 /* request is currently running */

Definition at line 138 of file sclp.h.

Typedef Documentation

typedef u32 sccb_mask_t

Definition at line 82 of file sclp.h.

typedef unsigned int sclp_cmdw_t

Definition at line 56 of file sclp.h.

Enumeration Type Documentation

Enumerator:
SCLP_PM_EVENT_FREEZE 
SCLP_PM_EVENT_THAW 
SCLP_PM_EVENT_RESTORE 

Definition at line 73 of file sclp.h.

Function Documentation

struct sccb_header __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

int sclp_add_request ( struct sclp_req req)

Definition at line 270 of file sclp.c.

int sclp_deactivate ( void  )

Definition at line 755 of file sclp.c.

int sclp_reactivate ( void  )

Definition at line 784 of file sclp.c.

Definition at line 580 of file sclp.c.

int sclp_remove_processed ( struct sccb_header sccb)

Definition at line 631 of file sclp.c.

void sclp_sdias_exit ( void  )

Definition at line 311 of file sclp_sdias.c.

int sclp_sdias_init ( void  )

Definition at line 293 of file sclp_sdias.c.

int sclp_service_call ( sclp_cmdw_t  command,
void sccb 
)

Definition at line 118 of file sclp.c.

void sclp_sync_wait ( void  )

Definition at line 440 of file sclp.c.

void sclp_unregister ( struct sclp_register reg)

Definition at line 616 of file sclp.c.

Variable Documentation

u16 _reserved

Definition at line 101 of file sclp.h.

u8 control_mask[3]

Definition at line 92 of file sclp.h.

u8 flags

Definition at line 126 of file sclp.h.

unsigned char function_code

Definition at line 91 of file sclp.h.

u16 gds_id

Definition at line 118 of file sclp.h.

Definition at line 100 of file sclp.h.

u8 key

Definition at line 113 of file sclp.h.

u16 length

Definition at line 90 of file sclp.h.

u16 mask_length

Definition at line 102 of file sclp.h.

sccb_mask_t receive_mask

Definition at line 103 of file sclp.h.

u16 response_code

Definition at line 93 of file sclp.h.

u64 sclp_facilities

Definition at line 55 of file sclp_cmd.c.

sccb_mask_t sclp_receive_mask

Definition at line 105 of file sclp.h.

sccb_mask_t sclp_send_mask

Definition at line 106 of file sclp.h.

sccb_mask_t send_mask

Definition at line 104 of file sclp.h.

Definition at line 125 of file sclp.h.