1 /*
2  * Copyright IBM Corp. 2006
3  * Character device driver for writing z/VM APPLDATA monitor records
4  * Version 1.0
5  * Author(s): Melissa Howland <melissah@us.ibm.com>
6  *
7  */
8 
9 #ifndef _ASM_390_MONWRITER_H
10 #define _ASM_390_MONWRITER_H
11 
12 /* mon_function values */
13 #define MONWRITE_START_INTERVAL	0x00 /* start interval recording */
14 #define MONWRITE_STOP_INTERVAL	0x01 /* stop interval or config recording */
15 #define MONWRITE_GEN_EVENT	0x02 /* generate event record */
16 #define MONWRITE_START_CONFIG	0x03 /* start configuration recording */
17 
18 /* the header the app uses in its write() data */
19 struct monwrite_hdr {
20 	unsigned char mon_function;
21 	unsigned short applid;
22 	unsigned char record_num;
23 	unsigned short version;
24 	unsigned short release;
25 	unsigned short mod_level;
26 	unsigned short datalen;
27 	unsigned char hdrlen;
28 
29 } __attribute__((packed));
30 
31 #endif /* _ASM_390_MONWRITER_H */
32