1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #define PG_MAGIC 'P' 7 #define PG_RESET 'Z' 8 #define PG_COMMAND 'C' 9 #define PG_MAX_DATA 32768 10 struct pg_write_hdr { 11 char magic; 12 char func; 13 int dlen; 14 int timeout; 15 char packet[12]; 16 }; 17 struct pg_read_hdr { 18 char magic; 19 char scsi; 20 int dlen; 21 int duration; 22 char pad[12]; 23 }; 24