tee_device_address(3) Library Functions Manual tee_device_address(3)

tee_device_address

#include <metee.h>


enum { TEE_DEVICE_TYPE_NONE = 0, TEE_DEVICE_TYPE_PATH = 1, TEE_DEVICE_TYPE_HANDLE = 2, TEE_DEVICE_TYPE_GUID = 3, TEE_DEVICE_TYPE_BDF = 4, TEE_DEVICE_TYPE_MAX = 5 }


enum tee_device_address:: { ... } type
union {
const char * path
const GUID * guid
TEE_DEVICE_HANDLE handle
struct {
enum { HECI_DEVICE_KIND_PCH, HECI_DEVICE_KIND_GFX_GSC, HECI_DEVICE_KIND_GFX_CSC }
struct {
uint32_t segment
uint32_t bus
uint32_t device
uint32_t function
} value
enum tee_device_address:: { ... } kind
} bdf
} data

Device address passed to the init function

Definition at line 117 of file metee.h.

Device address type

Enumerator

Select first available device
Use device by path (char*)
Use device by pre-opend handle
Select first device by GUID (Windows only)
Use BDF to work with HECI, EFI only
upper sentinel

Definition at line 120 of file metee.h.

HECI device Segment

Definition at line 137 of file metee.h.

Device address

HECI device Bus

Definition at line 138 of file metee.h.

HECI device Device

Definition at line 139 of file metee.h.

< Path to device

Definition at line 132 of file metee.h.

Device GUID (Windows only) Pre-opend handle

Definition at line 133 of file metee.h.

enum { ... } tee_device_address::kind

Specify HW layout: HECI, FWSTS registers locations

Definition at line 131 of file metee.h.

Definition at line 136 of file metee.h.

enum { ... } tee_device_address::type

Device address type

Generated automatically by Doxygen for metee from the source code.

metee