OpenBIC
OpenSource Bridge-IC
pldm_smbios.h File Reference
#include "pldm.h"
Include dependency graph for pldm_smbios.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __attribute__
 

Macros

#define MAXIMUM_STRUCTURE_SIZE   65535
 
#define MAXIMUM_HANDLE_NUM   0xFEFF
 

Enumerations

enum  pldm_smbios_commands { PLDM_SMBIOS_CMD_CODE_GET_SMBIOS_STRUCTURE_BY_TYPE = 0x05 }
 
enum  pldm_smbios_completion_codes {
  PLDM_SMBIOS_INVALID_DATA_TRANSFER_HANDLE = 0x80 , PLDM_SMBIOS_INVALID_TRANSFER_OPERATION_FLAG = 0x81 , PLDM_SMBIOS_NO_SMBIOS_STRUCTURES = 0x86 , PLDM_SMBIOS_INVALID_SMBIOS_STRUCTURE_TYPE = 0x87 ,
  PLDM_SMBIOS_INVALID_SMBIOS_STRUCTURE_INSTANCE_ID = 0x89
}
 
enum  pldm_smbios_transfer_flag { PLDM_SMBIOS_TRANSFER_FLAG_START = 0x01 , PLDM_SMBIOS_TRANSFER_FLAG_MIDDLE = 0x02 , PLDM_SMBIOS_TRANSFER_FLAG_END = 0x04 , PLDM_SMBIOS_TRANSFER_FLAG_START_AND_END = 0x05 }
 
enum  pldm_smbios_transfer_operation_flag { PLDM_SMBIOS_TRANSFER_OPERATION_FLAG_GET_NEXT_PART = 0x00 , PLDM_SMBIOS_TRANSFER_OPERATION_FLAG_GET_FIRST_PART = 0x01 }
 
enum  smbios_structure_types { SMBIOS_BIOS_INFORMATION = 0 }
 

Functions

void pldm_smbios_init_structures ()
 
uint8_t pldm_smbios_handler_query (uint8_t code, void **ret_fn)
 
uint8_t pldm_smbios_get_text_strings_count (char *text_strings)
 
uint8_t pldm_smbios_get_text_strings_size (char *text_strings)
 
int pldm_smbios_set_bios_information (smbios_bios_information *new_bios_information)
 
const char * pldm_smbios_get_bios_version ()
 

Macro Definition Documentation

◆ MAXIMUM_HANDLE_NUM

#define MAXIMUM_HANDLE_NUM   0xFEFF

◆ MAXIMUM_STRUCTURE_SIZE

#define MAXIMUM_STRUCTURE_SIZE   65535

Enumeration Type Documentation

◆ pldm_smbios_commands

Enumerator
PLDM_SMBIOS_CMD_CODE_GET_SMBIOS_STRUCTURE_BY_TYPE 

◆ pldm_smbios_completion_codes

Enumerator
PLDM_SMBIOS_INVALID_DATA_TRANSFER_HANDLE 
PLDM_SMBIOS_INVALID_TRANSFER_OPERATION_FLAG 
PLDM_SMBIOS_NO_SMBIOS_STRUCTURES 
PLDM_SMBIOS_INVALID_SMBIOS_STRUCTURE_TYPE 
PLDM_SMBIOS_INVALID_SMBIOS_STRUCTURE_INSTANCE_ID 

◆ pldm_smbios_transfer_flag

Enumerator
PLDM_SMBIOS_TRANSFER_FLAG_START 
PLDM_SMBIOS_TRANSFER_FLAG_MIDDLE 
PLDM_SMBIOS_TRANSFER_FLAG_END 
PLDM_SMBIOS_TRANSFER_FLAG_START_AND_END 

◆ pldm_smbios_transfer_operation_flag

Enumerator
PLDM_SMBIOS_TRANSFER_OPERATION_FLAG_GET_NEXT_PART 
PLDM_SMBIOS_TRANSFER_OPERATION_FLAG_GET_FIRST_PART 

◆ smbios_structure_types

Enumerator
SMBIOS_BIOS_INFORMATION 

Function Documentation

◆ pldm_smbios_get_bios_version()

const char * pldm_smbios_get_bios_version ( )

◆ pldm_smbios_get_text_strings_count()

uint8_t pldm_smbios_get_text_strings_count ( char *  text_strings)

◆ pldm_smbios_get_text_strings_size()

uint8_t pldm_smbios_get_text_strings_size ( char *  text_strings)

◆ pldm_smbios_handler_query()

uint8_t pldm_smbios_handler_query ( uint8_t  code,
void **  ret_fn 
)

◆ pldm_smbios_init_structures()

void pldm_smbios_init_structures ( )

◆ pldm_smbios_set_bios_information()

int pldm_smbios_set_bios_information ( smbios_bios_information *  new_bios_information)
Here is the call graph for this function: