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

Go to the source code of this file.

Data Structures

struct  ccw1
 
struct  erw
 
struct  erw_eadm
 
struct  sublog
 
struct  esw0
 
struct  esw1
 
struct  esw2
 
struct  esw3
 
struct  esw_eadm
 
struct  irb
 
struct  ciw
 
struct  ccw_dev_id
 
struct  cio_iplinfo
 

Macros

#define LPM_ANYPATH   0xff
 
#define __MAX_CSSID   0
 
#define __MAX_SUBCHANNEL   65535
 
#define __MAX_SSID   3
 
#define CCW_FLAG_DC   0x80
 
#define CCW_FLAG_CC   0x40
 
#define CCW_FLAG_SLI   0x20
 
#define CCW_FLAG_SKIP   0x10
 
#define CCW_FLAG_PCI   0x08
 
#define CCW_FLAG_IDA   0x04
 
#define CCW_FLAG_SUSPEND   0x02
 
#define CCW_CMD_READ_IPL   0x02
 
#define CCW_CMD_NOOP   0x03
 
#define CCW_CMD_BASIC_SENSE   0x04
 
#define CCW_CMD_TIC   0x08
 
#define CCW_CMD_STLCK   0x14
 
#define CCW_CMD_SENSE_PGID   0x34
 
#define CCW_CMD_SUSPEND_RECONN   0x5B
 
#define CCW_CMD_RDC   0x64
 
#define CCW_CMD_RELEASE   0x94
 
#define CCW_CMD_SET_PGID   0xAF
 
#define CCW_CMD_SENSE_ID   0xE4
 
#define CCW_CMD_DCTL   0xF3
 
#define SENSE_MAX_COUNT   0x20
 
#define CIW_TYPE_RCD   0x0 /* read configuration data */
 
#define CIW_TYPE_SII   0x1 /* set interface identifier */
 
#define CIW_TYPE_RNI   0x2 /* read node identifier */
 
#define DOIO_ALLOW_SUSPEND   0x0001 /* allow for channel prog. suspend */
 
#define DOIO_DENY_PREFETCH   0x0002 /* don't allow for CCW prefetch */
 
#define DOIO_SUPPRESS_INTER   0x0004 /* suppress intermediate inter. */
 
#define CIO_GONE   0x0001
 
#define CIO_NO_PATH   0x0002
 
#define CIO_OPER   0x0004
 
#define CIO_REVALIDATE   0x0008
 
#define CIO_BOXED   0x0010
 

Functions

struct ccw1 __attribute__ ((packed, aligned(8)))
 
struct erw __attribute__ ((packed))
 
struct irb __attribute__ ((packed, aligned(4)))
 
void wait_cons_dev (void)
 
void css_schedule_reprobe (void)
 
void reipl_ccw_dev (struct ccw_dev_id *id)
 
int cio_get_iplinfo (struct cio_iplinfo *iplinfo)
 
int chsc_sstpc (void *page, unsigned int op, u16 ctrl)
 
int chsc_sstpi (void *page, void *result, size_t size)
 

Variables

__u8 cmd_code
 
__u8 flags
 
__u16 count
 
__u32 cda
 
__u32 res0
 
__u32 auth
 
__u32 pvrf
 
__u32 cpt
 
__u32 fsavf
 
__u32 cons
 
__u32 scavf
 
__u32 fsaf
 
__u32 scnt
 
__u32 res16
 
struct erw_eadm __packed
 
__u32 esf
 
__u32 lpum
 
__u32 arep
 
__u32 fvf
 
__u32 sacc
 
__u32 termc
 
__u32 devsc
 
__u32 serr
 
__u32 ioerr
 
__u32 seqc
 
struct sublog sublog
 
struct erw erw
 
__u32 faddr [2]
 
__u32 saddr
 
__u8 zero0
 
__u16 zero16
 
__u32 zeros [3]
 
__u16 dcti
 
__u16 res
 
union scsw scsw
 
union {
   struct esw0   esw0
 
   struct esw1   esw1
 
   struct esw2   esw2
 
   struct esw3   esw3
 
