Go to the source code of this file.
HAL workarounds
This file contains the declarations that allow run-time selection of workarounds based on the asic type and revision, and range of fw revision.
Definition in file ocs_hal_workaround.h.
Data Structures | |
| struct | ocs_hal_workaround_t |
Macros | |
| #define | HAL_FWREV(a, b, c, d) (((uint64_t)(a) << 48) | ((uint64_t)(b) << 32) | ((uint64_t)(c) << 16) | ((uint64_t)(d))) |
| pack fw revision values into a single uint64_t More... | |
| #define | HAL_FWREV_1(x) HAL_FWREV(x) |
| #define | OCS_FW_VER_STR2(a, b, c, d) #a "." #b "." #c "." #d |
| #define | OCS_FW_VER_STR(x) OCS_FW_VER_STR2(x) |
| #define | OCS_MIN_FW_VER_LANCER 10,4,255,0 |
| #define | OCS_MIN_FW_VER_SKYHAWK 10,4,255,0 |
Functions | |
| void | ocs_hal_workaround_setup (struct ocs_hal_s *hal) |
| Setup HAL runtime workarounds. More... | |
| #define HAL_FWREV | ( | a, | |
| b, | |||
| c, | |||
| d | |||
| ) | (((uint64_t)(a) << 48) | ((uint64_t)(b) << 32) | ((uint64_t)(c) << 16) | ((uint64_t)(d))) |
pack fw revision values into a single uint64_t
Definition at line 49 of file ocs_hal_workaround.h.
| #define HAL_FWREV_1 | ( | x | ) | HAL_FWREV(x) |
Definition at line 50 of file ocs_hal_workaround.h.
| #define OCS_FW_VER_STR | ( | x | ) | OCS_FW_VER_STR2(x) |
Definition at line 53 of file ocs_hal_workaround.h.
| #define OCS_FW_VER_STR2 | ( | a, | |
| b, | |||
| c, | |||
| d | |||
| ) | #a "." #b "." #c "." #d |
Definition at line 52 of file ocs_hal_workaround.h.
| #define OCS_MIN_FW_VER_LANCER 10,4,255,0 |
Definition at line 55 of file ocs_hal_workaround.h.
| #define OCS_MIN_FW_VER_SKYHAWK 10,4,255,0 |
Definition at line 56 of file ocs_hal_workaround.h.
| void ocs_hal_workaround_setup | ( | struct ocs_hal_s * | hal | ) |
Setup HAL runtime workarounds.
The function is called at the end of ocs_hal_setup() to setup any runtime workarounds based on the HAL/SLI setup.
| hal | Pointer to HAL structure |
Definition at line 237 of file ocs_hal_workaround.c.