NVIDIA DRIVE OS Linux API Reference

5.1.0.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvgph.h File Reference

Detailed Description

NVIDIA Quickboot Interface: Generic Partition Header

GPH is the NVIDIA interface for guest boot loader and related information.

Definition in file nvgph.h.

Go to the source code of this file.

Data Structures

struct  NvGPHObjectSignatureRec
 
struct  NvGPHBLInfoRec
 Stores information needed to locate and verify a boot loader. More...
 
struct  NvGPHRec
 Generic Partition Header. More...
 

Macros

#define CMAC_AES_HASH_LENGTH   4
 
#define NVGPH_MAX_COPIES   64
 
#define NVGPH_COPIES_OFFSET   2048
 
#define MAX_BOOTLOADERS   2
 
#define GPH_CUSTOMER_DATA_SIZE   424
 

Typedefs

typedef struct
NvGPHObjectSignatureRec 
NvGPHObjectSignature
 
typedef struct NvGPHBLInfoRec NvGuestBLInfo
 Stores information needed to locate and verify a boot loader. More...
 
typedef struct NvGPHRec NvGPH
 Generic Partition Header. More...
 

Enumerations

enum  NvGPH_ValidationEnum {
  NvGPH_Validation_AES_CMAC = 1,
  NvGPH_EncryptionAndValidation_AES_CMAC,
  NvGPH_Validation_RSA,
  NvGPH_Validation_SHA256,
  NvGPH_Force = 0xFFFFFFFF
}
 Specifies the type of Validataion to be used. More...
 
enum  NvGPHDataType {
  NvGPHDataType_ValidationType,
  NvGPHDataType_Signature,
  NvGPHDataType_NumValidBL,
  NvGPHDataType_BLInfo,
  NvGPHDataType_PTStart,
  NvGPHDataType_CustData
}
 Data elements of the NvGPH which can be queried and set via the NvGPH set/get API. More...
 

Functions

NvError NvGphInit (QbDriver DeviceId, NvU32 DevInstance, NvU64 Offset, NvU32 PartId)
 Initializes GPH. More...
 
void NvGphDeinit (void)
 Deinitializes GPH. More...
 
NvError NvGPHGetDataSize (NvGPHDataType DataType, NvU32 *Size, NvU32 *NumInstances)
 Gets data size of GPH element. More...
 
NvError NvGPHGetData (NvGPHDataType DataType, NvU32 Size, NvU32 Instance, void *Data)
 Gets the contents of the GPH element. More...
 
NvError NvGPHSetData (NvGPHDataType DataType, NvU32 Size, NvU32 Instance, void *Data)
 Sets the contents of the GPH element. More...
 
NvError NvGphWriteGphApp (NvS8 *FileName, NvU32 Size)
 Writes the GPH to a file. More...
 
void NvPrintGPH (void)
 Prints GPH information to console. More...