Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CardBus Bridge Power Management Register Test

Note  This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.

Type: Automated Test

Overview

The CardBus Bridge Power Management Register test searches the CardBus Bridge/Card configuration space for each of the CardBus device functions and verifies that the power management registers are correctly implemented.

Details

The CardBus Bridge Power Management Register test accesses the CardBus Bridge PCI configuration space through the Microsoft Windows PCI driver interface, which is loaded at runtime.
Run Time: 60 seconds
Log File:Cbpmreg.log and Cbpmreg.log.trace
System Restart Required: No
Test Category:
Supported operating systems for Logo or Signature testing:
  • Windows 7

  • Windows Server 2008 R2

  • Windows Vista

  • Windows Server 2003

  • Windows XP

Program:

Requirements

Software Requirements

The test tool requires the following software:

  • Supported operating system (see list above)

  • Software components included with the device that is being tested

Hardware Requirements

The test tool requires the following hardware:

  • Device to be tested

  • Computer that meets the minimum software requirements

  • Windows keyboard

  • Two-button pointing device

  • Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz

  • Hard drive with a minimum of 20 GB available on partition C:

  • If testing a CardBus bridge/controller, One CardBus card that complies with the requirements of the "Designed for Microsoft Windows" Logo Program for Hardware.

Processor

  • x86

  • x64

  • Itanium

Code Tour

File Manifest

FileLocation

Cbpmreg.exe

...\tests\%ARCHITECTURE%\nttest\driverstest\storage\wdk

pcidll.dll

...\tests\%ARCHITECTURE%\nttest\driverstest\storage\wdk

pcclib.dll

...\tests\%ARCHITECTURE%\nttest\driverstest\storage\wdk

pciwdm.sys

...\tests\%ARCHITECTURE%\nttest\driverstest\storage\wdk

 

Test Assertions

