#include <linux/device.h>
#define CHP_STATUS_STANDBY 0
#define CHP_STATUS_CONFIGURED 1
#define CHP_STATUS_RESERVED 2
#define CHP_STATUS_NOT_RECOGNIZED 3
static inline int chp_test_bit(u8 *bitmap, int num)
int mask = 128 >> (num & 7);
return (bitmap[byte] & mask) ? 1 : 0;
struct channel_path_desc_fmt0 desc;
struct channel_path_desc_fmt1 desc_fmt1;
struct channel_path_desc_fmt3 desc_fmt3;
struct cmg_chars cmg_chars;
static inline struct channel_path *chpid_to_chp(struct chp_id chpid)
return css_by_id(chpid.cssid)->chps[chpid.id];
int chp_get_status(struct chp_id chpid);
u8 chp_get_sch_opm(struct subchannel *sch);