mirror of https://github.com/acidanthera/audk.git
Add necessary brace to fix GCC warnings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9446 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3d342022a1
commit
13796e8c3b
|
@ -78,21 +78,29 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
|
||||||
#define VarErrorOut L"ErrOut"
|
#define VarErrorOut L"ErrOut"
|
||||||
|
|
||||||
#define PCI_DEVICE_PATH_NODE(Func, Dev) \
|
#define PCI_DEVICE_PATH_NODE(Func, Dev) \
|
||||||
|
{ \
|
||||||
{ \
|
{ \
|
||||||
HARDWARE_DEVICE_PATH, \
|
HARDWARE_DEVICE_PATH, \
|
||||||
HW_PCI_DP, \
|
HW_PCI_DP, \
|
||||||
|
{ \
|
||||||
(UINT8) (sizeof (PCI_DEVICE_PATH)), \
|
(UINT8) (sizeof (PCI_DEVICE_PATH)), \
|
||||||
(UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8), \
|
(UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8) \
|
||||||
|
} \
|
||||||
|
}, \
|
||||||
(Func), \
|
(Func), \
|
||||||
(Dev) \
|
(Dev) \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PNPID_DEVICE_PATH_NODE(PnpId) \
|
#define PNPID_DEVICE_PATH_NODE(PnpId) \
|
||||||
|
{ \
|
||||||
{ \
|
{ \
|
||||||
ACPI_DEVICE_PATH, \
|
ACPI_DEVICE_PATH, \
|
||||||
ACPI_DP, \
|
ACPI_DP, \
|
||||||
|
{ \
|
||||||
(UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
|
(UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
|
||||||
(UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8), \
|
(UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8) \
|
||||||
|
}, \
|
||||||
|
}, \
|
||||||
EISA_PNP_ID((PnpId)), \
|
EISA_PNP_ID((PnpId)), \
|
||||||
0 \
|
0 \
|
||||||
}
|
}
|
||||||
|
@ -113,11 +121,15 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
|
||||||
PNPID_DEVICE_PATH_NODE(0x0501)
|
PNPID_DEVICE_PATH_NODE(0x0501)
|
||||||
|
|
||||||
#define gUart \
|
#define gUart \
|
||||||
|
{ \
|
||||||
{ \
|
{ \
|
||||||
MESSAGING_DEVICE_PATH, \
|
MESSAGING_DEVICE_PATH, \
|
||||||
MSG_UART_DP, \
|
MSG_UART_DP, \
|
||||||
|
{ \
|
||||||
(UINT8) (sizeof (UART_DEVICE_PATH)), \
|
(UINT8) (sizeof (UART_DEVICE_PATH)), \
|
||||||
(UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8), \
|
(UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8) \
|
||||||
|
} \
|
||||||
|
}, \
|
||||||
0, \
|
0, \
|
||||||
115200, \
|
115200, \
|
||||||
8, \
|
8, \
|
||||||
|
@ -126,11 +138,15 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define gPcAnsiTerminal \
|
#define gPcAnsiTerminal \
|
||||||
|
{ \
|
||||||
{ \
|
{ \
|
||||||
MESSAGING_DEVICE_PATH, \
|
MESSAGING_DEVICE_PATH, \
|
||||||
MSG_VENDOR_DP, \
|
MSG_VENDOR_DP, \
|
||||||
|
{ \
|
||||||
(UINT8) (sizeof (VENDOR_DEVICE_PATH)), \
|
(UINT8) (sizeof (VENDOR_DEVICE_PATH)), \
|
||||||
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8), \
|
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) \
|
||||||
|
} \
|
||||||
|
}, \
|
||||||
DEVICE_PATH_MESSAGING_PC_ANSI \
|
DEVICE_PATH_MESSAGING_PC_ANSI \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,8 +154,10 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
|
||||||
{ \
|
{ \
|
||||||
END_DEVICE_PATH_TYPE, \
|
END_DEVICE_PATH_TYPE, \
|
||||||
END_ENTIRE_DEVICE_PATH_SUBTYPE, \
|
END_ENTIRE_DEVICE_PATH_SUBTYPE, \
|
||||||
|
{ \
|
||||||
END_DEVICE_PATH_LENGTH, \
|
END_DEVICE_PATH_LENGTH, \
|
||||||
0 \
|
0 \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PCI_CLASS_SCC 0x07
|
#define PCI_CLASS_SCC 0x07
|
||||||
|
|
Loading…
Reference in New Issue