diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ccd_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ccd_config.h b/include/ccd_config.h index 7c377f394f..4cc84ae770 100644 --- a/include/ccd_config.h +++ b/include/ccd_config.h @@ -172,6 +172,11 @@ struct ccd_capability_info { #define CCD_STATE_NAMES { "Locked", "Unlocked", "Opened" } #define CCD_CAP_STATE_NAMES { "Default", "Always", "UnlessLocked", "IfOpened" } +/* Macros regarding ccd_capabilities */ +#define CCD_CAP_BITS 2 +#define CCD_CAP_BITMASK ((1 << CCD_CAP_BITS) - 1) +#define CCD_CAPS_PER_BYTE (8 / CCD_CAP_BITS) + /* * Subcommand code, used to pass different CCD commands using the same TPM * vendor command. |