Make EdkModulePkg pass Intel IPF compiler with /W4 /WX switches, solving warning...
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 Jan 2007 04:57:46 +0000 (04:57 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 31 Jan 2007 04:57:46 +0000 (04:57 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2338 6f19259b-4bc3-4df7-8a09-765794883524

100 files changed:
EdkModulePkg/Application/HelloWorld/HelloWorld.c
EdkModulePkg/Bus/Pci/AtapiPassThru/Dxe/AtapiPassThru.c
EdkModulePkg/Bus/Pci/AtapiPassThru/Dxe/AtapiPassThru.h
EdkModulePkg/Bus/Pci/AtapiPassThru/Dxe/ComponentName.c
EdkModulePkg/Bus/Pci/CirrusLogic/Dxe/CirrusLogic5430.h
EdkModulePkg/Bus/Pci/CirrusLogic/Dxe/CirrusLogic5430UgaDraw.c
EdkModulePkg/Bus/Pci/CirrusLogic/Dxe/ComponentName.c
EdkModulePkg/Bus/Pci/Ehci/Dxe/ComponentName.c
EdkModulePkg/Bus/Pci/Ehci/Dxe/Ehci.c
EdkModulePkg/Bus/Pci/Ehci/Dxe/Ehci.h
EdkModulePkg/Bus/Pci/IdeBus/Dxe/DriverConfiguration.c
EdkModulePkg/Bus/Pci/IdeBus/Dxe/DriverDiagnostics.c
EdkModulePkg/Bus/Pci/IdeBus/Dxe/ata.c
EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.h
EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c
EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.h
EdkModulePkg/Bus/Pci/Uhci/Dxe/ComponentName.c
EdkModulePkg/Bus/Pci/Uhci/Dxe/uhci.c
EdkModulePkg/Bus/Pci/Uhci/Dxe/uhci.h
EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c
EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Init.c
EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Undi32.h
EdkModulePkg/Bus/Scsi/ScsiBus/Dxe/ComponentName.c
EdkModulePkg/Bus/Scsi/ScsiBus/Dxe/ScsiBus.c
EdkModulePkg/Bus/Scsi/ScsiBus/Dxe/ScsiBus.h
EdkModulePkg/Bus/Scsi/ScsiDisk/Dxe/ComponentName.c
EdkModulePkg/Bus/Scsi/ScsiDisk/Dxe/ScsiDisk.c
EdkModulePkg/Bus/Scsi/ScsiDisk/Dxe/ScsiDisk.h
EdkModulePkg/Bus/Usb/UsbBot/Dxe/ComponentName.c
EdkModulePkg/Bus/Usb/UsbBot/Dxe/bot.c
EdkModulePkg/Bus/Usb/UsbBot/Dxe/bot.h
EdkModulePkg/Bus/Usb/UsbBus/Dxe/ComponentName.c
EdkModulePkg/Bus/Usb/UsbBus/Dxe/usbbus.c
EdkModulePkg/Bus/Usb/UsbBus/Dxe/usbbus.h
EdkModulePkg/Bus/Usb/UsbCbi/Dxe/Cbi0/Cbi0.c
EdkModulePkg/Bus/Usb/UsbCbi/Dxe/Cbi0/ComponentName.c
EdkModulePkg/Bus/Usb/UsbCbi/Dxe/Cbi0/cbi.h
EdkModulePkg/Bus/Usb/UsbCbi/Dxe/Cbi1/ComponentName.c
EdkModulePkg/Bus/Usb/UsbCbi/Dxe/Cbi1/cbi.h
EdkModulePkg/Bus/Usb/UsbCbi/Dxe/Cbi1/cbi1.c
EdkModulePkg/Bus/Usb/UsbKb/Dxe/ComponentName.c
EdkModulePkg/Bus/Usb/UsbKb/Dxe/efikey.c
EdkModulePkg/Bus/Usb/UsbKb/Dxe/efikey.h
EdkModulePkg/Bus/Usb/UsbKb/Dxe/keyboard.h
EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/ComponentName.c
EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorage.c
EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorage.h
EdkModulePkg/Bus/Usb/UsbMouse/Dxe/ComponentName.c
EdkModulePkg/Bus/Usb/UsbMouse/Dxe/usbmouse.c
EdkModulePkg/Bus/Usb/UsbMouse/Dxe/usbmouse.h
EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c
EdkModulePkg/Core/Dxe/DxeMain.h
EdkModulePkg/Core/Dxe/DxeMain/DxeMain.c
EdkModulePkg/Core/Dxe/Event/timer.c
EdkModulePkg/Core/Dxe/Image/ImageFile.c
EdkModulePkg/Core/Dxe/Mem/Page.c
EdkModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c
EdkModulePkg/Core/Pei/Dispatcher/Dispatcher.c
EdkModulePkg/Core/Pei/Ipf/IpfPeiMain.h [new file with mode: 0644]
EdkModulePkg/Core/Pei/Ipf/SwitchToCacheMode.c
EdkModulePkg/Core/Pei/PeiMain.msa
EdkModulePkg/Core/Pei/Security/Security.c
EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
EdkModulePkg/Universal/Console/ConSplitter/Dxe/ComponentName.c
EdkModulePkg/Universal/Console/ConSplitter/Dxe/ConSplitter.h
EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c
EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.h
EdkModulePkg/Universal/Console/Terminal/Dxe/ComponentName.c
EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.c
EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.h
EdkModulePkg/Universal/Disk/DiskIo/Dxe/ComponentName.c
EdkModulePkg/Universal/Disk/DiskIo/Dxe/DiskIo.h
EdkModulePkg/Universal/Disk/DiskIo/Dxe/diskio.c
EdkModulePkg/Universal/Disk/Partition/Dxe/ComponentName.c
EdkModulePkg/Universal/Disk/Partition/Dxe/Gpt.c
EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.c
EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.h
EdkModulePkg/Universal/Ebc/Dxe/EbcExecute.c
EdkModulePkg/Universal/Ebc/Dxe/EbcInt.c
EdkModulePkg/Universal/Ebc/Dxe/Ipf/EbcSupport.c
EdkModulePkg/Universal/Ebc/Dxe/Ipf/EbcSupport.h [new file with mode: 0644]
EdkModulePkg/Universal/EmuVariable/RuntimeDxe/Ipf/InitVariable.c
EdkModulePkg/Universal/EmuVariable/RuntimeDxe/Variable.h
EdkModulePkg/Universal/FirmwareVolume/GuidedSectionExtraction/Crc32SectionExtract/Dxe/Crc32SectionExtract.c
EdkModulePkg/Universal/FirmwareVolume/GuidedSectionExtraction/Crc32SectionExtract/Dxe/Crc32SectionExtract.h
EdkModulePkg/Universal/Network/PxeBc/Dxe/Bc.h
EdkModulePkg/Universal/Network/PxeBc/Dxe/ComponentName.c
EdkModulePkg/Universal/Network/PxeBc/Dxe/bc.c
EdkModulePkg/Universal/Network/PxeDhcp4/Dxe/ComponentName.c
EdkModulePkg/Universal/Network/PxeDhcp4/Dxe/PxeDhcp4.c
EdkModulePkg/Universal/Network/PxeDhcp4/Dxe/PxeDhcp4.h
EdkModulePkg/Universal/Network/Snp32_64/Dxe/ComponentName.c
EdkModulePkg/Universal/Network/Snp32_64/Dxe/Snp.h
EdkModulePkg/Universal/Network/Snp32_64/Dxe/callback.c
EdkModulePkg/Universal/StatusCode/Dxe/Ipf/DxeStatusCodeIpf.c
EdkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.c
EdkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.h
EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Setup.c
EdkModulePkg/Universal/Variable/RuntimeDxe/Ipf/InitVariable.c
EdkModulePkg/Universal/Variable/RuntimeDxe/Variable.h

index 18705100bed4465aa8d2544c9f79c3243ecb3a7d..cd6113fb771ed140df447000902df86be3cc7287 100644 (file)
@@ -28,13 +28,6 @@ Print (
   return;\r
 }\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-UefiMain (\r
-  IN EFI_HANDLE        ImageHandle,\r
-  IN EFI_SYSTEM_TABLE  *SystemTable\r
-  );\r
-\r
 EFI_STATUS\r
 EFIAPI\r
 UefiMain (\r
index 28be3f702643a9f09f6f211a1db901baddeebd80..96ed4d5c6b44e917d723ef498a969446cab486b8 100644 (file)
 \r
 #include "AtapiPassThru.h"\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-AtapiScsiPassThruDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN EFI_HANDLE                   Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-AtapiScsiPassThruDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN EFI_HANDLE                   Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-AtapiScsiPassThruDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN  EFI_HANDLE                      Controller,\r
-  IN  UINTN                           NumberOfChildren,\r
-  IN  EFI_HANDLE                      *ChildHandleBuffer\r
-  );\r
-\r
 ///\r
 /// IDE registers' fixed address\r
 ///\r
index fda57368784ac195651e921038e5dba4ea0a61c8..f14388be956dc23d1709ab812fc823b752c7d203 100644 (file)
@@ -236,6 +236,53 @@ typedef struct {
 //\r
 // function prototype\r
 //\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+AtapiScsiPassThruDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN EFI_HANDLE                   Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+AtapiScsiPassThruDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN EFI_HANDLE                   Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+AtapiScsiPassThruDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN  EFI_HANDLE                      Controller,\r
+  IN  UINTN                           NumberOfChildren,\r
+  IN  EFI_HANDLE                      *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+AtapiScsiPassThruComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+AtapiScsiPassThruComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 /**\r
   AtapiScsiPassThruDriverEntryPoint\r
 \r
index b0b22317055d6d474d41c37bf05c729ecf30e704..1731571069b027f92b19c58bab856e0d8f0f5459 100644 (file)
 **/\r
 #include "AtapiPassThru.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-AtapiScsiPassThruComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-AtapiScsiPassThruComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 ///\r
 /// EFI Component Name Protocol\r
 ///\r
index b1984c8865473d578f7fa25924046f88f3881647..af841b704f6a1067ff1e195250220672c8b745bb 100644 (file)
@@ -62,6 +62,19 @@ typedef struct {
   UINT8                                 *LineBuffer;\r
 } CIRRUS_LOGIC_5430_PRIVATE_DATA;\r
 \r
+///\r
+/// Video Mode structure\r
+///\r
+typedef struct {\r
+  UINT32  Width;\r
+  UINT32  Height;\r
+  UINT32  ColorDepth;\r
+  UINT32  RefreshRate;\r
+  UINT8   *CrtcSettings;\r
+  UINT16  *SeqSettings;\r
+  UINT8   MiscSetting;\r
+} CIRRUS_LOGIC_5430_VIDEO_MODES;\r
+\r
 #define CIRRUS_LOGIC_5430_PRIVATE_DATA_FROM_UGA_DRAW_THIS(a) \\r
   CR(a, CIRRUS_LOGIC_5430_PRIVATE_DATA, UgaDraw, CIRRUS_LOGIC_5430_PRIVATE_DATA_SIGNATURE)\r
 \r
@@ -200,4 +213,79 @@ CirrusLogic5430ControllerDriverStop (
   )\r
 ;\r
 \r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+CirrusLogic5430ComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+CirrusLogic5430ComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
+//\r
+// Local Function Prototypes\r
+//\r
+VOID\r
+InitializeGraphicsMode (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
+  CIRRUS_LOGIC_5430_VIDEO_MODES   *ModeData\r
+  );\r
+\r
+VOID\r
+SetPaletteColor (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
+  UINTN                           Index,\r
+  UINT8                           Red,\r
+  UINT8                           Green,\r
+  UINT8                           Blue\r
+  );\r
+\r
+VOID\r
+SetDefaultPalette (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private\r
+  );\r
+\r
+VOID\r
+DrawLogo (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private\r
+  );\r
+\r
+VOID\r
+outb (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
+  UINTN                           Address,\r
+  UINT8                           Data\r
+  );\r
+\r
+VOID\r
+outw (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
+  UINTN                           Address,\r
+  UINT16                          Data\r
+  );\r
+\r
+UINT8\r
+inb (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
+  UINTN                           Address\r
+  );\r
+\r
+UINT16\r
+inw (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
+  UINTN                           Address\r
+  );\r
+\r
 #endif\r
index be05f8766f4593d28d7d0c8db7af44fe6a25acd0..e71ec8e405345948a0478da586ceddce8b63551b 100644 (file)
 \r
 #include "CirrusLogic5430.h"\r
 \r
-///\r
-/// Video Mode structure\r
-///\r
-typedef struct {\r
-  UINT32  Width;\r
-  UINT32  Height;\r
-  UINT32  ColorDepth;\r
-  UINT32  RefreshRate;\r
-  UINT8   *CrtcSettings;\r
-  UINT16  *SeqSettings;\r
-  UINT8   MiscSetting;\r
-} CIRRUS_LOGIC_5430_VIDEO_MODES;\r
+STATIC\r
+VOID\r
+ClearScreen (\r
+  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private\r
+  );\r
 \r
 ///\r
 /// Generic Attribute Controller Register Settings\r
@@ -99,66 +92,6 @@ static CIRRUS_LOGIC_5430_VIDEO_MODES  CirrusLogic5430VideoModes[] = {
   { 1024, 768, 8, 60, Crtc_1024_768_256_60, Seq_1024_768_256_60, 0xef } \r
 };\r
 \r
-//\r
-// Local Function Prototypes\r
-//\r
-VOID\r
-InitializeGraphicsMode (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
-  CIRRUS_LOGIC_5430_VIDEO_MODES   *ModeData\r
-  );\r
-\r
-VOID\r
-SetPaletteColor (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
-  UINTN                           Index,\r
-  UINT8                           Red,\r
-  UINT8                           Green,\r
-  UINT8                           Blue\r
-  );\r
-\r
-VOID\r
-SetDefaultPalette (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private\r
-  );\r
-\r
-STATIC\r
-VOID\r
-ClearScreen (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private\r
-  );\r
-\r
-VOID\r
-DrawLogo (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private\r
-  );\r
-\r
-VOID\r
-outb (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
-  UINTN                           Address,\r
-  UINT8                           Data\r
-  );\r
-\r
-VOID\r
-outw (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
-  UINTN                           Address,\r
-  UINT16                          Data\r
-  );\r
-\r
-UINT8\r
-inb (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
-  UINTN                           Address\r
-  );\r
-\r
-UINT16\r
-inw (\r
-  CIRRUS_LOGIC_5430_PRIVATE_DATA  *Private,\r
-  UINTN                           Address\r
-  );\r
-\r
 //\r
 // UGA Draw Protocol Member Functions\r
 //\r
index 38d86a556c5b6004741e82e9c36e971ab3f408f1..361bf83ff1a4d43310858ffecdb9aaef3c34f00f 100644 (file)
 \r
 #include "CirrusLogic5430.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-CirrusLogic5430ComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-CirrusLogic5430ComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 12cb7665d1b13e8181fa821282bbbe08e8ea0759..5d332e018d2bd9afae6d49e47d6ba6d411ff5fcf 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "Ehci.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-EhciComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
-  IN  CHAR8                           *Language,\r
-  OUT CHAR16                          **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
-  IN  EFI_HANDLE                      ControllerHandle,\r
-  IN  EFI_HANDLE                      ChildHandle, OPTIONAL\r
-  IN  CHAR8                           *Language,\r
-  OUT CHAR16                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index e6a4f6130b15162353b42c81098cbef253df952c..cb89e178f75b026b3f950427424a9538859bf11e 100644 (file)
@@ -27,190 +27,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED UINTN    gEHCDebugLevel  = EFI_D_ERROR;
 GLOBAL_REMOVE_IF_UNREFERENCED UINTN    gEHCErrorLevel  = EFI_D_ERROR;\r
 \r
 \r
-//\r
-// Prototypes\r
-// Driver model protocol interface\r
-//\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN EFI_HANDLE                      Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN EFI_HANDLE                      Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN  EFI_HANDLE                      Controller,\r
-  IN  UINTN                           NumberOfChildren,\r
-  IN  EFI_HANDLE                      *ChildHandleBuffer\r
-  );\r
-\r
-//\r
-// Ehci protocol interface\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-EhciGetCapability (\r
-  IN  EFI_USB2_HC_PROTOCOL   *This,\r
-  OUT UINT8                  *MaxSpeed,\r
-  OUT UINT8                  *PortNumber,\r
-  OUT UINT8                  *Is64BitCapable\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciReset (\r
-  IN  EFI_USB2_HC_PROTOCOL     *This,\r
-  IN  UINT16                   Attributes\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciGetState (\r
-  IN  EFI_USB2_HC_PROTOCOL     *This,\r
-  OUT EFI_USB_HC_STATE         *State\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciSetState (\r
-  IN  EFI_USB2_HC_PROTOCOL     *This,\r
-  IN  EFI_USB_HC_STATE         State\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciControlTransfer (\r
-  IN  EFI_USB2_HC_PROTOCOL                 *This,\r
-  IN  UINT8                                DeviceAddress,\r
-  IN  UINT8                                DeviceSpeed,\r
-  IN  UINTN                                MaximumPacketLength,\r
-  IN  EFI_USB_DEVICE_REQUEST               *Request,\r
-  IN  EFI_USB_DATA_DIRECTION               TransferDirection,\r
-  IN  OUT VOID                             *Data,\r
-  IN  OUT UINTN                            *DataLength,\r
-  IN  UINTN                                TimeOut,\r
-  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR   *Translator,\r
-  OUT UINT32                               *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciBulkTransfer (\r
-  IN  EFI_USB2_HC_PROTOCOL                *This,\r
-  IN  UINT8                               DeviceAddress,\r
-  IN  UINT8                               EndPointAddress,\r
-  IN  UINT8                               DeviceSpeed,\r
-  IN  UINTN                               MaximumPacketLength,\r
-  IN  UINT8                               DataBuffersNumber,\r
-  IN  OUT VOID                            *Data[EFI_USB_MAX_BULK_BUFFER_NUM],\r
-  IN  OUT UINTN                           *DataLength,\r
-  IN  OUT UINT8                           *DataToggle,\r
-  IN  UINTN                               TimeOut,\r
-  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR  *Translator,\r
-  OUT UINT32                              *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciAsyncInterruptTransfer (\r
-  IN  EFI_USB2_HC_PROTOCOL                  * This,\r
-  IN  UINT8                                 DeviceAddress,\r
-  IN  UINT8                                 EndPointAddress,\r
-  IN  UINT8                                 DeviceSpeed,\r
-  IN  UINTN                                 MaxiumPacketLength,\r
-  IN  BOOLEAN                               IsNewTransfer,\r
-  IN  OUT UINT8                             *DataToggle,\r
-  IN  UINTN                                 PollingInterval,\r
-  IN  UINTN                                 DataLength,\r
-  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR    *Translator,\r
-  IN  EFI_ASYNC_USB_TRANSFER_CALLBACK       CallBackFunction,\r
-  IN  VOID                                  *Context OPTIONAL\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciSyncInterruptTransfer (\r
-  IN  EFI_USB2_HC_PROTOCOL                  *This,\r
-  IN  UINT8                                 DeviceAddress,\r
-  IN  UINT8                                 EndPointAddress,\r
-  IN  UINT8                                 DeviceSpeed,\r
-  IN  UINTN                                 MaximumPacketLength,\r
-  IN  OUT VOID                              *Data,\r
-  IN  OUT UINTN                             *DataLength,\r
-  IN  OUT UINT8                             *DataToggle,\r
-  IN  UINTN                                 TimeOut,\r
-  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR    *Translator,\r
-  OUT UINT32                                *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciIsochronousTransfer (\r
-  IN  EFI_USB2_HC_PROTOCOL                  *This,\r
-  IN  UINT8                                 DeviceAddress,\r
-  IN  UINT8                                 EndPointAddress,\r
-  IN  UINT8                                 DeviceSpeed,\r
-  IN  UINTN                                 MaximumPacketLength,\r
-  IN  UINT8                                 DataBuffersNumber,\r
-  IN  OUT VOID                              *Data[EFI_USB_MAX_ISO_BUFFER_NUM],\r
-  IN  UINTN                                 DataLength,\r
-  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR    *Translator,\r
-  OUT UINT32                                *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciAsyncIsochronousTransfer (\r
-  IN  EFI_USB2_HC_PROTOCOL                *This,\r
-  IN  UINT8                               DeviceAddress,\r
-  IN  UINT8                               EndPointAddress,\r
-  IN  UINT8                               DeviceSpeed,\r
-  IN  UINTN                               MaximumPacketLength,\r
-  IN  UINT8                               DataBuffersNumber,\r
-  IN  OUT VOID                            *Data[EFI_USB_MAX_ISO_BUFFER_NUM],\r
-  IN  UINTN                               DataLength,\r
-  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR  *Translator,\r
-  IN  EFI_ASYNC_USB_TRANSFER_CALLBACK     IsochronousCallBack,\r
-  IN  VOID                                *Context\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciGetRootHubPortStatus (\r
-  IN  EFI_USB2_HC_PROTOCOL     *This,\r
-  IN  UINT8                    PortNumber,\r
-  OUT EFI_USB_PORT_STATUS      *PortStatus\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciSetRootHubPortFeature (\r
-  IN  EFI_USB2_HC_PROTOCOL     *This,\r
-  IN  UINT8                    PortNumber,\r
-  IN  EFI_USB_PORT_FEATURE     PortFeature\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-EhciClearRootHubPortFeature (\r
-  IN  EFI_USB2_HC_PROTOCOL     *This,\r
-  IN  UINT8                    PortNumber,\r
-  IN  EFI_USB_PORT_FEATURE     PortFeature\r
-  );\r
-\r
 //\r
 // Ehci Driver Global Variables\r
 //\r
index 603bb2665a8b2c6717a1e9105181dfc0366af979..dcf3e561077dd4d284ef95dec924662df16dd427 100644 (file)
@@ -403,6 +403,211 @@ typedef struct _USB2_HC_DEV {
 } USB2_HC_DEV;\r
 \r
 \r
+//\r
+// Prototypes\r
+// Driver model protocol interface\r
+//\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN EFI_HANDLE                      Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN EFI_HANDLE                      Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN  EFI_HANDLE                      Controller,\r
+  IN  UINTN                           NumberOfChildren,\r
+  IN  EFI_HANDLE                      *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// Ehci protocol interface\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+EhciGetCapability (\r
+  IN  EFI_USB2_HC_PROTOCOL   *This,\r
+  OUT UINT8                  *MaxSpeed,\r
+  OUT UINT8                  *PortNumber,\r
+  OUT UINT8                  *Is64BitCapable\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciReset (\r
+  IN  EFI_USB2_HC_PROTOCOL     *This,\r
+  IN  UINT16                   Attributes\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciGetState (\r
+  IN  EFI_USB2_HC_PROTOCOL     *This,\r
+  OUT EFI_USB_HC_STATE         *State\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciSetState (\r
+  IN  EFI_USB2_HC_PROTOCOL     *This,\r
+  IN  EFI_USB_HC_STATE         State\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciControlTransfer (\r
+  IN  EFI_USB2_HC_PROTOCOL                 *This,\r
+  IN  UINT8                                DeviceAddress,\r
+  IN  UINT8                                DeviceSpeed,\r
+  IN  UINTN                                MaximumPacketLength,\r
+  IN  EFI_USB_DEVICE_REQUEST               *Request,\r
+  IN  EFI_USB_DATA_DIRECTION               TransferDirection,\r
+  IN  OUT VOID                             *Data,\r
+  IN  OUT UINTN                            *DataLength,\r
+  IN  UINTN                                TimeOut,\r
+  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR   *Translator,\r
+  OUT UINT32                               *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciBulkTransfer (\r
+  IN  EFI_USB2_HC_PROTOCOL                *This,\r
+  IN  UINT8                               DeviceAddress,\r
+  IN  UINT8                               EndPointAddress,\r
+  IN  UINT8                               DeviceSpeed,\r
+  IN  UINTN                               MaximumPacketLength,\r
+  IN  UINT8                               DataBuffersNumber,\r
+  IN  OUT VOID                            *Data[EFI_USB_MAX_BULK_BUFFER_NUM],\r
+  IN  OUT UINTN                           *DataLength,\r
+  IN  OUT UINT8                           *DataToggle,\r
+  IN  UINTN                               TimeOut,\r
+  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR  *Translator,\r
+  OUT UINT32                              *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciAsyncInterruptTransfer (\r
+  IN  EFI_USB2_HC_PROTOCOL                  * This,\r
+  IN  UINT8                                 DeviceAddress,\r
+  IN  UINT8                                 EndPointAddress,\r
+  IN  UINT8                                 DeviceSpeed,\r
+  IN  UINTN                                 MaxiumPacketLength,\r
+  IN  BOOLEAN                               IsNewTransfer,\r
+  IN  OUT UINT8                             *DataToggle,\r
+  IN  UINTN                                 PollingInterval,\r
+  IN  UINTN                                 DataLength,\r
+  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR    *Translator,\r
+  IN  EFI_ASYNC_USB_TRANSFER_CALLBACK       CallBackFunction,\r
+  IN  VOID                                  *Context OPTIONAL\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciSyncInterruptTransfer (\r
+  IN  EFI_USB2_HC_PROTOCOL                  *This,\r
+  IN  UINT8                                 DeviceAddress,\r
+  IN  UINT8                                 EndPointAddress,\r
+  IN  UINT8                                 DeviceSpeed,\r
+  IN  UINTN                                 MaximumPacketLength,\r
+  IN  OUT VOID                              *Data,\r
+  IN  OUT UINTN                             *DataLength,\r
+  IN  OUT UINT8                             *DataToggle,\r
+  IN  UINTN                                 TimeOut,\r
+  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR    *Translator,\r
+  OUT UINT32                                *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciIsochronousTransfer (\r
+  IN  EFI_USB2_HC_PROTOCOL                  *This,\r
+  IN  UINT8                                 DeviceAddress,\r
+  IN  UINT8                                 EndPointAddress,\r
+  IN  UINT8                                 DeviceSpeed,\r
+  IN  UINTN                                 MaximumPacketLength,\r
+  IN  UINT8                                 DataBuffersNumber,\r
+  IN  OUT VOID                              *Data[EFI_USB_MAX_ISO_BUFFER_NUM],\r
+  IN  UINTN                                 DataLength,\r
+  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR    *Translator,\r
+  OUT UINT32                                *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciAsyncIsochronousTransfer (\r
+  IN  EFI_USB2_HC_PROTOCOL                *This,\r
+  IN  UINT8                               DeviceAddress,\r
+  IN  UINT8                               EndPointAddress,\r
+  IN  UINT8                               DeviceSpeed,\r
+  IN  UINTN                               MaximumPacketLength,\r
+  IN  UINT8                               DataBuffersNumber,\r
+  IN  OUT VOID                            *Data[EFI_USB_MAX_ISO_BUFFER_NUM],\r
+  IN  UINTN                               DataLength,\r
+  IN  EFI_USB2_HC_TRANSACTION_TRANSLATOR  *Translator,\r
+  IN  EFI_ASYNC_USB_TRANSFER_CALLBACK     IsochronousCallBack,\r
+  IN  VOID                                *Context\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciGetRootHubPortStatus (\r
+  IN  EFI_USB2_HC_PROTOCOL     *This,\r
+  IN  UINT8                    PortNumber,\r
+  OUT EFI_USB_PORT_STATUS      *PortStatus\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciSetRootHubPortFeature (\r
+  IN  EFI_USB2_HC_PROTOCOL     *This,\r
+  IN  UINT8                    PortNumber,\r
+  IN  EFI_USB_PORT_FEATURE     PortFeature\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciClearRootHubPortFeature (\r
+  IN  EFI_USB2_HC_PROTOCOL     *This,\r
+  IN  UINT8                    PortNumber,\r
+  IN  EFI_USB_PORT_FEATURE     PortFeature\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+EhciComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
+  IN  CHAR8                           *Language,\r
+  OUT CHAR16                          **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+EhciComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
+  IN  EFI_HANDLE                      ControllerHandle,\r
+  IN  EFI_HANDLE                      ChildHandle, OPTIONAL\r
+  IN  CHAR8                           *Language,\r
+  OUT CHAR16                          **ControllerName\r
+  );\r
+\r
 //\r
 // Internal Functions Declaration\r
 //\r
index 6a05562a170432ec7574d4fda621ac2ba16e390d..7ee2ab3c390680ff4ff1cb50fd5dc0f53eaef144 100644 (file)
@@ -18,33 +18,6 @@ CHAR16 *OptionString[4] = {
   L"Enable Secondary Master  (Y/N)? -->",\r
   L"Enable Secondary Slave   (Y/N)? -->"\r
 };\r
-//\r
-// EFI Driver Configuration Functions\r
-//\r
-EFI_STATUS\r
-IDEBusDriverConfigurationSetOptions (\r
-  IN  EFI_DRIVER_CONFIGURATION_PROTOCOL                      *This,\r
-  IN  EFI_HANDLE                                             ControllerHandle,\r
-  IN  EFI_HANDLE                                             ChildHandle  OPTIONAL,\r
-  IN  CHAR8                                                  *Language,\r
-  OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED               *ActionRequired\r
-  );\r
-\r
-EFI_STATUS\r
-IDEBusDriverConfigurationOptionsValid (\r
-  IN  EFI_DRIVER_CONFIGURATION_PROTOCOL               *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle  OPTIONAL\r
-  );\r
-\r
-EFI_STATUS\r
-IDEBusDriverConfigurationForceDefaults (\r
-  IN  EFI_DRIVER_CONFIGURATION_PROTOCOL                      *This,\r
-  IN  EFI_HANDLE                                             ControllerHandle,\r
-  IN  EFI_HANDLE                                             ChildHandle  OPTIONAL,\r
-  IN  UINT32                                                 DefaultType,\r
-  OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED               *ActionRequired\r
-  );\r
 \r
 //\r
 // EFI Driver Configuration Protocol\r
index 83a273aed40cb48abe125442f694807abdf9bd5d..44d767ceb111e9bf90db540a12f2f944850294ba 100644 (file)
 \r
 #define IDE_BUS_DIAGNOSTIC_ERROR  L"PCI IDE/ATAPI Driver Diagnostics Failed"\r
 \r
-//\r
-// EFI Driver Diagnostics Functions\r
-//\r
-EFI_STATUS\r
-IDEBusDriverDiagnosticsRunDiagnostics (\r
-  IN  EFI_DRIVER_DIAGNOSTICS_PROTOCOL               *This,\r
-  IN  EFI_HANDLE                                    ControllerHandle,\r
-  IN  EFI_HANDLE                                    ChildHandle  OPTIONAL,\r
-  IN  EFI_DRIVER_DIAGNOSTIC_TYPE                    DiagnosticType,\r
-  IN  CHAR8                                         *Language,\r
-  OUT EFI_GUID                                      **ErrorType,\r
-  OUT UINTN                                         *BufferSize,\r
-  OUT CHAR16                                        **Buffer\r
-  );\r
-\r
 //\r
 // EFI Driver Diagnostics Protocol\r
 //\r
index 7ea54b9a4f8b091a07305d91c8814c3a0a42f193..aea126b3e689e28ca5da8a86548469f9e32f3b92 100644 (file)
 \r
 #include "idebus.h"\r
 \r
-\r
-EFI_STATUS\r
-AtaReadSectorsExt (\r
-  IN  IDE_BLK_IO_DEV  *IdeDev,\r
-  IN  OUT VOID        *DataBuffer,\r
-  IN  EFI_LBA         StartLba,\r
-  IN  UINTN           NumberOfBlocks\r
-  );\r
-\r
-EFI_STATUS\r
-AtaWriteSectorsExt (\r
-  IN  IDE_BLK_IO_DEV  *IdeDev,\r
-  IN  VOID            *DataBuffer,\r
-  IN  EFI_LBA         StartLba,\r
-  IN  UINTN           NumberOfBlocks\r
-  );\r
-\r
-EFI_STATUS\r
-AtaPioDataInExt (\r
-  IN  IDE_BLK_IO_DEV  *IdeDev,\r
-  IN  OUT VOID        *Buffer,\r
-  IN  UINT32          ByteCount,\r
-  IN  UINT8           AtaCommand,\r
-  IN  EFI_LBA         StartLba,\r
-  IN  UINT16          SectorCount\r
-  );\r
-\r
-EFI_STATUS\r
-AtaPioDataOutExt (\r
-  IN  IDE_BLK_IO_DEV  *IdeDev,\r
-  IN  VOID            *Buffer,\r
-  IN  UINT32          ByteCount,\r
-  IN  UINT8           AtaCommand,\r
-  IN  EFI_LBA         StartLba,\r
-  IN  UINT16          SectorCount\r
-  );\r
-\r
 /**\r
   Sends out an ATA Identify Command to the specified device.\r
 \r
index e49e7623e506dc579bf711338500eff9c6bba367..52c1f266b1ea0893a161b7bbaa8065bc7ed94a25 100644 (file)
@@ -171,6 +171,49 @@ IDEBusDriverBindingStop (
   )\r
 ;\r
 \r
+//\r
+// EFI Driver Configuration Functions\r
+//\r
+EFI_STATUS\r
+IDEBusDriverConfigurationSetOptions (\r
+  IN  EFI_DRIVER_CONFIGURATION_PROTOCOL                      *This,\r
+  IN  EFI_HANDLE                                             ControllerHandle,\r
+  IN  EFI_HANDLE                                             ChildHandle  OPTIONAL,\r
+  IN  CHAR8                                                  *Language,\r
+  OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED               *ActionRequired\r
+  );\r
+\r
+EFI_STATUS\r
+IDEBusDriverConfigurationOptionsValid (\r
+  IN  EFI_DRIVER_CONFIGURATION_PROTOCOL               *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle  OPTIONAL\r
+  );\r
+\r
+EFI_STATUS\r
+IDEBusDriverConfigurationForceDefaults (\r
+  IN  EFI_DRIVER_CONFIGURATION_PROTOCOL                      *This,\r
+  IN  EFI_HANDLE                                             ControllerHandle,\r
+  IN  EFI_HANDLE                                             ChildHandle  OPTIONAL,\r
+  IN  UINT32                                                 DefaultType,\r
+  OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED               *ActionRequired\r
+  );\r
+\r
+//\r
+// EFI Driver Diagnostics Functions\r
+//\r
+EFI_STATUS\r
+IDEBusDriverDiagnosticsRunDiagnostics (\r
+  IN  EFI_DRIVER_DIAGNOSTICS_PROTOCOL               *This,\r
+  IN  EFI_HANDLE                                    ControllerHandle,\r
+  IN  EFI_HANDLE                                    ChildHandle  OPTIONAL,\r
+  IN  EFI_DRIVER_DIAGNOSTIC_TYPE                    DiagnosticType,\r
+  IN  CHAR8                                         *Language,\r
+  OUT EFI_GUID                                      **ErrorType,\r
+  OUT UINTN                                         *BufferSize,\r
+  OUT CHAR16                                        **Buffer\r
+  );\r
+\r
 //\r
 // Block I/O Protocol Interface\r
 //\r
index 43d3e38dd1de066718337056601d0e8b05313cbe..eb6713f4dd1eb0645289954b957f3afd9cbc1d20 100644 (file)
@@ -23,42 +23,6 @@ Revision History
 \r
 #include "pcibus.h"\r
 \r
-//\r
-// PCI Bus Support Function Prototypes\r
-//\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PciBusEntryPoint (\r
-  IN EFI_HANDLE         ImageHandle,\r
-  IN EFI_SYSTEM_TABLE   *SystemTable\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PciBusDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PciBusDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PciBusDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL   *This,\r
-  IN  EFI_HANDLE                    Controller,\r
-  IN  UINTN                         NumberOfChildren,\r
-  IN  EFI_HANDLE                    *ChildHandleBuffer\r
-  );\r
-\r
 //\r
 // PCI Bus Driver Global Variables\r
 //\r
index a18d12f3d4d62ff25a3345dc6eb676d07a74588a..cd34d8742e8e27526088519c25d56a29bf508544 100644 (file)
@@ -240,4 +240,32 @@ extern EFI_PCI_PLATFORM_PROTOCOL                    *gPciPlatformProtocol;
 #include "PciHotPlugSupport.h"\r
 #include "PciLib.h"\r
 \r
+//\r
+// PCI Bus Support Function Prototypes\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+PciBusDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PciBusDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PciBusDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL   *This,\r
+  IN  EFI_HANDLE                    Controller,\r
+  IN  UINTN                         NumberOfChildren,\r
+  IN  EFI_HANDLE                    *ChildHandleBuffer\r
+  );\r
+\r
 #endif\r
index 909912f329f11924f977e2e8d1414e402573db20..b6209e42955fc19ea5584b497e99c718e1fc6d8d 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "uhci.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UhciComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
-  IN  CHAR8                           *Language,\r
-  OUT CHAR16                          **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UhciComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
-  IN  EFI_HANDLE                      ControllerHandle,\r
-  IN  EFI_HANDLE                      ChildHandle, OPTIONAL\r
-  IN  CHAR8                           *Language,\r
-  OUT CHAR16                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 7e033df2dffd5e91702b898e65f3d5f8210d3d9e..b3cb1f543dab18ef324a700f258212fc10aa2ae5 100644 (file)
@@ -21,342 +21,6 @@ Revision History
 \r
 #include "uhci.h"\r
 \r
-//\r
-// Prototypes\r
-// Driver model protocol interface\r
-//\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN EFI_HANDLE                      Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN EFI_HANDLE                      Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN  EFI_HANDLE                      Controller,\r
-  IN  UINTN                           NumberOfChildren,\r
-  IN  EFI_HANDLE                      *ChildHandleBuffer\r
-  );\r
-\r
-//\r
-// UHCI interface functions\r
-//\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIReset (\r
-  IN  EFI_USB_HC_PROTOCOL     *This,\r
-  IN  UINT16                  Attributes\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIGetState (\r
-  IN  EFI_USB_HC_PROTOCOL     *This,\r
-  OUT EFI_USB_HC_STATE        *State\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCISetState (\r
-  IN  EFI_USB_HC_PROTOCOL     *This,\r
-  IN  EFI_USB_HC_STATE        State\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIControlTransfer (\r
-  IN       EFI_USB_HC_PROTOCOL        *This,\r
-  IN       UINT8                      DeviceAddress,\r
-  IN       BOOLEAN                    IsSlowDevice,\r
-  IN       UINT8                      MaximumPacketLength,\r
-  IN       EFI_USB_DEVICE_REQUEST     *Request,\r
-  IN       EFI_USB_DATA_DIRECTION     TransferDirection,\r
-  IN OUT   VOID                       *Data, OPTIONAL\r
-  IN OUT   UINTN                      *DataLength, OPTIONAL\r
-  IN       UINTN                      TimeOut,\r
-  OUT      UINT32                     *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIBulkTransfer (\r
-  IN       EFI_USB_HC_PROTOCOL     *This,\r
-  IN       UINT8                   DeviceAddress,\r
-  IN       UINT8                   EndPointAddress,\r
-  IN       UINT8                   MaximumPacketLength,\r
-  IN OUT   VOID                    *Data,\r
-  IN OUT   UINTN                   *DataLength,\r
-  IN OUT   UINT8                   *DataToggle,\r
-  IN       UINTN                   TimeOut,\r
-  OUT      UINT32                  *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIAsyncInterruptTransfer (\r
-  IN       EFI_USB_HC_PROTOCOL                * This,\r
-  IN       UINT8                              DeviceAddress,\r
-  IN       UINT8                              EndPointAddress,\r
-  IN       BOOLEAN                            IsSlowDevice,\r
-  IN       UINT8                              MaximumPacketLength,\r
-  IN       BOOLEAN                            IsNewTransfer,\r
-  IN OUT   UINT8                              *DataToggle,\r
-  IN       UINTN                              PollingInterval, OPTIONAL\r
-  IN       UINTN                              DataLength, OPTIONAL\r
-  IN       EFI_ASYNC_USB_TRANSFER_CALLBACK    CallBackFunction, OPTIONAL\r
-  IN       VOID                               *Context OPTIONAL\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCISyncInterruptTransfer (\r
-  IN       EFI_USB_HC_PROTOCOL     *This,\r
-  IN       UINT8                   DeviceAddress,\r
-  IN       UINT8                   EndPointAddress,\r
-  IN       BOOLEAN                 IsSlowDevice,\r
-  IN       UINT8                   MaximumPacketLength,\r
-  IN OUT   VOID                    *Data,\r
-  IN OUT   UINTN                   *DataLength,\r
-  IN OUT   UINT8                   *DataToggle,\r
-  IN       UINTN                   TimeOut,\r
-  OUT      UINT32                  *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIIsochronousTransfer (\r
-  IN       EFI_USB_HC_PROTOCOL     *This,\r
-  IN       UINT8                   DeviceAddress,\r
-  IN       UINT8                   EndPointAddress,\r
-  IN       UINT8                   MaximumPacketLength,\r
-  IN OUT   VOID                    *Data,\r
-  IN       UINTN                   DataLength,\r
-  OUT      UINT32                  *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIAsyncIsochronousTransfer (\r
-  IN       EFI_USB_HC_PROTOCOL                 * This,\r
-  IN       UINT8                               DeviceAddress,\r
-  IN       UINT8                               EndPointAddress,\r
-  IN       UINT8                               MaximumPacketLength,\r
-  IN OUT   VOID                                *Data,\r
-  IN       UINTN                               DataLength,\r
-  IN       EFI_ASYNC_USB_TRANSFER_CALLBACK     IsochronousCallBack,\r
-  IN       VOID                                *Context OPTIONAL\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIGetRootHubPortNumber (\r
-  IN  EFI_USB_HC_PROTOCOL     *This,\r
-  OUT UINT8                   *PortNumber\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIGetRootHubPortStatus (\r
-  IN  EFI_USB_HC_PROTOCOL     *This,\r
-  IN  UINT8                   PortNumber,\r
-  OUT EFI_USB_PORT_STATUS     *PortStatus\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCISetRootHubPortFeature (\r
-  IN  EFI_USB_HC_PROTOCOL     *This,\r
-  IN  UINT8                   PortNumber,\r
-  IN  EFI_USB_PORT_FEATURE    PortFeature\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCIClearRootHubPortFeature (\r
-  IN  EFI_USB_HC_PROTOCOL     *This,\r
-  IN  UINT8                   PortNumber,\r
-  IN  EFI_USB_PORT_FEATURE    PortFeature\r
-  );\r
-\r
-//\r
-// UEFI 2.0 Protocol\r
-//\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2GetCapability(\r
-  IN  EFI_USB2_HC_PROTOCOL  * This,\r
-  OUT UINT8                 *MaxSpeed,\r
-  OUT UINT8                 *PortNumber,\r
-  OUT UINT8                 *Is64BitCapable\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2Reset (\r
-  IN EFI_USB2_HC_PROTOCOL   * This,\r
-  IN UINT16                 Attributes\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2GetState (\r
-  IN  EFI_USB2_HC_PROTOCOL   * This,\r
-  OUT EFI_USB_HC_STATE       * State\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2SetState (\r
-  IN EFI_USB2_HC_PROTOCOL   * This,\r
-  IN EFI_USB_HC_STATE       State\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2ControlTransfer (\r
-  IN     EFI_USB2_HC_PROTOCOL      * This,\r
-  IN     UINT8                     DeviceAddress,\r
-  IN     UINT8                     DeviceSpeed,\r
-  IN     UINTN                     MaximumPacketLength,\r
-  IN     EFI_USB_DEVICE_REQUEST    * Request,\r
-  IN     EFI_USB_DATA_DIRECTION    TransferDirection,\r
-  IN OUT VOID                      *Data, OPTIONAL\r
-  IN OUT UINTN                     *DataLength, OPTIONAL\r
-  IN     UINTN                     TimeOut,\r
-  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR            *Translator,\r
-  OUT    UINT32                    *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2BulkTransfer (\r
-  IN     EFI_USB2_HC_PROTOCOL   * This,\r
-  IN     UINT8                  DeviceAddress,\r
-  IN     UINT8                  EndPointAddress,\r
-  IN     UINT8                  DeviceSpeed,\r
-  IN     UINTN                  MaximumPacketLength,\r
-  IN     UINT8                  DataBuffersNumber,\r
-  IN OUT VOID                   *Data[EFI_USB_MAX_BULK_BUFFER_NUM],\r
-  IN OUT UINTN                  *DataLength,\r
-  IN OUT UINT8                  *DataToggle,\r
-  IN     UINTN                  TimeOut,\r
-  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR            *Translator,\r
-  OUT    UINT32                 *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2AsyncInterruptTransfer (\r
-  IN     EFI_USB2_HC_PROTOCOL   * This,\r
-  IN     UINT8                  DeviceAddress,\r
-  IN     UINT8                  EndPointAddress,\r
-  IN     UINT8                  DeviceSpeed,\r
-  IN     UINTN                  MaximumPacketLength,\r
-  IN     BOOLEAN                IsNewTransfer,\r
-  IN OUT UINT8                  *DataToggle,\r
-  IN     UINTN                  PollingInterval, OPTIONAL\r
-  IN     UINTN                  DataLength, OPTIONAL\r
-  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR            *Translator,\r
-  IN     EFI_ASYNC_USB_TRANSFER_CALLBACK               CallBackFunction, OPTIONAL\r
-  IN     VOID                   *Context OPTIONAL\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2SyncInterruptTransfer (\r
-  IN     EFI_USB2_HC_PROTOCOL   * This,\r
-  IN     UINT8                  DeviceAddress,\r
-  IN     UINT8                  EndPointAddress,\r
-  IN     UINT8                  DeviceSpeed,\r
-  IN     UINTN                  MaximumPacketLength,\r
-  IN OUT VOID                   *Data,\r
-  IN OUT UINTN                  *DataLength,\r
-  IN OUT UINT8                  *DataToggle,\r
-  IN     UINTN                  TimeOut,\r
-  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR           *Translator,\r
-  OUT    UINT32                 *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2IsochronousTransfer (\r
-  IN     EFI_USB2_HC_PROTOCOL   * This,\r
-  IN     UINT8                  DeviceAddress,\r
-  IN     UINT8                  EndPointAddress,\r
-  IN     UINT8                  DeviceSpeed,\r
-  IN     UINTN                  MaximumPacketLength,\r
-  IN     UINT8                  DataBuffersNumber,\r
-  IN OUT VOID                   *Data[EFI_USB_MAX_ISO_BUFFER_NUM],\r
-  IN     UINTN                  DataLength,\r
-  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR           *Translator,\r
-  OUT    UINT32                 *TransferResult\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2AsyncIsochronousTransfer (\r
-  IN     EFI_USB2_HC_PROTOCOL   * This,\r
-  IN     UINT8                  DeviceAddress,\r
-  IN     UINT8                  EndPointAddress,\r
-  IN     UINT8                  DeviceSpeed,\r
-  IN     UINTN                  MaximumPacketLength,\r
-  IN     UINT8                  DataBuffersNumber,\r
-  IN OUT VOID                   *Data[EFI_USB_MAX_ISO_BUFFER_NUM],\r
-  IN     UINTN                  DataLength,\r
-  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR           *Translator,\r
-  IN     EFI_ASYNC_USB_TRANSFER_CALLBACK              IsochronousCallBack,\r
-  IN     VOID                   *Context OPTIONAL\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2GetRootHubPortStatus (\r
-  IN  EFI_USB2_HC_PROTOCOL   * This,\r
-  IN  UINT8                  PortNumber,\r
-  OUT EFI_USB_PORT_STATUS    * PortStatus\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2SetRootHubPortFeature (\r
-  IN EFI_USB2_HC_PROTOCOL    * This,\r
-  IN UINT8                   PortNumber,\r
-  IN EFI_USB_PORT_FEATURE    PortFeature\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UHCI2ClearRootHubPortFeature (\r
-  IN EFI_USB2_HC_PROTOCOL    * This,\r
-  IN UINT8                   PortNumber,\r
-  IN EFI_USB_PORT_FEATURE    PortFeature\r
-  );\r
-\r
-//\r
-// Asynchronous interrupt transfer monitor function\r
-//\r
-VOID\r
-EFIAPI\r
-MonitorInterruptTrans (\r
-  IN EFI_EVENT     Event,\r
-  IN VOID          *Context\r
-  );\r
-\r
 //\r
 // UHCI Driver Global Variables\r
 //\r
index c224a16ac622b22911134965821940422dfa5022..68571c5d8912e4a5688da6a99a9525ca187a9fe1 100644 (file)
@@ -285,6 +285,27 @@ typedef struct {
 extern EFI_DRIVER_BINDING_PROTOCOL  gUhciDriverBinding;\r
 extern EFI_COMPONENT_NAME_PROTOCOL  gUhciComponentName;\r
 \r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UhciComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
+  IN  CHAR8                           *Language,\r
+  OUT CHAR16                          **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UhciComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
+  IN  EFI_HANDLE                      ControllerHandle,\r
+  IN  EFI_HANDLE                      ChildHandle, OPTIONAL\r
+  IN  CHAR8                           *Language,\r
+  OUT CHAR16                          **ControllerName\r
+  );\r
+\r
 EFI_STATUS\r
 WriteUHCCommandReg (\r
   IN EFI_PCI_IO_PROTOCOL     *PciIo,\r
@@ -2635,4 +2656,340 @@ Returns:
 --*/\r
 ;\r
 \r
+//\r
+// Prototypes\r
+// Driver model protocol interface\r
+//\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN EFI_HANDLE                      Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN EFI_HANDLE                      Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN  EFI_HANDLE                      Controller,\r
+  IN  UINTN                           NumberOfChildren,\r
+  IN  EFI_HANDLE                      *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// UHCI interface functions\r
+//\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIReset (\r
+  IN  EFI_USB_HC_PROTOCOL     *This,\r
+  IN  UINT16                  Attributes\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIGetState (\r
+  IN  EFI_USB_HC_PROTOCOL     *This,\r
+  OUT EFI_USB_HC_STATE        *State\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCISetState (\r
+  IN  EFI_USB_HC_PROTOCOL     *This,\r
+  IN  EFI_USB_HC_STATE        State\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIControlTransfer (\r
+  IN       EFI_USB_HC_PROTOCOL        *This,\r
+  IN       UINT8                      DeviceAddress,\r
+  IN       BOOLEAN                    IsSlowDevice,\r
+  IN       UINT8                      MaximumPacketLength,\r
+  IN       EFI_USB_DEVICE_REQUEST     *Request,\r
+  IN       EFI_USB_DATA_DIRECTION     TransferDirection,\r
+  IN OUT   VOID                       *Data, OPTIONAL\r
+  IN OUT   UINTN                      *DataLength, OPTIONAL\r
+  IN       UINTN                      TimeOut,\r
+  OUT      UINT32                     *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIBulkTransfer (\r
+  IN       EFI_USB_HC_PROTOCOL     *This,\r
+  IN       UINT8                   DeviceAddress,\r
+  IN       UINT8                   EndPointAddress,\r
+  IN       UINT8                   MaximumPacketLength,\r
+  IN OUT   VOID                    *Data,\r
+  IN OUT   UINTN                   *DataLength,\r
+  IN OUT   UINT8                   *DataToggle,\r
+  IN       UINTN                   TimeOut,\r
+  OUT      UINT32                  *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIAsyncInterruptTransfer (\r
+  IN       EFI_USB_HC_PROTOCOL                * This,\r
+  IN       UINT8                              DeviceAddress,\r
+  IN       UINT8                              EndPointAddress,\r
+  IN       BOOLEAN                            IsSlowDevice,\r
+  IN       UINT8                              MaximumPacketLength,\r
+  IN       BOOLEAN                            IsNewTransfer,\r
+  IN OUT   UINT8                              *DataToggle,\r
+  IN       UINTN                              PollingInterval, OPTIONAL\r
+  IN       UINTN                              DataLength, OPTIONAL\r
+  IN       EFI_ASYNC_USB_TRANSFER_CALLBACK    CallBackFunction, OPTIONAL\r
+  IN       VOID                               *Context OPTIONAL\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCISyncInterruptTransfer (\r
+  IN       EFI_USB_HC_PROTOCOL     *This,\r
+  IN       UINT8                   DeviceAddress,\r
+  IN       UINT8                   EndPointAddress,\r
+  IN       BOOLEAN                 IsSlowDevice,\r
+  IN       UINT8                   MaximumPacketLength,\r
+  IN OUT   VOID                    *Data,\r
+  IN OUT   UINTN                   *DataLength,\r
+  IN OUT   UINT8                   *DataToggle,\r
+  IN       UINTN                   TimeOut,\r
+  OUT      UINT32                  *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIIsochronousTransfer (\r
+  IN       EFI_USB_HC_PROTOCOL     *This,\r
+  IN       UINT8                   DeviceAddress,\r
+  IN       UINT8                   EndPointAddress,\r
+  IN       UINT8                   MaximumPacketLength,\r
+  IN OUT   VOID                    *Data,\r
+  IN       UINTN                   DataLength,\r
+  OUT      UINT32                  *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIAsyncIsochronousTransfer (\r
+  IN       EFI_USB_HC_PROTOCOL                 * This,\r
+  IN       UINT8                               DeviceAddress,\r
+  IN       UINT8                               EndPointAddress,\r
+  IN       UINT8                               MaximumPacketLength,\r
+  IN OUT   VOID                                *Data,\r
+  IN       UINTN                               DataLength,\r
+  IN       EFI_ASYNC_USB_TRANSFER_CALLBACK     IsochronousCallBack,\r
+  IN       VOID                                *Context OPTIONAL\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIGetRootHubPortNumber (\r
+  IN  EFI_USB_HC_PROTOCOL     *This,\r
+  OUT UINT8                   *PortNumber\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIGetRootHubPortStatus (\r
+  IN  EFI_USB_HC_PROTOCOL     *This,\r
+  IN  UINT8                   PortNumber,\r
+  OUT EFI_USB_PORT_STATUS     *PortStatus\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCISetRootHubPortFeature (\r
+  IN  EFI_USB_HC_PROTOCOL     *This,\r
+  IN  UINT8                   PortNumber,\r
+  IN  EFI_USB_PORT_FEATURE    PortFeature\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCIClearRootHubPortFeature (\r
+  IN  EFI_USB_HC_PROTOCOL     *This,\r
+  IN  UINT8                   PortNumber,\r
+  IN  EFI_USB_PORT_FEATURE    PortFeature\r
+  );\r
+\r
+//\r
+// UEFI 2.0 Protocol\r
+//\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2GetCapability(\r
+  IN  EFI_USB2_HC_PROTOCOL  * This,\r
+  OUT UINT8                 *MaxSpeed,\r
+  OUT UINT8                 *PortNumber,\r
+  OUT UINT8                 *Is64BitCapable\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2Reset (\r
+  IN EFI_USB2_HC_PROTOCOL   * This,\r
+  IN UINT16                 Attributes\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2GetState (\r
+  IN  EFI_USB2_HC_PROTOCOL   * This,\r
+  OUT EFI_USB_HC_STATE       * State\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2SetState (\r
+  IN EFI_USB2_HC_PROTOCOL   * This,\r
+  IN EFI_USB_HC_STATE       State\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2ControlTransfer (\r
+  IN     EFI_USB2_HC_PROTOCOL      * This,\r
+  IN     UINT8                     DeviceAddress,\r
+  IN     UINT8                     DeviceSpeed,\r
+  IN     UINTN                     MaximumPacketLength,\r
+  IN     EFI_USB_DEVICE_REQUEST    * Request,\r
+  IN     EFI_USB_DATA_DIRECTION    TransferDirection,\r
+  IN OUT VOID                      *Data, OPTIONAL\r
+  IN OUT UINTN                     *DataLength, OPTIONAL\r
+  IN     UINTN                     TimeOut,\r
+  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR            *Translator,\r
+  OUT    UINT32                    *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2BulkTransfer (\r
+  IN     EFI_USB2_HC_PROTOCOL   * This,\r
+  IN     UINT8                  DeviceAddress,\r
+  IN     UINT8                  EndPointAddress,\r
+  IN     UINT8                  DeviceSpeed,\r
+  IN     UINTN                  MaximumPacketLength,\r
+  IN     UINT8                  DataBuffersNumber,\r
+  IN OUT VOID                   *Data[EFI_USB_MAX_BULK_BUFFER_NUM],\r
+  IN OUT UINTN                  *DataLength,\r
+  IN OUT UINT8                  *DataToggle,\r
+  IN     UINTN                  TimeOut,\r
+  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR            *Translator,\r
+  OUT    UINT32                 *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2AsyncInterruptTransfer (\r
+  IN     EFI_USB2_HC_PROTOCOL   * This,\r
+  IN     UINT8                  DeviceAddress,\r
+  IN     UINT8                  EndPointAddress,\r
+  IN     UINT8                  DeviceSpeed,\r
+  IN     UINTN                  MaximumPacketLength,\r
+  IN     BOOLEAN                IsNewTransfer,\r
+  IN OUT UINT8                  *DataToggle,\r
+  IN     UINTN                  PollingInterval, OPTIONAL\r
+  IN     UINTN                  DataLength, OPTIONAL\r
+  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR            *Translator,\r
+  IN     EFI_ASYNC_USB_TRANSFER_CALLBACK               CallBackFunction, OPTIONAL\r
+  IN     VOID                   *Context OPTIONAL\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2SyncInterruptTransfer (\r
+  IN     EFI_USB2_HC_PROTOCOL   * This,\r
+  IN     UINT8                  DeviceAddress,\r
+  IN     UINT8                  EndPointAddress,\r
+  IN     UINT8                  DeviceSpeed,\r
+  IN     UINTN                  MaximumPacketLength,\r
+  IN OUT VOID                   *Data,\r
+  IN OUT UINTN                  *DataLength,\r
+  IN OUT UINT8                  *DataToggle,\r
+  IN     UINTN                  TimeOut,\r
+  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR           *Translator,\r
+  OUT    UINT32                 *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2IsochronousTransfer (\r
+  IN     EFI_USB2_HC_PROTOCOL   * This,\r
+  IN     UINT8                  DeviceAddress,\r
+  IN     UINT8                  EndPointAddress,\r
+  IN     UINT8                  DeviceSpeed,\r
+  IN     UINTN                  MaximumPacketLength,\r
+  IN     UINT8                  DataBuffersNumber,\r
+  IN OUT VOID                   *Data[EFI_USB_MAX_ISO_BUFFER_NUM],\r
+  IN     UINTN                  DataLength,\r
+  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR           *Translator,\r
+  OUT    UINT32                 *TransferResult\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2AsyncIsochronousTransfer (\r
+  IN     EFI_USB2_HC_PROTOCOL   * This,\r
+  IN     UINT8                  DeviceAddress,\r
+  IN     UINT8                  EndPointAddress,\r
+  IN     UINT8                  DeviceSpeed,\r
+  IN     UINTN                  MaximumPacketLength,\r
+  IN     UINT8                  DataBuffersNumber,\r
+  IN OUT VOID                   *Data[EFI_USB_MAX_ISO_BUFFER_NUM],\r
+  IN     UINTN                  DataLength,\r
+  IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR           *Translator,\r
+  IN     EFI_ASYNC_USB_TRANSFER_CALLBACK              IsochronousCallBack,\r
+  IN     VOID                   *Context OPTIONAL\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2GetRootHubPortStatus (\r
+  IN  EFI_USB2_HC_PROTOCOL   * This,\r
+  IN  UINT8                  PortNumber,\r
+  OUT EFI_USB_PORT_STATUS    * PortStatus\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2SetRootHubPortFeature (\r
+  IN EFI_USB2_HC_PROTOCOL    * This,\r
+  IN UINT8                   PortNumber,\r
+  IN EFI_USB_PORT_FEATURE    PortFeature\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UHCI2ClearRootHubPortFeature (\r
+  IN EFI_USB2_HC_PROTOCOL    * This,\r
+  IN UINT8                   PortNumber,\r
+  IN EFI_USB_PORT_FEATURE    PortFeature\r
+  );\r
+\r
+//\r
+// Asynchronous interrupt transfer monitor function\r
+//\r
+VOID\r
+EFIAPI\r
+MonitorInterruptTrans (\r
+  IN EFI_EVENT     Event,\r
+  IN VOID          *Context\r
+  );\r
+\r
 #endif\r
index 90c6713666c39c860eff343b4817f8b53142ef56..c3288438b7ec1417bd3a2e895ae2c9137d6040b0 100644 (file)
@@ -24,13 +24,6 @@ Revision history:
 \r
 #pragma data_seg("rtdata")\r
 \r
-//\r
-// Global variables defined outside this file\r
-//\r
-extern PXE_SW_UNDI  *pxe;     // !pxe structure\r
-extern PXE_SW_UNDI  *pxe_31;  // !pxe structure for 3.1 drivers\r
-extern UNDI32_DEV   *UNDI32DeviceList[MAX_NIC_INTERFACES];\r
-\r
 //\r
 // Global variables defined in this file\r
 //\r
index ad91d75726cb4c56fbe205f775efba99bc348e83..c9a217fe724daa34b9db504a163c89f87abab751 100644 (file)
@@ -31,73 +31,7 @@ PXE_SW_UNDI             *pxe_31 = 0;  // 3.1 entry
 UNDI32_DEV              *UNDI32DeviceList[MAX_NIC_INTERFACES];\r
 \r
 NII_TABLE               *UnidiDataPointer=NULL;    \r
-//\r
-// external Global Variables\r
-//\r
-extern UNDI_CALL_TABLE  api_table[];\r
-\r
-//\r
-// function prototypes\r
-//\r
-EFI_STATUS\r
-InstallConfigTable (\r
-  IN VOID\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-InitializeUNDIDriver (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
-VOID\r
-UNDI_notify_virtual (\r
-  EFI_EVENT event,\r
-  VOID      *context\r
-  );\r
 \r
-VOID\r
-EFIAPI\r
-UndiNotifyExitBs (\r
-  EFI_EVENT Event,\r
-  VOID      *Context\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UndiDriverSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UndiDriverStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UndiDriverStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     Controller,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
-EFI_STATUS\r
-AppendMac2DevPath (\r
-  IN OUT  EFI_DEVICE_PATH_PROTOCOL **DevPtr,\r
-  IN      EFI_DEVICE_PATH_PROTOCOL *BaseDevPtr,\r
-  IN      NIC_DATA_INSTANCE        *AdapterInfo\r
-  );\r
-//\r
-// end function prototypes\r
-//\r
 VOID\r
 EFIAPI\r
 UndiNotifyVirtual (\r
index d4ad6b65c1e7ef437583e5a0ef535969e9f15903..b7c721262a1f5416caaeaa681bc81f9bbe13ac5b 100644 (file)
@@ -94,6 +94,11 @@ typedef VOID (*map_mem)(UINT64, UINT64, UINT32, UINT32, UINT64);
 typedef VOID (*unmap_mem)(UINT64, UINT64, UINT32, UINT32, UINT64);\r
 typedef VOID (*sync_mem)(UINT64, UINT64, UINT32, UINT32, UINT64);\r
 \r
+extern UNDI_CALL_TABLE  api_table[];\r
+extern PXE_SW_UNDI      *pxe;     // !pxe structure\r
+extern PXE_SW_UNDI      *pxe_31;  // !pxe structure for 3.1 drivers\r
+extern UNDI32_DEV       *UNDI32DeviceList[MAX_NIC_INTERFACES];\r
+\r
 //\r
 // functions defined in e100b.c\r
 //\r
@@ -158,6 +163,63 @@ VOID FindPhySpeedAndDpx (NIC_DATA_INSTANCE *AdapterInfo, UINT32 PhyId);
 //\r
 // functions defined in init.c\r
 //\r
+EFI_STATUS\r
+InstallConfigTable (\r
+  IN VOID\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+InitializeUNDIDriver (\r
+  IN EFI_HANDLE           ImageHandle,\r
+  IN EFI_SYSTEM_TABLE     *SystemTable\r
+  );\r
+\r
+VOID\r
+UNDI_notify_virtual (\r
+  EFI_EVENT event,\r
+  VOID      *context\r
+  );\r
+\r
+VOID\r
+EFIAPI\r
+UndiNotifyExitBs (\r
+  EFI_EVENT Event,\r
+  VOID      *Context\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UndiDriverSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UndiDriverStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UndiDriverStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     Controller,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
+EFI_STATUS\r
+AppendMac2DevPath (\r
+  IN OUT  EFI_DEVICE_PATH_PROTOCOL **DevPtr,\r
+  IN      EFI_DEVICE_PATH_PROTOCOL *BaseDevPtr,\r
+  IN      NIC_DATA_INSTANCE        *AdapterInfo\r
+  );\r
+\r
 VOID\r
 TmpDelay (\r
   IN UINT64 UnqId,\r
index 3f61c46d54d14f6245e825faeb4bdc55589977e8..2468108d521f40a8ab3cf8c7465c5cd633f382a2 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "ScsiBus.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-ScsiBusComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-ScsiBusComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index b7b59615fd90a7ff214239d27824c5ba23f48a83..3c79e473a3a19d0caad22aeb63d053d1ad7626ea 100644 (file)
@@ -21,31 +21,6 @@ Revision History
 \r
 #include "ScsiBus.h"\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-SCSIBusDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN EFI_HANDLE                   Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-SCSIBusDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN EFI_HANDLE                   Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-SCSIBusDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN  EFI_HANDLE                      Controller,\r
-  IN  UINTN                           NumberOfChildren,\r
-  IN  EFI_HANDLE                      *ChildHandleBuffer\r
-  );\r
-\r
 EFI_DRIVER_BINDING_PROTOCOL gSCSIBusDriverBinding = {\r
   SCSIBusDriverBindingSupported,\r
   SCSIBusDriverBindingStart,\r
index f98187126b1e9ce62ac39cbc8324d672c3b96f92..594953e4d62e3dea1c0fc911f2f5a7236c06e432 100644 (file)
@@ -56,6 +56,52 @@ typedef struct {
 extern EFI_DRIVER_BINDING_PROTOCOL  gScsiBusDriverBinding;\r
 extern EFI_COMPONENT_NAME_PROTOCOL  gScsiBusComponentName;\r
 \r
+EFI_STATUS\r
+EFIAPI\r
+SCSIBusDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN EFI_HANDLE                   Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+SCSIBusDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN EFI_HANDLE                   Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+SCSIBusDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN  EFI_HANDLE                      Controller,\r
+  IN  UINTN                           NumberOfChildren,\r
+  IN  EFI_HANDLE                      *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+ScsiBusComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ScsiBusComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 ScsiGetDeviceType (\r
index e1d0f8d4700815ead489500cbfa2a20941a80ffc..74a41e869e1f7e03f901b87ff044bfcee461d874 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "ScsiDisk.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-ScsiDiskComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-ScsiDiskComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 10134e864e3a4147399efca08306ae5e67feb231..a3f4d6a3b6a42d2a41488eba55a58b9a12c945e0 100644 (file)
@@ -19,31 +19,6 @@ Abstract:
 \r
 #include "ScsiDisk.h"\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-ScsiDiskDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN EFI_HANDLE                   Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-ScsiDiskDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN EFI_HANDLE                   Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-ScsiDiskDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN  EFI_HANDLE                      Controller,\r
-  IN  UINTN                           NumberOfChildren,\r
-  IN  EFI_HANDLE                      *ChildHandleBuffer\r
-  );\r
-\r
 EFI_DRIVER_BINDING_PROTOCOL gScsiDiskDriverBinding = {\r
   ScsiDiskDriverBindingSupported,\r
   ScsiDiskDriverBindingStart,\r
index 96d1da4f9030457123bf61469c4301081f80c187..675c643eff1c33b96dfe299b4fee7615d0657e33 100644 (file)
@@ -63,6 +63,52 @@ extern EFI_COMPONENT_NAME_PROTOCOL  gScsiDiskComponentName;
 #define ACTION_READ_CAPACITY        0x01\r
 #define ACTION_RETRY_COMMAND_LATER  0x02\r
 \r
+EFI_STATUS\r
+EFIAPI\r
+ScsiDiskDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN EFI_HANDLE                   Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ScsiDiskDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN EFI_HANDLE                   Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ScsiDiskDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN  EFI_HANDLE                      Controller,\r
+  IN  UINTN                           NumberOfChildren,\r
+  IN  EFI_HANDLE                      *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+ScsiDiskComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ScsiDiskComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 ScsiDiskReset (\r
index ca4228583adfdae7e8b17ed2a1be3e3eda4f6c3e..1b3d5abfa137a40e8af8a201eee260093009399c 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "bot.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbBotComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbBotComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index fd830ec56eeeede9c2d4cfe7eef0a0e71cdebeb4..e6a5be480b6a827f636b065ef9c83bd46d09b2fc 100644 (file)
@@ -21,44 +21,6 @@ Abstract:
 \r
 GLOBAL_REMOVE_IF_UNREFERENCED UINT32     gBOTDebugLevel  = EFI_D_INFO;\r
 GLOBAL_REMOVE_IF_UNREFERENCED UINT32     gBOTErrorLevel  = EFI_D_INFO;\r
-//\r
-// Function prototypes\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbBotDriverEntryPoint (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
-//\r
-// Bot Driver Binding Protocol\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-BotDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     ControllerHandle,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BotDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     ControllerHandle,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BotDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     ControllerHandle,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
 \r
 EFI_DRIVER_BINDING_PROTOCOL   gUsbBotDriverBinding = {\r
   BotDriverBindingSupported,\r
@@ -124,6 +86,7 @@ BotMassStorageReset (
   IN  BOOLEAN                   ExtendedVerification\r
   );\r
 \r
+STATIC\r
 VOID\r
 BotReportStatusCode (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath,\r
@@ -979,6 +942,7 @@ BotMassStorageReset (
   return Status;\r
 }\r
 \r
+STATIC\r
 VOID\r
 BotReportStatusCode (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath,\r
index 383cfde48e3723efaeabc67e8e84eddc177a46ae..6e43a1b94065ee2daf93a27cc9ab637a13be0b0d 100644 (file)
@@ -78,4 +78,53 @@ extern EFI_DRIVER_BINDING_PROTOCOL  gUsbBotDriverBinding;
 extern EFI_COMPONENT_NAME_PROTOCOL  gUsbBotComponentName;\r
 extern EFI_GUID                     gUsbBotDriverGuid;\r
 \r
+//\r
+// Bot Driver Binding Protocol\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+BotDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     ControllerHandle,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+BotDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     ControllerHandle,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+BotDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     ControllerHandle,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UsbBotComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbBotComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 #endif\r
index 8ecbbb0995e10fc799636599dafd9a1eb1a1ebb7..1233eaccec0a3224261c090c0551ad50166fb1ff 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "usbbus.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbBusComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
-  IN  CHAR8                           *Language,\r
-  OUT CHAR16                          **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbBusComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
-  IN  EFI_HANDLE                      ControllerHandle,\r
-  IN  EFI_HANDLE                      ChildHandle, OPTIONAL\r
-  IN  CHAR8                           *Language,\r
-  OUT CHAR16                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index ffca53595e2a2bb091f12928cc86a226bf1ba739..e1fdce7997108f1ce306d98510a60fef5b04271c 100644 (file)
@@ -34,36 +34,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED    UINTN    gUSBErrorLevel  = EFI_D_ERROR;
 //\r
 STATIC EFI_GUID             mUsbBusProtocolGuid = EFI_USB_BUS_PROTOCOL_GUID;\r
 \r
-\r
-\r
-//\r
-// EFI_DRIVER_BINDING_PROTOCOL Protocol Interface\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbBusControllerDriverSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN EFI_HANDLE                      Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbBusControllerDriverStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN EFI_HANDLE                      Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbBusControllerDriverStop (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
-  IN EFI_HANDLE                      Controller,\r
-  IN UINTN                           NumberOfChildren,\r
-  IN EFI_HANDLE                      *ChildHandleBuffer\r
-  );\r
-\r
 EFI_DRIVER_BINDING_PROTOCOL gUsbBusDriverBinding = {\r
   UsbBusControllerDriverSupported,\r
   UsbBusControllerDriverStart,\r
@@ -154,6 +124,7 @@ ReleasePortToCHC (
   UINT8                     PortNum\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 ResetRootPort (\r
   IN USB_BUS_CONTROLLER_DEVICE *UsbBusDev,\r
@@ -161,6 +132,7 @@ ResetRootPort (
   IN UINT8                     RetryTimes\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 ResetHubPort (\r
   IN USB_IO_CONTROLLER_DEVICE    *UsbIoController,\r
@@ -2341,6 +2313,7 @@ UsbPortReset (
   return ParentPortReset (UsbIoController, TRUE, 0);\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 ResetRootPort (\r
   IN USB_BUS_CONTROLLER_DEVICE *UsbBusDev,\r
@@ -2433,6 +2406,7 @@ ResetRootPort (
   return EFI_SUCCESS;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 ResetHubPort (\r
   IN USB_IO_CONTROLLER_DEVICE    *UsbIoController,\r
index 4977d71695e28dbc3fe91fcbdbcf1004959035af..ce0e69801373a08cfa0217720e8595edee5b4e99 100644 (file)
@@ -175,6 +175,55 @@ extern EFI_DRIVER_BINDING_PROTOCOL  gUsbBusDriverBinding;
 extern EFI_COMPONENT_NAME_PROTOCOL  gUsbBusComponentName;\r
 extern EFI_GUID                     gUSBBusDriverGuid;\r
 \r
+//\r
+// EFI_DRIVER_BINDING_PROTOCOL Protocol Interface\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UsbBusControllerDriverSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN EFI_HANDLE                      Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbBusControllerDriverStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN EFI_HANDLE                      Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL        *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbBusControllerDriverStop (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL     *This,\r
+  IN EFI_HANDLE                      Controller,\r
+  IN UINTN                           NumberOfChildren,\r
+  IN EFI_HANDLE                      *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UsbBusComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
+  IN  CHAR8                           *Language,\r
+  OUT CHAR16                          **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbBusComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL     *This,\r
+  IN  EFI_HANDLE                      ControllerHandle,\r
+  IN  EFI_HANDLE                      ChildHandle, OPTIONAL\r
+  IN  CHAR8                           *Language,\r
+  OUT CHAR16                          **ControllerName\r
+  );\r
+\r
 //\r
 // Usb Device Configuration functions\r
 //\r
index 91a447de667c90b37c94ec7f6decfc5587a5a7c3..73b89406bdb1436af49392ee394fad068e7020a5 100644 (file)
@@ -19,17 +19,6 @@ Abstract:
 \r
 #include "cbi.h"\r
 \r
-extern EFI_COMPONENT_NAME_PROTOCOL  gUsbCbi0ComponentName;\r
-//\r
-// Function prototypes\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbCbi0DriverEntryPoint (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
 //\r
 // Bot Driver Binding Protocol\r
 //\r
@@ -61,6 +50,7 @@ Cbi0DriverBindingStop (
   IN  EFI_HANDLE                     *ChildHandleBuffer\r
   );\r
 \r
+STATIC\r
 VOID\r
 Cbi0ReportStatusCode (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath,\r
@@ -1004,6 +994,7 @@ Cbi0AtapiCommand (
   return Status;\r
 }\r
 \r
+STATIC\r
 VOID\r
 Cbi0ReportStatusCode (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath,\r
index 7d16b5a1e39f4ee8e5955c724e375642696cca03..87ff7d257b87b8c94e58787b3cc9fc4bfa5b1d10 100644 (file)
@@ -19,29 +19,6 @@ Abstract:
 \r
 #include "cbi.h"\r
 \r
-extern EFI_DRIVER_BINDING_PROTOCOL  gUsbCbi0DriverBinding;\r
-\r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbCbi0ComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbCbi0ComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index e2a7c9d5af13e902172ecd0021d8c5f96e1fd5aa..d312176cacca60fb5cac6bb6d1806fdb0fd6e4b0 100644 (file)
@@ -67,4 +67,28 @@ typedef struct {
 #define USB_CBI_DEVICE_FROM_THIS(a) \\r
     CR(a, USB_CBI_DEVICE, UsbAtapiProtocol, USB_CBI_DEVICE_SIGNATURE)\r
 \r
+extern EFI_COMPONENT_NAME_PROTOCOL  gUsbCbi0ComponentName;\r
+extern EFI_DRIVER_BINDING_PROTOCOL  gUsbCbi0DriverBinding;\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UsbCbi0ComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbCbi0ComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 #endif\r
index f8485dd7344dffddfcf528f90557a4ffffe38e1b..316c7f4c55f101c5dda1fe8cec81d19e21d5fe30 100644 (file)
@@ -19,29 +19,6 @@ Abstract:
 \r
 #include "cbi.h"\r
 \r
-extern EFI_DRIVER_BINDING_PROTOCOL  gUsbCbi1DriverBinding;\r
-\r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbCbi1ComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbCbi1ComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index e2a7c9d5af13e902172ecd0021d8c5f96e1fd5aa..77daa1a29b558051051c5311e6c9b7583397144e 100644 (file)
@@ -67,4 +67,28 @@ typedef struct {
 #define USB_CBI_DEVICE_FROM_THIS(a) \\r
     CR(a, USB_CBI_DEVICE, UsbAtapiProtocol, USB_CBI_DEVICE_SIGNATURE)\r
 \r
+extern EFI_DRIVER_BINDING_PROTOCOL  gUsbCbi1DriverBinding;\r
+extern EFI_COMPONENT_NAME_PROTOCOL  gUsbCbi1ComponentName;\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UsbCbi1ComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbCbi1ComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 #endif\r
index d8ef374c9fedbc6b3638d1f56611d912b5cf20ec..d98d022a54e8c1a72f8cbdfae83f500fc223ac24 100644 (file)
@@ -20,15 +20,6 @@ Abstract:
 \r
 #include "cbi.h"\r
 \r
-extern EFI_COMPONENT_NAME_PROTOCOL  gUsbCbi1ComponentName;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbCBI1DriverEntryPoint (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
 //\r
 // CBI Function prototypes\r
 //\r
@@ -107,6 +98,7 @@ CBI1DriverBindingStop (
   IN  EFI_HANDLE                     *ChildHandleBuffer\r
   );\r
 \r
+STATIC\r
 VOID\r
 Cbi1ReportStatusCode (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath,\r
@@ -827,6 +819,7 @@ CBI1AtapiCommand (
   return EFI_DEVICE_ERROR;\r
 }\r
 \r
+STATIC\r
 VOID\r
 Cbi1ReportStatusCode (\r
   IN EFI_DEVICE_PATH_PROTOCOL  *DevicePath,\r
index 3e139f9d9a025d047a2327fb3b3ca4fa14c8b5bc..71a715f06ecaa6cc2b6fa42a6c157e8e515be7c8 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "keyboard.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbKeyboardComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbKeyboardComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 1b8c96166ca329b98b26c13606c0b852ce3d3cc6..a1fd418bdeabd1303ce52d595dc76dd5f1204cc9 100644 (file)
@@ -24,42 +24,6 @@ Revision History
 #include "efikey.h"\r
 #include "keyboard.h"\r
 \r
-//\r
-// Prototypes\r
-// Driver model protocol interface\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-USBKeyboardDriverBindingEntryPoint (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBKeyboardDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBKeyboardDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBKeyboardDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     Controller,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
 //\r
 // Simple Text In Protocol Interface\r
 //\r
index 31307ebe57f9f96ebb05e6e0b2079db96e7acf93..4bdbfc9f9ac9462ad06529e533bdd2de7e508103 100644 (file)
@@ -117,4 +117,34 @@ typedef struct {
   UINT8 ScrollLock : 1;\r
   UINT8 Resrvd : 5;\r
 } LED_MAP;\r
+\r
+//\r
+// Prototypes\r
+// Driver model protocol interface\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+USBKeyboardDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+USBKeyboardDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+USBKeyboardDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     Controller,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
 #endif\r
index a01fda3ca4f9adaf1e049e533bbb2f1f67a23275..ef4c1c34439ca8948ef387c16f07df38cc1860d1 100644 (file)
@@ -24,6 +24,27 @@ Revision History
 \r
 #include "efikey.h"\r
 \r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UsbKeyboardComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbKeyboardComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 BOOLEAN\r
 IsUSBKeyboard (\r
   IN  EFI_USB_IO_PROTOCOL       *UsbIo\r
index f033361fffc660f84e89c66fc3f7b0c92a80ffa8..3e34361cef49ba46d5aa64d5717a80b93598d8af 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "UsbMassStorage.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbMassStorageComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbMassStorageComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 7f6cd4daf26796f7320d227acdde074f10b9e6ef..951ab0a186fcae887deee4c0ba17dbdb3c1ee8b4 100644 (file)
@@ -24,44 +24,6 @@ Revision History
 #include "UsbMassStorage.h"\r
 #include "UsbMassStorageHelper.h"\r
 \r
-extern EFI_COMPONENT_NAME_PROTOCOL  gUsbMassStorageComponentName;\r
-\r
-//\r
-// Prototypes\r
-// Driver model protocol interface\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-USBMassStorageDriverBindingEntryPoint (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBFloppyDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBFloppyDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBFloppyDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     Controller,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
 //\r
 // Block I/O Protocol Interface\r
 //\r
index 832befccccfafa38a0737f2b5c3edddf8d4567e7..27912b0d136b010a0ffa510920e5e3428a5b3725 100644 (file)
@@ -57,4 +57,56 @@ typedef struct {
 #define USB_FLOPPY_DEV_FROM_THIS(a) \\r
     CR(a, USB_FLOPPY_DEV, BlkIo, USB_FLOPPY_DEV_SIGNATURE)\r
 \r
+extern EFI_COMPONENT_NAME_PROTOCOL  gUsbMassStorageComponentName;\r
+\r
+//\r
+// Prototypes\r
+// Driver model protocol interface\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+USBFloppyDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+USBFloppyDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+USBFloppyDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     Controller,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UsbMassStorageComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbMassStorageComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 #endif\r
index 5b01cea9d416e9ce63a86b56bd9ae36e43893425..695961f17c7f83b50c12eea2cd67d0c2d1e23b9e 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "usbmouse.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-UsbMouseComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UsbMouseComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 442b5a21394dd15b61a70019ce0a5b8b57e04cfc..f7449ebfc332619e57cd1d1f517d297745d30980 100644 (file)
@@ -20,43 +20,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "usbmouse.h"\r
 #include "mousehid.h"\r
 \r
-//\r
-// Prototypes\r
-// Driver model protocol interface\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-USBMouseDriverBindingEntryPoint (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBMouseDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBMouseDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-USBMouseDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL   *This,\r
-  IN  EFI_HANDLE                    Controller,\r
-  IN  UINTN                         NumberOfChildren,\r
-  IN  EFI_HANDLE                    *ChildHandleBuffer\r
-  );\r
-\r
-\r
 EFI_DRIVER_BINDING_PROTOCOL gUsbMouseDriverBinding = {\r
   USBMouseDriverBindingSupported,\r
   USBMouseDriverBindingStart,\r
index 47485bfc08b7d51f81bb365854d3bd392fa7501b..ac071db311475b26f554d64f6d7e8f73ef3d4ccd 100644 (file)
@@ -82,4 +82,54 @@ MouseReportStatusCode (
   IN EFI_STATUS_CODE_VALUE     Value\r
   );\r
 \r
+//\r
+// Prototypes\r
+// Driver model protocol interface\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+USBMouseDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+USBMouseDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+USBMouseDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL   *This,\r
+  IN  EFI_HANDLE                    Controller,\r
+  IN  UINTN                         NumberOfChildren,\r
+  IN  EFI_HANDLE                    *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+UsbMouseComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UsbMouseComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 #endif\r
index e7c23b57b3d699cd5327f0a951f71da724e079dc..08d5dc34e52252d5089163f8b41d725e586435b8 100644 (file)
@@ -101,11 +101,13 @@ FV_FILEPATH_DEVICE_PATH mFvDevicePath;
 //\r
 // Function Prototypes\r
 //\r
+STATIC\r
 VOID\r
 CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (\r
   IN  EFI_CORE_DRIVER_ENTRY   *InsertedDriverEntry\r
   );\r
  \r
+STATIC\r
 VOID\r
 EFIAPI\r
 CoreFwVolEventProtocolNotify (\r
@@ -113,6 +115,7 @@ CoreFwVolEventProtocolNotify (
   IN  VOID            *Context\r
   );\r
 \r
+STATIC\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 CoreFvToDevicePath (\r
   IN  EFI_FIRMWARE_VOLUME_PROTOCOL    *Fv,\r
@@ -523,7 +526,7 @@ Returns:
   return ReturnStatus;\r
 }\r
 \r
-\r
+STATIC\r
 VOID\r
 CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (\r
   IN  EFI_CORE_DRIVER_ENTRY   *InsertedDriverEntry\r
@@ -664,7 +667,7 @@ Returns:
 \r
 \r
 \r
-\r
+STATIC\r
 EFI_DEVICE_PATH_PROTOCOL *\r
 CoreFvToDevicePath (\r
   IN  EFI_FIRMWARE_VOLUME_PROTOCOL    *Fv,\r
@@ -858,7 +861,7 @@ Returns:
   return Status;\r
 }\r
 \r
-\r
+STATIC\r
 VOID\r
 EFIAPI\r
 CoreFwVolEventProtocolNotify (\r
index b38ba8e7f9ef1385190b386df7ff13b066524a25..d655cd338183bee7c8592e4f595128be2ccae7a4 100644 (file)
@@ -2507,4 +2507,256 @@ CoreDisplayDiscoveredNotDispatched (
     NONE \r
 \r
 --*/;\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+CoreEfiNotAvailableYetArg0 (\r
+  VOID\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Place holder function until all the Boot Services and Runtime Services are available\r
+\r
+Arguments:\r
+\r
+  None\r
+\r
+Returns:\r
+\r
+  EFI_NOT_AVAILABLE_YET\r
+\r
+--*/\r
+;\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+CoreEfiNotAvailableYetArg1 (\r
+  UINTN Arg1\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Place holder function until all the Boot Services and Runtime Services are available\r
+\r
+Arguments:\r
+\r
+  Arg1        - Undefined\r
+\r
+Returns:\r
+\r
+  EFI_NOT_AVAILABLE_YET\r
+\r
+--*/\r
+;\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+CoreEfiNotAvailableYetArg2 (\r
+  UINTN Arg1,\r
+  UINTN Arg2\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Place holder function until all the Boot Services and Runtime Services are available\r
+\r
+Arguments:\r
+\r
+  Arg1        - Undefined\r
+  \r
+  Arg2        - Undefined\r
+\r
+Returns:\r
+\r
+  EFI_NOT_AVAILABLE_YET\r
+\r
+--*/\r
+;\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+CoreEfiNotAvailableYetArg3 (\r
+  UINTN Arg1,\r
+  UINTN Arg2,\r
+  UINTN Arg3\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Place holder function until all the Boot Services and Runtime Services are available\r
+\r
+Arguments:\r
+\r
+  Arg1        - Undefined\r
+  \r
+  Arg2        - Undefined\r
+  \r
+  Arg3        - Undefined\r
+\r
+Returns:\r
+\r
+  EFI_NOT_AVAILABLE_YET\r
+\r
+--*/\r
+;\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+CoreEfiNotAvailableYetArg4 (\r
+  UINTN Arg1,\r
+  UINTN Arg2,\r
+  UINTN Arg3,\r
+  UINTN Arg4\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Place holder function until all the Boot Services and Runtime Services are available\r
+\r
+Arguments:\r
+\r
+  Arg1        - Undefined\r
+  \r
+  Arg2        - Undefined\r
+  \r
+  Arg3        - Undefined\r
+  \r
+  Arg4        - Undefined\r
+\r
+Returns:\r
+\r
+  EFI_NOT_AVAILABLE_YET\r
+\r
+--*/\r
+;\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+CoreEfiNotAvailableYetArg5 (\r
+  UINTN Arg1,\r
+  UINTN Arg2,\r
+  UINTN Arg3,\r
+  UINTN Arg4,\r
+  UINTN Arg5\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Place holder function until all the Boot Services and Runtime Services are available\r
+\r
+Arguments:\r
+\r
+  Arg1        - Undefined\r
+  \r
+  Arg2        - Undefined\r
+  \r
+  Arg3        - Undefined\r
+  \r
+  Arg4        - Undefined\r
+  \r
+  Arg5        - Undefined\r
+\r
+Returns:\r
+\r
+  EFI_NOT_AVAILABLE_YET\r
+\r
+--*/\r
+;\r
+\r
+EFI_STATUS\r
+CoreGetPeiProtocol (\r
+  IN EFI_GUID  *ProtocolGuid,\r
+  IN VOID      **Interface\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Searches for a Protocol Interface passed from PEI through a HOB\r
+\r
+Arguments:\r
+\r
+  ProtocolGuid - The Protocol GUID to search for in the HOB List\r
+\r
+  Interface    - A pointer to the interface for the Protocol GUID\r
+\r
+Returns:\r
+\r
+  EFI_SUCCESS   - The Protocol GUID was found and its interface is returned in Interface\r
+\r
+  EFI_NOT_FOUND - The Protocol GUID was not found in the HOB List\r
+\r
+--*/\r
+;\r
+  \r
+EFI_STATUS\r
+DxeMainUefiDecompressGetInfo (\r
+  IN EFI_DECOMPRESS_PROTOCOL            *This,\r
+  IN   VOID                             *Source,\r
+  IN   UINT32                           SourceSize,\r
+  OUT  UINT32                           *DestinationSize,\r
+  OUT  UINT32                           *ScratchSize\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DxeMainUefiDecompress (\r
+  IN EFI_DECOMPRESS_PROTOCOL              *This,\r
+  IN     VOID                             *Source,\r
+  IN     UINT32                           SourceSize,\r
+  IN OUT VOID                             *Destination,\r
+  IN     UINT32                           DestinationSize,\r
+  IN OUT VOID                             *Scratch,\r
+  IN     UINT32                           ScratchSize\r
+  );\r
+\r
+EFI_STATUS\r
+DxeMainTianoDecompressGetInfo (\r
+  IN EFI_TIANO_DECOMPRESS_PROTOCOL      *This,\r
+  IN   VOID                             *Source,\r
+  IN   UINT32                           SourceSize,\r
+  OUT  UINT32                           *DestinationSize,\r
+  OUT  UINT32                           *ScratchSize\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DxeMainTianoDecompress (\r
+  IN EFI_TIANO_DECOMPRESS_PROTOCOL        *This,\r
+  IN     VOID                             *Source,\r
+  IN     UINT32                           SourceSize,\r
+  IN OUT VOID                             *Destination,\r
+  IN     UINT32                           DestinationSize,\r
+  IN OUT VOID                             *Scratch,\r
+  IN     UINT32                           ScratchSize\r
+  );\r
+\r
+EFI_STATUS\r
+DxeMainCustomDecompressGetInfo (\r
+  IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL  *This,\r
+  IN   VOID                              *Source,\r
+  IN   UINT32                            SourceSize,\r
+  OUT  UINT32                            *DestinationSize,\r
+  OUT  UINT32                            *ScratchSize\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DxeMainCustomDecompress (\r
+  IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL  *This,\r
+  IN     VOID                            *Source,\r
+  IN     UINT32                          SourceSize,\r
+  IN OUT VOID                            *Destination,\r
+  IN     UINT32                          DestinationSize,\r
+  IN OUT VOID                            *Scratch,\r
+  IN     UINT32                          ScratchSize\r
+  );\r
+\r
 #endif\r
index 6b1f084e77bba7fcf568da2ad4c1dc6d6c7955a6..b590538feaefc04d03c758070b9b9ce72a28e39c 100644 (file)
@@ -21,127 +21,6 @@ Abstract:
 \r
 #include <DxeMain.h>\r
 \r
-VOID\r
-EFIAPI\r
-DxeMain (\r
-  IN  VOID *HobStart\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-CoreEfiNotAvailableYetArg0 (\r
-  VOID\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-CoreEfiNotAvailableYetArg1 (\r
-  UINTN Arg1\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-CoreEfiNotAvailableYetArg2 (\r
-  UINTN Arg1,\r
-  UINTN Arg2\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-CoreEfiNotAvailableYetArg3 (\r
-  UINTN Arg1,\r
-  UINTN Arg2,\r
-  UINTN Arg3\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-CoreEfiNotAvailableYetArg4 (\r
-  UINTN Arg1,\r
-  UINTN Arg2,\r
-  UINTN Arg3,\r
-  UINTN Arg4\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-CoreEfiNotAvailableYetArg5 (\r
-  UINTN Arg1,\r
-  UINTN Arg2,\r
-  UINTN Arg3,\r
-  UINTN Arg4,\r
-  UINTN Arg5\r
-  );\r
-\r
-EFI_STATUS\r
-CoreGetPeiProtocol (\r
-  IN EFI_GUID  *ProtocolGuid,\r
-  IN VOID      **Interface\r
-  );\r
-  \r
-EFI_STATUS\r
-DxeMainUefiDecompressGetInfo (\r
-  IN EFI_DECOMPRESS_PROTOCOL            *This,\r
-  IN   VOID                             *Source,\r
-  IN   UINT32                           SourceSize,\r
-  OUT  UINT32                           *DestinationSize,\r
-  OUT  UINT32                           *ScratchSize\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-DxeMainUefiDecompress (\r
-  IN EFI_DECOMPRESS_PROTOCOL              *This,\r
-  IN     VOID                             *Source,\r
-  IN     UINT32                           SourceSize,\r
-  IN OUT VOID                             *Destination,\r
-  IN     UINT32                           DestinationSize,\r
-  IN OUT VOID                             *Scratch,\r
-  IN     UINT32                           ScratchSize\r
-  );\r
-\r
-EFI_STATUS\r
-DxeMainTianoDecompressGetInfo (\r
-  IN EFI_TIANO_DECOMPRESS_PROTOCOL      *This,\r
-  IN   VOID                             *Source,\r
-  IN   UINT32                           SourceSize,\r
-  OUT  UINT32                           *DestinationSize,\r
-  OUT  UINT32                           *ScratchSize\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-DxeMainTianoDecompress (\r
-  IN EFI_TIANO_DECOMPRESS_PROTOCOL        *This,\r
-  IN     VOID                             *Source,\r
-  IN     UINT32                           SourceSize,\r
-  IN OUT VOID                             *Destination,\r
-  IN     UINT32                           DestinationSize,\r
-  IN OUT VOID                             *Scratch,\r
-  IN     UINT32                           ScratchSize\r
-  );\r
-\r
-EFI_STATUS\r
-DxeMainCustomDecompressGetInfo (\r
-  IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL  *This,\r
-  IN   VOID                              *Source,\r
-  IN   UINT32                            SourceSize,\r
-  OUT  UINT32                            *DestinationSize,\r
-  OUT  UINT32                            *ScratchSize\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-DxeMainCustomDecompress (\r
-  IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL  *This,\r
-  IN     VOID                            *Source,\r
-  IN     UINT32                          SourceSize,\r
-  IN OUT VOID                            *Destination,\r
-  IN     UINT32                          DestinationSize,\r
-  IN OUT VOID                            *Scratch,\r
-  IN     UINT32                          ScratchSize\r
-  );\r
-\r
 //\r
 // DXE Core Global Variables for Protocols from PEI\r
 //\r
index 8d7932f8375adbb45658102865959462a2756168..a49701519e4cfe8ccc26c75f0c33e658640ccc08 100644 (file)
@@ -33,6 +33,7 @@ CoreCurrentSystemTime (
   VOID\r
   );\r
 \r
+STATIC\r
 VOID\r
 EFIAPI\r
 CoreCheckTimers (\r
@@ -173,6 +174,7 @@ Returns:
   CoreReleaseLock (&mEfiSystemTimeLock);\r
 }\r
 \r
+STATIC\r
 VOID\r
 EFIAPI\r
 CoreCheckTimers (\r
index 999cd694ad5f03722cd73712d70c6247b0981ac0..408688c69fd93025c000975ad040bd7dc556e158 100644 (file)
@@ -25,15 +25,6 @@ Revision History
 \r
 #include <DxeMain.h>\r
 \r
-\r
-VOID\r
-CoreDevicePathToFileName (\r
-  IN  FILEPATH_DEVICE_PATH      *FilePath,\r
-  OUT CHAR16                    **String\r
-  );\r
-\r
-\r
-\r
 EFI_STATUS\r
 CoreOpenImageFile (\r
   IN BOOLEAN                        BootPolicy,\r
@@ -432,67 +423,6 @@ Returns:
   return Status;\r
 }\r
 \r
-\r
-VOID\r
-CoreDevicePathToFileName (\r
-  IN  FILEPATH_DEVICE_PATH      *FilePath,\r
-  OUT CHAR16                    **String\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  Transfer a device's full path a string.\r
-\r
-Arguments:\r
-\r
-  FilePath      - Device path\r
-  \r
-  String        - The string represent the device's full path\r
-\r
-Returns:\r
-\r
-  None\r
-\r
---*/\r
-{\r
-  UINTN                     StringSize;\r
-  FILEPATH_DEVICE_PATH      *FilePathNode;\r
-  CHAR16                    *Str;\r
-\r
-  *String = NULL;\r
-  StringSize = 0;\r
-  FilePathNode = FilePath;\r
-  while (!IsDevicePathEnd (&FilePathNode->Header)) {\r
-\r
-    //\r
-    // For filesystem access each node should be a filepath component\r
-    //\r
-    if (DevicePathType (&FilePathNode->Header) != MEDIA_DEVICE_PATH ||\r
-        DevicePathSubType (&FilePathNode->Header) != MEDIA_FILEPATH_DP) {\r
-\r
-      return;\r
-    }\r
-\r
-    StringSize += StrLen (FilePathNode->PathName);\r
-\r
-    FilePathNode = (FILEPATH_DEVICE_PATH *) NextDevicePathNode (&FilePathNode->Header);\r
-  }\r
-\r
-  *String = CoreAllocateBootServicesPool (StringSize);\r
-  if (*String == NULL) {\r
-    return;\r
-  }\r
-\r
-  FilePathNode = FilePath;\r
-  Str = *String;\r
-  while (!IsDevicePathEnd (&FilePathNode->Header)) {\r
-    StrCat (Str, FilePathNode->PathName);\r
-    FilePathNode = (FILEPATH_DEVICE_PATH *) NextDevicePathNode (&FilePathNode->Header);\r
-  }\r
-}\r
-\r
-\r
 BOOLEAN\r
 CoreGrowBuffer (\r
   IN OUT EFI_STATUS   *Status,\r
index 44116abcb6159df34e858ec6a461c52c79f80d4e..4f66e0a3d2e8ac58147af0a994a72d46f1affef0 100644 (file)
@@ -94,6 +94,7 @@ EFI_MEMORY_TYPE_INFORMATION gMemoryTypeInformation[EfiMaxMemoryType + 1] = {
 //\r
 // Internal prototypes\r
 //\r
+STATIC\r
 VOID \r
 PromoteMemoryResource (\r
   VOID\r
@@ -175,6 +176,7 @@ Returns:
   CoreReleaseLock (&gMemoryLock);\r
 }\r
 \r
+STATIC\r
 VOID\r
 PromoteMemoryResource (\r
   VOID\r
index 89dd9afcc18e8ae37a8f31f10a145c3f708a81c1..a3e20e69e846f30496facbbf8fc611a14f9b79e3 100644 (file)
@@ -131,6 +131,7 @@ CreateGuidedExtractionRpnEvent (
   IN CORE_SECTION_CHILD_NODE                  *ChildNode\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 OpenSectionStream (\r
@@ -140,6 +141,7 @@ OpenSectionStream (
      OUT UINTN                                *SectionStreamHandle\r
   );\r
   \r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 GetSection (\r
@@ -153,6 +155,7 @@ GetSection (
   OUT UINT32                                  *AuthenticationStatus\r
   );\r
   \r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 CloseSectionStream (\r
@@ -262,7 +265,7 @@ Returns:
   return Status;\r
 }\r
 \r
-\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 OpenSectionStream (\r
@@ -308,7 +311,7 @@ Returns:
           );\r
 }\r
   \r
-\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 GetSection (\r
@@ -451,7 +454,7 @@ GetSection_Done:
 }\r
 \r
 \r
-\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 CloseSectionStream (\r
index ccd840d3761e42ed8b039bec7f50db74cc7e19b0..c764b3907eaae43d5fa7aab382666b7baaaded9d 100644 (file)
@@ -23,6 +23,7 @@ Revision History
 \r
 #include <PeiMain.h>\r
 \r
+STATIC\r
 VOID *\r
 TransferOldDataToNewDataRange (\r
   IN PEI_CORE_INSTANCE        *PrivateData\r
@@ -506,7 +507,7 @@ Returns:
   return Runnable;\r
 }\r
 \r
-\r
+STATIC\r
 VOID *\r
 TransferOldDataToNewDataRange (\r
   IN PEI_CORE_INSTANCE        *PrivateData\r
diff --git a/EdkModulePkg/Core/Pei/Ipf/IpfPeiMain.h b/EdkModulePkg/Core/Pei/Ipf/IpfPeiMain.h
new file mode 100644 (file)
index 0000000..e2df073
--- /dev/null
@@ -0,0 +1,52 @@
+/*++\r
+\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+Module Name:\r
+\r
+  IpfPeiMain.h\r
+\r
+Abstract:\r
+\r
+  Definition of IPF specific function\r
+\r
+Revision History\r
+\r
+--*/\r
+\r
+#ifndef _IPF_PEI_MAIN_H_\r
+#define _IPF_PEI_MAIN_H_\r
+\r
+#include <PeiMain.h>\r
+\r
+SAL_RETURN_REGS\r
+GetHandOffStatus (\r
+  VOID\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+   This routine is called by all processors simultaneously, to get some hand-off\r
+   status that has been captured by IPF dispatcher and recorded in kernel registers.\r
+  \r
+Arguments :\r
+\r
+  On Entry :  None.\r
+\r
+Returns:\r
+\r
+   Lid, R20Status.\r
+\r
+--*/\r
+\r
+;\r
+\r
+#endif\r
index 36b66f93d946e1449bd8048f12602d77f3b0356b..db9cb52adf17fb1e70c0878b8d3ac6607883f1c9 100644 (file)
@@ -20,14 +20,9 @@ Abstract:
 Revision History\r
 \r
 --*/\r
-#include <PeiMain.h>\r
-#include "IpfCpuCore.i"\r
 \r
-extern \r
-SAL_RETURN_REGS\r
-GetHandOffStatus (\r
-  VOID\r
-  );\r
+#include "IpfPeiMain.h"\r
+#include "IpfCpuCore.i"\r
 \r
 VOID\r
 SwitchToCacheMode (\r
index 250d5390ed7d80ca2a8c9223d943189461e2573c..5daf40f64dcc54067ff7e49ca2cbdd3502d0a345 100644 (file)
@@ -74,6 +74,7 @@
     <Filename SupArchList="IPF">Ipf/SwitchToCacheMode.c</Filename>\r
     <Filename SupArchList="IPF">Ipf/IpfCpuCore.i</Filename>\r
     <Filename SupArchList="IPF">Ipf/IpfCpuCore.s</Filename>\r
+    <Filename SupArchList="IPF">Ipf/IpfPeiMain.h</Filename>\r
     <Filename SupArchList="IPF">Ipf/Stack.c</Filename>\r
     <Filename SupArchList="IA32 X64 EBC">Dispatcher/Stack.c</Filename>\r
   </SourceFiles>\r
index 0bc175a8566b70479a5378d4fc849cfb04fde824..089995e5297be166318ba8ed9239779123bc24b5 100644 (file)
@@ -21,6 +21,7 @@ Abstract:
 \r
 #include <PeiMain.h>\r
 \r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 SecurityPpiNotifyCallback (\r
@@ -63,6 +64,7 @@ Returns:
   return;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 SecurityPpiNotifyCallback (\r
index bd4b5adcecdce25dbad749dfdb945001d042f99d..727133226c74b38f1683302217abed3efd3ec29c 100644 (file)
@@ -45,6 +45,7 @@ Abstract:
   @retval EFI_OUT_OF_RESOURCES    There are not enough resources to record the measurement.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 StartGauge (\r
@@ -78,6 +79,7 @@ StartGauge (
   @retval EFI_NOT_FOUND           The specified measurement record could not be found.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 EndGauge (\r
@@ -105,6 +107,7 @@ EndGauge (
   @retval EFI_INVALIDE_PARAMETER  GaugeDataEntry is NULL. \r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 GetGauge (\r
@@ -202,6 +205,7 @@ InternalSearchForGaugeEntry (
   @retval EFI_OUT_OF_RESOURCES    There are not enough resources to record the measurement.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 StartGauge (\r
@@ -284,6 +288,7 @@ StartGauge (
   @retval EFI_NOT_FOUND           The specified measurement record could not be found.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 EndGauge (\r
@@ -328,6 +333,7 @@ EndGauge (
   @retval EFI_INVALIDE_PARAMETER  GaugeDataEntry is NULL. \r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 GetGauge (\r
index dc2a22f447a7bd7f1081ca7d6a9c4d1a1b8f3f13..f82ae55c4e931d8866e45cd8b0d28171ad7a44b3 100644 (file)
@@ -19,57 +19,6 @@ Abstract:
 \r
 #include "ConSplitter.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-ConSplitterComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-ConSplitterConInComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-ConSplitterSimplePointerComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-ConSplitterConOutComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-ConSplitterStdErrComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 4509390e83162b981d3268f861a0f8eb5cbc5f18..13c4e743db68ca7ebda2d97e8c240878b2e4bb3e 100644 (file)
@@ -293,6 +293,54 @@ ConSplitterStdErrDriverBindingStop (
   )\r
 ;\r
 \r
+EFI_STATUS\r
+EFIAPI\r
+ConSplitterComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ConSplitterConInComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ConSplitterSimplePointerComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ConSplitterConOutComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ConSplitterStdErrComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 //\r
 // TextIn Constructor/Destructor functions\r
 //\r
index 866aaad4440d5f4581afb12a64784a1499130b71..4a2dd5928c68021302919f7aaba859372710ddd7 100644 (file)
@@ -19,34 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "GraphicsConsole.h"\r
 \r
-//\r
-// Function Prototypes\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-GraphicsConsoleControllerDriverSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-GraphicsConsoleControllerDriverStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-GraphicsConsoleControllerDriverStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     Controller,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
+STATIC\r
 EFI_STATUS\r
 GetTextColors (\r
   IN  EFI_SIMPLE_TEXT_OUT_PROTOCOL  *This,\r
@@ -54,12 +27,7 @@ GetTextColors (
   OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Background\r
   );\r
 \r
-EFI_STATUS\r
-DrawUnicodeWeightAtCursor (\r
-  IN  EFI_SIMPLE_TEXT_OUT_PROTOCOL  *This,\r
-  IN  CHAR16                        UnicodeWeight\r
-  );\r
-\r
+STATIC\r
 EFI_STATUS\r
 DrawUnicodeWeightAtCursorN (\r
   IN  EFI_SIMPLE_TEXT_OUT_PROTOCOL  *This,\r
@@ -67,6 +35,7 @@ DrawUnicodeWeightAtCursorN (
   IN  UINTN                         Count\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 EraseCursor (\r
   IN  EFI_SIMPLE_TEXT_OUT_PROTOCOL  *This\r
@@ -1532,6 +1501,7 @@ GraphicsConsoleConOutEnableCursor (
   return EFI_SUCCESS;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 GetTextColors (\r
   IN  EFI_SIMPLE_TEXT_OUT_PROTOCOL  *This,\r
@@ -1549,6 +1519,7 @@ GetTextColors (
   return EFI_SUCCESS;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 DrawUnicodeWeightAtCursorN (\r
   IN  EFI_SIMPLE_TEXT_OUT_PROTOCOL  *This,\r
@@ -1689,6 +1660,7 @@ DrawUnicodeWeightAtCursorN (
   return ReturnStatus;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 EraseCursor (\r
   IN  EFI_SIMPLE_TEXT_OUT_PROTOCOL  *This\r
index 45a2ec4764e326a266b501b4573fa505aeceb662..bcc1d567464470bfe2ea75d2c4941e3e435d3f7c 100644 (file)
@@ -159,4 +159,29 @@ EfiLocateHiiProtocol (
   VOID\r
   );\r
 \r
+EFI_STATUS\r
+EFIAPI\r
+GraphicsConsoleControllerDriverSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+GraphicsConsoleControllerDriverStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+GraphicsConsoleControllerDriverStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     Controller,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
 #endif\r
index 7a1c23d17c5d5a8aaf80cc9cbd3eb5d401580c0e..bdc6df471dc0107213853f634948e65cf2899557 100644 (file)
@@ -20,27 +20,6 @@ Abstract:
 \r
 #include "Terminal.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-TerminalComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-TerminalComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 45eb632e263cc453e56e9dbf7df8b154e33fdf28..6aa70e4c9562f4e30d26b0ef42a23ed68a2179b4 100644 (file)
@@ -22,34 +22,6 @@ Revision History:
 \r
 #include "Terminal.h"\r
 \r
-//\r
-// Function Prototypes\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-TerminalDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-TerminalDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-TerminalDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     Controller,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
 //\r
 // Globals\r
 //\r
index 2382d86f7e562c9e7696197fdabbf3432be2f308..e7ce1dc324ab84b0eea297e6f6bd8c66dde40c23 100644 (file)
@@ -244,6 +244,49 @@ TerminalConOutEnableCursor (
   )\r
 ;\r
 \r
+EFI_STATUS\r
+EFIAPI\r
+TerminalDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+TerminalDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+TerminalDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     Controller,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+TerminalComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+TerminalComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 //\r
 // internal functions\r
 //\r
index 35ca70d8f805cdc87e0d08a81ca3d0f772b7c97f..86ed5f29f03185fc68d480e44adce8308dd573c4 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "DiskIo.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-DiskIoComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-DiskIoComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 39d87661c6a206b2f66cbcc255a4ab585a76b04c..cdb67390ba747520e1538052033abb7eef698a5b 100644 (file)
@@ -41,4 +41,77 @@ typedef struct {
 extern EFI_DRIVER_BINDING_PROTOCOL  gDiskIoDriverBinding;\r
 extern EFI_COMPONENT_NAME_PROTOCOL  gDiskIoComponentName;\r
 \r
+//\r
+// Prototypes\r
+// Driver model protocol interface\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+DiskIoDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     ControllerHandle,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DiskIoDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     ControllerHandle,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DiskIoDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     ControllerHandle,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// Disk I/O Protocol Interface\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+DiskIoReadDisk (\r
+  IN EFI_DISK_IO_PROTOCOL  *This,\r
+  IN UINT32                MediaId,\r
+  IN UINT64                Offset,\r
+  IN UINTN                 BufferSize,\r
+  OUT VOID                 *Buffer\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DiskIoWriteDisk (\r
+  IN EFI_DISK_IO_PROTOCOL  *This,\r
+  IN UINT32                MediaId,\r
+  IN UINT64                Offset,\r
+  IN UINTN                 BufferSize,\r
+  IN VOID                  *Buffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+DiskIoComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DiskIoComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 #endif\r
index d378ae3e33322efc73721a51e58f804674304b4e..62ae6d2b8aa96bcbf8642a58412584cf40d09819 100644 (file)
@@ -32,58 +32,6 @@ Abstract:
 \r
 #include "DiskIo.h"\r
 \r
-//\r
-// Prototypes\r
-// Driver model protocol interface\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-DiskIoDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     ControllerHandle,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-DiskIoDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     ControllerHandle,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-DiskIoDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     ControllerHandle,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
-//\r
-// Disk I/O Protocol Interface\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-DiskIoReadDisk (\r
-  IN EFI_DISK_IO_PROTOCOL  *This,\r
-  IN UINT32                MediaId,\r
-  IN UINT64                Offset,\r
-  IN UINTN                 BufferSize,\r
-  OUT VOID                 *Buffer\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-DiskIoWriteDisk (\r
-  IN EFI_DISK_IO_PROTOCOL  *This,\r
-  IN UINT32                MediaId,\r
-  IN UINT64                Offset,\r
-  IN UINTN                 BufferSize,\r
-  IN VOID                  *Buffer\r
-  );\r
-\r
 EFI_DRIVER_BINDING_PROTOCOL gDiskIoDriverBinding = {\r
   DiskIoDriverBindingSupported,\r
   DiskIoDriverBindingStart,\r
index 3821690f0c27490645e22f905e64869e10fc1e62..96ff6483320a0bd0f613b7af9e0bf3aeb6e04e8b 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "Partition.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-PartitionComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PartitionComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 42411806f648985811876c4a149d62c82b40b0e7..4b4910a813e1407de9f702bc56563154489c1445 100644 (file)
@@ -22,6 +22,7 @@ Abstract:
 \r
 #include "Partition.h"\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionValidGptTable (\r
   IN  EFI_BLOCK_IO_PROTOCOL       *BlockIo,\r
@@ -30,6 +31,7 @@ PartitionValidGptTable (
   OUT EFI_PARTITION_TABLE_HEADER  *PartHeader\r
   );\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionCheckGptEntryArrayCRC (\r
   IN  EFI_BLOCK_IO_PROTOCOL       *BlockIo,\r
@@ -37,6 +39,7 @@ PartitionCheckGptEntryArrayCRC (
   IN  EFI_PARTITION_TABLE_HEADER  *PartHeader\r
   );\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionRestoreGptTable (\r
   IN  EFI_BLOCK_IO_PROTOCOL       *BlockIo,\r
@@ -44,6 +47,7 @@ PartitionRestoreGptTable (
   IN  EFI_PARTITION_TABLE_HEADER  *PartHeader\r
   );\r
 \r
+STATIC\r
 VOID\r
 PartitionCheckGptEntry (\r
   IN  EFI_PARTITION_TABLE_HEADER  *PartHeader,\r
@@ -51,6 +55,7 @@ PartitionCheckGptEntry (
   OUT EFI_PARTITION_ENTRY_STATUS  *PEntryStatus\r
   );\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionCheckCrcAltSize (\r
   IN UINTN                 MaxSize,\r
@@ -58,18 +63,21 @@ PartitionCheckCrcAltSize (
   IN OUT EFI_TABLE_HEADER  *Hdr\r
   );\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionCheckCrc (\r
   IN UINTN                 MaxSize,\r
   IN OUT EFI_TABLE_HEADER  *Hdr\r
   );\r
 \r
+STATIC\r
 VOID\r
 PartitionSetCrcAltSize (\r
   IN UINTN                 Size,\r
   IN OUT EFI_TABLE_HEADER  *Hdr\r
   );\r
 \r
+STATIC\r
 VOID\r
 PartitionSetCrc (\r
   IN OUT EFI_TABLE_HEADER *Hdr\r
@@ -320,6 +328,7 @@ Done:
   return GptValid;\r
 }\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionValidGptTable (\r
   IN  EFI_BLOCK_IO_PROTOCOL       *BlockIo,\r
@@ -391,6 +400,7 @@ Returns:
   return TRUE;\r
 }\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionCheckGptEntryArrayCRC (\r
   IN  EFI_BLOCK_IO_PROTOCOL       *BlockIo,\r
@@ -457,6 +467,7 @@ Returns:
   return (BOOLEAN) (PartHeader->PartitionEntryArrayCRC32 == Crc);\r
 }\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionRestoreGptTable (\r
   IN  EFI_BLOCK_IO_PROTOCOL       *BlockIo,\r
@@ -554,6 +565,7 @@ Done:
   return TRUE;\r
 }\r
 \r
+STATIC\r
 VOID\r
 PartitionCheckGptEntry (\r
   IN  EFI_PARTITION_TABLE_HEADER  *PartHeader,\r
@@ -622,6 +634,7 @@ Returns:
   DEBUG ((EFI_D_INFO, " End check partition entries\n"));\r
 }\r
 \r
+STATIC\r
 VOID\r
 PartitionSetCrc (\r
   IN OUT EFI_TABLE_HEADER *Hdr\r
@@ -645,6 +658,7 @@ Returns:
   PartitionSetCrcAltSize (Hdr->HeaderSize, Hdr);\r
 }\r
 \r
+STATIC\r
 VOID\r
 PartitionSetCrcAltSize (\r
   IN UINTN                 Size,\r
@@ -674,6 +688,7 @@ Returns:
   Hdr->CRC32 = Crc;\r
 }\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionCheckCrc (\r
   IN UINTN                 MaxSize,\r
@@ -699,6 +714,7 @@ Returns:
   return PartitionCheckCrcAltSize (MaxSize, Hdr->HeaderSize, Hdr);\r
 }\r
 \r
+STATIC\r
 BOOLEAN\r
 PartitionCheckCrcAltSize (\r
   IN UINTN                 MaxSize,\r
index 6a896e4e722d5ff426e01e2841004e4e9d6af442..b4207d42b8617656abb6627b52cb21df63a3dafb 100644 (file)
@@ -24,41 +24,6 @@ Abstract:
 \r
 #include "Partition.h"\r
 \r
-//\r
-// Function Prototypes\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-PartitionEntryPoint (\r
-  IN EFI_HANDLE         ImageHandle,\r
-  IN EFI_SYSTEM_TABLE   *SystemTable\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PartitionDriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN EFI_HANDLE                   ControllerHandle,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PartitionDriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN EFI_HANDLE                   ControllerHandle,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PartitionDriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL  *This,\r
-  IN  EFI_HANDLE                   ControllerHandle,\r
-  IN  UINTN                        NumberOfChildren,\r
-  IN  EFI_HANDLE                   *ChildHandleBuffer\r
-  );\r
-\r
 //\r
 // Partition Driver Global Variables\r
 //\r
index ba105554e99ef46181f6591d2c7e017128696cc4..a52b8f51032aedc0f367d6fdb26bca8877d7d0bf 100644 (file)
@@ -77,6 +77,55 @@ extern EFI_COMPONENT_NAME_PROTOCOL  gPartitionComponentName;
                                    (((UINT8 *) a)[2] << 16) |    \\r
                                    (((UINT8 *) a)[3] << 24) )\r
 \r
+//\r
+// Function Prototypes\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+PartitionDriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN EFI_HANDLE                   ControllerHandle,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PartitionDriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN EFI_HANDLE                   ControllerHandle,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PartitionDriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL  *This,\r
+  IN  EFI_HANDLE                   ControllerHandle,\r
+  IN  UINTN                        NumberOfChildren,\r
+  IN  EFI_HANDLE                   *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+PartitionComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PartitionComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 EFI_STATUS\r
 PartitionInstallChildHandle (\r
   IN  EFI_DRIVER_BINDING_PROTOCOL  *This,\r
index ce9b3aa547f627721353cde8d1dd5d2fcac611a7..5e6b3e3a8f86d20da9b876e4f973ec6080251d61 100644 (file)
@@ -134,20 +134,6 @@ VmWriteMem32 (
   IN UINT32     Data\r
   );\r
 \r
-EFI_STATUS\r
-VmWriteMemN (\r
-  IN VM_CONTEXT *VmPtr,\r
-  UINTN         Addr,\r
-  IN UINTN      Data\r
-  );\r
-\r
-EFI_STATUS\r
-VmWriteMem64 (\r
-  IN VM_CONTEXT *VmPtr,\r
-  UINTN         Addr,\r
-  IN UINT64     Data\r
-  );\r
-\r
 STATIC\r
 UINT16\r
 VmReadCode16 (\r
index e38f5be7309d10ba913a7d6997b01cbb86597951..cf683295ea03e65c189277180f2c45c727d1bf96 100644 (file)
@@ -41,16 +41,6 @@ typedef struct _EBC_IMAGE_LIST {
   EBC_THUNK_LIST          *ThunkList;\r
 } EBC_IMAGE_LIST;\r
 \r
-//\r
-// Function prototypes\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-InitializeEbcDriver (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
 STATIC\r
 EFI_STATUS\r
 EFIAPI\r
@@ -77,12 +67,14 @@ EbcGetVersion (
   IN OUT UINT64           *Version\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 InitializeEbcCallback (\r
   IN EFI_DEBUG_SUPPORT_PROTOCOL  *This\r
   );\r
 \r
+STATIC\r
 VOID\r
 EFIAPI\r
 CommonEbcExceptionHandler (\r
@@ -90,6 +82,7 @@ CommonEbcExceptionHandler (
   IN EFI_SYSTEM_CONTEXT   SystemContext\r
   );\r
 \r
+STATIC\r
 VOID\r
 EFIAPI\r
 EbcPeriodicNotifyFunction (\r
@@ -97,6 +90,7 @@ EbcPeriodicNotifyFunction (
   IN VOID          *Context\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 EbcDebugPeriodic (\r
@@ -646,6 +640,7 @@ Returns:
   return EFI_SUCCESS;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 InitializeEbcCallback (\r
   IN EFI_DEBUG_SUPPORT_PROTOCOL  *This\r
@@ -707,6 +702,7 @@ Returns:
   return EFI_SUCCESS;\r
 }\r
 \r
+STATIC\r
 VOID\r
 CommonEbcExceptionHandler (\r
   IN EFI_EXCEPTION_TYPE   InterruptType,\r
@@ -739,6 +735,7 @@ Returns:
   return ;\r
 }\r
 \r
+STATIC\r
 VOID\r
 EFIAPI\r
 EbcPeriodicNotifyFunction (\r
@@ -774,7 +771,7 @@ Returns:
   return ;\r
 }\r
 \r
-\r
+STATIC\r
 EFI_STATUS\r
 EbcDebugPeriodic (\r
   IN VM_CONTEXT *VmPtr\r
index 279f4202b659cdcb9e2cc61db364bd359840b158..29ee55b8640d1bd0bdb62663244088f38b518a68 100644 (file)
@@ -22,34 +22,7 @@ Abstract:
 \r
 #include "EbcInt.h"\r
 #include "EbcExecute.h"\r
-\r
-#define VM_STACK_SIZE   (1024 * 32)\r
-\r
-#define EBC_THUNK_SIZE  128\r
-\r
-//\r
-// For code execution, thunks must be aligned on 16-byte boundary\r
-//\r
-#define EBC_THUNK_ALIGNMENT 16\r
-\r
-//\r
-// Opcodes for IPF instructions. We'll need to hand-create thunk code (stuffing\r
-// bits) to insert a jump to the interpreter.\r
-//\r
-#define OPCODE_NOP              (UINT64) 0x00008000000\r
-#define OPCODE_BR_COND_SPTK_FEW (UINT64) 0x00100000000\r
-#define OPCODE_MOV_BX_RX        (UINT64) 0x00E00100000\r
-\r
-//\r
-// Opcode for MOVL instruction\r
-//\r
-#define MOVL_OPCODE 0x06\r
-\r
-VOID\r
-EbcAsmLLCALLEX (\r
-  IN UINTN    CallAddr,\r
-  IN UINTN    EbcSp\r
-  );\r
+#include "EbcSupport.h"\r
 \r
 STATIC\r
 EFI_STATUS\r
diff --git a/EdkModulePkg/Universal/Ebc/Dxe/Ipf/EbcSupport.h b/EdkModulePkg/Universal/Ebc/Dxe/Ipf/EbcSupport.h
new file mode 100644 (file)
index 0000000..93c568e
--- /dev/null
@@ -0,0 +1,55 @@
+/*++\r
+\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+Module Name:\r
+\r
+  EbcSupport.h\r
+\r
+Abstract:\r
+\r
+  Definition of EBC Support function\r
+\r
+Revision History\r
+\r
+--*/\r
+\r
+#ifndef _IPF_EBC_SUPPORT_H_\r
+#define _IPF_EBC_SUPPORT_H_\r
+\r
+#define VM_STACK_SIZE   (1024 * 32)\r
+\r
+#define EBC_THUNK_SIZE  128\r
+\r
+//\r
+// For code execution, thunks must be aligned on 16-byte boundary\r
+//\r
+#define EBC_THUNK_ALIGNMENT 16\r
+\r
+//\r
+// Opcodes for IPF instructions. We'll need to hand-create thunk code (stuffing\r
+// bits) to insert a jump to the interpreter.\r
+//\r
+#define OPCODE_NOP              (UINT64) 0x00008000000\r
+#define OPCODE_BR_COND_SPTK_FEW (UINT64) 0x00100000000\r
+#define OPCODE_MOV_BX_RX        (UINT64) 0x00E00100000\r
+\r
+//\r
+// Opcode for MOVL instruction\r
+//\r
+#define MOVL_OPCODE 0x06\r
+\r
+VOID\r
+EbcAsmLLCALLEX (\r
+  IN UINTN    CallAddr,\r
+  IN UINTN    EbcSp\r
+  );\r
+\r
+#endif\r
index da71705dae21b9e28384485c8966d17d3c6951c9..b4b29cf7c6bb6b93748fa34e7f85d37b3fbc3518 100644 (file)
@@ -24,7 +24,6 @@ Revision History
 //\r
 // Don't use module globals after the SetVirtualAddress map is signaled\r
 //\r
-extern ESAL_VARIABLE_GLOBAL *mVariableModuleGlobal;\r
 \r
 STATIC\r
 SAL_RETURN_REGS\r
index 55423a25b96c599b073612b32a5bd7c97d368118..bf21a3e86d96ea8ed6735c6c39af04f95bfa56af 100644 (file)
@@ -74,6 +74,8 @@ typedef struct {
   UINT32          FvbInstance;\r
 } ESAL_VARIABLE_GLOBAL;\r
 \r
+extern ESAL_VARIABLE_GLOBAL *mVariableModuleGlobal;\r
+\r
 //\r
 // Functions\r
 //\r
index 143836be8209b2ec363e57eeb0ffc1b38996e38e..7e196d6453cb8beb3d8326b69d33e5a660bc75df 100644 (file)
@@ -27,13 +27,6 @@ Abstract:
 #include <GuidedSection.h>\r
 #include <Crc32SectionExtract.h>\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-InitializeCrc32GuidedSectionExtractionProtocol (\r
-  IN EFI_HANDLE                   ImageHandle,\r
-  IN EFI_SYSTEM_TABLE             *SystemTable\r
-  );\r
-\r
 EFI_STATUS\r
 EFIAPI\r
 InitializeCrc32GuidedSectionExtractionProtocol (\r
index de2bb3a80a7740a4190047938d6ebec085d73e08..387e637cd016f4b35a01590c5fd51e6adec34ce2 100644 (file)
@@ -63,4 +63,33 @@ Returns:
 --*/\r
 ;\r
 \r
+EFI_STATUS\r
+EFIAPI\r
+InitializeCrc32GuidedSectionExtractionProtocol (\r
+  IN EFI_HANDLE                   ImageHandle,\r
+  IN EFI_SYSTEM_TABLE             *SystemTable\r
+  )\r
+/*++\r
+\r
+Routine Description: \r
+\r
+  Entry point of the CRC32 GUIDed section extraction protocol. \r
+  Creates and initializes an instance of the GUIDed section \r
+  extraction protocol with CRC32 GUID.\r
+\r
+Arguments:  \r
+\r
+  ImageHandle   EFI_HANDLE: A handle for the image that is initializing \r
+                this driver\r
+  SystemTable   EFI_SYSTEM_TABLE: A pointer to the EFI system table        \r
+\r
+Returns:  \r
+\r
+  EFI_SUCCESS:          Driver initialized successfully\r
+  EFI_LOAD_ERROR:       Failed to Initialize or has been loaded \r
+  EFI_OUT_OF_RESOURCES: Could not allocate needed resources\r
+\r
+--*/\r
+;\r
+\r
 #endif\r
index 6d5a616af4ba4edfe18356be511906d1b889b0fa..26df291a29640183be265e1d99847d8b79aedff2 100644 (file)
@@ -163,6 +163,52 @@ typedef struct {
 \r
 #define EFI_LOAD_FILE_DEV_FROM_THIS(a)  CR (a, LOADFILE_DEVICE, LoadFile, LOADFILE_DEVICE_SIGNATURE)\r
 \r
+EFI_STATUS\r
+EFIAPI\r
+PxeBcDriverSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PxeBcDriverStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     Controller,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PxeBcDriverStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     Controller,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+PxeBcComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PxeBcComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 EFI_BIS_PROTOCOL                    *\r
 PxebcBisStart (\r
   PXE_BASECODE_DEVICE     *Private,\r
index 2c11dc45560321c647f4de677b02bd2203351657..4c6ebef07b0761343f6f4614be089600b4d078d1 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "Bc.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-PxeBcComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PxeBcComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index f3969b90e84d0bc1ebf80ba0055dfc29e8bc99ee..44f7cf22c68c2bc7b0d386a3e9d8511ee3eacc55 100644 (file)
@@ -17,34 +17,6 @@ Abstract:
 \r
 #include "Bc.h"\r
 \r
-//\r
-//\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-PxeBcDriverSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PxeBcDriverStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     Controller,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PxeBcDriverStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     Controller,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
 //\r
 // helper routines\r
 //\r
index b48b5d0b858c3d9fcc4bb6a755f72c4159855501..12cc0b06afaa075a12c2e0905b28a5a5c1e1cf3a 100644 (file)
@@ -20,31 +20,6 @@ Abstract:
 \r
 #include "PxeDhcp4.h"\r
 \r
-/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
-\r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-PxeDhcp4ComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PxeDhcp4ComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
-/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 7bdc78fb512e50228f07a1502fea179e520fbcce..f0e87dba353af3842a3d934f51cb1a020368f1f4 100644 (file)
@@ -19,46 +19,6 @@ Abstract:
 \r
 #include "PxeDhcp4.h"\r
 \r
-/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
-\r
-//\r
-// Prototypes\r
-// Driver model protocol interface\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-PxeDhcp4DriverEntryPoint (\r
-  IN EFI_HANDLE           ImageHandle,\r
-  IN EFI_SYSTEM_TABLE     *SystemTable\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PxeDhcp4DriverBindingSupported (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     ControllerHandle,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PxeDhcp4DriverBindingStart (\r
-  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN EFI_HANDLE                     ControllerHandle,\r
-  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PxeDhcp4DriverBindingStop (\r
-  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
-  IN  EFI_HANDLE                     ControllerHandle,\r
-  IN  UINTN                          NumberOfChildren,\r
-  IN  EFI_HANDLE                     *ChildHandleBuffer\r
-  );\r
-\r
-/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
-\r
 //\r
 // PXE DHCP Protocol Interface\r
 //\r
index 136d392504072f8fe385639eac08855c81da1f81..a49f169d151198070c48fb111d0402f71ef9c3c9 100644 (file)
@@ -161,6 +161,56 @@ PxeDhcp4Release (
   )\r
 ;\r
 \r
+//\r
+// Prototypes\r
+// Driver model protocol interface\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+PxeDhcp4DriverBindingSupported (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     ControllerHandle,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PxeDhcp4DriverBindingStart (\r
+  IN EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN EFI_HANDLE                     ControllerHandle,\r
+  IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PxeDhcp4DriverBindingStop (\r
+  IN  EFI_DRIVER_BINDING_PROTOCOL    *This,\r
+  IN  EFI_HANDLE                     ControllerHandle,\r
+  IN  UINTN                          NumberOfChildren,\r
+  IN  EFI_HANDLE                     *ChildHandleBuffer\r
+  );\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+PxeDhcp4ComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+PxeDhcp4ComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */\r
 \r
 //\r
index 3cc2d9844046cc02c1f1fed15321e3cbf184e873..7ccfcc102ff0442ebb91ad729aeadc4e7b84709a 100644 (file)
@@ -19,27 +19,6 @@ Abstract:
 \r
 #include "Snp.h"\r
 \r
-//\r
-// EFI Component Name Functions\r
-//\r
-EFI_STATUS\r
-EFIAPI\r
-SimpleNetworkComponentNameGetDriverName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
-  IN  CHAR8                        *Language,\r
-  OUT CHAR16                       **DriverName\r
-  );\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-SimpleNetworkComponentNameGetControllerName (\r
-  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
-  IN  EFI_HANDLE                                      ControllerHandle,\r
-  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
-  IN  CHAR8                                           *Language,\r
-  OUT CHAR16                                          **ControllerName\r
-  );\r
-\r
 //\r
 // EFI Component Name Protocol\r
 //\r
index 3055b8683a2cc6e82734074415d62b9c753d8e01..31cbc8eb830c832d5d42508ea5c49c5a9ed6ec94 100644 (file)
@@ -121,6 +121,29 @@ SNP_DRIVER;
 extern EFI_COMPONENT_NAME_PROTOCOL  gSimpleNetworkComponentName;\r
 extern EFI_DRIVER_BINDING_PROTOCOL  gSimpleNetworkDriverBinding;\r
 \r
+extern EFI_PCI_IO_PROTOCOL          *mPciIoFncs;\r
+\r
+//\r
+// EFI Component Name Functions\r
+//\r
+EFI_STATUS\r
+EFIAPI\r
+SimpleNetworkComponentNameGetDriverName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
+  IN  CHAR8                        *Language,\r
+  OUT CHAR16                       **DriverName\r
+  );\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+SimpleNetworkComponentNameGetControllerName (\r
+  IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
+  IN  EFI_HANDLE                                      ControllerHandle,\r
+  IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
+  IN  CHAR8                                           *Language,\r
+  OUT CHAR16                                          **ControllerName\r
+  );\r
+\r
 //\r
 //  Virtual to physical mapping for all UNDI 3.0s.\r
 //\r
index 54574cb4ab1c7c395a6720b181ed5295cdde6c90..2a9c953f894a62cfef745b0fc2f2cafec22fa8b3 100644 (file)
@@ -33,7 +33,6 @@ STATIC EFI_LOCK             mLock;
 //\r
 // End Global variables\r
 //\r
-extern EFI_PCI_IO_PROTOCOL  *mPciIoFncs;\r
 \r
 VOID\r
 snp_undi32_callback_v2p_30 (\r
index eee0c943f6c1f1a6dc31d8d4630d3861a3e988ce..cbd7a61b1c5152d36c5297589a3b8876df2adf67 100644 (file)
@@ -44,6 +44,7 @@
   @return               Always return EFI_SUCCESS.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 ReportDispatcher (\r
@@ -100,6 +101,7 @@ DXE_STATUS_CODE_CONTROLLER gDxeStatusCode = {
   @return               Always return EFI_SUCCESS.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 ReportDispatcher (\r
index 0671201233b6cf2872ae7a1f6a2207edcd46c3dd..d47be70661dccbff492a6bd76c63d6a8755a9550 100644 (file)
 \r
 #include "PeiStatusCode.h"\r
 \r
-/**\r
-  Report status code to all supported device.\r
-  \r
-  \r
-  @param  PeiServices\r
-\r
-  @param  Type          Indicates the type of status code being reported.  \r
-                        The type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.\r
-  @param  Value         Describes the current status of a hardware or software entity.  \r
-                        This includes information about the class and subclass that is used to classify the entity \r
-                        as well as an operation.  For progress codes, the operation is the current activity.  \r
-                        For error codes, it is the exception.  For debug codes, it is not defined at this time.  \r
-                        Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.  \r
-                        Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.\r
-  @param  Instance      The enumeration of a hardware or software entity within the system.  \r
-                        A system may contain multiple entities that match a class/subclass pairing.  \r
-                        The instance differentiates between them.  An instance of 0 indicates that instance \r
-                        information is unavailable, not meaningful, or not relevant.  Valid instance numbers start with 1.\r
-  @param  CallerId      This optional parameter may be used to identify the caller. \r
-                        This parameter allows the status code driver to apply different rules to different callers.\r
-  @param  Data          This optional parameter may be used to pass additional data.  \r
-                        Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below.  \r
-                        The contents of this data type may have additional GUID-specific data.  The standard GUIDs and \r
-                        their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.\r
-\r
-  @return               Always return EFI_SUCCESS.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-ReportDispatcher (\r
-  IN EFI_PEI_SERVICES         **PeiServices,\r
-  IN EFI_STATUS_CODE_TYPE     Type,\r
-  IN EFI_STATUS_CODE_VALUE    Value,\r
-  IN UINT32                   Instance,\r
-  IN EFI_GUID                 *CallerId OPTIONAL,\r
-  IN EFI_STATUS_CODE_DATA     *Data OPTIONAL\r
-  );\r
-\r
 STATIC\r
 EFI_PEI_PROGRESS_CODE_PPI     mStatusCodePpi           = { \r
   ReportDispatcher\r
index 88ea9ce260f592956a05a65b5006603241e2a292..2a8e0dd5dc243abb64c231f2c96e89cd4b16d4cf 100644 (file)
@@ -97,4 +97,43 @@ MemoryStatusCodeReportWorker (
   IN UINT32                   Instance\r
   );\r
 \r
+/**\r
+  Report status code to all supported device.\r
+  \r
+  \r
+  @param  PeiServices\r
+\r
+  @param  Type          Indicates the type of status code being reported.  \r
+                        The type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.\r
+  @param  Value         Describes the current status of a hardware or software entity.  \r
+                        This includes information about the class and subclass that is used to classify the entity \r
+                        as well as an operation.  For progress codes, the operation is the current activity.  \r
+                        For error codes, it is the exception.  For debug codes, it is not defined at this time.  \r
+                        Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.  \r
+                        Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.\r
+  @param  Instance      The enumeration of a hardware or software entity within the system.  \r
+                        A system may contain multiple entities that match a class/subclass pairing.  \r
+                        The instance differentiates between them.  An instance of 0 indicates that instance \r
+                        information is unavailable, not meaningful, or not relevant.  Valid instance numbers start with 1.\r
+  @param  CallerId      This optional parameter may be used to identify the caller. \r
+                        This parameter allows the status code driver to apply different rules to different callers.\r
+  @param  Data          This optional parameter may be used to pass additional data.  \r
+                        Type EFI_STATUS_CODE_DATA is defined in "Related Definitions" below.  \r
+                        The contents of this data type may have additional GUID-specific data.  The standard GUIDs and \r
+                        their associated data structures are defined in the Intel? Platform Innovation Framework for EFI Status Codes Specification.\r
+\r
+  @return               Always return EFI_SUCCESS.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+ReportDispatcher (\r
+  IN EFI_PEI_SERVICES         **PeiServices,\r
+  IN EFI_STATUS_CODE_TYPE     Type,\r
+  IN EFI_STATUS_CODE_VALUE    Value,\r
+  IN UINT32                   Instance,\r
+  IN EFI_GUID                 *CallerId OPTIONAL,\r
+  IN EFI_STATUS_CODE_DATA     *Data OPTIONAL\r
+  );\r
+\r
 #endif\r
index 407f7694bac60623daf94f8fd579ab8feecd22cb..8a873b3a5eb94be9813d3d416bce676424749888 100644 (file)
@@ -108,6 +108,7 @@ FUNCTIION_KEY_SETTING gFunctionKeySettingTable[] = {
   },\r
 };\r
 \r
+STATIC\r
 EFI_STATUS\r
 InitializeBinaryStructures (\r
   IN  EFI_HII_HANDLE                           *Handle,\r
@@ -118,12 +119,14 @@ InitializeBinaryStructures (
   EFI_FILE_FORM_TAGS                           **FileFormTagsHead\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 InitializeTagStructures (\r
   IN  EFI_IFR_BINARY                            *BinaryData,\r
   OUT EFI_FILE_FORM_TAGS                        *FileFormTags\r
   );\r
 \r
+STATIC\r
 UI_MENU_OPTION        *\r
 DisplayHomePage (\r
   IN UINTN                                    NumberOfIfrImages,\r
@@ -131,6 +134,7 @@ DisplayHomePage (
   IN UINT8                                    *CallbackData\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 GetIfrBinaryData (\r
   IN EFI_HII_PROTOCOL *Hii,\r
@@ -139,6 +143,7 @@ GetIfrBinaryData (
   IN EFI_IFR_BINARY   *BinaryData\r
   );\r
 \r
+STATIC\r
 EFI_STATUS\r
 InstallPrint (\r
   VOID\r
@@ -759,6 +764,7 @@ Returns:
   return ;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 InitializeTagStructures (\r
   IN  EFI_IFR_BINARY                            *BinaryData,\r
@@ -1706,6 +1712,7 @@ PopulateHomePage (
   return Status;\r
 }\r
 \r
+STATIC\r
 UI_MENU_OPTION *\r
 DisplayHomePage (\r
   IN UINTN                                    NumberOfIfrImages,\r
@@ -1733,6 +1740,7 @@ DisplayHomePage (
   return Selection;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 InitializeBinaryStructures (\r
   IN  EFI_HII_HANDLE                        *Handle,\r
@@ -2044,6 +2052,7 @@ InitializeBinaryStructures (
   return Status;\r
 }\r
 \r
+STATIC\r
 EFI_STATUS\r
 GetIfrBinaryData (\r
   IN      EFI_HII_PROTOCOL *Hii,\r
@@ -2204,6 +2213,7 @@ Returns:
 EFI_HANDLE          PrintHandle     = NULL;\r
 EFI_PRINT_PROTOCOL  mPrintProtocol  = { UnicodeVSPrint };\r
 \r
+STATIC\r
 EFI_STATUS\r
 InstallPrint (\r
   VOID\r
index da71705dae21b9e28384485c8966d17d3c6951c9..b4b29cf7c6bb6b93748fa34e7f85d37b3fbc3518 100644 (file)
@@ -24,7 +24,6 @@ Revision History
 //\r
 // Don't use module globals after the SetVirtualAddress map is signaled\r
 //\r
-extern ESAL_VARIABLE_GLOBAL *mVariableModuleGlobal;\r
 \r
 STATIC\r
 SAL_RETURN_REGS\r
index 014df50c3d0dfc6049056639cf1a30ba4d0571e8..3d0264de7867a774fd77be1f6f6b8d66327319d3 100644 (file)
@@ -75,6 +75,8 @@ typedef struct {
   UINT32          FvbInstance;\r
 } ESAL_VARIABLE_GLOBAL;\r
 \r
+extern ESAL_VARIABLE_GLOBAL *mVariableModuleGlobal;\r
+\r
 //\r
 // Functions\r
 //\r