diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-03 00:56:15 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-03 00:56:15 +0000 |
commit | 9e65d5e9754ef45c979d58d24e9762c07e0f2ad5 (patch) | |
tree | 29f240d7eeca2f3230163f370a0638465d1b059b /DuetPkg/Library/DuetBdsLib/BdsPlatform.h | |
parent | 6583c3582fc6f36131a9516ed3027122f19a842e (diff) | |
download | edk2-platforms-9e65d5e9754ef45c979d58d24e9762c07e0f2ad5.tar.xz |
Clean up DuetBdsLib:
Refine to pass CYGWIN GCC tool chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7410 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/Library/DuetBdsLib/BdsPlatform.h')
-rw-r--r-- | DuetPkg/Library/DuetBdsLib/BdsPlatform.h | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.h b/DuetPkg/Library/DuetBdsLib/BdsPlatform.h index 9419607410..ed4bc1ef66 100644 --- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.h +++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.h @@ -75,18 +75,24 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode; { \
HARDWARE_DEVICE_PATH, \
HW_PCI_DP, \
- (UINT8) (sizeof (PCI_DEVICE_PATH)), \
- (UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8), \
+ { \
+ (UINT8) (sizeof (PCI_DEVICE_PATH)), \
+ (UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8) \
+ }, \
(Func), \
(Dev) \
}
#define PNPID_DEVICE_PATH_NODE(PnpId) \
{ \
- ACPI_DEVICE_PATH, \
- ACPI_DP, \
- (UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
- (UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8), \
+ { \
+ ACPI_DEVICE_PATH, \
+ ACPI_DP, \
+ { \
+ (UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
+ (UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8) \
+ } \
+ }, \
EISA_PNP_ID((PnpId)), \
0 \
}
@@ -108,10 +114,14 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode; #define gUart \
{ \
- MESSAGING_DEVICE_PATH, \
- MSG_UART_DP, \
- (UINT8) (sizeof (UART_DEVICE_PATH)), \
- (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8), \
+ { \
+ MESSAGING_DEVICE_PATH, \
+ MSG_UART_DP, \
+ { \
+ (UINT8) (sizeof (UART_DEVICE_PATH)), \
+ (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8) \
+ } \
+ }, \
0, \
115200, \
8, \
@@ -121,10 +131,14 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode; #define gPcAnsiTerminal \
{ \
- MESSAGING_DEVICE_PATH, \
- MSG_VENDOR_DP, \
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)), \
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8), \
+ { \
+ MESSAGING_DEVICE_PATH, \
+ MSG_VENDOR_DP, \
+ { \
+ (UINT8) (sizeof (VENDOR_DEVICE_PATH)), \
+ (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) \
+ } \
+ }, \
DEVICE_PATH_MESSAGING_PC_ANSI \
}
@@ -132,8 +146,10 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode; { \
END_DEVICE_PATH_TYPE, \
END_ENTIRE_DEVICE_PATH_SUBTYPE, \
- END_DEVICE_PATH_LENGTH, \
- 0 \
+ { \
+ END_DEVICE_PATH_LENGTH, \
+ 0 \
+ } \
}
#define PCI_CLASS_SCC 0x07
|