找回密码
 加入计匠网
搜索
热搜: BIOS ACPI CPU Windows
查看: 11177|回复: 0

BIOS Communication for Display Drivers in Windows Vista -- May 4, 2006

[复制链接]
发表于 2007-11-16 19:14:41 | 显示全部楼层 |阅读模式
Abstract
; V3 n; b1 T% q: M. ?3 XThis white paper provides detailed information about the required ACPI and display driver capabilities to support communication between the BIOS and graphics hardware on systems running the Microsoft® Windows Vista™ operating system.
! i! [# S6 I  xThe current version of this paper is maintained on the Web at:
2 H6 _/ T3 F  l% R7 Y4 lhttp://go.microsoft.com/fwlink/?LinkId=509877 b! E9 l2 i) f
References and resources discussed here are listed at the end of this paper.0 V; U* u+ U( Z& @. c; \
Contents
- a: m- O5 c7 ?5 eIntroduction        3) z. E4 R$ g( D" l5 s" ]
ACPI Methods for Display and BIOS Communications        3
; Y  e& p/ o3 |5 Y. C; V. AACPI Notifications        4
( K  Y, p. d( a; a& x% L" ?  VACPI Method Evaluations        4& M6 ^' K& ?6 p: X  c
BIOS Support        4
: v; g+ ?0 J. z  `4 tUsing ACPI Methods: Examples        5: B4 }2 r. \8 v: }% E
Summary        53 v+ c3 `% V; y1 v3 v$ B  W
Resources        6" {# e: Q9 }+ {1 p( M" y6 r- y
  v6 i" J* x5 F/ s! D
Disclaimer2 h2 T% x# u0 j2 Y0 R4 b
This is a preliminary document and may be changed substantially prior to final commercial release of the software described herein.
  B" {' K1 D+ j, C; L+ l* _4 S; |3 `, Y6 n0 x3 Y2 _- b& ]9 k: V
The information contained in this document represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication.
% _1 ~8 {! O# N) u- ?* r" H/ `8 v" u, H( q$ ^2 Y+ g
This White Paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.
% H1 R8 X, I$ m) m; ]2 s/ E& \  Y2 Q2 _" ~. C
Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. : Q- v! Q. B" D; |; V6 s( P

; }2 O) z) f/ w% h: L; j; WMicrosoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.& D( d) H( i! d- `$ ^4 c
$ A9 M* D3 N' j1 C1 A% i
Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, email address, logo, person, place or event is intended or should be inferred.
7 E' T7 d5 N% Z
5 O+ t4 j" V8 f: C+ Z0 n) G1 A© 2006 Microsoft Corporation. All rights reserved.$ G. s( |6 O1 s8 ?" t3 G
2 V2 v; V% ~8 g" C
Microsoft, Windows, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.8 A0 @8 L: ~  d4 F

+ I5 t9 P5 w0 A( Q3 d6 WThe names of actual companies and products mentioned herein may be the trademarks of their respective owners.
4 h0 @6 n; M! z4 L+ r% Z
4 M0 O4 Z5 O5 x, ^  I1 z; }2 d, QIntroduction
$ j/ F3 A+ V+ [7 gDisplay drivers often communicate with the system BIOS to provide advanced functionality that might depend on machine-specific or OEM-specific system BIOS implementations. Display driver and system BIOS dependencies are especially common in mobile platforms, where each manufacturer might differentiate the platform and provide value-add software and capabilities.
% A* h/ B( \, p, e. oHistorically, display drivers without direct control of the hardware used legacy methods to communicate with the system BIOS, usually to enable mobile PC platform features such as:3 O4 z( j8 |; Y6 y* M8 v
•        Power management
- m' E2 P' c/ r% k& }$ D•        Brightness control8 t" l! _% S& @3 t
•        Hotkey clone mode (for connecting a laptop to a projector)- \, m! h  n+ [9 P# s$ M% Z
•        Retrieval of monitor EDIDs (extended display identification data, a data block that contains monitor identification and capability information)9 v  i; X" O. @0 S. h# _

+ A1 f3 Y/ s; _9 XOne commonly-used legacy method is the Int10 mechanism, which exercises 16-bit code in real mode. Unfortunately, legacy methods such as Int10 can cause system stability problems that are difficult to debug and fix. These stability problems manifest themselves to end users as a system that will not boot or a system that hangs unexpectedly. Fixing a problem caused by incorrect use of legacy BIOS communication mechanisms often requires a BIOS update or Windows® software patch.
; |9 }  ^1 w7 l1 HInt10 communications are supported in the Windows XP display driver model (XDDM) and earlier versions of the Windows display driver model support. However, to avoid the stability problems caused by legacy BIOS communication methods, the Windows Vista display driver model (WDDM) does not support Int10 communications. It does not pass the Int10 interrupt message to the system BIOS, thus disabling any functionality that depends on Int10 communications.
  _+ D7 v. Q) _) G8 C( q( E- ]The WDDM is a significant evolution of the graphics driver infrastructure and is not backward compatible with XDDM drivers and previous versions of Windows. As an alternative to Int10 communications, the WDDM provides display drivers with full access to ACPI methods for the graphics adapter. ACPI (Advanced Configuration and Power Interface) is an industry specification that describes platform configuration and power management interfaces between the system BIOS and the operating system. In situations where it is necessary to use the system BIOS to control the hardware, a display driver can use the ACPI methods for the device. 8 a* n+ @, i9 p* q6 U
This paper describes the ACPI methods that can be used instead of Int10 to enable communication between the display driver and the system BIOS.
0 W0 G7 B: J, o- L7 w) i* @1 w) PACPI Methods for Display and BIOS Communications
8 [& e6 D# M# f/ ~6 R* ~The WDDM enables display drivers to directly interact with the device and its children through ACPI methods and notifications. To take full advantage of the ACPI video device methods, it might be necessary to modify both the display driver and the system BIOS.4 y8 a1 _9 M5 [; U, a, r
Note: In this document, any use of the term “video” refers to the graphics adapter.
: {5 E. V9 F% d( QACPI Notifications
4 ^. T5 ~& u2 }, q' MA WDDM driver receives all ACPI notification events for the graphics adapter. Example ACPI notification events include:2 ^5 G  @0 N( y9 z
•        Cycle Output Device % W/ P1 ^3 Z8 O" J+ J/ N3 D! ?
Notifies the display driver that the state of one of the output devices attached to the VGA controller has been switched or toggled.' H7 b" g! X. o8 K/ F
•        Cycle Display Output Hotkey Pressed
( y( h1 B; n5 YNotifies the display driver that the user has pressed the Cycle Display hotkey.
- W7 V( k6 N- W, x3 }
% j' a5 F2 {$ `: v' C" @* hThe notification is passed directly to the WDDM driver through the DxgkDdiNotifyAcpiEvent display miniport driver function, which the display port driver calls to notify a display miniport driver about certain ACPI events. This differs from XDDM drivers, in which the graphics subsystem interprets the ACPI notification and delivers an IOCTL to the display driver.
5 d0 z( J" M, h6 f/ [System ACPI notifications such as lid status change or docking event are also sent to the WDDM driver using the DxgkDdiNotifyAcpiEvent function.
% [2 d, i0 i5 ?8 K3 J' e/ TFor information about the DxgkDdiNotifyAcpiEvent function, see the Windows Driver Kit (WDK) documentation./ W, l/ H# ^7 }7 m' V0 b3 h2 S0 m, m
ACPI Method Evaluations
2 J4 U6 |! G; S8 t1 pWDDM drivers can execute any ACPI method on the graphics adapter or any of its children by calling the DxgkCbEvalAcpiMethod function of the Windows Vista graphics kernel subsystem. A display miniport driver calls DxgkCbEvalAcpiMethod to evaluate a specified ACPI method on a graphics adapter or on its child device.
0 w- b  X4 K3 ~, i3 r; wFor example, to retrieve the EDID from a child output device, the WDDM driver can evaluate the _DDC ACPI method on that device., u/ P9 f) @% ]8 Z# r
For information about the DxgkCbEvalAcpiMethod function, see the WDK documentation.1 m# |8 Y, ]( K% G! Q  X. N" T
BIOS Support# o7 n, _2 P0 P2 Z9 D2 Y
The system BIOS must support all required ACPI methods for the WDDM driver to be able to communicate with the system BIOS. / e2 K0 v3 P' e. }6 H
Many mobile PC graphics adapters are tightly integrated with the host platform and system BIOS. Therefore, graphics hardware vendors should work closely with the system manufacturer and BIOS developer for the host platform to ensure that the required ACPI methods are implemented in the system BIOS." u* b7 P/ C% c- R3 ], @* W7 J1 D
The BIOS must implement the following ACPI methods, as applicable for specific functionality:
% ]7 R# {4 J/ n_ADR: Device ID
( I$ \6 A9 A) O$ L1 t$ j_BCL: Query for brightness levels% r. n8 V/ F7 O8 C# y
_BCM: Set brightness level0 k! t3 `% `  O
_DCS: Query display status
/ V4 e$ b+ ^$ G) R_DDC: EDID
  E& r7 a2 X# K2 m/ r/ l: E_DOD: Enumeration of graphics adapter child devices
