4 #define VS_DATA_PACKET_HEADER 0xff
5 #define VS_CONTROL_PACKET_HEADER 0xfe
6 #define VS_QUERY_PACKET_HEADER 0xfd
7 #define VS_QUERY_RESPONSE_PACKET_HEADER 0xfc
10 #define VSV_SET_MODEM_CTL 1 /* to service processor only */
11 #define VSV_MODEM_CTL_UPDATE 2 /* from service processor only */
12 #define VSV_CLOSE_PROTOCOL 3
15 #define VSV_SEND_VERSION_NUMBER 1
16 #define VSV_SEND_MODEM_CTL_STATUS 2
18 /* yes, these masks are not consecutive. */
19 #define HVSI_TSDTR 0x01
20 #define HVSI_TSCD 0x20
22 #define HVSI_MAX_OUTGOING_DATA 12
23 #define HVSI_VERSION 1
29 } __attribute__((packed
));
32 struct hvsi_header hdr
;
33 uint8_t data
[HVSI_MAX_OUTGOING_DATA
];
34 } __attribute__((packed
));
37 struct hvsi_header hdr
;
39 /* optional depending on verb: */
42 } __attribute__((packed
));
45 struct hvsi_header hdr
;
47 } __attribute__((packed
));
49 struct hvsi_query_response
{
50 struct hvsi_header hdr
;
57 } __attribute__((packed
));