Assignment of flags starts with bit 0
This commit is contained in:
@@ -32,7 +32,7 @@ typedef struct private_tcg_swid_attr_req_t private_tcg_swid_attr_req_t;
|
|||||||
* 1 2 3
|
* 1 2 3
|
||||||
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
||||||
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
* |Reserved |C|S|R| Tag ID Count |
|
* |R|S|C| Reserved| Tag ID Count |
|
||||||
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
* | Request ID |
|
* | Request ID |
|
||||||
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
@@ -44,7 +44,7 @@ typedef struct private_tcg_swid_attr_req_t private_tcg_swid_attr_req_t;
|
|||||||
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SWID_REQ_RESERVED_MASK 0x03
|
#define SWID_REQ_RESERVED_MASK 0xE0
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private data of an tcg_swid_attr_req_t object.
|
* Private data of an tcg_swid_attr_req_t object.
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ typedef enum tcg_swid_attr_req_flag_t tcg_swid_attr_req_flag_t;
|
|||||||
|
|
||||||
enum tcg_swid_attr_req_flag_t {
|
enum tcg_swid_attr_req_flag_t {
|
||||||
TCG_SWID_ATTR_REQ_FLAG_NONE = 0,
|
TCG_SWID_ATTR_REQ_FLAG_NONE = 0,
|
||||||
TCG_SWID_ATTR_REQ_FLAG_R = (1 << 0),
|
TCG_SWID_ATTR_REQ_FLAG_R = (1 << 7),
|
||||||
TCG_SWID_ATTR_REQ_FLAG_S = (1 << 1),
|
TCG_SWID_ATTR_REQ_FLAG_S = (1 << 6),
|
||||||
TCG_SWID_ATTR_REQ_FLAG_C = (1 << 2)
|
TCG_SWID_ATTR_REQ_FLAG_C = (1 << 5)
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "tcg/tcg_attr.h"
|
#include "tcg/tcg_attr.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user