Changeset View
Changeset View
Standalone View
Standalone View
sys/crypto/ccp/ccp_hardware.c
Show All 12 Lines | |||||
} ccp_xts_unitsize_map[] = { | } ccp_xts_unitsize_map[] = { | ||||
{ CCP_XTS_AES_UNIT_SIZE_16, 16 }, | { CCP_XTS_AES_UNIT_SIZE_16, 16 }, | ||||
{ CCP_XTS_AES_UNIT_SIZE_512, 512 }, | { CCP_XTS_AES_UNIT_SIZE_512, 512 }, | ||||
{ CCP_XTS_AES_UNIT_SIZE_1024, 1024 }, | { CCP_XTS_AES_UNIT_SIZE_1024, 1024 }, | ||||
{ CCP_XTS_AES_UNIT_SIZE_2048, 2048 }, | { CCP_XTS_AES_UNIT_SIZE_2048, 2048 }, | ||||
{ CCP_XTS_AES_UNIT_SIZE_4096, 4096 }, | { CCP_XTS_AES_UNIT_SIZE_4096, 4096 }, | ||||
}; | }; | ||||
SYSCTL_NODE(_hw, OID_AUTO, ccp, CTLFLAG_RD, 0, "ccp node"); | SYSCTL_NODE(_hw, OID_AUTO, ccp, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"ccp node"); | |||||
unsigned g_ccp_ring_order = 11; | unsigned g_ccp_ring_order = 11; | ||||
SYSCTL_UINT(_hw_ccp, OID_AUTO, ring_order, CTLFLAG_RDTUN, &g_ccp_ring_order, | SYSCTL_UINT(_hw_ccp, OID_AUTO, ring_order, CTLFLAG_RDTUN, &g_ccp_ring_order, | ||||
0, "Set CCP ring order. (1 << this) == ring size. Min: 6, Max: 16"); | 0, "Set CCP ring order. (1 << this) == ring size. Min: 6, Max: 16"); | ||||
/* | /* | ||||
* Zero buffer, sufficient for padding LSB entries, that does not span a page | * Zero buffer, sufficient for padding LSB entries, that does not span a page | ||||
* boundary | * boundary | ||||
Show All 12 Lines |