coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vpd_decode.h File Reference
#include <stdint.h>
Include dependency graph for vpd_decode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef int vpd_decode_callback(const u8 *key, u32 key_len, const u8 *value, u32 value_len, void *arg)
 

Enumerations

enum  { VPD_DECODE_OK = 0 , VPD_DECODE_FAIL = 1 }
 
enum  { VPD_TYPE_TERMINATOR = 0 , VPD_TYPE_STRING , VPD_TYPE_INFO = 0xfe , VPD_TYPE_IMPLICIT_TERMINATOR = 0xff }
 

Functions

int vpd_decode_string (const u32 max_len, const u8 *input_buf, u32 *consumed, vpd_decode_callback callback, void *callback_arg)
 

Typedef Documentation

◆ vpd_decode_callback

typedef int vpd_decode_callback(const u8 *key, u32 key_len, const u8 *value, u32 value_len, void *arg)

Definition at line 26 of file vpd_decode.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
VPD_DECODE_OK 
VPD_DECODE_FAIL 

Definition at line 13 of file vpd_decode.h.

◆ anonymous enum

anonymous enum
Enumerator
VPD_TYPE_TERMINATOR 
VPD_TYPE_STRING 
VPD_TYPE_INFO 
VPD_TYPE_IMPLICIT_TERMINATOR 

Definition at line 18 of file vpd_decode.h.

Function Documentation

◆ vpd_decode_string()

int vpd_decode_string ( const u32  max_len,
const u8 input_buf,
u32 consumed,
vpd_decode_callback  callback,
void callback_arg 
)

Definition at line 56 of file vpd_decode.c.

References type, value, vpd_decode_entry(), VPD_DECODE_FAIL, VPD_DECODE_OK, VPD_TYPE_INFO, and VPD_TYPE_STRING.

Referenced by vpd_find_in().

Here is the call graph for this function:
Here is the caller graph for this function: