|
OpenBIC
OpenSource Bridge-IC
|
#include "plat_pcc.h"#include "pcc.h"#include <zephyr.h>#include <logging/log.h>#include <string.h>
Macros | |
| #define | POSTCODE_PREFIX_BL 0xEE000000ul |
| #define | POSTCODE_PREFIX_DDEE 0xDD000000ul |
| #define | POSTCODE_PREFIX_ABL_ERROR 0xEA000000ul |
| #define | POSTCODE_PREFIX_AGESA_ERROR 0xB0000000ul |
| #define | POSTCODE_PREFIX_UNEXPECTED 0x00000000ul |
| #define | GET_POSTCODE_PREFIX(code) ((code) & 0xFF000000ul) |
| #define | GET_HIGH_WORD(code) (((code) >> 16) & 0xFFFF) |
| #define | GET_LOW_WORD(code) ((code) & 0xFFFF) |
| #define | GET_24BIT_VALUE(code) ((code) & 0x00FFFFFF) |
| #define | BL_POSTCODE_MAX 0x009F |
| #define | POSTCODE_EXCLUDE_ZERO 0x00000000 |
| #define | POSTCODE_EXCLUDE_ABCD 0x0000ABCD |
| #define | FILTERED_POSTCODE_BUFFER_SIZE 15 |
Functions | |
| LOG_MODULE_REGISTER (plat_pcc) | |
| void | pcc_platform_store_postcode (uint32_t postcode) |
| void | pcc_platform_filter_init (void) |
| bool | pcc_platform_filter_postcode (uint32_t postcode) |
| void | plat_pcc_set_filter_enable (bool enable) |
| bool | plat_pcc_get_filter_enable (void) |
| uint8_t | plat_pcc_copy_filtered_postcodes (uint32_t *buffer, uint8_t buffer_size) |
| #define BL_POSTCODE_MAX 0x009F |
| #define FILTERED_POSTCODE_BUFFER_SIZE 15 |
| #define GET_24BIT_VALUE | ( | code | ) | ((code) & 0x00FFFFFF) |
| #define GET_HIGH_WORD | ( | code | ) | (((code) >> 16) & 0xFFFF) |
| #define GET_LOW_WORD | ( | code | ) | ((code) & 0xFFFF) |
| #define GET_POSTCODE_PREFIX | ( | code | ) | ((code) & 0xFF000000ul) |
| #define POSTCODE_EXCLUDE_ABCD 0x0000ABCD |
| #define POSTCODE_EXCLUDE_ZERO 0x00000000 |
| #define POSTCODE_PREFIX_ABL_ERROR 0xEA000000ul |
| #define POSTCODE_PREFIX_AGESA_ERROR 0xB0000000ul |
| #define POSTCODE_PREFIX_BL 0xEE000000ul |
| #define POSTCODE_PREFIX_DDEE 0xDD000000ul |
| #define POSTCODE_PREFIX_UNEXPECTED 0x00000000ul |
| LOG_MODULE_REGISTER | ( | plat_pcc | ) |
| void pcc_platform_filter_init | ( | void | ) |
| bool pcc_platform_filter_postcode | ( | uint32_t | postcode | ) |
| void pcc_platform_store_postcode | ( | uint32_t | postcode | ) |
| uint8_t plat_pcc_copy_filtered_postcodes | ( | uint32_t * | buffer, |
| uint8_t | buffer_size | ||
| ) |
| bool plat_pcc_get_filter_enable | ( | void | ) |
| void plat_pcc_set_filter_enable | ( | bool | enable | ) |