diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-14 09:46:12 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-14 09:46:12 +0000 |
commit | c11fa40c4e8124c7dfb8660b67aea1175e91cc13 (patch) | |
tree | f353906b1be94a029ee3cf021ed2db036d4866a2 /MdeModulePkg/Bus | |
parent | 9c1d98d822a9cd2146790d146c3ddd053b9cc759 (diff) | |
download | edk2-platforms-c11fa40c4e8124c7dfb8660b67aea1175e91cc13.tar.xz |
Fix the issue in MdeModulePkg that mismatch between PCD type and the PCD Lib API to get the PCD.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9751 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c | 10 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c | 6 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c | 10 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c | 10 |
5 files changed, 19 insertions, 19 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c index adf36a5b77..ef0a5a2d39 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c @@ -2040,7 +2040,7 @@ CreatePciIoDevice ( );
DEBUG ((EFI_D_INFO, "PCI-IOV B%x.D%x.F%x - SupportedPageSize - 0x%x\n", (UINTN)Bus, (UINTN)Device, (UINTN)Func, PciIoDevice->SystemPageSize));
- PciIoDevice->SystemPageSize = (PcdGet32(PcdSrIovSystemPageSize) & PciIoDevice->SystemPageSize);
+ PciIoDevice->SystemPageSize = (FixedPcdGet32(PcdSrIovSystemPageSize) & PciIoDevice->SystemPageSize);
ASSERT (PciIoDevice->SystemPageSize != 0);
PciIo->Pci.Write (
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c index b8a665cff5..d4b5f38e02 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c @@ -193,7 +193,7 @@ USBKeyboardDriverBindingStart ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueKeyboardEnable),
+ FixedPcdGet32 (PcdStatusCodeValueKeyboardEnable),
UsbKeyboardDevice->DevicePath
);
@@ -202,7 +202,7 @@ USBKeyboardDriverBindingStart ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueKeyboardPresenceDetect),
+ FixedPcdGet32 (PcdStatusCodeValueKeyboardPresenceDetect),
UsbKeyboardDevice->DevicePath
);
@@ -473,7 +473,7 @@ USBKeyboardDriverBindingStop ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueKeyboardDisable),
+ FixedPcdGet32 (PcdStatusCodeValueKeyboardDisable),
UsbKeyboardDevice->DevicePath
);
@@ -658,7 +658,7 @@ USBKeyboardReset ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueKeyboardReset),
+ FixedPcdGet32 (PcdStatusCodeValueKeyboardReset),
UsbKeyboardDevice->DevicePath
);
@@ -669,7 +669,7 @@ USBKeyboardReset ( if (!ExtendedVerification) {
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueKeyboardClearBuffer),
+ FixedPcdGet32 (PcdStatusCodeValueKeyboardClearBuffer),
UsbKeyboardDevice->DevicePath
);
//
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c index 9636d4f2bc..a231bd6e3e 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c @@ -811,7 +811,7 @@ InitUSBKeyboard ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueKeyboardSelfTest),
+ FixedPcdGet32 (PcdStatusCodeValueKeyboardSelfTest),
UsbKeyboardDevice->DevicePath
);
@@ -846,7 +846,7 @@ InitUSBKeyboard ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR,
- PcdGet32 (PcdStatusCodeValueKeyboardInterfaceError),
+ FixedPcdGet32 (PcdStatusCodeValueKeyboardInterfaceError),
UsbKeyboardDevice->DevicePath
);
@@ -1012,7 +1012,7 @@ KeyboardHandler ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR,
- PcdGet32 (PcdStatusCodeValueKeyboardInputError),
+ FixedPcdGet32 (PcdStatusCodeValueKeyboardInputError),
UsbKeyboardDevice->DevicePath
);
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c index 2e22cfcda2..5c39f49dd2 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c +++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c @@ -232,7 +232,7 @@ USBMouseAbsolutePointerDriverBindingStart ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR,
- PcdGet32 (PcdStatusCodeValueMouseInterfaceError),
+ FixedPcdGet32 (PcdStatusCodeValueMouseInterfaceError),
UsbMouseAbsolutePointerDevice->DevicePath
);
@@ -275,7 +275,7 @@ USBMouseAbsolutePointerDriverBindingStart ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueMouseEnable),
+ FixedPcdGet32 (PcdStatusCodeValueMouseEnable),
UsbMouseAbsolutePointerDevice->DevicePath
);
@@ -401,7 +401,7 @@ USBMouseAbsolutePointerDriverBindingStop ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueMouseDisable),
+ FixedPcdGet32 (PcdStatusCodeValueMouseDisable),
UsbMouseAbsolutePointerDevice->DevicePath
);
@@ -682,7 +682,7 @@ OnMouseInterruptComplete ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR,
- PcdGet32 (PcdStatusCodeValueMouseInputError),
+ FixedPcdGet32 (PcdStatusCodeValueMouseInputError),
UsbMouseAbsolutePointerDevice->DevicePath
);
@@ -833,7 +833,7 @@ UsbMouseAbsolutePointerReset ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueMouseReset),
+ FixedPcdGet32 (PcdStatusCodeValueMouseReset),
UsbMouseAbsolutePointerDevice->DevicePath
);
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c index f1b54084b7..667dd2f902 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c +++ b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c @@ -232,7 +232,7 @@ USBMouseDriverBindingStart ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR,
- PcdGet32 (PcdStatusCodeValueMouseInterfaceError),
+ FixedPcdGet32 (PcdStatusCodeValueMouseInterfaceError),
UsbMouseDevice->DevicePath
);
@@ -275,7 +275,7 @@ USBMouseDriverBindingStart ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueMouseEnable),
+ FixedPcdGet32 (PcdStatusCodeValueMouseEnable),
UsbMouseDevice->DevicePath
);
@@ -401,7 +401,7 @@ USBMouseDriverBindingStop ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueMouseDisable),
+ FixedPcdGet32 (PcdStatusCodeValueMouseDisable),
UsbMouseDevice->DevicePath
);
@@ -688,7 +688,7 @@ OnMouseInterruptComplete ( //
REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR,
- PcdGet32 (PcdStatusCodeValueMouseInputError),
+ FixedPcdGet32 (PcdStatusCodeValueMouseInputError),
UsbMouseDevice->DevicePath
);
@@ -838,7 +838,7 @@ UsbMouseReset ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE,
- PcdGet32 (PcdStatusCodeValueMouseReset),
+ FixedPcdGet32 (PcdStatusCodeValueMouseReset),
UsbMouseDevice->DevicePath
);
|