summaryrefslogtreecommitdiff
path: root/UnixPkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-13 07:59:35 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-13 07:59:35 +0000
commitc5085e11b85eb1d082bd93c1e01b1496731ad09c (patch)
tree20b19c14e7848571b7782316189eef1a69f43aa5 /UnixPkg
parenta7451d112dcda017ffbcf61d60d6951515e974f1 (diff)
downloadedk2-c5085e11b85eb1d082bd93c1e01b1496731ad09c.zip
edk2-c5085e11b85eb1d082bd93c1e01b1496731ad09c.tar.gz
edk2-c5085e11b85eb1d082bd93c1e01b1496731ad09c.tar.bz2
Add DevicePathLib reference, for these macros have been moved to DevicePathLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6491 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg')
-rw-r--r--UnixPkg/Library/UnixBdsLib/BdsPlatform.h3
-rw-r--r--UnixPkg/Library/UnixBdsLib/PlatformBds.inf5
-rw-r--r--UnixPkg/Library/UnixBdsLib/PlatformData.c42
3 files changed, 32 insertions, 18 deletions
diff --git a/UnixPkg/Library/UnixBdsLib/BdsPlatform.h b/UnixPkg/Library/UnixBdsLib/BdsPlatform.h
index 32587b6..4935e64 100644
--- a/UnixPkg/Library/UnixBdsLib/BdsPlatform.h
+++ b/UnixPkg/Library/UnixBdsLib/BdsPlatform.h
@@ -32,7 +32,8 @@ Abstract:
#include <Library/PcdLib.h>
#include <Library/GenericBdsLib.h>
#include <Library/PlatformBdsLib.h>
-#include <Library/GraphicsLib.h>
+#include <Library/GraphicsLib.h>
+#include <Library/DevicePathLib.h>
#include <Protocol/UnixThunk.h>
#include <Protocol/UnixIo.h>
diff --git a/UnixPkg/Library/UnixBdsLib/PlatformBds.inf b/UnixPkg/Library/UnixBdsLib/PlatformBds.inf
index 3ce8ff6..37ea09a 100644
--- a/UnixPkg/Library/UnixBdsLib/PlatformBds.inf
+++ b/UnixPkg/Library/UnixBdsLib/PlatformBds.inf
@@ -73,8 +73,9 @@
DebugLib
PcdLib
GraphicsLib
- GenericBdsLib
+ GenericBdsLib
+ DevicePathLib
[Guids]
- gEfiDefaultBmpLogoGuid # ALWAYS_CONSUMED \ No newline at end of file
+ gEfiDefaultBmpLogoGuid # ALWAYS_CONSUMED
diff --git a/UnixPkg/Library/UnixBdsLib/PlatformData.c b/UnixPkg/Library/UnixBdsLib/PlatformData.c
index cf1b55ce..9051dbf 100644
--- a/UnixPkg/Library/UnixBdsLib/PlatformData.c
+++ b/UnixPkg/Library/UnixBdsLib/PlatformData.c
@@ -32,18 +32,22 @@ UINT16 gPlatformBootTimeOutDefault = 10;
//
UNIX_PLATFORM_UGA_DEVICE_PATH gUgaDevicePath0 =
{
- {
+ {
HARDWARE_DEVICE_PATH,
HW_VENDOR_DP,
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
+ {
+ (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
+ (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
+ },
EFI_UNIX_THUNK_PROTOCOL_GUID
},
{
HARDWARE_DEVICE_PATH,
HW_VENDOR_DP,
- (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
- (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8),
+ {
+ (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
+ (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8),
+ },
EFI_UNIX_UGA_GUID,
0
},
@@ -54,15 +58,19 @@ UNIX_PLATFORM_UGA_DEVICE_PATH gUgaDevicePath1 = {
{
HARDWARE_DEVICE_PATH,
HW_VENDOR_DP,
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
+ {
+ (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
+ (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
+ },
EFI_UNIX_THUNK_PROTOCOL_GUID
},
{
HARDWARE_DEVICE_PATH,
HW_VENDOR_DP,
- (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
- (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8),
+ {
+ (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
+ (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8),
+ },
EFI_UNIX_UGA_GUID,
1
},
@@ -72,16 +80,20 @@ UNIX_PLATFORM_UGA_DEVICE_PATH gUgaDevicePath1 = {
UNIX_CONSOLE_DEVICE_PATH gUnixConsoleDevicePath = {
{
HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
+ HW_VENDOR_DP,
+ {
+ (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
+ (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8),
+ },
EFI_UNIX_THUNK_PROTOCOL_GUID
},
{
HARDWARE_DEVICE_PATH,
- HW_VENDOR_DP,
- (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
- (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8),
+ HW_VENDOR_DP,
+ {
+ (UINT8) (sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)),
+ (UINT8) ((sizeof (UNIX_VENDOR_DEVICE_PATH_NODE)) >> 8),
+ },
EFI_UNIX_CONSOLE_GUID,
0
},