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