+ M7 J: Z+ Z8 ^. w# `9 H' S_DOS: To control BIOS response to hotkeys. y+ j$ u$ G" k" j
_DSS: Set display state
/ g; P- V) S( ]9 D7 ^1 o_PS methods for supported power states8 x* c+ g- T6 R$ d  S; G$ ?

9 p+ n3 L; u: F1 ^* P+ o! u1 k1 @For information about these methods, see Appendix B, “Video Extensions,” of the ACPI Specification (listed in the references at the end of this paper).
; g, K' v7 L& H' n# m. z! ]Using ACPI Methods: Examples
. k: j6 p# h! G! yThese examples show how the ACPI methods for functionality that might have been implemented previously using the Int10 communication mechanism.& z0 Y. w. U! `% w/ ]& L
Display Switching Example 7 b+ F: L4 F# P" ?6 q4 K
On a mobile platform with an integrated panel in which the system BIOS controls signal switching and backlight power, the BIOS must support the _DSS method so that the WDDM driver can control the display state. - n  d. N9 Y% E  d2 Q' z: O
When the _DSS method is evaluated, it must update the system BIOS internal state, perform any signal switching required to route the signal, and set the backlight into the correct state. The _DSS method must be able to set the output state without a hotkey being pressed.  T7 M+ }; Q( d# E! c
The _DOD method can be used to enumerate the child devices of the VGA controller.  F; d1 d. `* V. H
Hotkey Clone Mode Example ) I0 g7 @& m) F6 J/ F+ K
For a driver to be able to retrieve the hardware status of each child device of the graphics adapter, the BIOS must support the _DCS ACPI method so the WDDM driver can control the hotkeys.
; F* u9 Y" s  JIf it is necessary to set a child output state, the _DSS method must be used to set that state.
: Z$ e9 v* V$ X7 L  SEDID Retrieval Example
% h  c$ d$ Q$ F3 C" wThe BIOS must support the _DDC ACPI method to enable the WDDM driver to retrieve the EDID of an output device.
+ T/ e; y" Y0 Z4 O4 ^+ G& g4 hBrightness Control Example
. z5 R0 ~" }7 J9 \. vThe BIOS must implement the _BCL and _BCM methods to support brightness control of the display control panel, so that the monitor driver supplied with Windows Vista can directly control brightness levels.
6 c- n5 P' P* WSummary
& s' e' A: l$ r2 y8 G: T# ZSystem manufacturers:
6 H2 W4 P! l0 r; u- a. S3 S•        Ensure that the system BIOS is ACPI compliant and implements the ACPI methods required for a WDDM driver.. l# @' W2 Y. I) ^
•        Work with Microsoft and graphics vendors to ensure compatibility with Windows Vista and the WDDM:
' E+ N# w. P8 h! e! _•        Enroll in the Windows Vista beta program to receive access to Windows Vista beta releases. Use only Windows Vista beta releases obtained from Microsoft through the beta program.
" d; a- H& S1 F. R•        Get WDDM drivers directly from the graphics vendor. (Microsoft is unable to re-distribute beta WDDM drivers to manufacturers.) Ensure that the beta WDDM driver from the graphics vendor is compatible with the Windows Vista beta release obtained from Microsoft.
+ _% ]# g9 P+ x2 T# N! b4 q+ H•        Identify system functionality that depends on legacy BIOS communications (Int10) support, and implement the necessary ACPI interfaces in the system BIOS to enable this functionality for use by a WDDM driver.4 b" \3 S+ s/ U) u0 N! j% i
•        Work with graphics vendors to ensure the required ACPI interfaces are implemented in the system BIOS to support the WDDM driver.
7 h! s7 ~. W& ~•        Validate that the system BIOS functions correctly with a WDDM driver that uses ACPI interfaces, especially for mobile platforms. ' |+ {! |8 D' {. p& X& I
Graphics hardware vendors:$ {, z% L$ W/ `2 F6 L  p
Design your WDDM drivers to use ACPI methods instead of Int10 to communicate with the system BIOS.
  p6 z8 E+ E/ t7 YBIOS vendors:0 \, u. V% k& a4 w4 o9 h
Design your BIOS products to be ACPI compliant and to implement the ACPI methods required for a WDDM driver.
4 K" W4 l" L: iSystem builders:
5 D( w. d# J) k! o9 lBuild systems with an ACPI-compliant BIOS that implements the ACPI methods required for a WDDM driver.8 u9 J  `7 T/ u* s" [+ |; b* |  L
Resources" Y' O" E+ f( Q  U! }: u, B
If you have additional questions that are not addressed by this document, please send email to directx@microsoft.com.. V' d7 M+ S6 S6 g( N0 T) z
ACPI/Power Management – Architecture and Driver Support6 X7 V5 B$ j; c  H) A
http://www.microsoft.com/whdc/sy ... ermgmt/default.mspx
2 B" q8 ?) `! l0 @- L% iACPI Specification! R' z6 n8 ]4 x  Q
http://www.acpi.info

WDDM_BIOS.doc

99 KB, 下载次数: 366

您需要登录后才可以回帖 登录 | 加入计匠网

本版积分规则

Archiver|手机版|小黑屋|计匠网

GMT+8, 2024-11-15 23:53 , Processed in 0.047854 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表