cleanup and complete MCI defines accroding to upstream firmware

This commit is contained in:
rjkm
2025-08-22 14:33:22 +02:00
parent bd51e92e29
commit cd1d1b7830
4 changed files with 26 additions and 58 deletions

View File

@@ -63,7 +63,7 @@ int temp_info(int dev, uint32_t link)
{
struct ddb_mci_msg msg = {
.link = link,
.cmd.command = SX8_CMD_GETBIST,
.cmd.command = MCI_CMD_GETBIST,
};
int ret;
int i;
@@ -404,7 +404,7 @@ int mci_license(int dev)
{
struct ddb_mci_msg msg = {
.link = 0,
.cmd.command = CMD_GET_SERIALNUMBER,
.cmd.command = MCI_CMD_GET_SERIALNUMBER,
};
int ret;

View File

@@ -48,7 +48,7 @@ static int mci_get_license(int dev, uint8_t *ID, uint8_t *LK, uint8_t *SN)
{
struct ddb_mci_msg msg = {
.link = 0,
.cmd.command = CMD_GET_SERIALNUMBER,
.cmd.command = MCI_CMD_GET_SERIALNUMBER,
};
int ret;
@@ -71,7 +71,7 @@ static int mci_set_license(int dev, uint8_t *ID, uint8_t *LK)
{
struct ddb_mci_msg msg = {
.link = 0,
.cmd.command = CMD_IMPORT_LICENSE,
.cmd.command = MCI_CMD_IMPORT_LICENSE,
};
int ret;

View File

@@ -456,7 +456,7 @@ void streams_cb(void *priv, char *par, char *val)
int mci_lic(int dev)
{
struct ddb_mci_msg msg = {
.cmd.command = CMD_EXPORT_LICENSE,
.cmd.command = MCI_CMD_EXPORT_LICENSE,
.cmd.get_bb_header.select = 0,
};
struct mci_result *res = &msg.res;