MdeModulePkg/DriverSampleDxe: Refine the sample case for UNION type
The example of UNION storage is not good, now update it.
Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit f7d05bddd7
)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@ -53,8 +53,8 @@ typedef struct {
|
||||
} MY_BITS_DATA;
|
||||
|
||||
typedef union {
|
||||
UINT16 BitField : 10;
|
||||
UINT8 ByteField;
|
||||
UINT8 UnionNumeric;
|
||||
UINT8 UnionNumericAlias;
|
||||
} MY_EFI_UNION_DATA;
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user