Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
9f6b3f94
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,发现更多精彩内容 >>
提交
9f6b3f94
编写于
11月 04, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
BootPlatform: Add custom GraphicsConsoleDxe driver
Imported from AmaranthPkg ac99391d by @MikhailKrichanov
上级
3998399e
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
2973 addition
and
4 deletion
+2973
-4
Changelog.md
Changelog.md
+1
-0
Legacy/BootPlatform/GraphicsConsoleDxe/ComponentName.c
Legacy/BootPlatform/GraphicsConsoleDxe/ComponentName.c
+176
-0
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsole.c
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsole.c
+1838
-0
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsole.h
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsole.h
+583
-0
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
...cy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
+70
-0
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxe.uni
...cy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxe.uni
+18
-0
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxeExtra.uni
...otPlatform/GraphicsConsoleDxe/GraphicsConsoleDxeExtra.uni
+14
-0
Legacy/BootPlatform/GraphicsConsoleDxe/LaffStd.c
Legacy/BootPlatform/GraphicsConsoleDxe/LaffStd.c
+271
-0
OpenDuetPkg.dsc
OpenDuetPkg.dsc
+1
-2
OpenDuetPkg.fdf
OpenDuetPkg.fdf
+1
-2
未找到文件。
Changelog.md
浏览文件 @
9f6b3f94
...
...
@@ -3,6 +3,7 @@ OpenCore Changelog
#### v0.6.4
-
Added
`BlacklistAppleUpdate`
to fix 11.0 broken update optout
-
Dropped HII services from OpenDuet improving size and performance
#### v0.6.3
-
Added support for xml comments in plist files
...
...
Legacy/BootPlatform/GraphicsConsoleDxe/ComponentName.c
0 → 100644
浏览文件 @
9f6b3f94
/** @file
UEFI Component Name(2) protocol implementation for GraphicsConsole driver.
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "GraphicsConsole.h"
//
// EFI Component Name Protocol
//
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_COMPONENT_NAME_PROTOCOL
gGraphicsConsoleComponentName
=
{
GraphicsConsoleComponentNameGetDriverName
,
GraphicsConsoleComponentNameGetControllerName
,
"eng"
};
//
// EFI Component Name 2 Protocol
//
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_COMPONENT_NAME2_PROTOCOL
gGraphicsConsoleComponentName2
=
{
(
EFI_COMPONENT_NAME2_GET_DRIVER_NAME
)
GraphicsConsoleComponentNameGetDriverName
,
(
EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME
)
GraphicsConsoleComponentNameGetControllerName
,
"en"
};
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_UNICODE_STRING_TABLE
mGraphicsConsoleDriverNameTable
[]
=
{
{
"eng;en"
,
(
CHAR16
*
)
L"Graphics Console Driver"
},
{
NULL
,
NULL
}
};
/**
Retrieves a Unicode string that is the user readable name of the driver.
This function retrieves the user readable name of a driver in the form of a
Unicode string. If the driver specified by This has a user readable name in
the language specified by Language, then a pointer to the driver name is
returned in DriverName, and EFI_SUCCESS is returned. If the driver specified
by This does not support the language specified by Language,
then EFI_UNSUPPORTED is returned.
@param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
EFI_COMPONENT_NAME_PROTOCOL instance.
@param Language[in] A pointer to a Null-terminated ASCII string
array indicating the language. This is the
language of the driver name that the caller is
requesting, and it must match one of the
languages specified in SupportedLanguages. The
number of languages supported by a driver is up
to the driver writer. Language is specified
in RFC 4646 or ISO 639-2 language code format.
@param DriverName[out] A pointer to the Unicode string to return.
This Unicode string is the name of the
driver specified by This in the language
specified by Language.
@retval EFI_SUCCESS The Unicode string for the Driver specified by
This and the language specified by Language was
returned in DriverName.
@retval EFI_INVALID_PARAMETER Language is NULL.
@retval EFI_INVALID_PARAMETER DriverName is NULL.
@retval EFI_UNSUPPORTED The driver specified by This does not support
the language specified by Language.
**/
EFI_STATUS
EFIAPI
GraphicsConsoleComponentNameGetDriverName
(
IN
EFI_COMPONENT_NAME_PROTOCOL
*
This
,
IN
CHAR8
*
Language
,
OUT
CHAR16
**
DriverName
)
{
return
LookupUnicodeString2
(
Language
,
This
->
SupportedLanguages
,
mGraphicsConsoleDriverNameTable
,
DriverName
,
(
BOOLEAN
)(
This
==
&
gGraphicsConsoleComponentName
)
);
}
/**
Retrieves a Unicode string that is the user readable name of the controller
that is being managed by a driver.
This function retrieves the user readable name of the controller specified by
ControllerHandle and ChildHandle in the form of a Unicode string. If the
driver specified by This has a user readable name in the language specified by
Language, then a pointer to the controller name is returned in ControllerName,
and EFI_SUCCESS is returned. If the driver specified by This is not currently
managing the controller specified by ControllerHandle and ChildHandle,
then EFI_UNSUPPORTED is returned. If the driver specified by This does not
support the language specified by Language, then EFI_UNSUPPORTED is returned.
@param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
EFI_COMPONENT_NAME_PROTOCOL instance.
@param ControllerHandle[in] The handle of a controller that the driver
specified by This is managing. This handle
specifies the controller whose name is to be
returned.
@param ChildHandle[in] The handle of the child controller to retrieve
the name of. This is an optional parameter that
may be NULL. It will be NULL for device
drivers. It will also be NULL for a bus drivers
that wish to retrieve the name of the bus
controller. It will not be NULL for a bus
driver that wishes to retrieve the name of a
child controller.
@param Language[in] A pointer to a Null-terminated ASCII string
array indicating the language. This is the
language of the driver name that the caller is
requesting, and it must match one of the
languages specified in SupportedLanguages. The
number of languages supported by a driver is up
to the driver writer. Language is specified in
RFC 4646 or ISO 639-2 language code format.
@param ControllerName[out] A pointer to the Unicode string to return.
This Unicode string is the name of the
controller specified by ControllerHandle and
ChildHandle in the language specified by
Language from the point of view of the driver
specified by This.
@retval EFI_SUCCESS The Unicode string for the user readable name in
the language specified by Language for the
driver specified by This was returned in
DriverName.
@retval EFI_INVALID_PARAMETER ControllerHandle is NULL.
@retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid
EFI_HANDLE.
@retval EFI_INVALID_PARAMETER Language is NULL.
@retval EFI_INVALID_PARAMETER ControllerName is NULL.
@retval EFI_UNSUPPORTED The driver specified by This is not currently
managing the controller specified by
ControllerHandle and ChildHandle.
@retval EFI_UNSUPPORTED The driver specified by This does not support
the language specified by Language.
**/
EFI_STATUS
EFIAPI
GraphicsConsoleComponentNameGetControllerName
(
IN
EFI_COMPONENT_NAME_PROTOCOL
*
This
,
IN
EFI_HANDLE
ControllerHandle
,
IN
EFI_HANDLE
ChildHandle
OPTIONAL
,
IN
CHAR8
*
Language
,
OUT
CHAR16
**
ControllerName
)
{
return
EFI_UNSUPPORTED
;
}
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsole.c
0 → 100644
浏览文件 @
9f6b3f94
此差异已折叠。
点击以展开。
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsole.h
0 → 100644
浏览文件 @
9f6b3f94
此差异已折叠。
点击以展开。
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
0 → 100644
浏览文件 @
9f6b3f94
## @file
# Console support on graphic devices.
#
# This driver will install Simple Text Output protocol by consuming Graphices Output
# protocol or UGA Draw protocol on graphic devices.
#
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2020, ISP RAS. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = GraphicsConsoleDxe
MODULE_UNI_FILE = GraphicsConsoleDxe.uni
FILE_GUID = CCCB0C28-4B24-11d5-9A5A-0090273FC14D
MODULE_TYPE = UEFI_DRIVER
VERSION_STRING = 1.0
ENTRY_POINT = InitializeGraphicsConsole
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 EBC
#
# DRIVER_BINDING = gGraphicsConsoleDriverBinding
# COMPONENT_NAME = gGraphicsConsoleComponentName
# COMPONENT_NAME2 = gGraphicsConsoleComponentName2
#
[Sources]
ComponentName.c
LaffStd.c
GraphicsConsole.c
GraphicsConsole.h
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
UefiBootServicesTableLib
MemoryAllocationLib
BaseMemoryLib
UefiLib
UefiDriverEntryPoint
DebugLib
PcdLib
[Protocols]
gEfiDevicePathProtocolGuid ## TO_START
gEfiSimpleTextOutProtocolGuid ## BY_START
gEfiGraphicsOutputProtocolGuid ## TO_START
gEfiUgaDrawProtocolGuid ## TO_START
## TO_START
## NOTIFY
[FeaturePcd]
gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport ## CONSUMES
[Pcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution ## SOMETIMES_CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution ## SOMETIMES_CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow ## SOMETIMES_CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn ## SOMETIMES_CONSUMES
[UserExtensions.TianoCore."ExtraFiles"]
GraphicsConsoleDxeExtra.uni
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxe.uni
0 → 100644
浏览文件 @
9f6b3f94
// /** @file
// Console support on graphic devices.
//
// This driver will install Simple Text Output protocol by consuming Graphices Output
// protocol or UGA Draw protocol on graphic devices.
//
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// **/
#string STR_MODULE_ABSTRACT #language en-US "Console support on graphic devices"
#string STR_MODULE_DESCRIPTION #language en-US "This driver will install SimpleTextOutputProtocol by consuming GraphicesOutput\n"
"Protocol or UgaDrawProtocol on graphics devices."
Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxeExtra.uni
0 → 100644
浏览文件 @
9f6b3f94
// /** @file
// GraphicsConsoleDxe Localized Strings and Content
//
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// **/
#string STR_PROPERTIES_MODULE_NAME
#language en-US
"Graphics Console DXE Driver"
Legacy/BootPlatform/GraphicsConsoleDxe/LaffStd.c
0 → 100644
浏览文件 @
9f6b3f94
此差异已折叠。
点击以展开。
OpenDuetPkg.dsc
浏览文件 @
9f6b3f94
...
...
@@ -140,8 +140,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
}
MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
OpenCorePkg/Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
<LibraryClasses>
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
...
...
OpenDuetPkg.fdf
浏览文件 @
9f6b3f94
...
...
@@ -54,8 +54,7 @@
# Console
INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
INF OpenCorePkg/Legacy/BootPlatform/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
# CPU and interrupts
INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录