Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
0c7b33ac
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0c7b33ac
编写于
5月 30, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
BiosVideo: Minor cleanup
上级
26868e93
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
56 addition
and
68 deletion
+56
-68
Legacy/BootPlatform/BiosVideo/BiosVideo.c
Legacy/BootPlatform/BiosVideo/BiosVideo.c
+0
-58
Legacy/BootPlatform/BiosVideo/BiosVideo.h
Legacy/BootPlatform/BiosVideo/BiosVideo.h
+53
-0
Legacy/BootPlatform/BiosVideo/BiosVideo.inf
Legacy/BootPlatform/BiosVideo/BiosVideo.inf
+0
-4
Legacy/BootPlatform/BiosVideo/LegacyBiosThunk.c
Legacy/BootPlatform/BiosVideo/LegacyBiosThunk.c
+0
-6
OpenDuetPkg.dsc
OpenDuetPkg.dsc
+3
-0
未找到文件。
Legacy/BootPlatform/BiosVideo/BiosVideo.c
浏览文件 @
0c7b33ac
...
...
@@ -61,64 +61,6 @@ EFI_GRAPHICS_OUTPUT_BLT_PIXEL mVgaColorToGraphicsOutputColor[] = {
{
0xff
,
0xff
,
0xff
,
0x00
}
// WHITE
};
/**
Install child handle for a detect BiosVideo device and install related protocol
into this handle, such as EFI_GRAPHIC_OUTPUT_PROTOCOL.
@param This Instance pointer of EFI_DRIVER_BINDING_PROTOCOL
@param ParentHandle Parent's controller handle
@param ParentPciIo Parent's EFI_PCI_IO_PROTOCOL instance pointer
@param ParentLegacy8259 Parent's EFI_LEGACY_8259_PROTOCOL instance pointer
@param ParentDevicePath Parent's BIOS Video controller device path
@param RemainingDevicePath Remaining device path node instance for children.
@return whether success to create children handle for a VGA device and install
related protocol into new children handle.
**/
EFI_STATUS
BiosVideoChildHandleInstall
(
IN
EFI_DRIVER_BINDING_PROTOCOL
*
This
,
IN
EFI_HANDLE
ParentHandle
,
IN
EFI_PCI_IO_PROTOCOL
*
ParentPciIo
,
IN
EFI_LEGACY_8259_PROTOCOL
*
ParentLegacy8259
,
IN
THUNK_CONTEXT
*
ThunkContext
,
IN
EFI_DEVICE_PATH_PROTOCOL
*
ParentDevicePath
,
IN
EFI_DEVICE_PATH_PROTOCOL
*
RemainingDevicePath
)
;
/**
Deregister an video child handle and free resources
@param This Protocol instance pointer.
@param Controller Video controller handle
@param Handle Video child handle
@return EFI_STATUS
**/
EFI_STATUS
BiosVideoChildHandleUninstall
(
EFI_DRIVER_BINDING_PROTOCOL
*
This
,
EFI_HANDLE
Controller
,
EFI_HANDLE
Handle
)
;
/**
Collect the resource from destroyed bios video device.
@param BiosVideoPrivate Video child device private data structure
**/
VOID
BiosVideoDeviceReleaseResource
(
BIOS_VIDEO_DEV
*
BiosVideoPrivate
)
;
/**
Driver Entry Point.
...
...
Legacy/BootPlatform/BiosVideo/BiosVideo.h
浏览文件 @
0c7b33ac
...
...
@@ -225,6 +225,59 @@ BiosVideoDriverBindingStop (
IN
EFI_HANDLE
*
ChildHandleBuffer
);
/**
Install child handle for a detect BiosVideo device and install related protocol
into this handle, such as EFI_GRAPHIC_OUTPUT_PROTOCOL.
@param This Instance pointer of EFI_DRIVER_BINDING_PROTOCOL
@param ParentHandle Parent's controller handle
@param ParentPciIo Parent's EFI_PCI_IO_PROTOCOL instance pointer
@param ParentLegacy8259 Parent's EFI_LEGACY_8259_PROTOCOL instance pointer
@param ParentDevicePath Parent's BIOS Video controller device path
@param RemainingDevicePath Remaining device path node instance for children.
@return whether success to create children handle for a VGA device and install
related protocol into new children handle.
**/
EFI_STATUS
BiosVideoChildHandleInstall
(
IN
EFI_DRIVER_BINDING_PROTOCOL
*
This
,
IN
EFI_HANDLE
ParentHandle
,
IN
EFI_PCI_IO_PROTOCOL
*
ParentPciIo
,
IN
EFI_LEGACY_8259_PROTOCOL
*
ParentLegacy8259
,
IN
THUNK_CONTEXT
*
ThunkContext
,
IN
EFI_DEVICE_PATH_PROTOCOL
*
ParentDevicePath
,
IN
EFI_DEVICE_PATH_PROTOCOL
*
RemainingDevicePath
);
/**
Deregister an video child handle and free resources
@param This Protocol instance pointer.
@param Controller Video controller handle
@param Handle Video child handle
@return EFI_STATUS
**/
EFI_STATUS
BiosVideoChildHandleUninstall
(
EFI_DRIVER_BINDING_PROTOCOL
*
This
,
EFI_HANDLE
Controller
,
EFI_HANDLE
Handle
);
/**
Collect the resource from destroyed bios video device.
@param BiosVideoPrivate Video child device private data structure
**/
VOID
BiosVideoDeviceReleaseResource
(
BIOS_VIDEO_DEV
*
BiosVideoPrivate
);
//
// Private worker functions
//
...
...
Legacy/BootPlatform/BiosVideo/BiosVideo.inf
浏览文件 @
0c7b33ac
...
...
@@ -50,7 +50,3 @@
gEfiLegacy8259ProtocolGuid
gEfiEdidDiscoveredProtocolGuid
gEfiEdidActiveProtocolGuid
[Guids]
gEfiGlobalVariableGuid
Legacy/BootPlatform/BiosVideo/LegacyBiosThunk.c
浏览文件 @
0c7b33ac
...
...
@@ -14,8 +14,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "BiosVideo.h"
#define EFI_CPU_EFLAGS_IF 0x200
/**
Initialize legacy environment for BIOS INI caller.
...
...
@@ -116,8 +114,6 @@ InitializeInterruptRedirection (
for
(
Index
=
0
;
Index
<
8
;
Index
++
)
{
IdtArray
[
ProtectedModeBaseVector
+
Index
]
=
((
EFI_SEGMENT
(
LegacyRegionBase
+
Index
*
4
))
<<
16
)
|
(
EFI_OFFSET
(
LegacyRegionBase
+
Index
*
4
));
}
return
;
}
/**
...
...
@@ -218,5 +214,3 @@ LegacyBiosInt86 (
return
Ret
;
}
OpenDuetPkg.dsc
浏览文件 @
0c7b33ac
...
...
@@ -82,6 +82,7 @@
#
# Platform
#
CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
DuetBdsLib|OpenCorePkg/Library/DuetBdsLib/DuetBdsLib.inf
TimerLib|OpenCorePkg/Library/DuetTimerLib/DuetTimerLib.inf
#
...
...
@@ -89,8 +90,10 @@
#
PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录