没有合适的资源?快使用搜索试试~ 我知道了~
首页UEFI Driver Writer Guide
资源详情
资源评论
资源推荐

Draft for Revew
Driver Writer’s Guide
for UEFI 2.3.1
03/08/2012
For review
Version 1.01


Draft for Revew
Version 1.01 3/8/2012 i
THIS SPECIFICATION IS PROVIDED "AS IS" WITH NO WARRANTIES WHATSOEVER,
INCLUDING ANY WARRANTY OF MERCHANTABILITY, NONINFRINGEMENT, FITNESS
FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF
ANY PROPOSAL, SPECIFICATION OR SAMPLE. Except for a limited copyright license to
copy this specification for internal use only, no license, express or implied, by estoppel
or otherwise, to any intellectual property rights is granted herein.
Intel disclaims all liability, including liability for infringement of any proprietary rights, relating to implementation of
information in this specification. Intel does not warrant or represent that such implementation(s) will not infringe
such rights.
Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or
"undefined." Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or
incompatibilities arising from future changes to them.
This document is an intermediate draft for comment only and is subject to change without notice. Readers
should not design products based on this document.
Intel, the Intel logo and Itanium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in
the United States and other countries.
Other names and brands may be claimed as the property of others.
Copyright 2003–2012 Intel Corporation.

ii 3/8/2012 Version 1.01
Revision History
Revision Revision History Date
0.31 Initial draft. 4/3/03
0.70 Initial draft. Edited for formatting and grammar. 6/3/03
0.90 Incorporated industry review comments.
Updated the coding conventions.
Updated for the 1.10.14.62 release of the EFI Sample
Implementation.
Updated the supported versions of Microsoft Visual Studio™ and
Windows™.
Removed TBD sections that appeared in the 0.7 version.
Edited for grammar and formatting.
7/20/04
0.91 Updated for UEFI 2.0 10/31/06
0.92 New formatting 11/27/06
0.93 Review feedback incorporated 1/14/2007
0.94 Additional formatting 2/27/2007
0.95 Additional formatting 3/23/2007
0.96 Additional formatting 4/25/2008
0.97 Clarify role of EDK as being implementation-specific and added
definitions for the myriad of library references so the meaning of
the implementation specific code examples could be clarified
without having to reference documents aside from the UEFI
Specification.
6/25/2008
0.98 Updated for UEFI 2.3.1 and EDK II 2/12/12
1.00 Review feedback incorporated, additional formatting 2/27/12
1.01 Review feedback incorporated 3/8/12

vDriver Writer’s Guide for UEFI 2.3.1
Version 1.01 3/8/2012 iii
Contents
Revision History ...................................................................................................................... ii
Contents iii
1 Introduction ...................................................................................................... 1
1.1 Overview ................................................................................................ 1
1.1.1 Assumptions .............................................................................. 1
1.2 Organization of this document .................................................................. 2
1.3 Related information ................................................................................. 3
1.3.1 UEFI Specifications ..................................................................... 3
1.3.2 Industry Standard Bus Specifications ............................................ 3
1.3.3 Other specifications .................................................................... 4
1.3.4 EDK II and UDK2010 Development Kit .......................................... 5
1.4 Typographic conventions .......................................................................... 5
2 UEFI Driver Implementation Checklist .................................................................. 7
2.1 Design and implementation of UEFI drivers ................................................ 9
2.2 How to implement features in EDK II ........................................................ 12
3 Foundation....................................................................................................... 15
3.1 Basic programming model ....................................................................... 15
3.2 Objects managed by UEFI-based firmware ................................................ 16
3.3 UEFI system table .................................................................................. 17
3.4 Handle database .................................................................................... 18
3.5 GUIDs ................................................................................................... 22
3.6 Protocols and handles ............................................................................. 23
3.6.1 Protocols are produced and consumed ......................................... 24
3.6.2 Protocol interface structure ......................................................... 25
3.6.3 Protocols provided in addition to the UEFI Specification .................. 26
3.6.4 Multiple protocol instances.......................................................... 27
3.6.5 Tag GUID ................................................................................. 27
3.7 UEFI images .......................................................................................... 27
3.7.1 Applications .............................................................................. 31
3.7.2 Drivers ..................................................................................... 31
3.8 Events and task priority levels ................................................................. 32
3.8.1 Defining priority ........................................................................ 35
3.8.2 Creating locks ........................................................................... 35
3.8.3 Using callbacks ......................................................................... 35
3.9 UEFI device paths .................................................................................. 36
3.9.1 How drivers use device paths ...................................................... 39
3.9.2 IPF Considerations for device path data structures ......................... 40
3.9.3 Environment variables ............................................................... 40
3.10 UEFI driver model .................................................................................. 41
3.10.1 Device driver ............................................................................ 42
3.10.2 Bus driver ................................................................................ 44
3.10.3 Hybrid driver ............................................................................ 46
剩余578页未读,继续阅读















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0