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

Go to the source code of this file.

Data Structures

struct  crw


#define NR_RSCS   16
#define CRW_RSC_MONITOR   0x2 /* monitoring facility */
#define CRW_RSC_SCH   0x3 /* subchannel */
#define CRW_RSC_CPATH   0x4 /* channel path */
#define CRW_RSC_CONFIG   0x9 /* configuration-alert facility */
#define CRW_RSC_CSS   0xB /* channel subsystem */
#define CRW_ERC_EVENT   0x00 /* event information pending */
#define CRW_ERC_AVAIL   0x01 /* available */
#define CRW_ERC_INIT   0x02 /* initialized */
#define CRW_ERC_TERROR   0x03 /* temporary error */
#define CRW_ERC_IPARM   0x04 /* installed parm initialized */
#define CRW_ERC_TERM   0x05 /* terminal */
#define CRW_ERC_PERRN   0x06 /* perm. error, fac. not init */
#define CRW_ERC_PERRI   0x07 /* perm. error, facility init */
#define CRW_ERC_PMOD   0x08 /* installed parameters modified */


typedef void(* crw_handler_t )(struct crw *, struct crw *, int)


struct crw __attribute__ ((packed))
int crw_register_handler (int rsc, crw_handler_t handler)
void crw_unregister_handler (int rsc)
void crw_handle_channel_report (void)
void crw_wait_for_channel_report (void)


__u32 res1
__u32 slct
__u32 oflw
__u32 chn
__u32 rsc
__u32 anc
__u32 res2
__u32 erc
__u32 rsid

Macro Definition Documentation

#define CRW_ERC_AVAIL   0x01 /* available */

Definition at line 46 of file crw.h.

#define CRW_ERC_EVENT   0x00 /* event information pending */

Definition at line 45 of file crw.h.

#define CRW_ERC_INIT   0x02 /* initialized */

Definition at line 47 of file crw.h.

#define CRW_ERC_IPARM   0x04 /* installed parm initialized */

Definition at line 49 of file crw.h.

#define CRW_ERC_PERRI   0x07 /* perm. error, facility init */

Definition at line 52 of file crw.h.

#define CRW_ERC_PERRN   0x06 /* perm. error, fac. not init */

Definition at line 51 of file crw.h.

#define CRW_ERC_PMOD   0x08 /* installed parameters modified */

Definition at line 53 of file crw.h.

#define CRW_ERC_TERM   0x05 /* terminal */

Definition at line 50 of file crw.h.

#define CRW_ERC_TERROR   0x03 /* temporary error */

Definition at line 48 of file crw.h.

#define CRW_RSC_CONFIG   0x9 /* configuration-alert facility */

Definition at line 42 of file crw.h.

#define CRW_RSC_CPATH   0x4 /* channel path */

Definition at line 41 of file crw.h.

#define CRW_RSC_CSS   0xB /* channel subsystem */

Definition at line 43 of file crw.h.

#define CRW_RSC_MONITOR   0x2 /* monitoring facility */

Definition at line 39 of file crw.h.

#define CRW_RSC_SCH   0x3 /* subchannel */

Definition at line 40 of file crw.h.

#define NR_RSCS   16

Definition at line 37 of file crw.h.

Typedef Documentation

typedef void(* crw_handler_t)(struct crw *, struct crw *, int)

Definition at line 30 of file crw.h.

Function Documentation

struct crw __attribute__ ( (packed)  )

Definition at line 171 of file esd_usb2.c.

void crw_handle_channel_report ( void  )

Definition at line 135 of file crw.c.

int crw_register_handler ( int  rsc,
crw_handler_t  handler 

crw_register_handler() - register a channel report word handler : reporting source code to handle : handler to be registered

Returns %0 on success and a negative error value otherwise.

Definition at line 30 of file crw.c.

void crw_unregister_handler ( int  rsc)

crw_unregister_handler() - unregister a channel report word handler : reporting source code to handle

Definition at line 49 of file crw.c.

void crw_wait_for_channel_report ( void  )

Definition at line 141 of file crw.c.

Variable Documentation

__u32 anc

Definition at line 34 of file crw.h.

__u32 chn

Definition at line 32 of file crw.h.

__u32 erc

Definition at line 36 of file crw.h.

__u32 oflw

Definition at line 31 of file crw.h.

__u32 res1

Definition at line 29 of file crw.h.

__u32 res2

Definition at line 35 of file crw.h.

Definition at line 33 of file crw.h.

__u32 rsid

Definition at line 37 of file crw.h.

__u32 slct

Definition at line 30 of file crw.h.