chp.h revision e6b6e10ac1de116fc6d2288f185393014851cccf
1/* 2 * drivers/s390/cio/chp.h 3 * 4 * Copyright IBM Corp. 2007 5 * Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com> 6 */ 7 8#ifndef S390_CHP_H 9#define S390_CHP_H S390_CHP_H 10 11#include <linux/types.h> 12#include <linux/device.h> 13 14#include "chpid.h" 15#include "chsc.h" 16 17struct channel_path { 18 struct chp_id chpid; 19 int state; 20 struct channel_path_desc desc; 21 /* Channel-measurement related stuff: */ 22 int cmg; 23 int shared; 24 void *cmg_chars; 25 struct device dev; 26}; 27 28int chp_get_status(struct chp_id chpid); 29u8 chp_get_sch_opm(struct subchannel *sch); 30int chp_is_registered(struct chp_id chpid); 31void *chp_get_chp_desc(struct chp_id chpid); 32int chp_process_crw(int id, int available); 33void chp_remove_cmg_attr(struct channel_path *chp); 34int chp_add_cmg_attr(struct channel_path *chp); 35int chp_new(struct chp_id chpid); 36 37#endif /* S390_CHP_H */ 38