14.9.1CardBus controllers and cards implement PCI power management specification.
Test Assertion GUID: c53a1591-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.2The Capabilities bit (bit 4) in the PCI Status register determines whether or not the function implements new capabilities.
Test Assertion GUID: c53a1592-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: When this bit is set to a value other than 0b, it indicates that the function implements capabilities. If the value is set at 0b, the function does not implement new capabilities.
14.9.3The Capabilities bit is read-only and its reset value is 1b.
Test Assertion GUID: c53a1593-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.4The Cap_Ptr register is located in PCI configuration space at offset 34h for header-type-zero devices.
Test Assertion GUID: c53a1594-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.5The Cap_Ptr register is located in PCI configuration space at offset 14h for header-type-2 devices (PCI-to-CardBus bridges).
Test Assertion GUID: c53a1595-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.6The values of 00h-3Fh are not valid for the Cap_Ptr register for CardBus cards For PCI-to-CardBus bridges, the values of 00h-7Fh are not valid for the Cap_Ptr register.
Test Assertion GUID: c53a1596-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.7The Cap_Ptr register offset is double word aligned so that the two least-significant bits are always assigned zero values.
Test Assertion GUID: c53a1597-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.8The Power Management registers can be accessed as bytes, 16-bit words, or 32-bit double words.
Test Assertion GUID: c53a1598-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.9The Capability ID register is read-only.
Test Assertion GUID: c53a1599-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.10The NextItemPtr field (bits 8 through 15) must point to the next item in the capabilities list.
Test Assertion GUID: c53a15a0-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: This address must be double-word-aligned. If this capability entry is the last, it must have a value of 00h.
14.9.11The NextItemPtr field (bits 8 through 15) is read-only.
Test Assertion GUID: c53a15a1-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.12Each function of a PCI device has only one item in its capability list with Cap_ID register value set to 01b.
Test Assertion GUID: c53a15a2-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.13The PMC register is a 16-bit, read-only register.
Test Assertion GUID: c53a15a3-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.14For CardBus cards, the Version field (bits 0 through 2) must have a value of 010b to indicate that this function complies with Revision 1.1 of the PCI Power Management Interface Specification for CardBus cards.
Test Assertion GUID: c53a15a4-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: For PCI-to-CardBus bridges, the Version field (bits 0 through 2) can have a value of 001b as specified in Revision 1.0 of the PCI Power Management Interface Specification or 010b to indicate that the function complies with Revision 1.1 of the PCI PM Interface Specification.
14.9.15The PME_Clock (bit 3) must have a value of 0b for functions that do not support PME# generation in any state.
Test Assertion GUID: c53a15a5-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.18The DSI bit (bit 5) indicates whether special initialization of this function is required.
Test Assertion GUID: c53a15a8-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.19The D1_Support bit (bit 9) must be set to a value of 1b for any function that supports the D1 power management state.
Test Assertion GUID: c53a15a9-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: If the function does not support D1, it must always return a value of 0b for this bit.
14.9.20The D1_Support bit is read-only.
Test Assertion GUID: c53a15b0-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.21The D2_Support bit (bit 10) must be set to a value of 1b for any function that supports the D2 power management state.
Test Assertion GUID: c53a15b1-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: If the function does not support D2, it must always return a value of 0b for this bit.
14.9.22The D2_Support bit is read-only.
Test Assertion GUID: c53a15b2-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.23The PME_Support bit 15 indicates the power states in which the function may assert the PME# signal.
Test Assertion GUID: c53a15b3-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.24The PME_Support bits 11 through 14 are read-only.
Test Assertion GUID: c53a15b4-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.25All reserved bits in the PMC Register (bit 6 through 8) must always return a value of 0b when they are read.
Test Assertion GUID: c53a15b5-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: Write operations on these bits have no effect. This assertion applies only for CardBus bridges that comply with PCI PM spec Revision 1.0.
14.9.26 For CardBus bridges, auxiliary power source (bit 4) must have a value of 1b to indicate that support for PME# in D3COLD requires auxiliary power that the system supplies by a proprietary delivery vehicle.
Test Assertion GUID: c53a15b6-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: If the function supplies its own auxiliary power, this bit must have a value of 0b. This bit is read-only. This assertion is applicable for CardBus bridges that comply with version 1.0 of the PCI power management specification. For CardBus cards that comply with PCI PM Spec Rev 1.1, the bit 4 is reserved and should read 0. This bit is read-only.
14.9.27The PowerState field (bits 0 through 1) in the PMCSR 4egister is used to determine the current power state of a PCI function and to set the function into a new power state.
Test Assertion GUID: c53a15b7-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.28The PowerState field is read/write.
Test Assertion GUID: c53a15b8-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.30If system software attempts to write an unsupported optional state to the PowerState field, the write operation must finish normally on the bus.
Test Assertion GUID: c53a15c0-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: he data is then discarded and the state doesn't change.
14.9.31The PME_En bit (bit 8) is read/write.
Test Assertion GUID: c53a15c1-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.33The PCI functions that do not support PME# generation from any Dx state might treat the PME_En bit as read-only.
Test Assertion GUID: c53a15c3-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: When system software reads the bit, the bit must always return a value of 0b.
14.9.37Writing a value of 0b to the PME_Status bit has no effect.
Test Assertion GUID: c53a15c7-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.38If the PCI function does not support PME# generation from the D3 Cold state, the PME_Status bit defaults to a value of 0b.
Test Assertion GUID: c53a15c8-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.40The Data_Select field is read/write.
Test Assertion GUID: c53a15d0-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.41The reset value of the Data_Select field is 0000b.
Test Assertion GUID: c53a15d1-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.42The Data_Scale field (bits 13 through 14) is required for any function that implements the Data register.
Test Assertion GUID: c53a15d2-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.43The Data_Scale field is read-only.
Test Assertion GUID: c53a15d3-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information:
14.9.44All reserved fields in the PMCSR register (bits 2 through 7) must always return a value of 0 when they are read.
Test Assertion GUID: c53a15d4-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: Write operations on these fields have no effect.
14.9.45The Data register is an optional, 8-bit read-only register.
Test Assertion GUID: c53a15d5-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
14.9.46If the Data register is implemented, the Data_Select and Data_Scale fields must also be implemented.
Test Assertion GUID: c53a15d6-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: If the Data Register is not implemented, it must always return a value of0b. The Data_Select and Data_Scale fields must also return a value of 0b.
14.9.49Values from 0 through 8 are the only valid values for the Data_Select field.
Test Assertion GUID: c53a15d9-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: Values from 9 through 15 are reserved.
14.9.52The B2_B3# bit (bit 6) determines the action that results from programming the function to the D3 Hot state.
Test Assertion GUID: c53a15e2-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: A value of 1b indicates that when the bridge function is programmed to this state, its secondary bus PCI clock is stopped (B2). A value of 0b indicates that its secondary bus has its power removed (B3). Note: This assertion does not apply for CardBus cards.
14.9.53The B2_B3# bit is read-only.
Test Assertion GUID: c53a15e3-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: Note: This assertion does not apply for CardBus cards.
14.9.54 If the BPCC_En bit (bit 7) is set to a value of 1b, only the B2_B3# bit is significant.
Test Assertion GUID: c53a15e4-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: Note: This assertion does not apply for CardBus cards.
14.9.55The BPCC_En bit (bit 7) indicates whether the bus power and clock control mechanism is enabled.
Test Assertion GUID: c53a15e5-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: A value of 1b indicates that the bus power/clock control mechanism is enabled. A value of 0b indicates that the bus power and clock control policies have been disabled. Note: This assertion does not apply for CardBus cards.
14.9.57All reserved fields in the PMCSR_BSE Register (bits 0 through 5) must always return a value of 0b when they are read.
Test Assertion GUID: c53a15e7-c34c-11da-94f3-00123f3a6b60
Windows Logo Program: BUSPORT-0006 CardBus controller complies with industry standards and Windows-compatible configuration
Additional Information: Write operations on these fields have no effect. Note: This assertion does not apply for CardBus cards.

 

 

Build date: 9/14/2012

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.