CXL_CMD(GET_SCAN_MEDIA_CAPS, 0x10, 0x4, 0),
CXL_CMD(SCAN_MEDIA, 0x11, 0, 0),
CXL_CMD(GET_SCAN_MEDIA, 0, CXL_VARIABLE_PAYLOAD, 0),
- CXL_CMD(GET_SECURITY_STATE, 0, 0x4, 0),
- CXL_CMD(SET_PASSPHRASE, 0x60, 0, 0),
- CXL_CMD(DISABLE_PASSPHRASE, 0x40, 0, 0),
- CXL_CMD(FREEZE_SECURITY, 0, 0, 0),
- CXL_CMD(UNLOCK, 0x20, 0, 0),
- CXL_CMD(PASSPHRASE_SECURE_ERASE, 0x40, 0, 0),
};
/*
/* Found the required CEL */
rc = 0;
}
-
- /*
- * Setup permanently kernel exclusive commands, i.e. the
- * mechanism is driven through sysfs, keyctl, etc...
- */
- set_bit(CXL_MEM_COMMAND_ID_SET_PASSPHRASE, cxlds->exclusive_cmds);
- set_bit(CXL_MEM_COMMAND_ID_DISABLE_PASSPHRASE, cxlds->exclusive_cmds);
- set_bit(CXL_MEM_COMMAND_ID_UNLOCK, cxlds->exclusive_cmds);
- set_bit(CXL_MEM_COMMAND_ID_PASSPHRASE_SECURE_ERASE,
- cxlds->exclusive_cmds);
-
out:
kvfree(gsl);
return rc;
___C(GET_SCAN_MEDIA_CAPS, "Get Scan Media Capabilities"), \
___C(SCAN_MEDIA, "Scan Media"), \
___C(GET_SCAN_MEDIA, "Get Scan Media Results"), \
- ___C(GET_SECURITY_STATE, "Get Security State"), \
- ___C(SET_PASSPHRASE, "Set Passphrase"), \
- ___C(DISABLE_PASSPHRASE, "Disable Passphrase"), \
- ___C(FREEZE_SECURITY, "Freeze Security"), \
- ___C(UNLOCK, "Unlock"), \
- ___C(PASSPHRASE_SECURE_ERASE, "Passphrase Secure Erase"), \
___C(MAX, "invalid / last command")
#define ___C(a, b) CXL_MEM_COMMAND_ID_##a