Skip to content

Responses

Dorian Stoll edited this page Jan 7, 2020 · 2 revisions

Responses are events, that are sent from the ME to the host, as a reaction to a command that was sent before. They will consist of the 4 byte response code, a 4 byte status code, and 80 bytes payload.

struct ipts_response {
	u32 code;
	u32 status;
	u8 data[80];
};

The status code can be described using the following enumeration:

enum ipts_status {
	IPTS_STATUS_SUCCESS = 0,
	IPTS_STATUS_INVALID_PARAMS,
	IPTS_STATUS_ACCESS_DENIED,
	IPTS_STATUS_CMD_SIZE_ERROR,
	IPTS_STATUS_NOT_READY,
	IPTS_STATUS_REQUEST_OUTSTANDING,
	IPTS_STATUS_NO_SENSOR_FOUND,
	IPTS_STATUS_OUT_OF_MEMORY,
	IPTS_STATUS_INTERNAL_ERROR,
	IPTS_STATUS_SENSOR_DISABLED,
	IPTS_STATUS_COMPAT_CHECK_FAIL,
	IPTS_STATUS_SENSOR_EXPECTED_RESET,
	IPTS_STATUS_SENSOR_UNEXPECTED_RESET,
	IPTS_STATUS_RESET_FAILED,
	IPTS_STATUS_TIMEOUT,
	IPTS_STATUS_TEST_MODE_FAIL,
	IPTS_STATUS_SENSOR_FAIL_FATAL,
	IPTS_STATUS_SENSOR_FAIL_NONFATAL,
	IPTS_STATUS_INVALID_DEVICE_CAPS,
	IPTS_STATUS_QUIESCE_IO_IN_PROGRESS,
	IPTS_STATUS_MAX
};
Clone this wiki locally