Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mei-amt-version.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <stdbool.h>
#include <bits/wordsize.h>
#include <linux/mei.h>

Go to the source code of this file.

Data Structures

struct  mei
 
struct  amt_unicode_string
 
struct  amt_version_type
 
struct  amt_version
 
struct  amt_code_versions
 
struct  amt_host_if_msg_header
 
struct  amt_host_if_resp_header
 
struct  amt_host_if
 

Macros

#define mei_msg(_me, fmt, ARGS...)
 
#define mei_err(_me, fmt, ARGS...)
 
#define AMT_MAJOR_VERSION   1
 
#define AMT_MINOR_VERSION   1
 
#define AMT_STATUS_SUCCESS   0x0
 
#define AMT_STATUS_INTERNAL_ERROR   0x1
 
#define AMT_STATUS_NOT_READY   0x2
 
#define AMT_STATUS_INVALID_AMT_MODE   0x3
 
#define AMT_STATUS_INVALID_MESSAGE_LENGTH   0x4
 
#define AMT_STATUS_HOST_IF_EMPTY_RESPONSE   0x4000
 
#define AMT_STATUS_SDK_RESOURCES   0x1004
 
#define AMT_BIOS_VERSION_LEN   65
 
#define AMT_VERSIONS_NUMBER   50
 
#define AMT_UNICODE_STRING_LEN   20
 
#define AMT_HOST_IF_CODE_VERSIONS_REQUEST   0x0400001A
 
#define AMT_HOST_IF_CODE_VERSIONS_RESPONSE   0x0480001A
 

Functions

struct amt_unicode_string __attribute__ ((packed))
 
int main (int argc, char **argv)
 

Variables

uint16_t length
 
char string [AMT_UNICODE_STRING_LEN]
 
struct amt_unicode_string description
 
struct amt_unicode_string version
 
uint8_t major
 
uint8_t minor
 
uint8_t bios [AMT_BIOS_VERSION_LEN]
 
uint32_t count
 
struct amt_version_type versions [AMT_VERSIONS_NUMBER]
 
uint16_t _reserved
 
uint32_t command
 
struct amt_host_if_msg_header header
 
uint32_t status
 
unsigned char data [0]
 
const uuid_le MEI_IAMTHIF
 
struct amt_host_if_msg_header CODE_VERSION_REQ
 
struct amt_host_if __attribute__
 

Macro Definition Documentation

#define AMT_BIOS_VERSION_LEN   65

Definition at line 233 of file mei-amt-version.c.

#define AMT_HOST_IF_CODE_VERSIONS_REQUEST   0x0400001A

Definition at line 278 of file mei-amt-version.c.

#define AMT_HOST_IF_CODE_VERSIONS_RESPONSE   0x0480001A

Definition at line 279 of file mei-amt-version.c.

#define AMT_MAJOR_VERSION   1

Definition at line 220 of file mei-amt-version.c.

#define AMT_MINOR_VERSION   1

Definition at line 221 of file mei-amt-version.c.

#define AMT_STATUS_HOST_IF_EMPTY_RESPONSE   0x4000

Definition at line 229 of file mei-amt-version.c.

#define AMT_STATUS_INTERNAL_ERROR   0x1

Definition at line 224 of file mei-amt-version.c.

#define AMT_STATUS_INVALID_AMT_MODE   0x3

Definition at line 226 of file mei-amt-version.c.

#define AMT_STATUS_INVALID_MESSAGE_LENGTH   0x4

Definition at line 227 of file mei-amt-version.c.

#define AMT_STATUS_NOT_READY   0x2

Definition at line 225 of file mei-amt-version.c.

#define AMT_STATUS_SDK_RESOURCES   0x1004

Definition at line 230 of file mei-amt-version.c.

#define AMT_STATUS_SUCCESS   0x0

Definition at line 223 of file mei-amt-version.c.

#define AMT_UNICODE_STRING_LEN   20

Definition at line 235 of file mei-amt-version.c.

#define AMT_VERSIONS_NUMBER   50

Definition at line 234 of file mei-amt-version.c.

#define mei_err (   _me,
  fmt,
  ARGS... 
)
Value:
do { \
fprintf(stderr, "Error: " fmt, ##ARGS); \
} while (0)

Definition at line 88 of file mei-amt-version.c.

#define mei_msg (   _me,
  fmt,
  ARGS... 
)
Value:
do { \
if (_me->verbose) \
fprintf(stderr, fmt, ##ARGS); \
} while (0)

Definition at line 83 of file mei-amt-version.c.

Function Documentation

Definition at line 171 of file esd_usb2.c.

int main ( int  argc,
char **  argv 
)

Definition at line 440 of file mei-amt-version.c.

Variable Documentation

u32 _reserved

Definition at line 269 of file mei-amt-version.c.

Definition at line 257 of file mei-amt-version.c.

struct amt_host_if_msg_header CODE_VERSION_REQ
Initial value:
= {
._reserved = 0,
.length = 0
}

Definition at line 281 of file mei-amt-version.c.

Definition at line 270 of file mei-amt-version.c.

uint32_t count

Definition at line 258 of file mei-amt-version.c.

unsigned char data[0]

Definition at line 276 of file mei-amt-version.c.

Definition at line 246 of file mei-amt-version.c.

Definition at line 274 of file mei-amt-version.c.

uint32_t length

Definition at line 241 of file mei-amt-version.c.

u8 major

Definition at line 251 of file mei-amt-version.c.

const uuid_le MEI_IAMTHIF
Initial value:
= UUID_LE(0x12f80028, 0xb4b7, 0x4b2d,
0xac, 0xa8, 0x46, 0xe0, 0xff, 0x65, 0x81, 0x4c)

Definition at line 275 of file mei-amt-version.c.

u8 minor

Definition at line 252 of file mei-amt-version.c.

Definition at line 275 of file mei-amt-version.c.

Definition at line 242 of file mei-amt-version.c.

Definition at line 247 of file mei-amt-version.c.

Definition at line 259 of file mei-amt-version.c.