fix order of OEMparameters to enable BIOS SOL on newer AMT generations
[amt] / RedirectionConstants.h
1 #ifndef __REDIRECTION_CONSTANTS__
2 #define __REDIRECTION_CONSTANTS__
3
4 #define STATUS_SUCCESS 0x00
5 #define SOL_FIRMWARE_REV_MAJOR 0x01
6 #define SOL_FIRMWARE_REV_MINOR 0x00
7
8 //Session Manager Messages Formats
9 #define START_REDIRECTION_SESSION 0x10
10 #define START_REDIRECTION_SESSION_REPLY 0x11
11 #define END_REDIRECTION_SESSION 0x12
12 #define AUTHENTICATE_SESSION 0x13
13 #define AUTHENTICATE_SESSION_REPLY 0x14
14
15 #define START_REDIRECTION_SESSION_LENGTH 8
16 #define START_REDIRECTION_SESSION_REPLY_LENGTH 13
17 #define END_REDIRECTION_SESSION_LENGTH 4
18
19 //SOL Messages Formats
20 #define START_SOL_REDIRECTION 0x20
21 #define START_SOL_REDIRECTION_REPLY 0x21
22 #define END_SOL_REDIRECTION 0x22
23 #define END_SOL_REDIRECTION_REPLY 0x23
24 #define SOL_KEEP_ALIVE_PING 0x24 //Console to Host
25 #define SOL_KEEP_ALIVE_PONG 0x25 //Host to Console
26 #define SOL_DATA_TO_HOST 0x28 //Console to host
27 #define SOL_DATA_FROM_HOST 0x2A //Host to Console
28 #define SOL_HEARTBEAT 0x2B
29
30 #define HEARTBEAT_LENGTH 8
31 #define START_SOL_REDIRECTION_LENGTH 24
32 #define START_SOL_REDIRECTION_REPLY_LENGTH 23 //TODO: There is a OEM Defined data field that we are assuming to be 0 bytes..
33 #define END_SOL_REDIRECTION_LENGTH 8
34 #define END_SOL_REDIRECTION_REPLY_LENGTH 8
35
36 //IDER Messages Formats
37 #define START_IDER_REDIRECTION 0x40
38 #define START_IDER_REDIRECTION_REPLY 0x41
39 #define END_IDER_REDIRECTION 0x42
40 #define END_IDER_REDIRECTION_REPLY 0x43
41 #define IDER_KEEP_ALIVE_PING 0x44 //Console to Host
42 #define IDER_KEEP_ALIVE_PONG 0x45 //Host to Console
43 #define IDER_RESET_OCCURED 0x46
44 #define IDER_RESET_OCCURED_RESPONSE 0x47
45 #define IDER_DISABLE_ENABLE_FEATURES 0x48
46 #define IDER_DISABLE_ENABLE_FEATURES_REPLY 0x49
47 #define IDER_HEARTBEAT 0x4B
48 #define IDER_COMMAND_WRITTEN 0x50
49 #define IDER_COMMAND_END_RESPONSE 0x51
50 #define IDER_GET_DATA_FROM_HOST 0x52
51 #define IDER_DATA_FROM_HOST 0x53
52 #define IDER_DATA_TO_HOST 0x54
53
54 #define START_IDER_REDIRECTION_LENGTH 18
55 #define START_IDER_REDIRECTION_REPLY_LENGTH 30 //TODO: There is a OEM Defined data field that we are assuming to be 0 bytes..
56 #define END_IDER_REDIRECTION_LENGTH 8
57 #define END_IDER_REDIRECTION_REPLY_LENGTH 8
58 #define IDER_RESET_OCCURED_LENGTH 9
59 #define IDER_RESET_OCCURED_RESPONSE_LENGTH 8
60 #define IDER_DISABLE_ENABLE_FEATURES_REPLY_LENGTH 13
61 #define IDER_COMMAND_END_RESPONSE_LENGTH 31
62 #define IDER_GET_DATA_FROM_HOST_LENGTH 31
63
64 static const unsigned int SOL_SESSION = 0x204C4F53;
65 static const unsigned int IDER_SESSION = 0x52454449;
66
67 static const unsigned short MAX_TRANSMIT_BUFFER = 1000;
68 static const unsigned short TRANSMIT_BUFFER_TIMEOUT = 100;
69 static const unsigned short TRANSMIT_OVERFLOW_TIMEOUT = 0;
70 static const unsigned short HOST_SESSION_RX_TIMEOUT = 10000;
71 static const unsigned short HOST_FIFO_RX_FLUSH_TIMEOUT = 0;
72 static const unsigned short HEARTBEAT_INTERVAL = 5000;
73
74 static const unsigned int SESSION_MANAGER_OEM_IANA_NUMBER = 0x5555; //TODO: Test
75 static const unsigned int SOL_OEM_IANA_NUMBER = 0x6666; //TODO: Test
76
77 static const unsigned short RECEIVE_BUFFER_SIZE = 0x100;
78
79 #endif
Impressum, Datenschutz