/** @file\r
Cirrus Logic 5430 Controller Driver\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
+ Copyright (c) 2006 - 2007, 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
+ 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
**/\r
\r
#include <Protocol/GraphicsOutput.h>\r
#include <Protocol/PciIo.h>\r
#include <Protocol/DriverSupportedEfiVersion.h>\r
+#include <Protocol/EdidOverride.h>\r
+#include <Protocol/EdidDiscovered.h>\r
+#include <Protocol/EdidActive.h>\r
+#include <Protocol/DevicePath.h>\r
\r
#include <Library/DebugLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/PcdLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/DevicePathLib.h>\r
+#include <Library/DxeI2cLib.h>\r
\r
-#include <IndustryStandard/pci22.h>\r
+#include <IndustryStandard/Pci22.h>\r
//\r
// Cirrus Logic 5430 PCI Configuration Header values\r
//\r
#define CIRRUS_LOGIC_5430_MODE_COUNT 3\r
\r
typedef struct {\r
+ UINT32 ModeNumber;\r
UINT32 HorizontalResolution;\r
UINT32 VerticalResolution;\r
UINT32 ColorDepth;\r
UINT64 Signature;\r
EFI_HANDLE Handle;\r
EFI_PCI_IO_PROTOCOL *PciIo;\r
+ UINT64 OriginalPciAttributes;\r
EFI_UGA_DRAW_PROTOCOL UgaDraw;\r
EFI_GRAPHICS_OUTPUT_PROTOCOL GraphicsOutput;\r
+ EFI_EDID_DISCOVERED_PROTOCOL EdidDiscovered;\r
+ EFI_EDID_ACTIVE_PROTOCOL EdidActive;\r
+ EFI_DEVICE_PATH_PROTOCOL *GopDevicePath;\r
+ EFI_DEVICE_PATH_PROTOCOL *UgaDevicePath;\r
UINTN CurrentMode;\r
UINTN MaxMode;\r
CIRRUS_LOGIC_5430_MODE_DATA ModeData[CIRRUS_LOGIC_5430_MODE_COUNT];\r
EFI_STATUS\r
CirrusLogic5430UgaDrawConstructor (\r
CIRRUS_LOGIC_5430_PRIVATE_DATA *Private\r
- )\r
-;\r
+ );\r
\r
EFI_STATUS\r
CirrusLogic5430UgaDrawDestructor (\r
CIRRUS_LOGIC_5430_PRIVATE_DATA *Private\r
- )\r
-;\r
+ );\r
\r
//\r
// Graphics Output Hardware abstraction internal worker functions\r
EFI_STATUS\r
CirrusLogic5430GraphicsOutputConstructor (\r
CIRRUS_LOGIC_5430_PRIVATE_DATA *Private\r
- )\r
-;\r
+ );\r
\r
EFI_STATUS\r
CirrusLogic5430GraphicsOutputDestructor (\r
CIRRUS_LOGIC_5430_PRIVATE_DATA *Private\r
- )\r
-;\r
+ );\r
\r
\r
//\r
IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
IN EFI_HANDLE Controller,\r
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
- )\r
-;\r
+ );\r
\r
/**\r
TODO: Add function description\r
IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
IN EFI_HANDLE Controller,\r
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
- )\r
-;\r
+ );\r
\r
/**\r
TODO: Add function description\r
IN EFI_HANDLE Controller,\r
IN UINTN NumberOfChildren,\r
IN EFI_HANDLE *ChildHandleBuffer\r
- )\r
-;\r
+ );\r
\r
//\r
// EFI Component Name Functions\r
UINTN Address\r
);\r
\r
+EFI_STATUS\r
+CirrusLogic5430VideoModeSetup (\r
+ CIRRUS_LOGIC_5430_PRIVATE_DATA *Private\r
+ );\r
+\r
#endif\r