Uniform syscap length.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: I68c43b300e2a729aae0a1aa7a287ee1916b1c5a1
This commit is contained in:
yudechen
2022-06-23 19:08:54 +08:00
parent ece61f39a5
commit c00a36983f
8 changed files with 46 additions and 35 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
#include <stdint.h>
#define MAX_OS_SYSCAP_NUM 960
#define OS_SYSCAP_BYTES 120
#define TYPE_FILE 1
#define TYPE_STRING 2
@@ -28,7 +28,7 @@ typedef struct ProductCompatibilityID {
uint16_t systemType : 3;
uint16_t reserved : 13;
uint32_t manufacturerID;
uint8_t osSyscap[MAX_OS_SYSCAP_NUM / 8];
uint8_t osSyscap[OS_SYSCAP_BYTES];
} PCIDMain;
typedef struct pcidHeader {
+5 -1
View File
@@ -16,8 +16,12 @@
#ifndef _SYSCAP_DEFINE_H
#define _SYSCAP_DEFINE_H
#include <stdint.h>
#define SINGLE_SYSCAP_LEN (256 + 17)
typedef struct SystemCapabilityWithNum {
char syscapStr[128];
char syscapStr[SINGLE_SYSCAP_LEN];
uint16_t num;
} SyscapWithNum;