   struct esw_eadm   eadm
 
esw
 
__u8 ecw [32]
 
__u32 et
 
__u32 reserved
 
__u32 ct
 
__u32 cmd
 
struct ccw_dev_id __attribute__
 

Macro Definition Documentation

#define __MAX_CSSID   0

Definition at line 11 of file cio.h.

#define __MAX_SSID   3

Definition at line 13 of file cio.h.

#define __MAX_SUBCHANNEL   65535

Definition at line 12 of file cio.h.

#define CCW_CMD_BASIC_SENSE   0x04

Definition at line 45 of file cio.h.

#define CCW_CMD_DCTL   0xF3

Definition at line 54 of file cio.h.

#define CCW_CMD_NOOP   0x03

Definition at line 44 of file cio.h.

#define CCW_CMD_RDC   0x64

Definition at line 50 of file cio.h.

#define CCW_CMD_READ_IPL   0x02

Definition at line 43 of file cio.h.

#define CCW_CMD_RELEASE   0x94

Definition at line 51 of file cio.h.

#define CCW_CMD_SENSE_ID   0xE4

Definition at line 53 of file cio.h.

#define CCW_CMD_SENSE_PGID   0x34

Definition at line 48 of file cio.h.

#define CCW_CMD_SET_PGID   0xAF

Definition at line 52 of file cio.h.

#define CCW_CMD_STLCK   0x14

Definition at line 47 of file cio.h.

#define CCW_CMD_SUSPEND_RECONN   0x5B

Definition at line 49 of file cio.h.

#define CCW_CMD_TIC   0x08

Definition at line 46 of file cio.h.

#define CCW_FLAG_CC   0x40

Definition at line 36 of file cio.h.

#define CCW_FLAG_DC   0x80

Definition at line 35 of file cio.h.

#define CCW_FLAG_IDA   0x04

Definition at line 40 of file cio.h.

#define CCW_FLAG_PCI   0x08

Definition at line 39 of file cio.h.

#define CCW_FLAG_SKIP   0x10

Definition at line 38 of file cio.h.

#define CCW_FLAG_SLI   0x20

Definition at line 37 of file cio.h.

#define CCW_FLAG_SUSPEND   0x02

Definition at line 41 of file cio.h.

#define CIO_BOXED   0x0010

Definition at line 262 of file cio.h.

#define CIO_GONE   0x0001

Definition at line 254 of file cio.h.

#define CIO_NO_PATH   0x0002

Definition at line 256 of file cio.h.

#define CIO_OPER   0x0004

Definition at line 258 of file cio.h.

#define CIO_REVALIDATE   0x0008

Definition at line 260 of file cio.h.

#define CIW_TYPE_RCD   0x0 /* read configuration data */

Definition at line 242 of file cio.h.

#define CIW_TYPE_RNI   0x2 /* read node identifier */

Definition at line 244 of file cio.h.

#define CIW_TYPE_SII   0x1 /* set interface identifier */

Definition at line 243 of file cio.h.

#define DOIO_ALLOW_SUSPEND   0x0001 /* allow for channel prog. suspend */

Definition at line 249 of file cio.h.

#define DOIO_DENY_PREFETCH   0x0002 /* don't allow for CCW prefetch */

Definition at line 250 of file cio.h.

#define DOIO_SUPPRESS_INTER   0x0004 /* suppress intermediate inter. */

Definition at line 251 of file cio.h.

#define LPM_ANYPATH   0xff

Definition at line 10 of file cio.h.

#define SENSE_MAX_COUNT   0x20

Definition at line 56 of file cio.h.

Function Documentation

struct ccw1 __attribute__ ( (packed, aligned(8))  )
struct erw __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

struct irb __attribute__ ( (packed, aligned(4))  )
read

Scatter-gather list for preada/pwritea calls.

< Client physical address of the buffer segment.

< Page table entry describing the caching and location override characteristics of the buffer segment. Some drivers ignore this element and will require that the NOCACHE flag be set on their requests.

< Length of the buffer segment.

Definition at line 1740 of file hypervisor.h.

int chsc_sstpc ( void page,
unsigned int  op,
u16  ctrl 
)

Definition at line 979 of file chsc.c.

int chsc_sstpi ( void page,
void result,
size_t  size 
)

Definition at line 1006 of file chsc.c.

int cio_get_iplinfo ( struct cio_iplinfo iplinfo)

Definition at line 1040 of file cio.c.

void css_schedule_reprobe ( void  )

Definition at line 630 of file css.c.

void reipl_ccw_dev ( struct ccw_dev_id id)

Definition at line 1030 of file cio.c.

void wait_cons_dev ( void  )

Variable Documentation

__u32 arep

Definition at line 126 of file cio.h.

unsigned char auth

Definition at line 84 of file cio.h.

__u32 cda

Definition at line 37 of file cio.h.

Definition at line 244 of file cio.h.

__u8 cmd_code

Definition at line 34 of file cio.h.

__u32 cons

Definition at line 88 of file cio.h.

__u32 count

Definition at line 36 of file cio.h.

__u32 cpt

Definition at line 86 of file cio.h.

__u32 ct

Definition at line 243 of file cio.h.

__u16 dcti

Definition at line 171 of file cio.h.

__u32 devsc

Definition at line 130 of file cio.h.

Definition at line 231 of file cio.h.

__u8 ecw[32]

Definition at line 233 of file cio.h.

Definition at line 138 of file cio.h.

__u32 esf

Definition at line 124 of file cio.h.

union { ... } esw

Definition at line 227 of file cio.h.

Definition at line 228 of file cio.h.

Definition at line 229 of file cio.h.

Definition at line 230 of file cio.h.

__u32 et

Definition at line 241 of file cio.h.

__be32 faddr

Definition at line 139 of file cio.h.

__u8 flags

Definition at line 35 of file cio.h.

__u32 fsaf

Definition at line 90 of file cio.h.

__u32 fsavf

Definition at line 87 of file cio.h.

__u32 fvf

Definition at line 127 of file cio.h.

__u32 ioerr

Definition at line 132 of file cio.h.

__u8 lpum

Definition at line 125 of file cio.h.

__u32 pvrf

Definition at line 85 of file cio.h.

__u16 res

Definition at line 187 of file cio.h.

__u32 res0

Definition at line 83 of file cio.h.

__u32 res16

Definition at line 92 of file cio.h.

__u32 reserved

Definition at line 242 of file cio.h.

__u32 sacc

Definition at line 128 of file cio.h.

__le16 saddr

Definition at line 140 of file cio.h.

__u32 scavf

Definition at line 89 of file cio.h.

__u32 scnt

Definition at line 91 of file cio.h.

union scsw scsw

Definition at line 225 of file cio.h.

__u32 seqc

Definition at line 133 of file cio.h.

__u32 serr

Definition at line 131 of file cio.h.

Definition at line 137 of file cio.h.

__u32 termc

Definition at line 129 of file cio.h.

unsigned char zero0

Definition at line 153 of file cio.h.

__u16 zero16

Definition at line 155 of file cio.h.

unsigned char zeros

Definition at line 157 of file cio.h.