Go to the source code of this file.
OCS VPD parser
Definition in file ocs_vpd.h.
| #define VPD_LARGE_RESOURCE_TYPE_ID_STRING_TAG 0x82 |
| #define VPD_LARGE_RESOURCE_TYPE_R_TAG 0x90 |
| #define VPD_LARGE_RESOURCE_TYPE_W_TAG 0x91 |
| #define VPD_SMALL_RESOURCE_TYPE_END_TAG 0x78 |
| static uint8_t* ocs_find_vpd |
( |
uint8_t * |
vpddata, |
|
|
uint32_t |
vpddata_length, |
|
|
const char * |
key |
|
) |
| |
|
inlinestatic |
find a VPD entry
Finds a VPD entry given the two character code
- Parameters
-
| vpddata | pointer to raw vpd data buffer |
| vpddata_length | length of vpddata buffer in bytes |
| key | key to look up |
- Returns
- returns a pointer to the key location or NULL if not found or checksum error
Definition at line 123 of file ocs_vpd.h.
return true if no more vpd buffer data
return true if the vpd buffer data has been completely consumed
- Parameters
-
- Returns
- returns true if no more data
Definition at line 85 of file ocs_vpd.h.
return next VPD byte
Returns next VPD byte and updates accumulated checksum
- Parameters
-
- Returns
- returns next byte for success, or a negative error code value for failure.
Definition at line 64 of file ocs_vpd.h.
| static uint8_t* vpdref |
( |
vpdbuf_t * |
vpd | ) |
|
|
inlinestatic |
return pointer to current VPD data location
Returns a pointer to the current location in the VPD data
- Parameters
-
- Returns
- pointer to current VPD data location
Definition at line 100 of file ocs_vpd.h.