mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 10:21:25 -04:00
Uniform syscap length.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: I68c43b300e2a729aae0a1aa7a287ee1916b1c5a1
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user