0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
319537-003US

319537-003US

  • 厂商:

    INTEL

  • 封装:

  • 描述:

    319537-003US - Intel System Controller Hub - Intel Corporation

  • 数据手册
  • 价格&库存
319537-003US 数据手册
Intel® System Controller Hub (Intel® SCH) Datasheet May 2010 Document Number: 319537-003US INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. L UNLESS OTHERWISE AGREED IN WRITING BY INTEL, THE INTEL PRODUCTS ARE NOT DESIGNED NOR INTENDED FOR ANY APPLICATION IN WHICH THE FAILURE OF THE INTEL PRODUCT COULD CREATE A SITUATION WHERE PERSONAL INJURY OR DEATH MAY OCCUR. Intel may make changes to specifications and product descriptions at any time, without notice. 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. The information here is subject to change without notice. Do not finalize a design with this information. The Intel® System Controller Hub (Intel® SCH) may contain design defects or errors known as errata which may cause the product to deviate from published specifications. Current characterized errata are available on request. Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order. This document contains information on products in the design phase of development. The information here is subject to change without notice. Do not finalize a design with this information. Intel® High Definition Audio (Intel® HD Audio) requires a system with an appropriate Intel chipset and a motherboard with an appropriate codec and the necessary drivers installed. System sound quality will vary depending on actual implementation, controller, codec, drivers and speakers. For more information about Intel® High Definition Audio (Intel® HD Audio), refer to http://www.intel.com/. I2C is a two-wire communications bus/protocol developed by Philips. SMBus is a subset of the I2C bus/protocol and was developed by Intel. Implementations of the I2C bus/protocol may require licenses from various entities, including Philips Electronics N.V. and North American Philips Corporation. Intel, Intel® Graphics Media Accelerator 500 (Intel® GMA 500), Intel® High Definition Audio (Intel® HD Audio), Enhanced Intel SpeedStep® Technology, Intel® AtomTM, and the Intel logo are trademarks of Intel Corporation in the U.S. and other countries. *Other names and brands may be claimed as the property of others. Copyright © 2008–2010, Intel Corporation. All Rights Reserved. 2 Datasheet Contents 1 Introduction ............................................................................................................ 19 1.1 Terminology ..................................................................................................... 20 1.2 Reference Documents ........................................................................................ 22 1.3 Overview ......................................................................................................... 23 1.3.1 Processor Interface................................................................................. 23 1.3.2 System Memory Controller ...................................................................... 24 1.3.3 USB Host .............................................................................................. 24 1.3.4 USB Client............................................................................................. 24 1.3.5 PCI Express* ......................................................................................... 24 1.3.6 LPC Interface......................................................................................... 24 1.3.7 Parallel ATA (PATA) ................................................................................ 25 1.3.8 Intel® Graphics Media Accelerator 500 (Intel® GMA 500) ........................... 25 1.3.9 Display Interfaces .................................................................................. 25 1.3.10 Secure Digital I/O (SDIO)/Multimedia Card (MMC) Controller ....................... 26 1.3.11 SMBus Host Controller ............................................................................ 26 1.3.12 Intel® High Definition Audio (Intel® HD Audio) Controller ........................... 26 1.3.13 General Purpose I/O (GPIO)..................................................................... 26 1.3.14 Power Management ................................................................................ 26 Signal Description ................................................................................................... 27 2.1 Host Interface Signals........................................................................................ 29 2.2 System Memory Signals ..................................................................................... 32 2.3 Integrated Display Interfaces .............................................................................. 34 2.3.1 LVDS Signals ......................................................................................... 34 2.3.2 Serial Digital Video Output (SDVO) Signals ................................................ 34 2.3.3 Display Data Channel (DDC) and GMBus Support........................................ 35 2.4 Universal Serial Bus (USB) Signals....................................................................... 36 2.5 PCI Express* Signals ......................................................................................... 36 2.6 Secure Digital I/O (SDIO)/MultiMedia Card (MMC) Signals ...................................... 37 2.7 Parallel ATA (PATA) Signals ................................................................................ 38 2.8 Intel HD Audio Interface..................................................................................... 39 2.9 LPC Interface.................................................................................................... 40 2.10 SMBus Interface................................................................................................ 40 2.11 Power Management Interface.............................................................................. 41 2.12 Real Time Clock Interface ................................................................................... 42 2.13 JTAG Interface .................................................................................................. 43 2.14 Miscellaneous Signals and Clocks......................................................................... 43 2.15 General Purpose I/O .......................................................................................... 44 2.16 Power and Ground Signals .................................................................................. 45 2.17 Functional Straps .............................................................................................. 46 Pin States ................................................................................................................ 47 3.1 Pin Reset States................................................................................................ 47 3.2 Integrated Termination Resistors......................................................................... 53 System Clock Domains............................................................................................. 55 Register and Memory Mapping................................................................................. 57 5.1 Intel® SCH Register Introduction ........................................................................ 58 5.2 PCI Configuration Map ....................................................................................... 59 2 3 4 5 Datasheet 3 5.3 5.4 5.5 System Memory Map..........................................................................................60 5.3.1 Legacy Video Area (A0000h – BFFFFh).......................................................62 5.3.2 Expansion Area (C0000h – DFFFFh) ..........................................................62 5.3.3 Extended System BIOS Area (E0000h – EFFFFh) .........................................62 5.3.4 System BIOS Area (F0000h – FFFFFh) .......................................................62 5.3.5 EHCI Controller Area ...............................................................................62 5.3.6 Programmable Attribute Map (PAM)...........................................................62 5.3.7 Top of Memory Segment (TSEG) ...............................................................63 5.3.8 APIC Configuration Space (FEC00000h – FECFFFFFh)...................................63 5.3.9 High BIOS Area ......................................................................................63 5.3.10 Boot Block Update ..................................................................................63 5.3.11 Memory Shadowing.................................................................................64 5.3.12 Locked Transactions................................................................................64 I/O Address Space .............................................................................................65 5.4.1 Fixed I/O Decode Ranges.........................................................................65 5.4.2 Variable I/O Decode Ranges .....................................................................66 I/O Mapped Registers.........................................................................................67 5.5.1 NSC—NMI Status and Control Register ......................................................67 5.5.2 NMIE—NMI Enable Register......................................................................67 5.5.3 CONFIG_ADDRESS—Configuration Address Register ....................................68 5.5.4 RSTC—Reset Control Register...................................................................69 5.5.5 CONFIG_DATA—Configuration Data Register ..............................................69 6 General Chipset Configuration..................................................................................71 6.1 Root Complex Capability .....................................................................................71 6.1.1 RCTCL—Root Complex Topology Capabilities List.........................................72 6.1.2 ESD—Element Self Description .................................................................72 6.1.3 HDD—Intel® HD Audio Description ...........................................................73 6.1.4 HDBA—Intel® HD Audio Base Address.......................................................73 6.2 Interrupt Pin and Routing Configuration ................................................................74 6.2.1 Interrupt Pin Configuration.......................................................................74 6.2.2 Interrupt Route Configuration...................................................................77 6.3 General Configuration Register ............................................................................80 6.3.1 RC—RTC Configuration Register ................................................................80 Host Bridge (D0:F0) .................................................................................................81 7.1 Functional Description ........................................................................................81 7.1.1 Dynamic Bus Inversion ............................................................................81 7.1.2 FSB Interrupt Overview ...........................................................................81 7.1.3 CPU BIST Strap ......................................................................................82 7.2 Host PCI Configuration Registers..........................................................................82 7.2.1 VID—Identification Register .....................................................................82 7.2.2 DID—Identification Register .....................................................................83 7.2.3 PCICMD—PCI Command Register ..............................................................83 7.2.4 PCISTS—PCI Status Register ....................................................................83 7.2.5 RID—Revision Identification Register .........................................................83 7.2.6 CC—Class Code Register..........................................................................84 7.2.7 SS—Subsystem Identifiers Register...........................................................84 7.2.8 Miscellaneous (Port 05h)..........................................................................88 Memory Controller (D0:F0) ......................................................................................89 8.1 Functional Overview ...........................................................................................89 8.1.1 DRAM Frequencies and Data Rates ............................................................89 8.1.2 DRAM Command Scheduling ....................................................................89 8.1.3 Page Management ..................................................................................89 7 8 4 Datasheet 8.2 8.3 8.4 8.5 DRAM Technologies and Organization................................................................... 90 8.2.1 DRAM Address Mapping........................................................................... 90 DRAM Clock Generation...................................................................................... 92 DDR2 On-Die Termination .................................................................................. 92 DRAM Power Management .................................................................................. 92 8.5.1 CKE Powerdown ..................................................................................... 92 8.5.2 Interface High-Impedance ....................................................................... 92 8.5.3 Refresh ................................................................................................. 93 8.5.4 Self-Refresh .......................................................................................... 93 8.5.5 Dynamic Self-Refresh ............................................................................. 93 8.5.6 DDR2 Voltage ........................................................................................ 93 9 Graphics, Video, and Display (D2:F0) ...................................................................... 95 9.1 Graphics Overview ............................................................................................ 95 9.1.1 3-D Core Key Features ............................................................................ 95 9.1.2 Shading Engine Key Features ................................................................... 95 9.1.3 Vertex Processing................................................................................... 96 9.1.4 Pixel Processing ..................................................................................... 97 9.1.5 Unified Shader ....................................................................................... 97 9.1.6 Multi Level Cache ................................................................................... 98 9.2 Video Decode Overview...................................................................................... 98 9.2.1 Entropy Coding ...................................................................................... 99 9.2.2 Motion Compensation ............................................................................. 99 9.2.3 Deblocking .......................................................................................... 100 9.2.4 Output Reference Frame Storage Format ................................................. 100 9.3 Display Overview ............................................................................................ 101 9.3.1 Planes ................................................................................................ 101 9.3.2 Display Pipes ....................................................................................... 102 9.3.3 Display Ports ....................................................................................... 102 9.4 Configuration Registers .................................................................................... 104 9.4.1 VID—Vendor Identification Register ........................................................ 105 9.4.2 DID—Device Identification Register......................................................... 105 9.4.3 PCICMD—PCI Command Register ........................................................... 105 9.4.4 PCISTS—PCI Status Register.................................................................. 106 9.4.5 RID—Revision Identification ................................................................... 106 9.4.6 CC—Class Codes Register ...................................................................... 106 9.4.7 HEADTYP—Header Type Register ............................................................ 107 9.4.8 MEM_BASE—Memory Mapped Base Address Register ................................ 107 9.4.9 IO_BASE—I/O Base Address Register...................................................... 107 9.4.10 GMEM_BASE—Graphics Memory Base Address Register ............................. 108 9.4.11 GTT_BASE—Graphics Translation Table Base Address Register ................... 108 9.4.12 SS—Subsystem Identifiers..................................................................... 109 9.4.13 CAP_PTR—Capabilities Pointer Register ................................................... 109 9.4.14 INT_LN—Interrupt Line Register ............................................................. 109 9.4.15 INT_PN—Interrupt Pin Register .............................................................. 109 9.4.16 GC—Graphics Control Register ............................................................... 110 9.4.17 SSRW—Software Scratch Read/Write Register.......................................... 110 9.4.18 BSM—Base of Stolen Memory Register .................................................... 111 9.4.19 MSAC—Multi Size Aperture Control ......................................................... 111 9.4.20 MSI_CAPID—MSI Capability Register....................................................... 112 9.4.21 NXT_PTR3—Next Item Pointer #3 Register .............................................. 112 9.4.22 MSI_CTL—Message Control Register ....................................................... 112 9.4.23 MSI_ADR—Message Address Register ..................................................... 113 9.4.24 MSI_DATA—Message Data Register ........................................................ 113 9.4.25 VEND_CAPID—Vendor Capability Register................................................ 113 Datasheet 5 9.4.26 9.4.27 9.4.28 9.4.29 9.4.30 9.4.31 9.4.32 9.4.33 9.4.34 9.4.35 9.4.36 10 NXT_PTR2—Next Item Pointer #2 Register............................................... 113 FD—Function Disable Register ................................................................ 114 PM_CAPID—Power Management Capabilities ID Register ............................ 114 NXT_PTR1—Next Item Pointer #1 Register............................................... 114 PM_CAP—Power Management Capabilities Register.................................... 115 PM_CTL_STS—Power Management Control/Status Register ........................ 115 SWSCISMI—Software SCI/SMI Register ................................................... 116 ASLE—System Display Event Register...................................................... 116 GCR—Graphics Clock Ratio Register ........................................................ 117 LBB—Legacy Backlight Brightness Register............................................... 117 ASLS—ASL Storage Register .................................................................. 118 Intel® HD Audio (D27:F0)...................................................................................... 119 10.1 Functional Overview ......................................................................................... 119 10.1.1 Docking............................................................................................... 119 10.1.2 Low Voltage (LV) Mode .......................................................................... 121 10.2 PCI Configuration Register Space ....................................................................... 122 10.2.1 VID—Vendor Identification Register......................................................... 124 10.2.2 DID—Device Identification Register ......................................................... 124 10.2.3 PCICMD—PCI Command Register ............................................................ 124 10.2.4 PCISTS—PCI Status Register .................................................................. 125 10.2.5 RID—Revision Identification Register ....................................................... 125 10.2.6 CC—Class Code Register........................................................................ 125 10.2.7 CLS—Cache Line Size Register................................................................ 126 10.2.8 LT—Latency Timer Register .................................................................... 126 10.2.9 HEADTYP—Header Type Register ............................................................ 126 10.2.10LBAR—Lower Base Address Register........................................................ 127 10.2.11UBAR—Upper Base Address Register ....................................................... 127 10.2.12SS—Sub System Identifiers Register ....................................................... 127 10.2.13CAP_PTR—Capabilities Pointer Register.................................................... 128 10.2.14INTLN—Interrupt Line Register ............................................................... 128 10.2.15INTPN—Interrupt Pin Register ................................................................ 128 10.2.16HDCTL—HD Control Register .................................................................. 128 10.2.17DCKCTL—Docking Control Register.......................................................... 129 10.2.18DCKSTS—Docking Status Register .......................................................... 129 10.2.19PM_CAPID—PCI Power Management Capability ID Register......................... 130 10.2.20PM_CAP—Power Management Capabilities Register.................................... 130 10.2.21PM_CTL_STS—Power Management Control and Status Register................... 131 10.2.22MSI_CAPID—MSI Capability ID Register................................................... 131 10.2.23MSI_CTL—MSI Message Control Register ................................................. 132 10.2.24MSI_ADR—MSI Message Address Register................................................ 132 10.2.25MSI_DATA—MSI Message Data Register .................................................. 132 10.2.26PCIE_CAPID—PCI Express Capability ID Register....................................... 133 10.2.27PCIECAP—PCI Express Capabilities Register.............................................. 133 10.2.28DEVCAP—Device Capabilities Register...................................................... 133 10.2.29DEVC—Device Control Register ............................................................... 134 10.2.30DEVS—Device Status Register ................................................................ 134 10.2.31FD—Function Disable Register ................................................................ 135 10.2.32VCCAP—Virtual Channel Enhanced Capability Header Register..................... 135 10.2.33PVCCAP1—Port VC Capability Register 1 .................................................. 135 10.2.34PVCC2—Port VC Capability Register 2 ...................................................... 136 10.2.35PCCTL—Port VC Control ......................................................................... 136 10.2.36PVCSTS—Port VC Status ........................................................................ 136 10.2.37VC0CAP—VC0 Resource Capability Register .............................................. 136 10.2.38VC0CTL—VC0 Resource Control Register .................................................. 137 6 Datasheet 10.3 10.4 10.2.39VCSTS—VC0 Resource Status Register .................................................... 137 10.2.40VC0CAP—VC0 Resource Capability Register.............................................. 137 10.2.41VC1CTL—VC1 Resource Control Register ................................................. 138 10.2.42VC1STS—VC1 Resource Status Register .................................................. 138 10.2.43RCCAP—Root Complex Link Declaration Enhanced Capability Header Register..................................................................... 139 10.2.44ESD—Element Self Description Register................................................... 139 10.2.45L1DESC—Link 1 Description Register....................................................... 140 10.2.46L1ADD—Link 1 Address Register............................................................. 140 Memory Mapped Configuration Registers ............................................................ 141 10.3.1 GCAP—Global Capabilities Register ......................................................... 144 10.3.2 VMIN—Minor Version Register ................................................................ 144 10.3.3 VMAJ—Major Version Register ................................................................ 144 10.3.4 OUTPAY—Output Payload Capability Register ........................................... 145 10.3.5 INPAY—Input Payload Capability Register ................................................ 145 10.3.6 GCTL—Global Control Register ............................................................... 146 10.3.7 STATESTS - State Change Status ........................................................... 147 10.3.8 GSTS—Global Status Register ................................................................ 149 10.3.9 ECAP—Extended Capabilities.................................................................. 150 10.3.10STRMPAY—Stream Payload Capability ..................................................... 150 10.3.11INTCTL—Interrupt Control Register......................................................... 151 10.3.12INTSTS—Interrupt Status Register.......................................................... 152 10.3.13WALCLK—Wall Clock Counter Register..................................................... 153 10.3.14SSYNC—Stream Synchronization Register................................................ 153 10.3.15CORBBASE—CORB Base Address Register................................................ 153 10.3.16CORBWP—CORB Write Pointer Register ................................................... 154 10.3.17CORBRP—CORB Read Pointer Register .................................................... 154 10.3.18CORBCTL—CORB Control Register .......................................................... 155 10.3.19CORBST—CORB Status Register ............................................................. 155 10.3.20CORBSIZE—CORB Size Register ............................................................. 155 10.3.21RIRBBASE—RIRB Base Address Register.................................................. 156 10.3.22RIRBWP—RIRB Write Pointer Register ..................................................... 156 10.3.23RINTCNT—Response Interrupt Count Register .......................................... 157 10.3.24RIRBCTL—RIRB Control Register ............................................................ 157 10.3.25RIRBSTS—RIRB Status Register ............................................................. 158 10.3.26RIRBSIZE—RIRB Size Register ............................................................... 158 10.3.27IC—Immediate Command Register ......................................................... 159 10.3.28IR—Immediate Response Register .......................................................... 159 10.3.29IRS—Immediate Command Status Register.............................................. 160 10.3.30DPBASE—DMA Position Base Address Register.......................................... 160 10.3.31SDCTL—Stream Descriptor Control Register ............................................. 161 10.3.32SDSTS—Stream Descriptor Status Register.............................................. 163 10.3.33SDLPIB—Stream Descriptor Link Position in Buffer Register........................ 164 10.3.34SDCBL—Stream Descriptor Cyclic Buffer Length Register ........................... 164 10.3.35SDLVI—Stream Descriptor Last Valid Index Register ................................. 165 10.3.36SDFIFOW—Stream Descriptor FIFO Watermark Register ............................ 165 10.3.37SDFIFOS—Stream Descriptor FIFO Size Register....................................... 166 10.3.38SDFMT—Stream Descriptor Format Register............................................. 167 10.3.39SDBDPL—Stream Descriptor Buffer Descriptor Pointer List Base Register ..... 168 Vendor Specific Memory Mapped Registers ......................................................... 169 10.4.1 EM1—Extended Mode 1 Register............................................................. 169 10.4.2 INRC—Input Stream Repeat Count Register ............................................. 170 10.4.3 OUTRC—Output Stream Repeat Count Register ........................................ 170 10.4.4 FIFOTRK – FIFO Tracking Register .......................................................... 171 10.4.5 SDPIB—Stream DMA Position in Buffer Register........................................ 171 Datasheet 7 10.4.6 EM2—Extended Mode 2 Register ............................................................. 172 10.4.7 WLCLKA—Wall Clock Counter Alias Register.............................................. 172 10.4.8 SLPIB—Stream Link Position in Buffer Register ......................................... 172 11 PCI Express* (D28:F0, F1) ..................................................................................... 173 11.1 Functional Description ...................................................................................... 173 11.1.1 Interrupt Generation ............................................................................. 173 11.1.2 Power Management............................................................................... 173 11.1.3 Hot-Plug .............................................................................................. 174 11.1.4 Additional Clarifications ......................................................................... 175 11.2 PCI Express* Configuration Registers ................................................................. 175 11.2.1 VID—Vendor Identification Register......................................................... 177 11.2.2 DID—Device Identification Register ......................................................... 177 11.2.3 PCICMD—PCI Command Register ............................................................ 178 11.2.4 PCISTS—PCI Status Register .................................................................. 179 11.2.5 RID—Revision Identification Register ....................................................... 179 11.2.6 CC—Class Codes Register ...................................................................... 180 11.2.7 CLS—Cache Line Size Register................................................................ 180 11.2.8 PLT—Primary Latency Timer Register....................................................... 180 11.2.9 HEADTYP—Header Type Register ............................................................ 181 11.2.10BNUM—Bus Number Register ................................................................. 181 11.2.11SLT—Secondary Latency Timer ............................................................... 181 11.2.12IOBL—I/O Base and Limit Register .......................................................... 182 11.2.13SSTS—Secondary Status Register ........................................................... 182 11.2.14MBL—Memory Base and Limit Register .................................................... 183 11.2.15PMBL—Prefetchable Memory Base and Limit Register ................................. 183 11.2.16CAP_PTR—Capabilities Pointer Register.................................................... 184 11.2.17INT_LN—Interrupt Line Register ............................................................. 184 11.2.18INT_PN—Interrupt Pin Register............................................................... 184 11.2.19BCTRL—Bridge Control Register .............................................................. 185 11.2.20PCIE_CAPID—PCI Express Capability ID Register....................................... 186 11.2.21NXT_PTR1—Next Item Pointer #1 Register............................................... 186 11.2.22PCIECAP—PCI Express Capabilities Register.............................................. 186 11.2.23DCAP—Device Capabilities Register ......................................................... 187 11.2.24DCTL—Device Control Register ............................................................... 188 11.2.25DSTS—Device Status Register ................................................................ 189 11.2.26LCAP—Link Capabilities Register ............................................................. 190 11.2.27LCTL—Link Control Register ................................................................... 191 11.2.28LSTS—Link Status Register .................................................................... 192 11.2.29SLCAP—Slot Capabilities Register............................................................ 193 11.2.30SLCTL—Slot Control Register .................................................................. 194 11.2.31SLSTS—Slot Status Register................................................................... 195 11.2.32RCTL—Root Control Register .................................................................. 196 11.2.33RCAP—Root Capabilities......................................................................... 197 11.2.34RSTS—Root Status Register ................................................................... 197 11.2.35RCAP—Root Capabilities Register ............................................................ 198 11.2.36SV_CAPID—Subsystem Vendor Capability ID Register................................ 198 11.2.37NXT_PTR3—Next Item Pointer #3 Register............................................... 198 11.2.38SVID—Subsystem Vendor Identification Register....................................... 198 11.2.39PCI—Power Management Capability ID Register ........................................ 199 11.2.40NXT_PTR4—Next Item Pointer #4 Register............................................... 199 11.2.41PM_CAP—Power Management Capabilities Register.................................... 199 11.2.42PM_CNTL_STS—Power Management Control and Status Register................. 200 11.2.43MPC—Miscellaneous Port Configuration Register ........................................ 201 11.2.44SMSCS—SMI/SCI Status Register ........................................................... 202 8 Datasheet 11.2.45FD—Function Disable Register ................................................................ 202 12 UHCI Host Controller (D29:F0, F1, F2) ................................................................... 203 12.1 Functional Description...................................................................................... 203 12.1.1 Bus Protocol ........................................................................................ 203 12.1.2 USB Interrupts..................................................................................... 203 12.1.3 USB Power Management ....................................................................... 203 12.2 PCI Configuration Registers .............................................................................. 205 12.2.1 VID—Vendor Identification Register ........................................................ 206 12.2.2 DID—Device Identification Register......................................................... 206 12.2.3 PCICMD—PCI Command Register ........................................................... 206 12.2.4 PCISTS—PCI Status Register.................................................................. 207 12.2.5 RID—Revision Identification Register ...................................................... 207 12.2.6 CC—Class Code Register ....................................................................... 207 12.2.7 MLT—Master Latency Timer Register ....................................................... 208 12.2.8 HEADTYP—Header Type Register ............................................................ 208 12.2.9 BASE—Base Address Register ................................................................ 208 12.2.10SSID—Subsystem Identifiers Register ..................................................... 208 12.2.11SID—Subsystem Identification Register ................................................... 209 12.2.12CAP_PTR—Capabilities Pointer Register ................................................... 209 12.2.13INT_LN—Interrupt Line Register ............................................................. 209 12.2.14INT_PN—Interrupt Pin Register .............................................................. 210 12.2.15USB_RELNUM—Serial Bus Release Number Register.................................. 210 12.2.16USB_RES—USB Resume Enable Register ................................................. 210 12.2.17FD—Function Disable Register ................................................................ 211 12.3 I/O Registers .................................................................................................. 211 12.3.1 USBCMD—USB Command Register ......................................................... 212 12.3.2 USBSTS—USB Status Register ............................................................... 215 12.3.3 USBINTR—USB Interrupt Enable Register ................................................ 216 12.3.4 FRNUM—Frame Number Register............................................................ 217 12.3.5 FRBASEADD—Frame List Base Address Register ....................................... 217 12.3.6 SOFMOD—Start of Frame Modify Register ................................................ 218 12.3.7 PORTSC[0,1]—Port Status and Control Registers ...................................... 219 EHCI Host Controller (D29:F7)............................................................................... 223 13.1 Functional Description...................................................................................... 223 13.1.1 EHCI Initialization ................................................................................ 223 13.1.2 USB 2.0 Interrupts and Error Conditions .................................................. 224 13.1.3 USB 2.0 Power Management .................................................................. 225 13.1.4 Interaction with UHCI Host Controllers .................................................... 226 13.1.5 USB 2.0 Based Debug Port .................................................................... 229 13.2 USB EHCI Configuration Registers ..................................................................... 230 13.2.1 VID—Vendor Identification Register ........................................................ 231 13.2.2 DID—Device Identification Register......................................................... 231 13.2.3 PCICMD—PCI Command Register ........................................................... 231 13.2.4 PCISTS—PCI Status Register.................................................................. 232 13.2.5 RID—Revision Identification Register ...................................................... 232 13.2.6 CC—Class Codes Register ...................................................................... 232 13.2.7 MLT—Master Latency Timer Register ....................................................... 233 13.2.8 HEADTYP—Header Type Register ............................................................ 233 13.2.9 MEM_BASE—Base Address Register ........................................................ 233 13.2.10SVID—USB EHCI Subsystem Vendor ID Register ...................................... 234 13.2.11SID—USB EHCI Subsystem ID Register ................................................... 234 13.2.12CAP_PTR—Capabilities Pointer Register ................................................... 234 13.2.13INT_LN—Interrupt Line Register ............................................................. 235 13.2.14INT_PN—Interrupt Pin Register .............................................................. 235 13 Datasheet 9 13.3 13.2.15PM_CAPID—PCI Power Management Capability ID Register......................... 235 13.2.16NXT_PTR1—Next Item Pointer #1 Register............................................... 236 13.2.17PM_CAP—Power Management Capabilities Register.................................... 236 13.2.18PWR_CNTL_STS—Power Management Control/Status Register .................... 237 13.2.19DEBUG_CAPID—Debug Port Capability ID Register .................................... 238 13.2.20NXT_PTR2—Next Item Pointer #2 Register............................................... 238 13.2.21DEBUG_BASE—Debug Port Base Offset Register ....................................... 238 13.2.22USB_RELNUM—USB Release Number Register .......................................... 238 13.2.23FL_ADJ—Frame Length Adjustment Register............................................. 239 13.2.24PWAKE_CAP—Port Wake Capability Register ............................................. 240 13.2.25CUO—Classic USB Override Register........................................................ 240 13.2.26LEG_EXT_CAP—USB EHCI Legacy Support Extended Capability Register....... 241 13.2.27LEG_EXT_CS—USB EHCI Legacy Support Extended Control/Status Register.. 241 13.2.28SPECIAL_SMI—Intel Special USB 2.0 SMI Register .................................... 244 13.2.29ACCESS_CNTL—Access Control Register .................................................. 245 13.2.30FD—Function Disable Register ................................................................ 246 Memory-Mapped I/O Registers .......................................................................... 246 13.3.1 Host Controller Capability Registers......................................................... 246 13.3.2 Host Controller Operational Registers ...................................................... 250 13.3.3 USB 2.0 Based Debug Port Register......................................................... 263 14 USB Client Controller (D26:F0)............................................................................... 269 14.1 Functional Description ...................................................................................... 269 14.2 Operation ....................................................................................................... 270 14.2.1 USB Features ....................................................................................... 271 14.2.2 DMA Features....................................................................................... 272 14.2.3 Reset .................................................................................................. 272 14.2.4 PCI Device Reset .................................................................................. 272 14.2.5 Wake of Client...................................................................................... 272 14.2.6 Wake of Host (USB Resume) .................................................................. 272 14.3 PCI Configuration Registers............................................................................... 273 14.3.1 VID—Vendor Identification Register......................................................... 273 14.3.2 DID—Device Identification Register ......................................................... 274 14.3.3 PCICMD—PCI Command Register ............................................................ 274 14.3.4 PCISTS—PCI Status Register .................................................................. 275 14.3.5 RID—Revision Identification Register ....................................................... 275 14.3.6 CC—Class Codes Register ...................................................................... 275 14.3.7 HTYPE - Header Type Register ................................................................ 276 14.3.8 MEM_BASE— USB Client Memory Base Address Register ............................ 276 14.3.9 SID—Subsystem ID Register .................................................................. 277 14.3.10CAP_PTR—Capabilities Pointer Register.................................................... 277 14.3.11INT_LN—Interrupt Line Register ............................................................. 277 14.3.12INT_PN—Interrupt Pin Register............................................................... 278 14.3.13USBPR—USB Port Routing Register ......................................................... 278 14.3.14PM_CAPID—PCI Power Management Capability ID Register......................... 278 14.3.15NXT_PTR—Next Item Pointer Register ..................................................... 279 14.3.16PM_CAP—Power Management Capabilities Register.................................... 279 14.3.17PM_CNTL_STS—Power Management Control/Status Register ...................... 280 14.3.18URE—USB Resume Enable ..................................................................... 281 14.3.19FD—Function Disable Register ................................................................ 281 14.4 Memory-Mapped I/O Registers .......................................................................... 282 14.4.1 GCAP—Global Capabilities Register.......................................................... 284 14.4.2 DEV_STS—Device Status Register........................................................... 285 14.4.3 FRAME—Frame Number Register............................................................. 285 14.4.4 INT_STS—Interrupt Status Register ........................................................ 286 10 Datasheet 14.5 14.4.5 INT_CTRL—Interrupt Control Register ..................................................... 287 14.4.6 DEV_CTRL—Device Control Register........................................................ 288 Device Endpoint Register Map ........................................................................... 290 14.5.1 EPnIB—Endpoint [0..3] Input Base Address Register ................................. 290 14.5.2 EPnIL—Endpoint [0,1] Input Length Register............................................ 290 14.5.3 EPnIPB—Endpoint [0..3] Input Position in Buffer Register .......................... 291 14.5.4 EPnIDL—Endpoint [0..3] Input Descriptor in List Register .......................... 291 14.5.5 EPnITQ—Endpoint [0..3] Input Transfer in Queue Register ......................... 291 14.5.6 EPnIMPS—Endpoint [0..3] Input Maximum Packet Size Register.................. 292 14.5.7 EPnIS—Endpoint [0..3] Input Status Register........................................... 292 14.5.8 EPnIC—Endpoint [0..3] Input Configuration Register ................................. 293 14.5.9 EPnOB—Endpoint [0..3] Output Base Address Register .............................. 294 14.5.10EPnOL—Endpoint [0..3] Output Length Register ....................................... 295 14.5.11EPnOPB—Endpoint [0..3] Output Position in Buffer Register ....................... 295 14.5.12EPnODL—Endpoint [0..3] Output Descriptor in List Register ....................... 295 14.5.13EPnOTQ—Endpoint [0..3] Output Transfer in Queue Register...................... 296 14.5.14EPnOMPS—Endpoint [0..3] Output Maximum Packet Size Register .............. 296 14.5.15EPnOS—Endpoint [0..3] Output Status Register........................................ 297 14.5.16EPnOC—Endpoint [0..3] Output Configuration Register .............................. 297 14.5.17EPnOSPS—Endpoint [0..3] Output Setup Package Status Register ............... 299 14.5.18EPnOSP—Endpoint [0..3] Output Setup Packet Register............................. 299 15 SDIO/MMC (D30:F0, F1, F2) .................................................................................. 301 15.1 SDIO Functional Description (D30:F0, F1, F2) ..................................................... 301 15.1.1 Protocol Overview ................................................................................ 301 15.1.2 Integrated Pull-Up Resistors .................................................................. 302 15.2 PCI Configuration Registers .............................................................................. 303 15.2.1 VID—Vendor Identification Register ........................................................ 303 15.2.2 DID—Device Identification Register......................................................... 304 15.2.3 PCICMD—PCI Command Register ........................................................... 304 15.2.4 PCISTS—PCI Status Register.................................................................. 305 15.2.5 CC—Class Codes Register ...................................................................... 305 15.2.6 HEADTYP—Header Type Register ............................................................ 306 15.2.7 MEM_BASE—Base Address Register ........................................................ 306 15.2.8 SS—Subsystem Identifier Register.......................................................... 306 15.2.9 INT_LN—Interrupt Line Register ............................................................. 307 15.2.10INT_PN—Interrupt Pin Register .............................................................. 307 15.2.11SLOTINF—Slot Information Register........................................................ 307 15.2.12BC—Buffer Control Register ................................................................... 308 15.2.13SDIOID—SDIO Identification Register ..................................................... 309 15.2.14CAPCNTL—SDIO Capability Control Register............................................. 309 15.2.15MANID—Manufacturer ID ...................................................................... 310 15.2.16FD—Function Disable Register ................................................................ 310 15.3 SDIO/MMC Memory-Mapped Registers ............................................................... 311 15.3.1 DMAADR—DMA Address Register ............................................................ 312 15.3.2 BLKSZ—Block Size Register ................................................................... 313 15.3.3 BLKCNT—Block Count Register ............................................................... 314 15.3.4 CMDARG—Command Argument Register ................................................. 314 15.3.5 XFRMODE—Transfer Mode Register ......................................................... 315 15.3.6 XFRMODE—Transfer Mode Register ......................................................... 316 15.3.7 CMD—Command Register ...................................................................... 317 15.3.8 RESP—Response Register ...................................................................... 318 15.3.9 BUFDATA—Buffer Data Register ............................................................. 318 15.3.10PSTATE—Present State Register ............................................................. 318 15.3.11HOSTCTL—Host Control Register ............................................................ 321 Datasheet 11 15.3.12PWRCTL—Power Control Register ............................................................ 321 15.3.13BLKGAPCTL—Block Gap Control Register .................................................. 322 15.3.14WAKECTL—Wake Control Register........................................................... 323 15.3.15CLKCTL—Clock Control Register .............................................................. 324 15.3.16TOCTL—Timeout Control Register............................................................ 325 15.3.17SWRST—Software Reset Register............................................................ 326 15.3.18NINTSTS—Normal Interrupt Status Register ............................................. 327 15.3.19ERINTSTS—Error Interrupt Status Register .............................................. 329 15.3.20NINTEN—Normal Interrupt Enable Register .............................................. 330 15.3.21ERINTEN—Error Interrupt Enable Register ................................................ 331 15.3.22NINTSIGEN—Normal Interrupt Signal Enable Register................................ 332 15.3.23ERINTSIGEN—Error Interrupt Signal Enable Register ................................. 333 15.3.24AC12ERRSTS—Automatic CMD12 Error Status Register .............................. 334 15.3.25CAP—Capabilities Register ..................................................................... 334 15.3.26MCCAP—Maximum Current Capabilities Register ....................................... 336 15.3.27SLTINTSTS—Slot Interrupt Status Register............................................... 336 15.3.28HCVER—Host Controller Version Register ................................................. 336 16 Parallel ATA (D31:F1) ............................................................................................ 339 16.1 Functional Overview ......................................................................................... 339 16.1.1 Programmed I/O Transfers..................................................................... 339 16.1.2 Multi-Word DMA Transfers ..................................................................... 342 16.1.3 Synchronous (Ultra) DMA Transfers......................................................... 344 16.2 PCI Configuration Registers............................................................................... 345 16.2.1 ID—Identifiers Register ......................................................................... 346 16.2.2 PCICMD—Command Register.................................................................. 346 16.2.3 PCISTS—Device Status Register ............................................................. 346 16.2.4 RID—Revision ID Register...................................................................... 347 16.2.5 CC—Class Code Register........................................................................ 347 16.2.6 CLS—Cache Line Size Register................................................................ 347 16.2.7 MLT—Master Latency Timer Register ....................................................... 347 16.2.8 BMBAR—Bus Master Base Address Register .............................................. 348 16.2.9 SS—Sub System Identifiers Register ....................................................... 348 16.2.10INTR—Interrupt Information Register ...................................................... 348 16.2.11MC—Miscellaneous Configuration Register ................................................ 349 16.2.12D0TIM/D1TIM—Device 0/1 Timing Register .............................................. 349 16.3 I/O Registers .................................................................................................. 351 16.3.1 PCMD—Primary Command Register ......................................................... 351 16.3.2 PSTS—Primary Status Register ............................................................... 352 16.3.3 PDTP—Primary Descriptor Table Pointer Register....................................... 352 LPC Interface (D31:F0) .......................................................................................... 353 17.1 Functional Overview ......................................................................................... 353 17.1.1 Memory Cycle Notes ............................................................................. 353 17.1.2 TPM 1.2 Support................................................................................... 353 17.1.3 FWH Cycle Notes .................................................................................. 353 17.1.4 LPC Output Clocks ................................................................................ 354 17.2 PCI Configuration Registers............................................................................... 354 17.2.1 VID—Vendor Identification Register......................................................... 355 17.2.2 DID—Device Identification Register ......................................................... 355 17.2.3 PCICMD—PCI COMMAND Register ........................................................... 355 17.2.4 PCISTS—PCI Status Register .................................................................. 355 17.2.5 RID—Revision Identification Register ....................................................... 356 17.2.6 CC—Class Codes Register ...................................................................... 356 17.2.7 HEADTYP—Header Type Register ............................................................ 356 17.2.8 SS—Sub System Identifiers Register ....................................................... 357 17 12 Datasheet 17.3 17.4 17.5 17.6 18 ACPI Device Configuration ................................................................................ 357 17.3.1 SMBASE—SMBus Base Address Register .................................................. 357 17.3.2 GPIOBASE—GPIO Base Address Register ................................................. 358 17.3.3 PM1BASE—PM1_BLK Base Address Register ............................................. 358 17.3.4 GPE0BASE—GPE0_BLK Base Address Register.......................................... 359 17.3.5 LPCS—LPC Clock Control Register ........................................................... 359 17.3.6 ACPI_CTL—ACPI Control Register ........................................................... 360 17.3.7 MC - Miscellaneous Control Register........................................................ 360 Interrupt Control ............................................................................................. 361 17.4.1 PIRQ[n]_ROUT—PIRQ[A,B,C,D] Routing Control Register ........................... 361 17.4.2 SIRQ_CTL—Serial IRQ Control Register ................................................... 361 FWH Configuration Registers............................................................................. 362 17.5.1 FWH_IDSEL—FWH ID Select Register...................................................... 362 17.5.2 BDE—BIOS Decode Enable .................................................................... 363 17.5.3 BIOS_CTL—BIOS Control Register .......................................................... 364 Root Complex Register Block Configuration ......................................................... 364 17.6.1 RCBA—Root Complex Base Address Register ............................................ 364 ACPI Functions ..................................................................................................... 365 18.1 8254 Timer .................................................................................................... 365 18.1.1 Overview ............................................................................................ 365 18.1.2 Timer Programming .............................................................................. 366 18.1.3 Reading From the Interval Timer ............................................................ 367 18.1.4 I/O Registers ....................................................................................... 368 18.2 High Precision Event Timer ............................................................................... 373 18.2.1 Functional Overview ............................................................................. 373 18.2.2 Registers............................................................................................. 374 18.3 8259 Interrupt Controller ................................................................................. 379 18.3.1 Overview ............................................................................................ 379 18.3.2 Interrupt Handling................................................................................ 380 18.3.3 Initialization Command Words (ICW) ...................................................... 381 18.3.4 Operation Command Words (OCW) ......................................................... 382 18.3.5 Modes of Operation .............................................................................. 382 18.3.6 End of Interrupt (EOI)........................................................................... 384 18.3.7 Masking Interrupts ............................................................................... 384 18.3.8 Steering of PCI Interrupts...................................................................... 385 18.3.9 I/O Registers ....................................................................................... 385 18.4 Advanced Peripheral Interrupt Controller (IOxAPIC) ............................................. 392 18.4.1 Functional Overview ............................................................................. 392 18.4.2 Unsupported Modes .............................................................................. 392 18.4.3 PCI Express Interrupts .......................................................................... 393 18.4.4 Routing of Internal Device Interrupts ...................................................... 394 18.4.5 Memory Registers ................................................................................ 394 18.5 Serial Interrupt ............................................................................................... 397 18.5.1 Overview ............................................................................................ 397 18.5.2 Start Frame......................................................................................... 397 18.5.3 Data Frames........................................................................................ 398 18.5.4 Stop Frame ......................................................................................... 398 18.5.5 Unsupported Serial Interrupts ................................................................ 398 18.5.6 Data Frame Format .............................................................................. 399 18.6 Real Time Clock .............................................................................................. 400 18.6.1 Overview ............................................................................................ 400 18.6.2 Update Cycles...................................................................................... 400 18.6.3 Interrupts ........................................................................................... 400 18.6.4 Lockable RAM Ranges ........................................................................... 400 Datasheet 13 18.7 18.8 18.6.5 Month and Year Alarms ......................................................................... 400 18.6.6 I/O Registers ....................................................................................... 401 18.6.7 Indexed Registers ................................................................................. 401 General Purpose I/O......................................................................................... 405 18.7.1 Functional Description ........................................................................... 405 18.7.2 I/O Registers ....................................................................................... 406 18.7.3 Resume Well GPIO I/O Registers............................................................. 410 SMBus Controller ............................................................................................. 411 18.8.1 Overview ............................................................................................. 411 18.8.2 Bus Arbitration ..................................................................................... 411 18.8.3 Bus Timings ......................................................................................... 411 18.8.4 SMI# .................................................................................................. 412 18.8.5 I/O Registers ....................................................................................... 412 19 20 Absolute Maximums and Operating Conditions....................................................... 417 19.1 Absolute Maximums ......................................................................................... 417 DC Characteristics .................................................................................................. 419 20.1 Signal Groups ................................................................................................. 419 20.2 Power and Current Characteristics...................................................................... 421 20.3 General DC Characteristics................................................................................ 423 Ballout and Package Information ........................................................................... 429 21.1 Package Diagrams ........................................................................................... 430 21.2 Ballout Definition and Signal Locations................................................................ 435 21 14 Datasheet Figures 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 System Block Diagram Example ................................................................................. 19 Signal Information Diagram....................................................................................... 28 System Address Ranges............................................................................................ 60 Intel® SCH USB Port Connections ............................................................................ 227 Communication Protocol Layers in the USB Client Controller ........................................ 270 Response Token Formats ........................................................................................ 302 Package Dimensions (Top View)............................................................................... 430 Package Dimensions (Bottom View).......................................................................... 431 Package Dimensions (Side View, Unmounted) ............................................................ 432 Package Dimensions (Solder Ball Detail “C”) .............................................................. 433 Package Dimensions (Underfill Detail “B”) ................................................................. 433 Package Dimensions (Solder Resist Opening) ............................................................. 434 Intel® SCH Ball Map (Top View, Columns 1–17)......................................................... 436 Intel® SCH Ball Map (Top View, Columns 18–33) ....................................................... 437 Intel® SCH Ball Map (Top View, Columns 34–50) ....................................................... 438 Datasheet 15 Tables 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 PCI Devices and Functions .........................................................................................23 Intel® SCH Buffer Types ...........................................................................................27 Functional Strap Definitions .......................................................................................46 Reset State Definitions ..............................................................................................47 Intel® SCH Reset State.............................................................................................48 Intel® SCH Integrated Termination Resistors ...............................................................53 Intel® SCH Clock Domains ........................................................................................55 Register Access Types and Definitions .........................................................................57 PCI Devices and Functions .........................................................................................59 Intel® SCH Memory Map ...........................................................................................60 Programmable Attribute Map......................................................................................62 Fixed I/O Decode Ranges ..........................................................................................65 Variable I/O Decode Ranges.......................................................................................66 Root Complex Configuration Registers .........................................................................71 Interrupt Pin Field Bit Decoding ..................................................................................74 Interrupt Pin Register Map .........................................................................................74 Interrupt Route Field Bit Decoding ..............................................................................77 Interrupt Route Register Map .....................................................................................77 Host Bridge Configuration Register Address Map ...........................................................82 DRAM Attributes.......................................................................................................90 DRAM Address Decoder .............................................................................................91 Hardware-Accelerated Video Codec Support .................................................................98 Pixel Format for the Luma (Y) Plane .......................................................................... 100 Pixel Formats for the Cr/Cb (V/U) Plane..................................................................... 100 Graphics and Video PCI Configuration Register Address Map......................................... 104 Intel HD Audio PCI Configuration Registers ................................................................ 122 Intel HD Audio Memory Mapped Configuration Registers .............................................. 141 MSI vs. PCI IRQ Actions .......................................................................................... 173 PCI Express* Register Address Map .......................................................................... 175 Bits Maintained in Low Power States ......................................................................... 204 UHCI Controller PCI Register Address Map (D29:F0/F1/F2) .......................................... 205 USB I/O Registers .................................................................................................. 211 Run/Stop, Debug Bit Interaction SWDBG (Bit 5), Run/Stop (Bit 0) Operation .................. 214 UHCI vs. EHCI ....................................................................................................... 223 USB EHCI PCI Register Address Map ......................................................................... 230 EHCI Capability Registers ........................................................................................ 247 Enhanced Host Controller Operational Register Address Map......................................... 250 Debug Port Register Address Map ............................................................................. 263 USB Client Controller PCI Register Address Map (D26:F0) ............................................ 273 USB Client I/O Registers.......................................................................................... 282 Determining the Response Type ............................................................................... 301 Response Register Mapping ..................................................................................... 302 SDIO/MMC PCI Register Address Map........................................................................ 303 SDIO/MMC Memory-Mapped Register Address Map ..................................................... 311 Supported PATA Standards and Modes ...................................................................... 339 ATA Command Block Registers (PATA_DCS1#)........................................................... 340 ATA Control Block Registers (PATA_DCS3#)............................................................... 340 PRD Base Address .................................................................................................. 342 PRD Descriptor Information ..................................................................................... 342 Interrupt/Active Bit Interaction................................................................................. 343 PATA Register Address Map ..................................................................................... 345 PATA Memory-Mapped I/O Register Address Map ........................................................ 351 LPC Interface PCI Register Address Map .................................................................... 354 16 Datasheet 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 Counter Operating Modes........................................................................................ 366 I/O Register Map.................................................................................................... 368 Legacy Timer Interrupt Mapping............................................................................... 374 Master 8259 Input Mapping ..................................................................................... 379 Slave 8259 Input Mapping....................................................................................... 379 Content of Interrupt Vector Byte .............................................................................. 380 8259 I/O Register Mapping...................................................................................... 385 Interrupt Delivery Address Value.............................................................................. 393 Interrupt Delivery Data Value .................................................................................. 393 APIC Memory-Mapped Register Locations .................................................................. 394 IDX Register Values................................................................................................ 394 Serial Interrupt Mode Selection ................................................................................ 398 Data Frame Format ................................................................................................ 399 RTC I/O Registers .................................................................................................. 401 RTC (Standard) RAM Bank....................................................................................... 401 GPIO I/O Register Map ........................................................................................... 406 SMBus Timings ...................................................................................................... 411 SMBus I/O Register Map ......................................................................................... 412 Intel® SCH Absolute Maximum Ratings..................................................................... 417 Intel® SCH Maximum Power Consumption ................................................................ 418 Intel® SCH Buffer Types......................................................................................... 419 Intel® SCH Signal Group Definitions......................................................................... 420 Thermal Design Power ............................................................................................ 421 DC Current Characteristics ...................................................................................... 421 Operating Condition Power Supply and Reference DC Characteristics............................. 423 Active Signal DC Characteristics ............................................................................... 424 PLL Noise Rejection Specifications ............................................................................ 427 Intel® SCH Pin List Arranged by Signal Name ............................................................ 439 Datasheet 17 Revision History Revision Number -001 • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • Initial Release Description Revision Date April 2008 -002 Updated Reference Documents Chapter 1.3.2 – Added support of 2GB of memory and of 2048Mb devices Chapter 2.1 – Corrected CMOS/AGTL+ assignments Chapter 2.5 – Added that PCIe compensation pins also act for LVDS and SDVO interfaces Chapter 2.10 – Clarified that SMB_ALERT# does not wake the system or generate an interrupt Chapter 2.11 – Clarified that RTCRST# does not clear CMOS Chapter 2.14 – Clarified that the Intel® SCH will not de-assert CLKREQ# Chapter 3.1 – Corrected reset states for CLKREQ# (VOX-known), RSMRST# (VLI), and LVDS (VOH) Chapter 5.3 – Added support of up to 2GB of memory Chapter 8.2 – Added 2048 Mbit device support Chapter 9.3.2 – Removed assertion that display PLLs can be disabled March 2009 Chapter 9.4.2 – Updated Device ID Register Chapter 11.1.4 – Added section asserting that No Snoop is not supported Chapter 11.2.15 – Corrected default value Chapter 12.2.16 – Corrected Bit[1:0] definitions Chapter 15.2.8 – Removed CRID description - wrong place Chapter 15.3.10 – Corrected Bit 10 definition Chapter 17.1 – Clarified that the Intel® SCH does not support LPC DMA Chapter 17.5.1 – Corrected Bit[15:12] definitions Chapter 18.7.2 – Corrected CGIO default value Chapter 20.2 – Added IVCC33RTC, IVCC5REF and IVCC5REFSUS and corrected IVCCPCIEBG parameter description 1.3.2 - Added support of x8 memory device width 2.17 - Updated functional straps configuration for 266 MHz Gfx in Table 3 5.4.1 - Changed PATA port disable to "NO" in Table 12 8.2 - Add x8-width devices to Tables 20 and 21 9.2 - Add 1080p @ 24fps to the codecs supporting 1080i in Table 22 9.3.2 - Corrected bottom of pixel clocks range 9.4.34 - Changed Bits [1:0] for 266 MHz Gfx support 10.3.7 - Removed WAKEEN register 11.2.27 - Disclosed Bit 8 (CLKREQ# Enabled) with instruction 12.1.4 - Removed support of USB Legacy Keyboard 12.2.16 - Clarified USB_RES is in the Resume well 13.1.5 - Removed support of USB Legacy Keyboard 13.3.1.3 - Clarified HCSPARAMS is in the Suspend well 16.2 - Corrected offsets for D0TIM and D1TIM in Table 52 18 - Corrected Chapter title 18.6.7.2 - Clarified that RTC_REGB is in the Resume well and reset by RSMRST# 18.7.2 - Corrected RGIO default value in Table 70 18.7.3.1 - Corrected RGEN default value 20.1 - Moved TDO to CMOS Open Drain in Table 76 20.2 - Adjusted TDP range to include US15X in Table 77 20.2 - Added second spec to ISUS_VCCSM, corrected IVCC33RTC, and added US15X core current in Table 78 20.3 - Corrected CMOS and CMOS_OD VIL(max) and VIH(min), and added VIL,LVM and VIH,LVM to CMOS_HDA in Table 80 -003 May 2010 §§ 18 Datasheet Introduction 1 Introduction The Intel® System Controller Hub (Intel® SCH) is a component of Intel® Atom™ processor technology. The Intel® SCH combines functionality normally found in separate GMCH (integrated graphics, processor interface, memory controller) and ICH (on-board and end-user I/O expansion) components into a single component consuming less than 2.3 W of thermal design power. The features of the Intel® SCH provide functionality necessary for traditional operating systems (such as Microsoft Windows Vista* or Linux*) as well as functionality normally associated with handheld devices (such as SDIO/MMC and USB client). The Intel® SCH was designed to be used with the Intel® Atom™ processor Z5xx series processor. Figure 1 shows an example system block diagram. Section 1.3 provides an overview of the major features of the Intel® SCH. This document is the datasheet for the Intel System Controller Hub component. The document content includes signal description, system memory map, register descriptions, a description of the Intel® SCH interfaces and major functional units, electrical characteristics, ballout definitions, and package characteristics. Figure 1. System Block Diagram Example Processor 400/533 MHz Internal Display External Display LVDS Integrated Graphics and Video 400/533 MHz DDR2 SDRAM SDVO Intel® High Definition Audio USB 8 host ports, or 7 hosts + 1 client PCI Express* x1 2 ports GPIO System Management Controller Clock Generation Intel® SCH SMBus 1.0 System Devices FWH Legacy I/O SDIO/MMC 3 ports P-ATA HDD LPC Interface Datasheet 19 Introduction 1.1 Terminology Term ACPI ADD2 Core CRT DBI DDR2 DVI Description Advanced Control Programmable Interface. Advanced Digital Display 2. An interface specification that accepts serial DVO inputs and translates them into different display outputs such as DVO, TVOUT, and LVDS. The internal base logic in the Intel® SCH. Cathode Ray Tube Dynamic Bus Inversion A second generation Double Data Rate SDRAM memory technology. Digital Video Interface. DVI is a specification that defines the connector and interface for digital displays. System Management Controller or External Controller. Refers to a separate system management controller that handles reset sequences, sleep state transitions, and other system management tasks. Enhanced Host Controller Interface. A controller interface that, on the Intel® SCH, supports up to eight USB 2.0 high-speed root ports, two of which are to be used internally only. Front Side Bus. FSB is synonymous with host bus or processor bus. Firmware Hub Full reset is when PWROK is deasserted and all system rails except VCCRTC are powered down. Warm reset is when both RESET# and PWROK are asserted. High Definition Multimedia Interface. HDMI supports standard, enhanced, or high-definition video, plus multi-channel digital audio on a single cable. HDMI transmits all ATSC HDTV standards and supports 8-channel digital audio, with bandwidth to spare for future requirements and enhancements (additional details available through: http://www.hdmi.org/). This term is used synonymously with processor. Internal Graphics Device. Generic name for a graphics accelerator that performs decoding of digital video signals. Intel® Graphics Media Accelerator 500. A hardware accelerator for 2D and 3D graphics. An interrupt request signal where “x” stands for interrupts A, B, C, and D. Liquid Crystal Display. Low Voltage Differential Signaling. LVDS is a high speed, low power data transmission standard used for display connections to LCD panels. Message Signaled Interrupt. MSI is a transaction initiated outside the host, conveying interrupt information to the receiving agent through the same path that normally carries read and write commands. PCI Express* is a high-speed serial interface. The PCI Express configuration is software compatible with the existing PCI specifications. Intel® Atom™ processor Z5xx series SMC EHCI FSB FWH Cold Reset Warm Reset HDMI Host Intel Graphics Media Adapter Intel® GMA 500 INTx LCD LVDS MSI PCI Express* Processor 20 Datasheet Introduction Term Rank Description A unit of DRAM corresponding to number of SDRAM devices in parallel such that a full 64-bit data bus is formed. Intel® System Controller Hub: a single-chip component that contains the processor interface, DDR2 SDRAM controller, Intel Graphics Media Accelerator 500 (Intel® GMA 500), various display interfaces, USB, SDIO, PCI Express*, PATA, LPC, and other I/O capabilities. System Control Interrupt. SCI is used in the ACPI protocol. Serial Digital Video Out (SDVO). SDVO is a digital display channel that serially transmits digital display data to an external SDVO device. The SDVO device accepts this serialized format and then translates the data into the appropriate display format (i.e., TMDS, LVDS, TV-Out). Third-party codec that use SDVO as an input may have a variety of output formats, including DVI, LVDS, HDMI, TV-Out, etc. System Error. SERR is an indication that an unrecoverable error has occurred on an I/O bus. System Management Interrupt. SMI is used to indicate any of several system conditions (such as thermal sensor events, throttling activated, access to System Management RAM, chassis open, or other system state-related activity). Transition Minimized Differential Signaling. TMDS is a signaling interface from Silicon Image that is used in DVI and HDMI. TMDS is based on low-voltage differential signaling and converts an 8-bit signal into a 10-bit transitionminimized and DC-balanced signal (equal number of 0’s and 1’s) in order to reduce EMI generation and improve reliability. Top of Low Memory. The highest address below 4 GB where a processorinitiated memory read or write transaction will create a corresponding cycle to DRAM on the memory interface. Universal Host Controller Interface. A controller interface that supports two USB 1.1 ports. The Intel® SCH contains three UHCI controllers. Unified Memory Architecture. UMA describes an Intel Graphics Media Adapter using system memory for its frame buffers. Voltage Controlled Oscillator Intel® SCH SCI SDVO SDVO Device SERR SMI TMDS TOLM UHCI UMA VCO Datasheet 21 Introduction 1.2 Reference Documents Document Intel® Atom™ Processor Z5xx Series Datasheet Intel® System Controller Hub (Intel® SCH) Specification Update PCI Express Base Specification, Revision 1.0a Mobile Graphics Low-Power Addendum to the PCI Express® Base Specification Revision 1.0 Low Pin Count Interface Specification, Revision 1.1 (LPC) System Management Bus Specification, Version 1.0 (SMBus) PCI Local Bus Specification, Revision 2.3 (PCI) PCI Power Management Specification, Revision 1.1 Advanced Configuration and Power Interface, Version 3.0 (ACPI) Enhanced Host Controller Interface Specification for Universal Serial Bus, Revision 1.0 (EHCI) Universal Serial Bus Specification (USB), Revision 2.0 AT Attachment - 6 with Packet Interface (ATA/ATAPI 6) IA-PC HPET (High Precision Event Timers) Specification, Revision 1.0 Location http://www.intel.com/products/atom/ techdocs.htm http://www.intel.com/products/atom/ techdocs.htm http://www.pcisig.com/specifications/ pciexpress/ http://www.pcisig.com/specifications/ pciexpress/ http://developer.intel.com/design/ chipsets/industry/lpc.htm http://www.smbus.org/specs/ http://www.pcisig.com/specifications http://www.pcisig.com/specifications http://www.acpi.info/spec.htm http://developer.intel.com/ technology/usb/ehcispec.htm http://www.usb.org/developers/docs http://T13.org http://www.intel.com/ hardwaredesign/hpetspec_1.pdf 22 Datasheet Introduction 1.3 Overview The Intel® SCH is designed for use with Intel Atom processor Z5xx series-based platforms. The Intel® SCH connects to the processor as shown in Figure 1. The Intel® SCH incorporates a variety of PCI functions as listed in Table 1. Table 1. PCI Devices and Functions Device 0 2 26 27 28 Function 0 0 0 0 0 1 0 29 1 2 7 0 30 1 2 31 0 1 Host Bridge Integrated Graphics and Video Device USB Client Intel® High Definition Audio (Intel® HD Audio) Controller PCI Express Port 1 PCI Express Port 2 USB Classic UHCI Controller 1 USB Classic UHCI Controller 2 USB Classic UHCI Controller 3 USB2 EHCI Controller SDIO/MMC Port 0 SDIO/MMC Port 1 SDIO/MMC Port 2 LPC Interface PATA Controller Function Description NOTE: All devices are on PCI Bus 0. 1.3.1 Processor Interface The Intel® SCH supports the Intel Atom processor Z5xx series subset of the Enhanced Mode Scalable Bus Protocol, and implements a low-power CMOS bus. The Intel® SCH supports a single bus agent with FSB data rates of 400 MT/s and 533 MT/s. The Intel® SCH features include: • Intel Atom processor Z5xx series support • CMOS frontside bus signaling for reduced power • 400-MT/s or 533-MT/s data rate operation • 64-Byte cache-line size • 64-bit data bus, 32-bit address bus • Supports one physical processor attachment with up to two logical processors • 16 deep IOQ • 1 deep defer queue • FSB interrupt delivery • Power-saving sideband control (DPWR#) for enabling/disabling processor data input sense amplifiers • 1.05-V VTT operation Datasheet 23 Introduction 1.3.2 System Memory Controller The Intel® SCH integrates a DDR2 memory controller with a single 64-bit wide interface. Only DDR2 memory is supported. The memory controller interface is fully configurable through a set of control registers. Features of the Intel® SCH memory controller include: • • • • • • • • • • • • Supports 1.8-V DDR2 SDRAM, up to 2 ranks Supports 1.5-V DDR2 SDRAM, 1 rank only Supports 400 MT/s and 533 MT/s data rates Single 64-bit wide channel Single command per clock (1-N) operation Support for a maximum of 2GB of DRAM Device density support for 512Mb, 1024Mb, and 2048Mb devices Device widths of x8 and x16 Aggressive power management to reduce idle power consumption Page closing policies to proactively close pages after idle periods No on-die termination (ODT) support Supports non-terminated and board-terminated bus topologies 1.3.3 USB Host The Intel® SCH contains three Universal Host Controller Interface (UHCI) USB 1.1 controllers and an Enhanced Host Controller Interface (EHCI) USB 2.0 controller. Portrouting logic on the Intel® SCH determines which USB controller is used to operate a given USB port. A total of eight USB ports are supported. All eight of these ports are capable of highspeed data transfers up to 480 MB/s, and six of the ports are also capable of full-speed and low-speed signaling. The two high-speed-only USB ports may only be used internally within the system platform. 1.3.4 USB Client The Intel® SCH supports USB client functionality on Port 2 of the USB interface. This permits the platform to attach to a separate USB host as a peripheral mass storage volume or RNDIS device. 1.3.5 PCI Express* The Intel® SCH has two PCI Express root ports supporting the PCI Express Base Specification, Revision 1.0a. PCI Express root Ports 1–2 can be statically configured as two x1 lanes. Each root port supports 2.5 GB/s bandwidth in each direction. An external graphics device can be used with one of the x1 PCI Express lanes/ports. 1.3.6 LPC Interface The Intel® SCH implements an LPC interface as described in the LPC 1.1 Specification. The LPC bridge function of the Intel® SCH resides in PCI Device 31:Function 0. The LPC interface has three PCI-based clock outputs that may be provided to different I/O devices, such as Firmware Hub flash memory or a legacy I/O chip. The LPC_CLKOUT signals run at one-fourth of the H_CLKINP/N frequency and support a total of six loads (two loads per clock pair) with no external buffering. 24 Datasheet Introduction 1.3.7 Parallel ATA (PATA) The PATA Host Controller supports three types of data transfers: • Programmed I/O (PIO): Processor is in control of the data transfer. • Multi-word DMA (ATA-5): DMA protocol that resembles the DMA on the ISA bus. Allows transfer rates of up to 66 MB/s. • Ultra DMA: Synchronous DMA protocol that redefines signals on the PATA cable to allow both host and target throttling of data and transfer rates up to 100 MB/s. Ultra DMA 100/66/33 are supported. 1.3.8 Intel® Graphics Media Accelerator 500 (Intel® GMA 500) The Intel® SCH provides integrated graphics (2D and 3D) and high-definition video decode capabilities with minimal power consumption. 1.3.8.1 Graphics The highly compact Intel Graphics Media Adapter contains an advanced shader architecture (model 3.0+) that performs pixel shading and vertex shading within a single hardware accelerator. The processing of pixels is deferred until they are determined to be visible, which minimizes access to memory and improves render performance. 1.3.8.2 Video The Intel® SCH supports full hardware acceleration of video decode standards, such as H.264, MPEG2, MPEG4, VC1, and WMV9. 1.3.9 Display Interfaces The Intel Graphics Media Adapter includes LVDS and Serial DVO display ports permitting simultaneous independent operation of two displays, depending on Intel® SCH component. If external graphics is used instead of the internal graphics device, LVDS and SDVO ports will not function. 1.3.9.1 LVDS The Intel® SCH supports a Low-Voltage Differential Signaling interface that allows the Intel Graphics Media Adapter to communicate directly to an on-board flat-panel display. The LVDS interface supports pixel color depths of 18 and 24 bits. 1.3.9.2 Serial DVO (SDVO) Display The Intel® SCH has a digital display channel capable of driving SDVO adapters that provide interfaces to a variety of external display technologies (e.g., DVI, TV-Out, analog CRT). SDVO lane reversal is not supported. Datasheet 25 Introduction 1.3.10 Secure Digital I/O (SDIO)/Multimedia Card (MMC) Controller The Intel® SCH contains three SDIO/MMC expansion ports used to communicate with a variety of internal or external SDIO and MMC devices. Each port supports SDIO Revision 1.1 and MMC Revision 4.1 and is backward-compatible with previous interface specifications. 1.3.11 SMBus Host Controller The Intel® SCH contains an SMBus host interface that allows the processor to communicate with SMBus slaves. This interface is compatible with most I2C devices. The Intel® SCH SMBus host controller provides a mechanism for the processor to initiate communications with SMBus peripherals (slaves). See the System Management Bus (SMBus) Specification, Version 1.0. 1.3.12 Intel® High Definition Audio (Intel® HD Audio) Controller The Intel® High Definition Audio Specification defines a digital interface that can be used to attach different types of codecs (such as audio and modem codecs). The Intel HD Audio controller supports up to four audio streams, two in and two out. With the support of multi-channel audio stream, 32-bit sample depth, and sample rate up to 192 kHz, the Intel HD Audio controller provides audio quality that can deliver consumer electronic (CE) levels of audio experience. On the input side, the Intel® SCH adds support for an array of microphones. The Intel HD Audio controller uses a set of DMA engines to effectively manage the link bandwidth and support simultaneous independent streams on the link. The capability enables new exciting usage models with Intel HD Audio (e.g., listening to music while playing a multi-player game on the Internet.) The Intel HD Audio controller also supports isochronous data transfers allowing glitch-free audio to the system. 1.3.13 General Purpose I/O (GPIO) The Intel® SCH contains a total of 14 GPIO pins. Ten GPIOs are powered by the core power rail and are turned off during sleep modes (S3 and higher). The remaining four GPIOs are powered by the Intel® SCH suspend well power supply. These GPIOs remain active during S3. The suspend well GPIOs can be used to wake the system from the Suspend-to-RAM state. The GPIOs are not 5-V tolerant. 1.3.14 Power Management The Intel® SCH contains a mechanism to allow flexible configuration of various device maintenance routines as well as power management functions including enhanced clock control and low-power state transitions (e.g., Suspend-to-RAM and Suspend-toDisk). A hardware-based thermal management circuit permits software-independent entrance to low-power states. The Intel® SCH contains full support for the Advanced Configuration and Power Interface (ACPI) Specification, Revision 3.0. §§ 26 Datasheet Signal Description 2 Signal Description This chapter provides a detailed description of the Intel® SCH signals and boot strap definitions. The signals are arranged in functional groups according to their associated interface (see Figure 2). Each signal description table has the following headings: • Signal: The name of the signal/pin • Type: the buffer direction and type. Buffer direction can be either input, output, or I/O (bidirectional). See Table 2 for definitions of the different buffer types. • Power Well: the power plane used to supply power to that signal. Choices are Core, DDR, Suspend, and RTC. • Description: A brief explanation of the signal’s function Table 2. Intel® SCH Buffer Types Buffer Type AGTL+ CMOS, CMOS_OD CMOS_HDA CMOS1.8 CMOS3.3, CMOS3.3_OD CMOS3.3-5 USB PCIE Buffer Description Assisted Gunning Transceiver Logic Plus. CMOS Open Drain interface signals that require termination. Refer to the AGTL+ I/O Specification for complete details. 1.05-V CMOS buffer, or CMOS Open Drain CMOS buffers for Intel® HD Audio interface that can be configured for either 1.5-V or 3.3-V operation. 1.8-V CMOS buffer. These buffers can be configured as Stub Series Termination Logic (SSTL1.8) 3.3-V CMOS buffer, or CMOS 3.3-V open drain 3.3-V CMOS buffer, 5-V tolerant Compliant with USB 1.1 and USB 2.0 specifications. PCI Express interface signals. These signals are compatible with PCI Express 1.0a Signaling Environment AC Specifications and are AC coupled. The buffers are not 3.3-V tolerant. Serial-DVO differential buffers. These signals are AC coupled. These buffers are not 3.3-V tolerant. Low Voltage Differential Signal output buffers. These pure outputs should drive across a 100-Ω resistor at the receiver when driving. Analog reference or output maybe used as a threshold voltage or for buffer compensation. SDVO LVDS A Datasheet 27 Signal Description Figure 2. Signal Information Diagram LA_DATAP[3:0], LA_DATAN[3:0] LA_CLKP LA_CLKN H_A[31:3]# H_D[63:0]# H_ADS# H_BNR# H_BPRI# H_DBSY# H_DEFER# H_DRDY# H_DPWR# H_HIT# H_HITM# H_LOCK# H_REQ[4:0]# H_TRDY# H_RS[2:0]# H_CPURST# H_BREQ0# H_DINV[3:0]# H_ADSTB[1:0]# H_DSTBP[3:0]#, H_DSTBN[3:0]# H_THRMTRIP# H_CPUSLP# H_PBE# H_INIT# H_INTR H_NMI H_SMI# H_STPCLK# H_CLKINP, H_CLKINN H_RCOMPO H_GVREF H_CGVREF H_SWING H_DPSLP# H_CPUPWRGD H_CPUPWRGD, H_DPRSTP# SM_DQ[63:0] SM_DQS[7:0] SM_MA[14:0] SM_BS[2:0] SM_RAS# SM_CAS# SM_WE# SM_RCVENIN# SM_RCVENOUT# SM_CK[1:0] SM_CK[1:0]# SM_CS[1:0]# SM_CKE[1:0] SM_RCOMPO SM_VREF PCIE_PETp[2:1], PCIE_PETn[2:1] PCIE_PERp[2:1], PCIE_PERn[2:1] PCIE_CLKINP, PCIE_CLKINN PCIE_ICOMPO, PCIE_ICOMPI USB_DP[7:0]/USB_DN[7:0] USB_OC[7:0]# USB_RBIASP USB_RBIASN USB_CLK48 SD[2..0]_PWR#, SD{1,0}_DATA[3..0], SD2_DATA[7..0] Display (LVDS) Interface Intel SDVO Device Interface ® SDVOB_GREEN+, SDVOB_GREENSDVOB_BLUE+, SDVOB_BLUESDVOB_RED+, SDVOB_REDSDVOB_CLK+, SDVOB_CLKSDVOB_INT+, SDVOB_INTSDVO_TVCLKIN+, SDVO_TVCLKINSDVO_STALL+, SDVO_STALLSDVO_CTRLCLK, SDVO_CTRLDATA L_DDC_CLK, L_DDC_DATA L_CTLA_CLK / L_CTLB_DATA L_VDDEN L_BKLTEN, L_BKLTCTL HDA_RST# HDA_SYNC HDA_CLK HDA_SDO HDA_SDI[1:0] HDA_DOCKEN# HDA_DOCKRST# THRM# RESET# PWROK RSMRST# RTCRST# SUSCLK WAKE# STPCPU# DPRSLPVR SLPMODE RSTWARN SLPRDY# RSTRDY# GPE# PATA_DCS1# PATA_DCS3# PATA_DA[2:0] PATA_DD[15:0] PATA_DDREQ PATA_DDACK# PATA_DIOR# PATA_DIOW# PATA_IORDY PATA_IDEIRQ SMB_DATA SMB_CLK SMB_ALERT# RTC_X1 RTC_X2 DA_REFCLKINP, DA_REFCLKINN DB_REFCLKINPSSC, DB_REFCLKINNSSC BSEL2 CFG[1:0] CLK14 INTVRMEN SPKR SMI#, EXTTS0 CLKREQ# GPIO[9:0] GPIOSUS[3:0] TCK TMS TDI TDO TRST# Processor Front Side Bus Interface Display Data Channel Intel HD Audio Interface ® Power Mangm’t Interface Type your search here System Memory Interface Parallel ATA (PATA) Interface PCI Express* Interface SMBus Interface RTC Interface USB Interface Misc. Signals and Clocks SD/MMC Interface GPIO LPC Interface SD[2:0]_CMD, SD[2:0]_CD# SD[2:0]_CLK SD[2:0]_WP SD[2:0]_PWR# SD[2:0]_LED LPC_AD[3:0] LPC_FRAME# LPC_SERIRQ LPC_CLKOUT[2:0] LPC_CLKRUN# JTAG Interface 28 Datasheet Signal Description 2.1 Host Interface Signals Signal H_ADS# Type I/O AGTL+ I/O CMOS Power Well Core Description Address Strobe: The host bus owner asserts H_ADS# to indicate the first of two cycles of a request phase. Block Next Request: This signal is used to block the current request bus owner from issuing a new request. This signal is used to dynamically control the processor bus pipeline depth. Priority Agent Bus Request: The Intel® SCH is the only Priority Agent on the processor bus. It asserts this signal to obtain the ownership of the address bus. This signal has priority over symmetric bus requests and will cause the current symmetric owner to stop issuing new transactions unless the H_LOCK# signal was asserted. Bus Request 0#: The Intel® SCH pulls the processor bus H_BREQ0# signal low during H_CPURST#. The signal is sampled by the processor on the active-to-inactive transition of H_CPURST#. H_BREQ0# should be tri-stated after the hold time requirement has been satisfied. CPU Reset: H_CPURST# allows the processor to begin execution in a known state. The Intel® SCH asserts H_CPURST# and deasserts H_CPUPWRGD upon exit from its reset. H_CPURST# is deasserted 2–10 ms after H_CPUPWRGD is asserted. Data Bus Busy: This signal is used by the data bus owner to hold the data bus for transfers requiring more than one cycle. Defer: The Intel® SCH will generate a deferred response as defined by the rules of the dynamic defer policy. The Intel® SCH will also use the H_DEFER# signal to indicate a processor retry response. Dynamic Bus Inversion: These signals are driven along with the H_D[63:0]# signals. They indicate if the associated data bus signals are inverted or not. H_DINV[3:0]# are asserted such that the number of data bits driven electrically low (low voltage) within the corresponding 16-bit group never exceeds 8. H_DINV[x]# H_DINV3# H_DINV2# H_DINV1# H_DINV0# Data Bits H_D[63:48] H_D[47:32] H_D[31:16] H_D[15:0] H_BNR# Core H_BPRI# O AGTL+ Core H_BREQ0# I/O CMOS Core H_CPURST# O AGTL+ Core H_DBSY# I/O AGTL+ Core H_DEFER# I/O AGTL+ Core H_DINV[3:0]# I/O CMOS Core H_DPWR# O AGTL+ Core Data Power: Used by Intel® SCH to indicate that a data return cycle is pending within 2 host clock cycles or more. The processor uses this signal during a read-cycle to activate the data input buffers in preparation for H_DRDY# and the related data. Data Ready: This signal is asserted for each cycle that data is transferred. H_DRDY# I/O AGTL+ Core Datasheet 29 Signal Description Signal Type Power Well Description Host Address Bus: H_A[31:3]# connect to the processor address bus. During processor cycles, H_A[31:3]# are inputs. Note that the address bus is inverted on the processor bus. Host Address Strobe: The source synchronous strobes are used to transfer H_A[31:3]# and H_REQ[4:0]# at the 2x transfer rate. H_ADSTB0# maps to H_A[16:3]#, H_REQ[4:0]# H_ADSTB1# maps to H_A[31:17]# Host Data: These signals are connected to the processor data bus. Note that the data signals are inverted on the processor bus. Host Data Strobes: The source synchronous strobes used to transfer H_D[63:0]# and H_DINV[3:0]# at the 4x transfer rate. H_A[31:3]# I/O CMOS Core H_ADSTB[1:0]# I/O AGTL+ Core H_D[63:0]# I/O CMOS Core H_DSTBP[3:0]# H_DSTBN[3:0]# I/O AGTL+ Core Strobe H_DSTB[P/N]3# H_DSTB[P/N]2# H_DSTB[P/N]1# H_DSTB[P/N]0# Data Bits H_D[63:48]#, H_DINV3# H_D[47:32]#, H_DINV2# H_D[31:16]#, H_DINV1# H_D[15:0]#, H_DINV0# H_HIT# I/O CMOS Core Hit: This signal indicates that a caching agent holds an unmodified version of the requested line. Also, driven in conjunction with H_HITM# by the target to extend the snoop window. Hit Modified: This signal indicates that a caching agent holds a modified version of the requested line and that this agent assumes responsibility for providing the line. This signal is also driven in conjunction with H_HIT# to extend the snoop window. Host Lock: All processor bus cycles sampled with the assertion of H_LOCK# and H_ADS#, until the negation of H_LOCK# must be atomic. Host Request Command: These signals are asserted during both clocks of the request phase. In the first clock, the signals define the transaction type to a level of detail that is sufficient to begin a snoop request. In the second clock, the signals carry additional information to define the complete transaction type. The transactions supported by the Intel® SCH are defined in the Host Interface functional description section of this document. Host Target Ready: This signal indicates that the target of the processor transaction is able to enter the data transfer phase. H_HITM# I/O CMOS Core H_LOCK# I CMOS Core H_REQ[4:0]# I/O CMOS Core H_TRDY# O AGTL+ Core 30 Datasheet Signal Description Signal Type Power Well Description Response Signals: These signals indicate the type of response as shown below: 000 001 010 011 100 101 110 111 = = = = = = = = Idle State Retry Response Deferred Response Reserved (not driven by Intel® SCH) Hard Failure (not driven by Intel® SCH) No data response Implicit Writeback Normal data response H_RS[2:0]# O AGTL+ Core H_THRMTRIP# I CMOS Core Thermal Trip: When low, this signal indicates that a thermal trip from the processor occurred, and corrective action will be taken. CPU SLP: This signal puts the processor into a state that saves power vs. the Stop-Grant state. However, during that time, no snoops occur. It will go active for all other sleep states. Pending Break Event: This signal can be used in some states for notification by the processor of pending interrupt events. Initialization: The Intel® SCH can be configured to support a special meaning to the processor during H_CPURST# deassertion. H_INIT# functionality for resetting the processor is not supported. This signal requires a board-level pull-up. Processor Interrupt: H_INTR is asserted by the Intel® SCH to signal the processor that an interrupt request is pending and needs to be serviced. It is an asynchronous output normally driven low. Non-Maskable Interrupt: The H_NMI is used to force a non-maskable interrupt to the processor. The processor detects the rising edge of H_NMI. A non-maskable interrupt is reset by setting the corresponding NMI source enable/ disable bit in the NMI Status and Control Register. System Management Interrupt: The H_SMI# is an output synchronous to LPC clock that is asserted by the Intel® SCH in response to one of many enabled hardware or software events. Stop Clock Request: H_STPCLK# is an active-low output synchronous to LPC clock that is asserted by Intel® SCH in response to one of many hardware or software events. When the processor samples H_STPCLK# asserted, it responds by stopping its internal clock. H_CPUSLP# O CMOS Core H_PBE# I CMOS Core H_INIT# O CMOS _OD Core H_INTR O CMOS Core H_NMI O CMOS Core H_SMI# O CMOS Core H_STPCLK# O CMOS Core Datasheet 31 Signal Description Signal Type Power Well Description Deep Sleep: This signal is asserted by the Intel® SCH to the processor. When the signal is low, the processor enters the Deep Sleep state by gating off the processor Core clock inside the processor. When the signal is high (default), the processor is not in the Deep Sleep state. This signal and the H_STPCLK# pin shut the clock in the processor and at the clock generator, respectively. The H_DPSLP# assertion time is wider than the H_STPCLK# assertion time in order for the processor to receive an active clock input whenever H_DPSLP# is deasserted. Deeper Sleep: When asserted on the platform, this signal causes the processor to transition from the Deep Sleep State to the Deeper Sleep state. To return to the deep sleep state, H_DPRSTP# must be deasserted. CPU Power Good: This signal is used for Enhanced Intel SpeedStep® Technology support. H_CPUPWRGD goes to the processor. It is kept high during the Enhanced Intel SpeedStep® Technology state transition to prevent loss of processor context. H_DPSLP# O CMOS Core H_DPRSTP# O CMOS Core H_CPUPWRGD O CMOS Core Host Interface Reference and Compensation H_CLKINP H_CLKINN I CMOS 0.8 I/O A I A I A Differential clock Input for the Host PLL: This lowvoltage differential signal pair is used for FSB transactions. The clock input also supplies a signal to the internal core and memory interface clocks. Host Resistor Compensation: This is connected to a reference resistor to dynamically calibrate the driver strengths. Voltage Swing Calibration Voltage Reference: These pins are for the input buffer differential amplifier to determine a high versus a low input voltage. Core H_RCOMPO Core H_SWING H_GVREF H_CGVREF Core Core 2.2 System Memory Signals Signal SM_DQ[63:0] Type I/O CMOS1.8 I/O CMOS1.8 O CMOS1.8 Power Well DDR Description Data Lines: The SM_DQ[63:0] signals interface to the DRAM data bus. Data Strobes: These signals are the data strobes used for capturing data. Each strobe signal corresponds to 8 data bits. During writes, SM_DQSx is centered in data. During reads, SM_DQSx is edge aligned with data. Memory Address: These signals are used to provide the multiplexed row and column address to the SDRAM. SM_DQS[7:0] DDR SM_MA[14:0] DDR 32 Datasheet Signal Description Signal Type Power Well Description Bank Select (Bank Address): These signals define which banks are selected within each SDRAM row. Bank select and memory address signals combine to address every possible location within an SDRAM device. Row Address Strobe: SM_RAS# is used to signify the presence of the row address on SM_MA to the DRAM device being selected. Column Address Strobe: SM_CAS# is used to signify the presence of the column address on SM_MA to the DRAM device being selected. Write Enable: SM_WE# tells the DRAM memory that it is performing a write operation on the bus. Receive Enable In: This signal connects to SM_SRCVENOUT# internally. This input (driven from SM_SRCVENOUT#) enables the DQS input buffers during reads. Receive Enable Out: This signal connects to SM_SRCVENIN# internally. It is part of the feedback used to enable the DQS input buffers during reads. Differential DDR Clock: SM_CKx and SM_CKx# pairs are differential clock outputs. The crossing of the positive edge of SM_CKx and the negative edge of SM_CKx# is used to sample the address and control signals on the DRAM. Chip Select: These signals select particular DRAM components during the active state. There is one SM_CSx# for each DRAM rank, toggled on the positive edge of SM_CKx. Clock Enable: SM_CKEx is used to initialize DRAM during power-up and to place all DRAM rows into and out of self-refresh during the S3 Suspend-to-RAM low power state. SM_CKEx is also used to dynamically power down inactive DRAM rows. There is one SM_CKEx per SDRAM row, toggled on the positive edge of SM_CKx. Input Buffer VREF: This signal is for the input buffer differential amplifier to determine a high versus a low input voltage. Resistor Compensation Output Pin: This pin is connected to a reference resistor to dynamically calibrate the driver strengths. SM_BS[2:0] O CMOS1.8 DDR SM_RAS# O CMOS1.8 O CMOS1.8 O CMOS1.8 I CMOS1.8 DDR SM_CAS# DDR SM_WE# DDR SM_RCVENIN# DDR SM_RCVENOUT# O CMOS1.8 DDR SM_CK[1:0] SM_CK[1:0]# O CMOS1.8 DDR SM_CS[1:0]# O CMOS1.8 DDR SM_CKE[1:0] O CMOS1.8 DDR SM_VREF I A I/O A DDR SM_RCOMPO DDR Datasheet 33 Signal Description 2.3 2.3.1 Integrated Display Interfaces LVDS Signals Power Well Core Core Signal LA_DATAP[3:0] LA_DATAN[3:0] LA_CLKP LA_CLKN Type O LVDS O LVDS Description Channel A Differential Data Output: Differential signal pair. Channel A Differential Clock Output: Differential signal pair. 2.3.2 Serial Digital Video Output (SDVO) Signals Power Well Signal Name Type Description Serial Digital Video Channel B Red: SDVOB_RED[±] is a differential data pair that provides red pixel data for the SDVOB channel during Active periods. During blanking periods it may provide additional such as sync information, auxiliary configuration data, etc. This data pair must be sampled with respect to the SDVOB_CLK[±] signal pair. Serial Digital Video Channel B Green: SDVOB_GREEN[±] is a differential data pair that provides green pixel data for the SDVOB channel during Active periods. During blanking periods it may provide additional such as sync information, auxiliary configuration data, etc. This data pair must be sampled with respect to the SDVOB_CLK[±] signal pair. Serial Digital Video Channel B Blue: SDVOB_BLUE[±] is a differential data pair that provides blue pixel data for the SDVOB channel during Active periods. During blanking periods it may provide additional such as sync information, auxiliary configuration data, etc. This data pair must be sampled with respect to the SDVOB_CLK[±] signal pair. Serial Digital Video Channel B Clock: This differential clock signal pair is generated by the Intel® SCH internal PLL and runs between 100 MHz and 200 MHz. If TV-out mode is used, the SDVO_TVCLKIN[±] clock input is used as the frequency reference for the PLL. The SDVOB_CLK[±] output pair is then driven back to the SDVO device. Serial Digital Video Input Interrupt: Differential input pair that may be used as an interrupt notification from the SDVO device to the Intel® SCH. This signal pair can be used to monitor hot plug attach/detach notifications for a monitor driven by an SDVO device. SDVOB_RED+ SDVOB_RED- O PCIE Core SDVOB_GREEN+ SDVOB_GREEN- O PCIE Core SDVOB_BLUE+ SDVOB_BLUE- O PCIE Core SDVOB_CLK+ SDVOB_CLK- O PCIE Core SDVOB_INT+ SDVOB_INT- I PCIE Core 34 Datasheet Signal Description Signal Name Type Power Well Description Serial Digital Video TV-OUT Synchronization Clock: Differential clock pair that is driven by the SDVO device to the Intel® SCH. If SDVO_TVCLKIN[±] is used, it becomes the frequency reference for the Intel® SCH dot clock PLL, but will be driven back to the SDVO device through the SDVOB_CLK[±] differential pair. This signal pair has an operating range of 100–200 MHz, so if the desired display frequency is less than 100 MHz, the SDVO device must apply a multiplier to get the SDVO_TVCLKIN[±] frequency into the 100- to 200-MHz range. SDVO_TVCLKIN+ SDVO_TVCLKIN- I PCIE Core SDVO_STALL+ SDVO_STALL- I PCIE Core Serial Digital Video Field Stall: Differential input pair that allows a scaling SDVO device to stall the Intel® SCH pixel pipeline. SDVO Control Clock: Single-ended control clock line from the Intel® SCH to the SDVO device. Similar to I2C clock functionality, but may run at faster frequencies. SDVO_CTRLCLK is used in conjunction with SDVO_CTRLDATA to transfer device config, PROM, and monitor DDC information. This interface directly connects the Intel® SCH to the SDVO device. SDVO Control Data: SDVO_CTRLDATA is used in conjunction with SDVO_CTRLCLK to transfer device config, PROM, and monitor DDC information. This interface directly connects the Intel® SCH to the SDVO device. SDVO_CTRLCLK I/O CMOS3.3 _OD Core SDVO_CTRLDATA I/O CMOS3.3 _OD Core 2.3.3 Display Data Channel (DDC) and GMBus Support Power Well Core Signal Name Type I/O CMOS3.3 _OD I/O CMOS3.3 _OD I/O CMOS3.3 _OD I/O CMOS3.3 _OD O CMOS3.3 O CMOS3.3 O CMOS3.3 Description Display Data Channel Clock: I2C-based control signal (Clock) for EDID control. Display Data Channel Data: I2C-based control signal (Data) for EDID control. Control A Clock: This signal can be used to control external clock chip for SSC - optional. Control B Data: This signal can be used to control external clock chip for SSC – optional. LCD Power Enable: Panel power enable control. LCD Backlight Enable: Panel backlight enable control. LCD Backlight Control: This signal allows control of LCD brightness. L_DDC_CLK L_DDC_DATA Core L_CTLA_CLK Core L_CTLB_DATA L_VDDEN L_BKLTEN L_BKLTCTL Core Core Core Core Datasheet 35 Signal Description 2.4 Universal Serial Bus (USB) Signals Signal Name Type Power Well Description USB Port 5:0 Differentials: Bus Data/Address/ Command Bus: These differential pairs are used to transmit data/address/command signals for Ports 0 through 5. These ports can be routed to either the EHCI controller or one of the three UHCI controllers and are capable of running at either high-, full-, or low-speed. USB Port 7:6 Differentials: Bus Data/Address/ Command Bus: These differential pairs are used to transmit data/address/command signals for Ports 6 and 7. These ports are routed only to the EHCI controller and should be used ONLY for in-system USB 2.0 devices. Resistor Bias P: This pin is an analog connection point for an external resistor. This signal is used to set transmit currents and internal load resistors. Resistor Bias N: This pin is an analog connection point for an external resistor. This signal is used to set transmit currents and internal load resistors. 48-MHz Clock: This optional clock is used to run the USB controller. By default, the Intel® SCH uses DA_REFCLKIN to clock the USB logic. Overcurrent Indicators: These signals set corresponding bits in the USB controllers to indicate that an overcurrent condition has occurred. NOTE: USB_OC[7:0]# are not 5-V tolerant. USB Client Connect: This signal, on GPIOSUS3, may be used in systems where USB port 2 is configured for client mode. This indicates connection to an external USB host has been established. NOTE: If USB Client support is enabled, then this signal is dedicated for USB Client Connect. USB_DP[5:0]/ USB_DN[5:0] I/O USB Sus USB_DP[7:6]/ USB_DN[7:6] I/O USB Sus USB_RBIASP O A I A I USB Sus USB_RBIASN Sus USB_CLK48 Sus USB_OC[7:0]# I CMOS3.3 Sus USBCC/ GPIOSUS3 I/O CMOS3.3 Sus 2.5 PCI Express* Signals Signal Name PCIE_PETp[2:1] PCIE_PETn[2:1] PCIE_PERp[2:1] PCIE_PERn[2:1] PCIE_CLKINP PCIE_CLKINN PCIE_ICOMPO PCIE_ICOMPI Type O PCIE I PCIE I PCIE I/O A I/O A Power Well Core Core Core Core Core Description PCI Express Transmit: PCIE_PETp[2:1] are PCI Express Ports 2:1 transmit pair (P and N) signals. PCI Express Receive: PCIE_PERp[2:1] PCI Express Ports 2:1 receive pair (P and N) signals. PCI Express Input Clock: 100-MHz differential clock signals. PCI Express Compensation Pin: Output compensation for both current and resistance. Also for LVDS and SDVO interfaces. PCI Express Compensation Pin: Input compensation for current. Also for LVDS and SDVO interfaces. 36 Datasheet Signal Description 2.6 Secure Digital I/O (SDIO)/MultiMedia Card (MMC) Signals Signal Name Type Power Well Description SDIO Controller 0/1/2 Data: These signals operate in push-pull mode. The SD card includes internal pull-up resistors for all data lines. By default, after power-up, only SDn_DATA0 is used for data transfer. Wider data bus widths can be configured for data transfer. NOTE: Port 0 and 1 are 4 bits wide while ports 2 is 8 bits wide. SD0_CMD SD1_CMD SD2_CMD I/O CMOS3.3 SDIO Controller 0/1/2 Command: This signal is used for card initialization and transfer of commands. It has two operating modes: open-drain for initialization mode, and push-pull for fast command transfer. SDIO Controller 0/1/2 Clock: With each cycle of this signal a one-bit transfer on the command and each data line occurs. Core This signal is generated by the Intel® SCH at a maximum frequency of: 24 MHz for SD and SDIO. 48 MHz for MMC. SD0_WP SD1_WP SD2_WP SD0_CD# SD1_CD# SD2_CD# SD0_LED SD1_LED SD2_LED SD0_PWR# SD1_PWR# SD2_PWR# I CMOS3.3 I CMOS3.3 O CMOS3.3 I/O CMOS3.3 Core SDIO Controller 0/1/2 Write Protect: These signals denote the state of the write-protect tab on SD cards. SDIO Controller 0/1/2 Card Detect: These signals indicates when a card is present in an external slot. SDIO Controller 0/1/2 LED: These signals can be used to drive an external LED and indicate when transfers are occurring on the bus. SDIO/MMC Power Enable: These pins can be used to enable the power being supplied to an SDIO/MMC device. SD0_DATA[3:0] SD1_DATA[3:0] SD2_DATA[7:0] I/O CMOS3.3 Core Core SD0_CLK SD1_CLK SD2_CLK O CMOS3.3 Core Core Core Datasheet 37 Signal Description 2.7 Parallel ATA (PATA) Signals Signal Name Type I/O CMOS3.3-5 O CMOS3.3-5 Power Well Core Description Device Data: These signals drive the corresponding signals on the PATA connector. There is an internal 13.3-kΩ pull-down on PATA_DD7. Device Address: These output signals are connected to the corresponding signals on the PATA connectors. They are used to indicate which byte in either the ATA command block or control block is being addressed. Disk I/O Read (PIO and Non-Ultra DMA): This is the command to the PATA device that it may drive data onto the DD lines. Data is latched by the Intel® SCH on the deassertion edge of PATA_DIOR#. The PATA device is selected either by the ATA register file chip selects (PATA_DCS1# or PATA_DCS3#) and the PATA_DA lines, or the PATA DMA acknowledge (PATA_DDAK#). Disk I/O Write (PIO and Non-Ultra DMA): This is the command to the PATA device that it may latch data from the PATA_DD lines. Data is latched by the PATA device on the deassertion edge of PATA_DIOW#. The PATA device is selected either by the ATA register file chip selects (PATA_DCS1# or PATA_DCS3#) and the PATA_DA lines, or the PATA DMA acknowledge (PATA_DDAK#). Device DMA Acknowledge: This signal directly drives the DAK# signals on the PATA connectors. Each is asserted by the Intel® SCH to indicate to PATA DMA slave devices that a given data transfer cycle (assertion of PATA_DIOR# or PATA_DIOW#) is a DMA data transfer cycle. This signal is used in conjunction with the PCI bus master PATA function and are not associated with any AT-compatible DMA channel. Device Chip Select for 300 Range: This chip select is for the ATA control register block. This signal is connected to the corresponding signal on the connector. Device Chip Selects for 100 Range: This chip select is for the ATA command register block. This signal is connected to the corresponding signal on the PATA connector. Device DMA Request: This input signal is directly driven from the DRQ signals on the PATA connector. It is asserted by the PATA device to request a data transfer, and used in conjunction with the PCI bus master PATA function and are not associated with any AT-compatible DMA channel. There is an internal 13.3 kΩ pull-down on this pin. I/O Channel Ready (PIO): This signal will keep the strobe active (PATA_DIOR# on reads, PATA_DIOW# on writes) longer than the minimum width. It adds wait states to PIO transfers. PATA_DD[15:0] PATA_DA[2:0] Core PATA_DIOR# O CMOS3.3-5 Core PATA_DIOW# O CMOS3.3-5 Core PATA_DDACK# O CMOS3.3-5 Core PATA_DCS3# O CMOS3.3-5 Core PATA_DCS1# O CMOS3.3-5 Core PATA_DDREQ I CMOS3.3-5 Core PATA_IORDY I CMOS3.3-5 Core 38 Datasheet Signal Description Signal Name PATA_IDEIRQ Type I CMOS3.3-5 Power Well Core Description IDE Interrupt: Input from the PATA device indicating request for an interrupt. Tied internally to IRQ14. 2.8 Intel HD Audio Interface Signal Name HDA_RST# Type O CMOS_HDA O CMOS_HDA Power Well Core Description Intel® HD Audio Reset: This signal is the reset to external Codecs Intel HD Audio Sync: This signal is an 48-kHz fixed rate sample sync to the Codec(s). It is also used to encode the stream number. Intel HD Audio Clock (Output): This signal is a 24.000-MHz serial data clock generated by the Intel HD Audio controller. This signal contains an integrated pull-down resistor so that it does not float when an Intel HD Audio CODEC (or no CODEC) is connected. Intel HD Audio Serial Data Out: This signal is a serial TDM data output to the Codec(s). The serial output is double-pumped for a bit rate of 48 MB/s for HD Audio. Intel HD Audio Serial Data In: These serial inputs are single-pumped for a bit rate of 24 MB/s. They have integrated pull-down resistors that are always enabled. Intel HD Audio Dock Enable: This active low signal controls the external Intel HD Audio docking isolation logic. When deasserted, the external docking switch is in isolate mode. When asserted, the external docking switch electrically connects the Intel HD Audio dock signals to the corresponding Intel SCH signals. Intel HD Audio Dock Reset: This signal is a dedicated reset signal for the codec(s) in the docking station. It works similar to, but independent of, the normal HDA_RST# signal. HDA_SYNC Core HDA_CLK O CMOS_HDA Core HDA_SDO O CMOS_HDA Core HDA_SDI[1:0] I CMOS_HDA Core HDA_DOCKEN# O CMOS_HDA Core HDA_DOCKRST# O CMOS_HDA Core Datasheet 39 Signal Description 2.9 LPC Interface Signal Name LPC_AD[3:0] LPC_FRAME# LPC_SERIRQ Type I/O CMOS3.3 O CMOS3.3 I/O CMOS3.3 I/O CMOS3.3 Power Well Core Core Core Description LPC Address/Data: Multiplexed Command, Address, Data LPC Frame: This signal indicates the start of an LPC/ FHW cycle. Serial Interrupt Request: This signal conveys the serial interrupt protocol. Clock Run: This signal gates the operation of the LPC_CLKOUTx. Once an interrupt sequence has started, LPC_CLKRUN# should remain asserted to allow the LPC_CLKOUTx to run. LPC Clock: These signals are the clocks driven by the Intel® SCH to LPC devices. Each clock can support up to two loads. Core NOTE: The primary boot device like FWH and SPI (behind SMC) should be connected to LPC_CLKOUT[0] LPC_CLKRUN# Core LPC_CLKOUT[2:0] O CMOS3.3 2.10 SMBus Interface Signal Name Type I/O CMOS3.3 _OD I/O CMOS3.3 _OD I CMOS3.3 _OD Power Well Core Description SMBus Data: This signal is the SMBus data pin. An external pull-up resistor is required. SMBus Clock: This signal is the SMBus clock pin. An external pull-up resistor is required. SMBus Alert: This signal can be used to generate an SMI#. SMB_DATA SMB_CLK Core SMB_ALERT# Core 40 Datasheet Signal Description 2.11 Power Management Interface Signal Name Type I CMOS3.3 I CMOS3.3 I CMOS3.3 Power Well Core Description Thermal Alarm: This signal is an active low signal generated by external hardware to generate an SMI or SCI. System Reset: This signal forces a reset after being de-bounced. This signal is powered by VCCSM. Power OK: When asserted, PWROK is an indication to the Intel® SCH that core power is stable. PWROK can be driven asynchronously. Resume Well Reset: This signal is used for resetting the resume well. An external RC circuit is required to ensure that the resume well power is valid prior to RSMRST# going high. RTC Well Reset: This signal is normally held high (to VCC_RTC), but can be driven low on the motherboard to test the RTC power well and reset some bits in the RTC well registers that are otherwise not reset by SLPMODE or RSMRST#. An external RC circuit on the RTCRST# signal creates a time delay such that RTCRST# will go high some time after the battery voltage is valid. This allows the Intel® SCH to detect when a new battery has been installed. The RTCRST# input must always be high when other non-RTC power planes are on. NOTE: Unlike many previous products, the Intel® SCH does not use RTCRST# to clear CMOS. RTCRST# does not set a bit which BIOS can then read as a directive to clear CMOS. This signal is in the RTC power well. SUSCLK O CMOS3.3 I CMOS3.3 O CMOS3.3 Sus Suspend Clock: This signal is an output of the RTC generator circuit (32.768 kHz). SUSCLK can have a duty cycle from 30% to 70%. PCI Express* Wake Event: This signal indicates a PCI Express port wants to wake the system. Stop CPU Clock: This signal is used to support the C3 state. Asserting this signal halts the clocks to the processor by controlling the enable of the clock chip. Deeper Sleep Voltage Regulator: This signal is asserted by the Intel® SCH to the processors voltage regulator. When the signal is high, the voltage regulator outputs the lower “Deeper Sleep” voltage. When the signal is low (default), the voltage regulator outputs the higher “Normal” voltage. This signal is in the core I/O plane and has a standard CMOS output (not open drain). O CMOS3.3 Sleep I/O Voltage Regulator Disable: The SLPIOVR# can be connected to an external VR and be used to control power supplied to the processors I/O rail in the C6 state. THRM# RESET# DDR PWROK RTC RSMRST# I CMOS3.3 RTC RTCRST# I CMOS3.3 RTC WAKE# Sus STPCPU# Core DPRSLPVR O CMOS3.3 Core SLPIOVR# Core Datasheet 41 Signal Description Signal Name Type Power Well Description Sleep Mode: SLPMODE determines which sleep state is entered. When SLPMODE is high, S3 will be chosen. When SLPMODE is low, S4/S5 will be the selected sleep mode. Reset Warning: Asserting the RSTWARN signal tells the Intel® SCH to enter a sleep state or begin to power down. A system management controller might do so after an external event, such as pressing of the power button or occurrence of a thermal event. Sleep Ready: The Intel® SCH will drive the SLPRDY# signal low to indicate to the system management controller that the Intel® SCH is awake and able to placed into a sleep state. deassertion of this signal indicates that a wake is being requested from a system device. Reset Ready: Assertion of the RSTRDY# signal indicates to the system management controller that it is ready to be placed into a low power state. During a transition from S0 to S3/4/5 sleep states, the Intel® SCH asserts RSTRDY# and CPURST# after detecting assertion of the RSTWARN signal from the external system management controller. General Purpose Event: GPE# is asserted by an external device (typically, the system management controller) to log an event in the Intel® SCH ACPI space and cause an SCI (if enabled). SLPMODE O CMOS3.3 Sus RSTWARN I CMOS3.3 Sus SLPRDY# O CMOS3.3 Sus RSTRDY# O CMOS3.3 Sus GPE# I CMOS3.3 _OD Sus 2.12 Real Time Clock Interface Signal Name Type Special A Special A Power Well RTC Description Crystal Input 1: This signal is connected to the 32.768-kHz crystal. If no external crystal is used, then RTC_X1 can be driven with the desired clock rate. Crystal Output 2: This signal is connected to the 32.768-kHz crystal. If no external crystal is used, then RTC_X2 should be left floating. RTC_X1 RTC_X2 RTC 42 Datasheet Signal Description 2.13 JTAG Interface The JTAG interface is accessible only after PWROK is asserted. Signal Name Type Power Well Description JTAG Test Clock: TCK is a clock input used to drive Test Access Port (TAP) state machine during test and debugging. This input may change asynchronous to the host clock. JTAG Test Data In: TDI is used to serially shift data and instructions into the TAP. JTAG Test Data Out: TDO is used to serially shift data out of the device. Test Mode Select: This signal is used to control the state of the TAP controller. Test Reset: This signal resets the controller logic. It should be pulled down unless TCK is active. TCK I CMOS I CMOS O CMOS_OD I CMOS I CMOS Sus TDI TDO TMS TRST# Sus Sus Sus Sus 2.14 Miscellaneous Signals and Clocks Signal Name DA_REFCLKINP/ DA_REFCLKINN DB_REFCLKINPSSC/ DB_REFCLKINNSSC CLKREQ# Type I I O CMOS3.3 _OD Power Well Core Core Description Display PLLA CLK Differential Pair: 96 MHz, no SSC support. Display PLLB CLK Differential Pair: display PLL differential clock pair for super SSC. Clock Required: The Intel® SCH will not de-assert CLKREQ# and will not thus enable a power management mode to the clock chip. Oscillator Clock: This signal is used for 8254 timers and HPET. It runs at 14.31818 MHz. This clock stops (and should be low) during S3, S4, and S5 states. CLK14 must be accurate to within 500 ppm over 100 µs (and longer periods) to meet HPET accuracy requirements. Internal VRM Enable: This signal is used to enable or disable the integrated 1.5-V Voltage Regulators for the Suspend and Auxiliary wells on the Intel® SCH. When connected to VSS, the VRMs are disabled; when connected to the RTC power well, the VRMs are enabled. This signal is in the RTC well. It is not latched and must remain valid for the VRMs to behave properly. Speaker: The SPKR signal is the output of counter 2 and is internally ANDed with Port 61h bit 1 to provide Speaker Data Enable. This signal drives an external speaker driver device, which in turn drives the system speaker. Upon SLPMODE, its output state is 0. Core CLK14 I CMOS3.3 Core INTVRMEN I CMOS3.3 RTC SPKR O CMOS3.3 Core Datasheet 43 Signal Description Signal Name Type I CMOS3.3 I CMOS3.3 I CMOS3.3 I CMOS Power Well Core Description System Management Interrupt: This signal is generated by the external system management controller. External Thermal Sensor 0 Event External Thermal Sensor 1 Event: EXTTS1# is multiplexed with GPIO9 Host Bus Speed Select: At the deassertion of RESET#, the value sampled on BSEL2 determines the expected frequency of the bus. Refer to Table 3 for more details. Configuration: Strap pins used to configure the graphics/display clock frequency. Refer to Table 3 for more details. SMI# EXTTS0# EXTTS1#/GPIO9 Core Core BSEL2 Core CFG[1:0] I CMOS Core 2.15 General Purpose I/O Signal Name Type I/O CMOS3.3 I/O CMOS3.3 / OD GPIO[6:0] I/O CMOS3.3 Core Power Well Core Description General Purpose I/O #9/External Thermal Sensor 1: This GPIO can function as a second external thermal sensor input. General Purpose I/O #8/Processor Hot: Defaults to a GPIO. Core As PROCHOT#, this signal can function as an OpenDrain output to the processor or SMC to signify a processor thermal event. General Purpose I/O: These signals are powered off of the core well power plane within the Intel® SCH. Resume Well General Purpose I/O #3/USB Client Connect: This GPIO can function as an input signifying connection to an external USB host. Sus NOTE: If a USB Client is enabled in the system, then GPIOSUS3 cannot be used as a general purpose I/O. Sus General Purpose I/O: These signals are powered from the suspend well power plane within the Intel® SCH. They are accessible during the S3 sleep state. GPIO9/EXTTS1# GPIO8/ PROCHOT# GPIOSUS3/ USBCC I/O CMOS3.3 GPIOSUS[2:0] I/O CMOS3.3 44 Datasheet Signal Description 2.16 Power and Ground Signals Interface VCC Common VSS VSS_NCTF1 VTT Host VCCAHPLL VCCDHPLL DDR2 VCCSM VCCLVDS Ball Name Nominal Voltage 1.05 0 1.05 1.5 1.5 1.8 1.5 1.5 Core supply Ground Used for FSB input and output devices Analog Power Supply Digital Power Supply Driver and Rx supply Configurable for 1.8-V/1.5-V operation Dedicated LVDS supply (must be supplied even if the SDVO only interface is used). Dedicated SDVO supply (must be supplied if the interface is used. If SDVO is not used, this supply is not needed for the Intel® SCH). Dedicated PCIe* analog/digital supply PCIe PLL Band Gap (needs to be enabled for PCIe, SDVO or LVDS) PCIe Band Gap VSS Display PLL A power supply (digital and analog) Must be powered even if DPLLA is not used. Display PLL B power supply (digital and analog) Must be powered even if DPLLB is not used. Used for I/O digital logic Configurable for 3.3-V or 1.5-V operation Used for some internal 3.3-V circuits Used for I/O digital logic Used for I/O analog driver Used for 5-V tolerance on core group inputs USB PLL Supply. Must be powered even if USB is not used Power for USB Logic and Analogs. USB 3.3-V Supply USB Band Gap USB Band Gap VSS 5-V Supply in Suspend Power Well 3.3-V Suspend Power Supply Used for Real Time Clock Description SDVO/ PCIE/ LVDS VCCSDVO VCCPCIE VCCAPCIEPLL VCCAPCIEBG VSSAPCIEBG VCCADPLLA 1.5 1.5 1.5 3.3 0 1.5 Display PLL VCCADPLLB Intel High Definition Audio SDIO/MMC/ CMOS/LPC/ PATA VCC15 VCCHDA VCC33 VCC15 VCC33 VCC5REF VCCAUSBPLL VCC15USB USB VCCP33USBSUS VCCAUSBBGSUS VSSAUSBBGSUS VCC5REFSUS CMOS Suspend VCC33SUS VCC33RTC 1.5 1.5 3.3/1.5 3.3 1.5 3.3 5 1.5 1.5 3.3 3.3 0 5 3.3 3.3 NOTE: 1. NCTF (Non-Critical to Function) signals have been designed into the package footprint to enhance the Solder Joint Reliability of our products. The NCTF signals have been designed to absorb some of the stress introduced by the Characteristic Thermal Expansion (CTE) Datasheet 45 Signal Description mismatch between the die-to-package interface. If cracking between the die-to-package interface occurs, product performance or reliability is not affected. 2.17 Functional Straps The following signals are used to configure certain Intel® SCH features. All strap signals are in the core power well. They are sampled at the rising edge of PWROK and then revert later to their normal usage. Straps should be driven to the desired state at least four LPC (PCI) clocks prior to the rising edge of PWROK. Table 3. Functional Strap Definitions Signal Name Strap Function Comments BSEL2: Selects the frequency of the host interface and DDR interface. Normal system configuration will have this signal connected to the processor’s BSEL2 signal and will not require external pull-up/pulldown resistors. BSEL2 CFG[1:0] FSB/DDR Frequency Select Graphics Frequency Select CFG[1:0]: Selects the frequency of the internal graphics device. BSEL2 1 0 0 CFG1 0 0 0 CFG0 0 0 1 FSB Freq 100 MHz 133 MHz 133 MHz GFX Freq 200 MHz 266 MHz 200 MHz All other combinations are reserved Selects the starting address that the CMC will use to start fetching code (GPIO3 is the most significant). GPIO3 GPIO0 0 1 0 1 CMC Base Address GPIO3 GPIO0 CMC (Chipset Microcode) Base Address 0 0 1 1 FFFB0000h FFFC0000h FFFD0000h (default) FFFE0000h RESERVED1 LPC_CLKOUT[0] Buffer Strength Selects the drive strength of the LPC_CLKOUT0 clock. 0 = 1 Load driver strength 1 = 2 Load driver strength Enables XOR chain mode 0 = XOR mode enable 1 = XOR mode disable (default) NOTE: XOR_TEST includes an internal pullup resistor. XOR_TEST XOR Chain Enable §§ 46 Datasheet Pin States 3 Pin States This chapter describes the states of each Intel® SCH signal in and around reset. It also documents what signals have internal pull-up/pull-down/series termination resistors and their values. 3.1 Table 4. Pin Reset States Reset State Definitions Signal State High-Z Don’t Care VOH VOL VOX–known VOX–unknown VIH VIL pull-up pull-down VIX-unknown Running Off Description The Intel® SCH places this output in a high-impedance state. For I/Os, external drivers are not expected. The state of the input (driven or tri-stated) does not effect the Intel® SCH. For I/O, it is assumed the output buffer is in a high-impedance state. The Intel® SCH drives this signal high The Intel® SCH drives this signal low The Intel® SCH drives this signal to a level defined by internal function configuration The Intel® SCH drives this signal, but to an indeterminate value The Intel® SCH expects/requires the signal to be driven high. The Intel® SCH expects/requires the signal to be driven low. This signal is pulled high by a pull-up resistor (internal or external) This signal is pulled low by a pull-down resistor (internal or external) The Intel® SCH expects the signal to be driven by an external source, but the exact electrical level of that input is unknown. The clock is toggling or signal is transitioning because the function has not stopped. The power plane for this signal is powered down. The Intel® SCH does not drive outputs and inputs should not be driven to the Intel® SCH. Datasheet 47 Pin States Table 5. Intel® SCH Reset State (Sheet 1 of 5) Signal Name Host Interface H_A[31:3]# H_D[63:0]# H_ADS# H_BNR# H_BPRI# H_DBSY# H_DEFER# H_DRDY# H_DPWR# H_HIT# H_HITM# H_LOCK# H_REQ[4:0]# H_CPUSLP# H_TRDY# H_RS[2:0]# H_CPURST# H_BREQ0# H_DINV[3:0]# H_ADSTB[1:0]# H_DSTBP[3:0]#, H_DSTBN[3:0]# H_THERMTRIP H_PBE# H_INIT# H_INTR H_NMI H_SMI# H_STPCLK# H_CLKINP, H_CLKINN H_RCOMPO H_GVREF H_GCVREF H_SWING H_DPSLP# H_CPUPWRGD I/O I/O I/O I/O O I/O I/O I/O O I/O I/O I I/O O O O O I/O I/O I/O I/O I I O O O O O I I/O-A I-A I-A I-A O O VOH VOH VOH VOH VOH VOH VOH VOH VOH VOH VOH VIH VOH VOH VOH VOH VOL VIL VOH VOH VOH VIX-unknown VIH VOX-unknown VOL VOL VOH VOH Running High-Z VIX-unknown VIX-unknown VIX-unknown VOH VOL pull-up pull-up pull-up pull-up pull-up pull-up pull-up pull-up VOL pull-up pull-up pull-up pull-up VOH pull-up pull-up pull-up pull-up pull-up pull-up pull-up pull-up pull-up pull-up VOL VOL VOH VOH Running High-Z VIX-unknown VIX-unknown VIX-unknown VOH VOL Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Direction Reset Post-Reset S3 S4/S5 48 Datasheet Pin States Table 5. Intel® SCH Reset State (Sheet 2 of 5) Signal Name H_DPRSTP# System Memory Interface SM_DQ[63:0] SM_DQS[7:0] SM_MA[14:0] SM_BS[2:0] SM_RAS# SM_CAS# SM_WE# SM_RCEVENIN# SM_RCVENOUT# SM_CK[1:0] SM_CK[1:0]# SM_CS[1:0]# SM_CKE[1:0] SM_VREF SM_RCOMP LVDS LA_DATAP[3:0], LA_DATAN[3:0] LA_CLKP/N SDVO SDVOB_GREEN+, SDVOB_GREENSDVOB_BLUE+, SDVOB_BLUESDVOB_RED+, SDVOB_REDSDVOB_CLK+, SDVOB_CLKSDVOB_TVCLKIN+, SDVOB_TVCLKINSDVO_INT+, SDVO_INTSDVO_STALL+, SDVO_STALLSDVO_CTRLCLK SDVO_CTRLDATA O O O O I I I I/O I/O pull-up pull-up pull-up pull-up Don't care Don't care Don't care pull-up pull-up High-Z High-Z High-Z High-Z Don't care Don't care Don't care High-Z High-Z Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off O O VOH VOH VOH VOH Off Off Off Off I/O I/O O O O O O I O O O O O I-A I-A High-Z High-Z High-Z High-Z High-Z High-Z High-Z High-Z High-Z High-Z High-Z High-Z VOL VIX-unknown High-Z High-Z High-Z VOL VOL VOH VOH VOH High-Z High-Z VOH VOL VOH VOL VIX-unknown High-Z Off Off Off Off Off Off Off Off Off Off Off Off VOL Don't Care High-Z Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Direction O Reset VOH Post-Reset VOH S3 Off S4/S5 Off Datasheet 49 Pin States Table 5. Intel® SCH Reset State (Sheet 3 of 5) Signal Name DDC L_DDC_CLK L_DDC_DATA L_CTLCLKA/B L_VDDEN L_BKLTEN L_BKLTCTL USB USB_DP[7:0] USB_DN[7:0] USB_OC[7:0]# USB_RBIASP USB_RBIASN USB_CLK48 PCI Express* CLKREQ# PCIE_PETp[2:1] PCIE_PETn[2:1] PCIE_PERp[2:1] PCIE_PERn[2:1] PCIE_CLKINP, PCIE_CLKINN PCIE_ICOMPO, PCIE_ICOMPI SDIO/MMC SD0_DATA[3:0] SD1_DATA[3:0] SD2_DATA[7:0] SD[2:0]_CMD SD[2:0]_CLK SD[2:0]_WP SD[2:0]_CD# SD[2:0]_LED SD[2:0]_PWR# I/O I/O I/O I/O O I/O I/O O O pull-up pull-up pull-up pull-up VOL Don't care Don't care VOL VOL High-Z High-Z High-Z High-Z VOL Don't care Don't care High-Z High-Z Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off O O O I I I I/O VOX-known pull-up VOH Don't care Don't care Don't care High-Z VOX-known VOL VOH Don't care Don't care Don't care High-Z Off Off Off Off Off Off Off Off Off Off Off Off Off Off I/O I I-A I-A I VOL VIX-unknown High-Z High-Z Don't care VOL VIX-unknown High-Z High-Z don't care VOX-unknown VIX-unknown High-Z High-Z Off Off Off Off Off Off I/O I/O I/O O O O pull-up pull-up pull-up High-Z High-Z High-Z High-Z High-Z High-Z High-Z High-Z High-Z Off Off Off Off Off Off Off Off Off Off Off Off Direction Reset Post-Reset S3 S4/S5 50 Datasheet Pin States Table 5. Intel® SCH Reset State (Sheet 4 of 5) Signal Name PATA PATA_DCS1# PATA_DCS3# PATA_DA[2:0] PATA_DD[15:0] PATA_DDREQ PATA_DDACK# PATA_DIOR# PATA_DIOW# PATA_IORDY PATA_IDEIRQ Intel® HD Audio) HDA_RST# HDA_SYNC HDA_CLK HDA_SDO HDA_SDI[1:0] HDA_DOCKEN# HDA_DOCKRST# LPC LPC_LAD[3:0] LPC_FRAME# LPC_SERIRQ LPC_CLKOUT[2:0] LPC_CLKRUN# SMBus SMB_DATA SMB_CLK SMB_ALERT# Power Management THRM# RESET# PWROK RSMRST# RTCRST# SUSCLK I I I I I O VIX-unknown VIL VIX-unknown VIX-unknown VIX-unknown Running VIX-unknown VIH VIL VIH VIH Running Off VIL VIL VIH VIH Running Off Off VIL VIL VIH Off I/O I/O I High-Z High-Z High-Z High-Z High-Z High-Z Off Off Off Off Off Off I/O O I/O O I/O High-Z VOH High-Z VOL VOH High-Z VOH High-Z VOL VOH Off VOH Off VOL VOH Off Off Off Off Off O O O O I O O VOL High-Z High-Z High-Z Don't care VOH VOH VOL High-Z VOL High-Z Don't care VOH VOH Off Off Off Off Off Off Off Off Off Off Off Off Off Off O O O I/O I O O O I I VOH VOH VOX-unknown High-Z VIL VOH VOH VOH VIH VIL VOH VOH VOXunknown High-Z VIL VOH VOH VOH VIH VIL Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Direction Reset Post-Reset S3 S4/S5 Datasheet 51 Pin States Table 5. Intel® SCH Reset State (Sheet 5 of 5) Signal Name WAKE# STPCPU# DPRSLPVR SLPMODE RSTWARN SLPRDY# RSTRDY# GPE# SLPIOVR# Real Time Clock RTC_X1 RTC_X2 JTAG TCK TMS TDI TDO TRST# Miscellaneous BSEL2 CFG[1:0] CLK14 INTVRMEN SPKR SMI#, EXTTS GPIO GPIO[6:0], GPIO[9:8] GPIOSUS[3:0] I/O I/O High-Z High-Z High-Z High-Z Off VIX-unknown Off Off I I I I O I I VIX-unknown VIX-unknown Running VIH VOL VIX-unknown X VIX-unknown VIX-unknown Running VIH VOL VIX-unknown X Off Off Off VIH VOL Off Off Off Off Off VIH Off Off Off I I I O I pull-up pull-up pull-up High-Z pull-up pull-up pull-up pull-up High-Z pull-up Off Off Off Off Off Off Off Off Off Off I-A I-A Running Running Running Running Running Running Running Running Direction I O O O I O O I I/O Reset VIX-unknown VOH VOL VOL VIH VOH VOH VIX-unknown High-Z Post-Reset VIX-unknown VOH VOL VOL VIH VOH VOH VIX-unknown High-Z S3 VIX-unknown Off Off VOH VIH VOL VOL VIX-unknown Off S4/S5 Off Off Off Off Off Off Off Off Off NOTES: 1. The Intel® SCH power-on is a very controlled sequence with several intermediate transitional states before the true reset is reached (this is a reset state from PWROK asserted high to RESET# deasserted high). Pin values are not ensured to be at the specified reset state until all power supplies and input clocks are stable. The 3.3 V I/O pins may glitch, toggle or float. 52 Datasheet Pin States 3.2 Table 6. Integrated Termination Resistors Intel® SCH Integrated Termination Resistors Signal GPIO3 GPIO0 HDA_CLK HDA_DOCKRST# HDA_RST# HDA_SDI[1:0] HDA_SDO HDA_SYNC LA_CLKN, LA_CLK_P LA_DATAN[3:0], LA_DATAP[3:0] LPC_LAD[3:0] PATA_DA[2:0] PATA_DCS1# PATA_DCS3# PATA_DD[16:0] PATA_DD7 PATA_DDACK# PATA_DDREQ PATA_DDREQ PATA_DIOR# PATA_DIOW# PATA_IDEIRQ PATA_IORDY PCIE_PERn[2:1], PCIE_PERp[2:1] PCIE_PETn[2:1], PCIE_PETp[2:1] RESERVED1 RESET# SD[2:0]_PWR# SD2_DATA[7:0] SD[1,0]_DATA[3:0] SDVOB_RED, SDVOB_RED# SDVOB_BLUE, SDVOB_BLUE# SDVOB_GREEN, SDVOB_GREEN# SDVOB_CLK, SDVOB_CLK# SDVOB_CLK# Resistor Type pull-up pull-down pull-down pull-down pull-down pull-down pull-down pull-down pull-up pull-up pull-up Series Series Series Series pull-down Series Series pull-down Series Series Series Series pull-down pull-up pull-up pull-down pull-up pull-up pull-up pull-up pull-up pull-up pull-up Nominal Value 22 kΩ 22 kΩ 22 kΩ 20 kΩ 22 kΩ 22 kΩ 22 kΩ 22 kΩ 50 Ω 50 Ω 20 k 33 Ω 33 Ω 33 Ω 33 Ω 13.3 kΩ 33 Ω 33 Ω 13.3 kΩ 33 Ω 33 Ω 33 Ω 33 Ω 50 Ω 50 Ω 300 kΩ 50 kΩ 60 kΩ 75 kΩ 50 Ω 50 Ω 50 Ω 50 Ω 50 Ω Tolerance ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±20% ±30% ±20% ±20% ±20% ±20% ±20% Datasheet 53 Pin States Table 6. Intel® SCH Integrated Termination Resistors Signal SDVOB_INT, SDVOB_INT# SDVOB_STALL, SDVOB_STALL# SDVOB_TVCLKIN, SDVOB_TVCLKIN# STPCPU# TCK TMS TDI USB_DN[7:0]. USB_DP[7:0] USB_DN2, USB_DP2 (Client mode) Resistor Type pull-down pull-down pull-down pull-down pull-up pull-up pull-up pull-down pull-up Nominal Value 50 Ω 50 Ω 50 Ω 20 kΩ 5 kΩ 5 kΩ 5 kΩ 15 kΩ 1.5 kΩ Tolerance ±20% ±20% ±20% ±20% ±40% ±40% ±40% ±20% ±20% §§ 54 Datasheet System Clock Domains 4 System Clock Domains The Intel® SCH contains many clock frequency domains to support its various interfaces. Table 7 summarizes these domains. Table 7. Clock Domain FSB PCI Express* Display Reference Clock Intel® SCH Clock Domains Signal Name H_CLKINP H_CLKINN PCIE_CLKIN[P:N] DA_REFCLKIN DB_REFCLKINSSC Frequency 100 MHz or 133 MHz 100 MHz 96 MHz 100 MHz Source Main Clock Generator Main Clock Generator Usage Used to generate core and SM internal clocks. PCI Express ports Primary clock source for display clocks, USB controllers, SDIO, HD Audio Used by ACPI timer and the multimedia timers logic. Stopped during S1 or higher. RTC, Power Management. Always running. Main Clock Generator CLK14 CLK14 14.31818 MHz Main Clock Generator RTC RTC_X1, RTC_X2 32.768 kHz Cyrstal oscillator Derivative Clocks: See Note DDR2 SM_CK[1:0] SM_CK[1:0]# LA_CLK[P/N] SDVOB_CLK± LPC_CLKOUT[1:0] N/A HDA_CLK SD[2:0]_CLK 200 MHz or 266 MHz Intel® SCH (2x FSB clock) Intel® SCH (Multiple of DA_REFCLKIN) Intel® SCH (¼ FSB clock) Intel® SCH (5x DA_REFCLKIN) Intel® SCH (1/4 DA_REFCLKIN) 1/4 DA_REFCLKIN 1/2 DA_REFCLKIN Drives SDRAM Ranks 0 and 1. Data Rate is 2x the clock rate. Display clock outputs Supplied for external devices requiring PCICLK USB PLL Drives external CODECs LVDS, SDVO 100–200 MHz LPC USB2 Intel HD Audio SD/SDIO MMC Up to 33 MHz 480 MHz 24 MHz 24 MHz 48 MHz NOTE: These are clock domains that are fractional multiples of existing clock frequencies. §§ Datasheet 55 System Clock Domains (This page intentionally left blank.) 56 Datasheet Register and Memory Mapping 5 Register and Memory Mapping The Intel® SCH contains registers that are located in the processor’s memory and I/O space. It also contains sets of PCI configuration registers that are located in separate configuration space. This chapter describes the Intel® SCH I/O and memory maps at the register-set level. Register-level address maps and individual register-bit descriptions are provided in the following chapters and constitute the bulk of this document. The following notations and definitions are used in the register/instruction description chapters. Table 8. Register Access Types and Definitions Access Type Meaning Description In some cases, if a register is read only, writes to this register location have no effect. However, in other cases, two separate registers are located at the same location where a read accesses one of the registers and a write accesses the other register. See the I/O and memory map tables for details. In some cases, if a register is write only, reads to this register location have no effect. However, in other cases, two separate registers are located at the same location where a read accesses one of the registers and a write accesses the other register. See the I/O and memory map tables for details. A register with this attribute can be read and written. A register bit with this attribute can be read and written. However, a write of 1 clears (sets to 0) the corresponding bit and a write of 0 has no effect. A register bit with this attribute can be written only once after power up. After the first write, the bit becomes read only. A register bit with this attribute can be written to the nonlocked value multiple times, but to the locked value only once. After the locked value has been written, the bit becomes read only. When the Intel® SCH is reset, it sets its registers to predetermined default states. The default state represents the minimum functionality feature set required to successfully bring up the system. Hence, it does not represent the optimal system configuration. It is the responsibility of the system initialization software to determine configuration, operating parameters, and optional system features that are applicable, and to program the Intel® SCH registers accordingly. RO Read Only WO Write Only R/W R/WC Read/Write Read/Write Clear Read/WriteOnce R/WO R/WLO Read/Write, Lock-Once Default Default Datasheet 57 Register and Memory Mapping 5.1 Intel® SCH Register Introduction The Intel® SCH contains two sets of software accessible registers accessed through the Host processor I/O address space: Control registers and internal configuration registers. 1. Control registers are I/O mapped into the processor I/O space that control access to PCI and PCI Express configuration space (see section entitled I/O Mapped Registers). 2. Internal configuration registers residing within the Intel® SCH are partitioned into eight logical device register sets, one for each PCI device listed in Table 9. (These are “logical” devices because they reside within a single physical device). The Intel® SCH internal registers (I/O Mapped, Configuration and PCI Express Extended Configuration registers) are accessible by the host processor. The registers that reside within the lower 256 bytes of each device can be accessed as Byte, Word (16-bit), or DWord (32-bit) quantities, with the exception of CONFIG_ADDRESS, which can only be accessed as a DWord. All multi-byte numeric fields use little-endian ordering (i.e., lower addresses contain the least significant parts of the field). Registers which reside in bytes 256 through 4095 of each device may only be accessed using memory mapped transactions in DWord (32-bit) quantities. Some of the Intel® SCH registers described in this section contain reserved bits. These bits are labeled Reserved. Software must deal correctly with fields that are reserved. On reads, software must use appropriate masks to extract the defined bits and not rely on reserved bits being any particular value. On writes, software must ensure that the values of reserved-bit positions are preserved. That is, the values of reserved-bit positions must first be read, merged with the new values for other-bit positions and then written back. Note: The software does not need to perform read, merge, and write operation for the configuration address register. In addition to reserved bits within a register, the Intel® SCH contains address locations in the configuration space of the Host Bridge entity that are marked either Reserved or Intel Reserved. The Intel® SCH responds to accesses to Reserved address locations by completing the host cycle. When a Reserved register location is read, a zero value is returned. (Reserved registers can be 8, 16, or 32 bits in size). Writes to Reserved registers have no effect on the Intel® SCH. Registers that are marked as Intel Reserved must not be modified by system software. Writes to Intel Reserved registers may cause system failure. Reads from Intel Reserved registers may return a non-zero value. Upon a Cold Reset, the Intel® SCH sets all configuration registers to predetermined default states. Some default register values are determined by external strapping options. The default state represents the minimum functionality feature set required to successfully bringing up the system, it does not represent the optimal system configuration. It is the responsibility of the system initialization software (usually BIOS) to properly determine the DRAM configurations, operating parameters and optional system features that are applicable and to program the Intel® SCH registers accordingly. 58 Datasheet Register and Memory Mapping 5.2 PCI Configuration Map The Intel® SCH incorporates a variety of PCI devices and functions, as shown in Table 9. There are two access mechanisms to the configuration space within the Intel® SCH: • through I/O ports CF8h/CFCh • through a direct memory mapped space Table 9. PCI Devices and Functions Device 0 2 26 27 28 Function 0 0 0 0 0 1 0 29 1 2 7 0 30 1 2 31 0 1 Host Bridge Integrated Graphics and Video Device USB Client HD Audio Controller PCI Express Port 1 PCI Express Port 2 USB Classic UHCI Controller 1 USB Classic UHCI Controller 2 USB Classic UHCI Controller 3 USB2 EHCI Controller SDIO/MMC Port 0 SDIO/MMC Port 1 SDIO/MMC Port 2 LPC Interface PATA Controller Function Description Datasheet 59 Register and Memory Mapping 5.3 System Memory Map The Intel® SCH supports up to 2 GB of physical DDR2 memory space and 64 KB+3 of addressable I/O space. There is a programmable memory address space under the 1 MB region which is divided into regions that can be individually controlled with programmable attributes such as Disable, Read/Write, Write Only, or Read Only. This section describes how the memory space is partitioned and how those partitions are used. Top of Memory (TOM) is the highest address of physical memory actually installed in the system. TOM greater than 2GB is not supported. Memory addresses above 2 GB will be routed to internal controllers or external I/O devices. Any memory access between TOM and 2 GB will return indeterminate results, and writes will be ignored. Figure 3 represents system memory address map in a simplified form. Figure 3. System Address Ranges 4 GB PCI Memory Address Range 2 GB (TOM) Main Memory Address Range 1 MB Legacy Address Range 0 Table 10. Intel® SCH Memory Map (Sheet 1 of 2) Device Starting Address Ending Address Comment Legacy Address Range (0 to 1 MB) Legacy Video (VGA) Expansion Area Extended BIOS (LPC) BIOS (LPC) LPC Main TSEG Graphics Memory1 000A0000h 000C0000h 000E0000h 000F0000h 000E0000h 000BFFFFh 000DFFFFh 000EFFFFh 000FFFFFh 000FFFFFh Access to this range will be forward to PCI Express if the Intel Graphics Media Adapter is disabled. (1 MB to Top Of Memory2) Variable Variable Variable Variable System Management Mode memory 60 Datasheet Register and Memory Mapping Table 10. Intel® SCH Memory Map (Sheet 2 of 2) Device Starting Address Ending Address Comment PCI Configuration Space (2 GB to 4 GB) IOxAPIC HPET TPM 1.2 High BIOS FEC00000h FED00000h FEFD40000h FFF80000h FEC00040h FED003FFh FED4BFFFh FFFFFFFFh High Performance Event Timer LPC LPC, See Note 3 for CMC address space Configurable Main Memory Configuration Spaces PCI Express Port 1 PCI Express Port 1 (prefetchable) PCI Express Port 2 PCI Express Port 2 (prefetchable) Root Complex Base Register USB2 Host Controller Intel HD Audio Host Controller SDIO 1 SDIO 2 SDIO 3 Anywhere in 32-bit range Anywhere in 32-bit range Anywhere in 32-bit range Anywhere in 32-bit range 1 KB anywhere in 32-bit range 1 KB anywhere in 32-bit range 512 KB anywhere in 32-bit range 1 KB anywhere in 32-bit range 1 KB anywhere in 32-bit range 1 KB anywhere in 32-bit range Configured by D30:F0:MBL Configured by D30:F0:PMBL Configured by D30:F1:MBl Configured by D30:F1:PMBL Configured by D30:F0:RCBA Configured by D20:F7:MEM_BASE Configured by D27:F0:LBAR Configured by D30:F0:MEM_BASE Configured by D30:F1:MEM_BASE Configured by D30:F2:MEM_BASE NOTES: 1. All accesses to addresses within the main memory range will be forwarded by the Intel® SCH to the DRAM unless they fall into one of the optional ranges specified in this section. 2. Top of Memory is determined by examining the contents of the DRAM Rank Population register and calculating the total system memory based on the device width, device density, and number of ranks installed. Up to 2 GB of total system memory is supported. 3. The Chipset Microcode (CMC) base address locates within the LPC space and consumes 64 KB of space. The starting address for the CMC code can be FFFB0000h, FFFC0000h, FFFD0000h, or FFFE0000h. Refer to Section 2.17 for selecting the CMC start address. Make sure to avoid using the same starting address for other LPC devices in the system. Datasheet 61 Register and Memory Mapping 5.3.1 Legacy Video Area (A0000h – BFFFFh) The legacy 128 KB VGA-memory range can be mapped to the Intel Graphics Media Adapter (Device 2) or forwarded to an external graphics device located on one of the two PCI Express I/O ports. The VGA-Disable bit in the Graphics Control register of the Intel Graphics Media Adapter PCI config space can be set to ignore VGA memory or I/O cycles. If that bit is set, the Intel® SCH will steer VGA accesses to the appropriate PCI Express port. If such a device does not exist in the system, the cycles will be ignored. 5.3.2 Expansion Area (C0000h – DFFFFh) This 128-KB ISA-Expansion region is always mapped to DRAM. This region is typically used by BIOS to shadow (copy) option ROMs, including Video BIOS. This region cannot be write protected. 5.3.3 Extended System BIOS Area (E0000h – EFFFFh) This area is a single, 64-KB segment that can be assigned independent read/write attributes and is mapped only to main DRAM Typically, this area is used for RAM or ROM. Memory segments that are disabled are not remapped elsewhere. 5.3.4 System BIOS Area (F0000h – FFFFFh) This area is a single, 64-KB segment that can be assigned read and write attributes. After reset, this region defaults to “disabled” and cycles are forwarded to the LPC interface. By manipulating the Read/Write attributes of this memory range, the Intel® SCH can “shadow” BIOS into the main DRAM. When disabled, this segment is not remapped. 5.3.5 EHCI Controller Area The EHCI controller (Device 29, Function 7) requires a single, 1-KB to be reserved out of the 1-GB main memory area for configuration purposes. See Chapter 13 for more details. 5.3.6 Programmable Attribute Map (PAM) The two, 64-KB memory regions below 1-MB comprise the PAM Memory Area. See Table 11 for these ranges and default attributes. Any attempts by the processor or an Intel® SCH device to read a segment marked with the Read Disable attribute will return undefined data. Table 11. Programmable Attribute Map Region “Segment E” “Segment F” Memory Segments 0E0000h – 0EFFFFh 0F0000h – 0FFFFFh Default Attributes R/W WE RE 62 Datasheet Register and Memory Mapping 5.3.7 Top of Memory Segment (TSEG) TSEG is a 1-MB, 2-MB, or 8-MB memory region located below Intel Graphics Media Adapter stolen memory, which is at the top of physical memory (TOM). It is used for System Management Mode accesses by the processor. See Table 10 for more information on SMM. Processor accesses to the TSEG range without SMM attribute or without WB attribute are forwarded to memory as invalid accesses. Non-SMM-mode Write Back cycles that target TSEG space are completed to DRAM for cache coherency. The TSEG memory region is not accessible by non-processor bus masters (that is, PCI Express, USB, etc.) 5.3.8 APIC Configuration Space (FEC00000h – FECFFFFFh) This range is reserved for APIC configuration space which includes an IOxAPIC and a Local (processor) APIC. The IOxAPIC is located at the default address FEC00000h to FEC70FFFh and is part of the LPC bridge controller (Device 31, Function 0). The default Local APIC configuration space goes from FEC80000h to FECFFFFFh. Processor accesses to the Local APIC configuration space do not result in external bus activity since the Local APIC configuration space is internal to the processor. However, an MTRR must be programmed to make the Local APIC range uncacheable (UC). The Local APIC base address in each processor should be relocated to the FEC00000h to FECFFFFFh range so that one MTRR can be programmed to 64 KB for the Local and IOxAPIC. 5.3.9 High BIOS Area The top 2 MB (FFC00000h – FFFFFFFFh) of the PCI Memory Address Range is reserved for System BIOS (High BIOS), extended BIOS for PCI devices. The processor begins execution from the High BIOS after reset. This region is mapped to the LPC controller so that the upper subset of this region aliases to the 16-MB through 256-KB range. The actual address space required for the BIOS is less than 2 MB but the minimum processor MTRR range for this region is 2 MB so that full 2 MB must be considered. 5.3.10 Boot Block Update The Intel® SCH supports a Top-Block Swap mode where the top boot block on the Firmware Hub (FWH) is swapped with a block in a different location. This allows the boot block to be safely updated while protecting the system from a power loss When BC.TS is set, the Intel® SCH inverts A16 for cycles going to the upper two 64 KB blocks in the firmware. When BC.TS is cleared, the Intel® SCH will not invert A16. This bit is cleared by RTCRST#. The scheme is based on the concept that the top block is reserved as the “boot” block, and the block immediately below the top block is reserved for doing boot-block updates. Datasheet 63 Register and Memory Mapping The algorithm is as follows: 1. Software copies the contents of the top boot-block to the swap block below it. 2. Software checks that the copy was successful by checksum or other validation technique. 3. Software sets the TOP_SWAP bit. This will invert A16 for cycles going to the Firmware Hub and force the processor to read from the swapped block location. (processor access to FFFF0000h through FFFFFFFFh will be directed to FFFE0000h through FFFEFFFFh in the Firmware Hub.) 4. Software erases the top block. 5. Software writes the new top block. 6. Software validates the new top block is correct. 7. Software clears the TOP_SWAP bit allowing normal processor access to the top block address range (FFFF0000h through FFFFFFFFh). 8. Software sets the Top_Swap Lock-Down bit. If a power failure occurs at any point after step 3, the system will be able to boot from the copy of the boot block that is stored in the block below the top. This is because a copy of the TOP_SWAP bit is stored in the RTC well. Note: The top-block swap mode may be forced by an external strapping option. When topblock swap mode is forced in this manner, the TOP_SWAP bit cannot be cleared by software. System Management Mode (SMM) uses main memory for System Management RAM (SMM RAM). SMM uses either a 1-MB, 2-MB, or 8-MB memory region located at the Top of Memory Segment (TSEG) in main memory (above the 1-MB boundary). This memory segment in RAM is available for the SMI handlers and code and data storage, and it is normally hidden from the system OS so that the processor has immediate access to this memory space upon entry to SMM. The TSEG area can be mapped to any address within the 32-bit address range. For more details on the location and size of the SMM memory areas, refer to Table 10 or the Host SMM Control (HSMMCTL) Register definition later in this chapter. Note: Other Intel® SCH bus masters are not allowed to access the SMM space. 5.3.11 Memory Shadowing Any block of memory that can be designated as read-only or write-only can be “shadowed” into Intel® SCH DRAM memory. Typically this is done to allow ROM code to execute more rapidly out of main DRAM. ROM is used as read-only during the copy process while DRAM at the same time is designated write-only. After copying, the DRAM is designated read-only so that ROM is shadowed. Processor FSB transactions are routed accordingly. 5.3.12 Locked Transactions Only locked cycles to DRAM are supported by the Intel® SCH. Locked cycles to nonDRAM space are unsupported in the Intel® SCH. This includes all non-physical DRAM address spaces including peripheral device memory, VGA memory, memory-mapped I/O, and other memory spaces besides standard DRAM. 64 Datasheet Register and Memory Mapping 5.4 I/O Address Space The I/O map is divided into fixed ranges and variable ranges. Fixed ranges cannot be moved, but in some cases can be disabled. Variable ranges can be both moved and disabled. 5.4.1 Fixed I/O Decode Ranges Table 12 shows the fixed I/O decode ranges from the processor. For each port there may be separate behavior for reads and writes. Processor cycles that go to reserved ranges are internally aborted; if the cycle was a read, all 1s will be returned to the processor. Table 12. Fixed I/O Decode Ranges (Sheet 1 of 2) Port Number 20h 24h 28h 2Ch 30h 34h 38h 3Ch 40h 43h 50h 53h 61h 63h 65h 67h 70h 71h 72h 73h 74h 75h 76h 77h 84h 88h 8Ch Size (Bytes) 2 2 2 2 2 2 2 2 3 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 3 Read Target 8259 Master 8259 Master 8259 Master 8259 Master 8259 Master 8259 Master 8259 Master 8259 Master 8254 None 8254 None NMI Controller NMI Controller NMI Controller NMI Controller None RTC RTC RTC RTC RTC RTC RTC Internal Internal Internal NMI Write Target 8259 Master 8259 Master 8259 Master 8259 Master 8259 Master 8259 Master 8259 Master 8259 Master 8254 8254 8254 8254 Controller1 1 Can Disable? No No No No No No No No No No No No No Yes, alias to 61h Yes, alias to 61h Yes, alias to 61h No No Yes, w/ 73h Yes, w/ 72h No No No No No No No NMI Controller1 NMI Controller NMI Controller1 NMI and RTC RTC NMI and RTC RTC NMI and RTC RTC NMI and RTC RTC Internal/LPC Internal/LPC Internal/LPC Datasheet 65 Register and Memory Mapping Table 12. Fixed I/O Decode Ranges (Sheet 2 of 2) Port Number A0h A4h A8h ACh B0h B2h B4h B8h BCh 170h 1F0h 376h 3F6h CF8h CFCh Size (Bytes) 2 2 2 2 2 2 2 2 2 8 8 1 1 4 4 Read Target 8259 Slave 8259 Slave 8259 Slave 8259 Slave 8259 Slave Power Management 8259 Slave 8259 Slave 8259 Slave PATA PATA PATA PATA Internal Internal Write Target 8259 Slave 8259 Slave 8259 Slave 8259 Slave 8259 Slave Power Management 8259 Slave 8259 Slave 8259 Slave PATA PATA PATA PATA Internal Internal Can Disable? No No No No No No No No No No No No No No No NOTE: 1. Only if the Port 61 Alias-Enable bit (GCS.P61AE) is set—otherwise, none. 5.4.2 Variable I/O Decode Ranges Table 13 shows the Variable I/O Decode Ranges. They are set using Base Address Registers (BARs) or other configuration bits in the various configuration spaces. The PnP software (PCI or ACPI) can use its configuration mechanism to set and adjust these values. These values should not be mapped on top of fixed address ranges as unpredictable behavior will result. f Table 13. Variable I/O Decode Ranges Range Name ACPI Bus Master IDE SMBus GPIO USB 1 USB 2 USB 3 Mappable Anywhere in 64-K I/O Space Anywhere in 64-K I/O Space Anywhere in 64-K I/O Space Anywhere in 64-K I/O space Anywhere in 64-K I/O Space Anywhere in 64-K I/O Space Anywhere in 64-K I/O Space Size (Bytes) 64 16 32 64 32 32 32 Target Power Management PATA SMB Unit GPIO Unit UHCI Host Controller 1 UHCI Host Controller 2 UHCI Host Controller 3 66 Datasheet Register and Memory Mapping 5.5 I/O Mapped Registers The Intel® SCH contains two registers that reside in the processor I/O address space − the Configuration Address (CONFIG_ADDRESS) Register and the Configuration Data (CONFIG_DATA) Register. The Configuration Address Register enables/disables the configuration space and determines what portion of configuration space is visible through the Configuration Data window. 5.5.1 NSC—NMI Status and Control Register I/O Offset (Port): Default Value: Bit Access and Default 0 RO 61h 00h Attribute: Size: Description RO, R/W 8 bits 7 SERR# NMI Status (SNS): Set on errors from a PCIe port or internal functions that generate SERR#. SNE in this register must be cleared in order for this bit to be set. To reset the interrupt, set Bit 2 to 1 and then set it to 0. IOCHK NMI Status (INS): Set when SERIRQ asserts IOCHK# and INE in this register is cleared. To reset the interrupt, set Bit 3 to 1 and then set it to 0. Timer Counter 2 Status (T2S): Reflects the current state of the 8254 Counter 2 output. Counter 2 must be programmed for this bit to have a determinate value. Refresh Cycle Toggle Status (RTS): This signal toggles from 0 to 1 or 1 to 0 at a rate that is equivalent to when a refresh cycles would occur. IOCHK NMI Enable (INE): When set, IOCHK# NMIs are disabled and cleared. When cleared, IOCHK# NMIs are enabled. SERR# NMI Enable (SNE): When set, SERR# NMIs are disabled and cleared. When cleared, SERR# NMIs are enabled. Speaker Data Enable (SDE): When this bit is a 0, the SPKR output is a 0. When this bit is a 1, the SPKR output is equivalent to the Counter 2 OUT signal value. Timer Counter 2 Enable (TC2E): When cleared, counter 2 counting is disabled. When set, counting is enabled. 6 0 RO 0 RO 0 RO 0 R/W 0 R/W 0 R/W 0 R/W 5 4 3 2 1 0 5.5.2 NMIE—NMI Enable Register I/O Offset (Port): Default Value: Bit Access and Default 0 WO 0 WO NMI Enable (EN): 1 = NMI sources disabled. 0 = NMI sources enabled. Real Time Clock Index (RIDX): Selects the RTC register or CMOS RAM address to access. 70h 00h Attribute: Size: Description R/W 8 bits 7 6:0 Datasheet 67 Register and Memory Mapping 5.5.3 CONFIG_ADDRESS—Configuration Address Register I/O Offset (Port): Default Value: 0CF8h 00000000h Attribute: Size: RO, R/W 32 bits CONFIG_ADDRESS is a 32-bit register that can be accessed only as a DW. A Byte or Word reference will pass through the Configuration Address Register and onto the internal Intel® SCH backbone as an I/O cycle. The CONFIG_ADDRESS register contains the Bus Number, Device Number, Function Number, and Register Number for which a subsequent configuration access is intended. Access and Default R/W 0b RO 00h Bit Description Configuration Enable (CFGE): 0 = Disable accesses to PCI configuration space. 1 = Enable accesses to PCI configuration space. Reserved Bus Number: If the Bus Number is programmed to 00h the target of the Configuration Cycle is a PCI Bus 0 agent. If this is the case and the Intel® SCH is not the target (i.e., the device number is ≥3 and not equal to 7), then a Type 0 Configuration Cycle is generated. 31 30:24 23:16 R/W 00h If the Bus Number is non-zero, and does not fall within the ranges enumerated by Device 1’s Secondary Bus Number or Subordinate Bus Number Register, then a Type 1 Configuration Cycle is generated. This field is mapped to Byte 8 [7:0] of the request header format during PCI Express Configuration cycles and A[23:16] during the Type 1 configuration cycles. Device Number: This field selects one agent on the PCI bus selected by the Bus Number. When the Bus Number field is “00” the Intel® SCH decodes the Device Number field. The Intel® SCH is always Device Number 0 for the Host bridge entity, Device Number 1 for the Host-PCI Express entity. Therefore, when the Bus Number =0 and the Device Number equals 0, 1, 2 or 7 the internal Intel® SCH devices are selected. This field is mapped to Byte 6 [7:3] of the request header format during PCI Configuration cycles. Function Number: This field allows the configuration registers of a particular function in a multi-function device to be accessed. The Intel® SCH ignores configuration cycles to its internal devices if the function number is not equal to 0 or 1. This field is mapped to Byte 6 [2:0] of the request header format during PCI Configuration cycles. Register Number: This field selects one register within a particular Bus, Device, and Function as specified by the other fields in the Configuration Address Register. This field is mapped to Byte 7 [7:2] of the request header format for during PCI Configuration cycles. Reserved 15:11 R/W 00h 10:8 R/W 000b 7:2 R/W 00h 1:0 RO 00b 68 Datasheet Register and Memory Mapping 5.5.4 RSTC—Reset Control Register I/O Offset (Port): Default Value: Bit 7:4 Access and Default 0 RO 0 R/W 0 RO 0 R/W Reserved Cold Reset (COLD): This bit will cause a cold reset to the platform, which is performed by driving SLPMODE low, SLPRDY# low, and RSTRDY# low. In response to this, the platform will perform a full power cycle. Reserved Warm Reset (WARM): This bit will cause a warm reset to the platform, which is performed by driving RSTRDY# low. In response to this, the platform will drive RESET# low to reset the processor and all peripherals. CPU-Only Reset (CPU): This bit causes H_CPURST# to be asserted, with processor timing requirements met for minimum pulse width. The processor Power-On-Config register (HPOC) contents will be driven on the host address bus, and latched on the deassertion edge of H_CPURST#. 0CF9h 00h Attribute: Size: Description R/W, RO 8 bits 3 2 1 0 0 R/W 5.5.5 CONFIG_DATA—Configuration Data Register I/O Offset (Port): Default Value: 0CFCh 00000000h Attribute: Size: R/W 32 bits CONFIG_DATA is a 32-bit read/write window into configuration space. The portion of configuration space that is referenced by CONFIG_DATA is determined by the contents of CONFIG_ADDRESS. Bit Access and Default Description Configuration Data Window (CDW): If Bit 31 of the CONFIG_ADDRESS is 1, any I/O access to the CONFIG_DATA register will produce a configuration transaction using the contents of CONFIG_ADDRESS to determine the bus, device, function, and offset of the register to be accessed. 31:0 R/W 0000 0000h §§ Datasheet 69 Register and Memory Mapping (This page intentionally left blank.) 70 Datasheet General Chipset Configuration 6 General Chipset Configuration This chapter lists the core registers used to configure the Intel® SCH chipset. These registers are not specific to any particular interface or PCI configuration space, so they are documented here. There are four groups of registers that meet this description: • Root complex topology capability • Interrupt pin and route definitions • General configuration The start and end address offsets listed in the following sections are relative to the Root Complex Base Address. 6.1 Root Complex Capability The root complex is used by PCI Express aware operating systems to identify PCI Express capabilities. It indicates to the OS that the Intel® SCH is capable of isochronous transfers and that an Intel HD Audio controller exists within the Intel® SCH. The following registers follow the PCI Express capability list structure as defined in the PCI Express specification. Table 14. Root Complex Configuration Registers Address 0000–0003h 0004–0007h 0010–0013h 0014–0017h 0018–008Fh Symbol RCTCL ESD HDD Reserved HDBA Register Name Root Complex Topology Capability List Element Self Description Intel® HD Audio Descriptor (Port 15) Reserved Intel HD Audio Base Address (Port 15) Datasheet 71 General Chipset Configuration 6.1.1 RCTCL—Root Complex Topology Capabilities List Address Offset: Default Value: Default and Access 000h RO 1h RO 0005h RO 0000h 00010005h Attribute: Size: RO 32 bits Bits Description 31:20 19:16 15:0 Next Capability (NEXT): This field indicates next item in the list. Capability Version (CV): This field indicates the version of the capability structure. Capability ID (CID): This field indicates this is a PCI Express link capability section of an RCRB. 6.1.2 ESD—Element Self Description Address Offset: Default Value: Default and Access 00h RO 00h R/WO 01h RO 0 RO 2h RO 0004h 00000102h Attribute: Size: RO, R/WO 32 bits Bits Description Port Number (PN): A value of 0 to indicate the egress port for Intel® SCH. Component ID (CID): This field indicates the component ID assigned to this element by software. This is written once by platform BIOS and is locked until a platform reset. Number of Link Entries (NLE): This field indicates that one link entry (corresponding to Intel® HD Audio) is described by this RCRB. Reserved Element Type (ET): This field indicates that the element type is a root complex internal link. 31:24 23:16 15:08 7:4 3:0 72 Datasheet General Chipset Configuration 6.1.3 HDD—Intel® HD Audio Description Address Offset: Default Value: Default and Access Fh RO Init RO 0 RO 1 RO 1 RO 0010h see description Attribute: Size: RO 32 bits Bits Description Target Port Number (PN): This field indicates the target port number is 15 (Intel® HD Audio). Target Component ID (TCID): This field returns the value of the ESD.CID field programmed by platform BIOS, since the root port is in the same component as the Root Complex Register Blocks (RCRB). Reserved Link Type (LT): This bit indicates that the link points to a root port. Link Valid (LV): Link is always valid. 31:24 23:16 15:2 1 0 6.1.4 HDBA—Intel® HD Audio Base Address Address Offset: Default Value: Default and Access 0h RO 0h RO 0h RO 1Bh RO 0h RO 0 RO 0018h Attribute: 00000000 000D8000h Size: RO 64 bits Bits Description 63:32 31:28 27:20 19:15 14:12 11:00 Config Space Base Address Upper (CBAU): Reserved Config Space Base Address Lower (CBAL): Reserved Bus Number (BN): Indicates Intel® HD Audio is on Bus 0 Device Number (DN): Indicates Intel HD Audio is in Device 27 Function Number (FN): Indicates Intel HD Audio is in Function 0 Reserved Datasheet 73 General Chipset Configuration 6.2 Interrupt Pin and Routing Configuration Configuration of interrupts involves setting both the interrupt pin that a particular device/function should be mapped to, as well as the routing of that pin to the appropriate PIRQx signal that ultimately goes to either the PIC or APIC controller. 6.2.1 Interrupt Pin Configuration The following registers tell each device which interrupt pin to report in the IPIN register of their configuration space. Each register has one or more 4-bit field assigned to a particular PCI function. This 4-bit field is defined as shown in Table 15. Table 15. Interrupt Pin Field Bit Decoding Bits 0h 1h 2h 3h 4h 5h – Fh Pin No Interrupt INTA# INTB# INTC# INTD# Reserved Table 16. Interrupt Pin Register Map Address 3100–3103h 3104–3107h 3108–310Bh 310C–310Fh 3110–3113h 3114–3117h 3118–311Ch Symbol D31IP D30IP D29IP D28IP D27IP D26IP D02IP Register Name Device 31 Interrupt Pin Device 30 Interrupt Pin Device 29 Interrupt Pin Device 28 Interrupt Pin Device 27 Interrupt Pin Device 26 Interrupt Pin Device 2 Interrupt Pin Interface LPC Interface SDIO/MMC (Ports 1-3) USB Host (UHCI 1-3, EHCI) PCI Express (Ports 1 and 2) Intel HD Audio USB Target Intel GMA 500 74 Datasheet General Chipset Configuration 6.2.1.1 D31IP—Device 31 Interrupt Pin Offset Address: Default Value: Bits 31:4 3:0 Type RO RO 3100h–3103h 00000210h Reset 0 0h Reserved Attribute: Size: Description R/W, RO 32 bits LPC Bridge Pin (LIP): The LPC bridge does not generate an interrupt. 6.2.1.2 D30IP—Device 30 Interrupt Pin Offset Address: Default Value: Bits 31:12 11:8 7:4 3:0 Type RO R/W R/W R/W 3104–3107h 00000321h Reset 0 3h 2h 1h Reserved Attribute: Size: Description R/W, RO 32 bits SDIO Port 2 Interrupt Pin (SD2): Indicates which pin SDIO Controller 2 uses. SDIO Port 1 Interrupt Pin (SD1: Indicates which pin SDIO Controller 1 uses. SDIO Port 0 Interrupt Pin (SD0): Indicates which pin SDIO Controller 0 uses. 6.2.1.3 D29IP—Device 29 Interrupt Pin Offset Address: Default Value: Bits 31:28 27:12 11:8 7:4 3:0 Type R/W RO R/W R/W R/W 3108–310Bh 40000321h Reset 4h 0 3h 2h 1h Attribute: Size: Description R/W, RO 32 bits EHCI Pin (EIP): Indicates which pin the EHCI controller uses. Reserved UHCI 2 Pin (U2P): Indicates which pin USB Controller 2 uses. UHCI 1 Pin (U1P): Indicates which pin USB Controller 1 uses. UHCI 0 Pin (U0P): Indicates which pin USB Controller 0 uses. 6.2.1.4 D28IP—Device 28 Interrupt Pin Offset Address: Default Value: Bits 31:8 7:4 3:0 Type RO R/W R/W 310C–310Fh 00000021h Reset 0 2h 1h Reserved Attribute: Size: Description R/W, RO 32 bits PCI Express 2 Pin (P2IP): Indicates which pin PCI Express Port 2 uses. PCI Express 1 Pin (P1IP): Indicates which pin PCI Express Port 1 uses. Datasheet 75 General Chipset Configuration 6.2.1.5 D27IP—Device 27 Interrupt Pin Offset Address: Default Value: Bits 31:4 3:0 Type RO R/W 3110–3113h 00000001h Reset 0 1h Reserved Attribute: Size: Description R/W, RO 32 bits Intel HD Audio Pin (HDAIP): Indicates which pin the Intel® HD Audio controller uses. 6.2.1.6 D26IP—Device 26 Interrupt Pin Offset Address: Default Value: Bits 31:4 3:0 Type RO R/W 3114–3117h 00000001h Reset 0 1h Reserved Attribute: Size: Description R/W, RO 32 bits USB Target Pin (UTIP): Indicates which pin the USB Target controller uses. 6.2.1.7 D02IP—Device 2 Interrupt Pin Offset Address: Default Value: Bits 31:4 3:0 Type RO R/W 3118–311Bh 00000001h Reset 0 1h Reserved Attribute: Size: Description R/W, RO 32 bits Graphics Pin (GP): Indicates which pin the graphics controller uses for interrupts. 76 Datasheet General Chipset Configuration 6.2.2 Interrupt Route Configuration The Interrupt Route Configuration registers indicates which PIRQx# pin on the Intel® SCH is connected to the INTA/B/C/D pins reported in the Device X Interrupt Pin register fields. This will be the internal pin/message the device will generate to either the 8259 interrupt controller or the IOxAPIC. Table 17. Interrupt Route Field Bit Decoding Bits 0000 0001 0010 0011 0100 0101 0110 0111 1000 – 1111 Interrupt PIRQA# PIRQB# PIRQC# PIRQD# PIRQE# PIRQF# PIRQG# PIRQH# Reserved Table 18. Interrupt Route Register Map Address 3140–3141h 3142–3143h 3144–3145h 3146–3147h 3148–3149h 314A–314Bh 314C–314Dh Symbol D31IR D30IR D29IR D28IR D27IR D26IR D02IR Register Name Device 31 Interrupt Route Device 30 Interrupt Route Device 29 Interrupt Route Device 28 Interrupt Route Device 27 Interrupt Route Device 26 Interrupt Route Device 2 Interrupt Route Interface LPC Interface SDIO/MMC (Ports 1-3) USB Host (UHCI1-3, EHCI) PCI Express (Ports 1 and 2) Intel® High Definition Audio USB Target Intel® Graphics Media Accelerator 500 Datasheet 77 General Chipset Configuration 6.2.2.1 D31IR—Device 31 Interrupt Route Offset Address: Default Value: Default and Access 3h R/W 2h R/W 1h R/W 0h R/W 3140-3141h 3210h Attribute: Size: R/W 16 bits Bits Description Interrupt D Pin Route (IDR): Indicates which physical pin INTD# uses for Device 31. Interrupt C Pin Route (ICR): Indicates which physical pin INTC# uses for Device 31. Interrupt B Pin Route (IBR): Indicates which physical pin INTB# uses for Device 31. Interrupt A Pin Route (IAR): Indicates which physical pin INTA# uses for Device 31. 15:12 11:8 7:4 3:0 6.2.2.2 D30IR—Device 30 Interrupt Route Offset Address: Default Value: Default and Access 3h R/W 2h R/W 1h R/W 0h R/W 3142-3143h 3210h Attribute: Size: R/W 16 bits Bits Description Interrupt D Pin Route (IDR): Indicates which physical pin INTD# uses for Device 30. Interrupt C Pin Route (ICR): Indicates which physical pin INTC# uses for Device 30. Interrupt B Pin Route (IBR): Indicates which physical pin INTB# uses for Device 30. Interrupt A Pin Route (IAR): Indicates which physical pin INTA# uses for Device 30. 15:12 11:8 7:4 3:0 6.2.2.3 D29IR—Device 29 Interrupt Route Offset Address: Default Value: Default and Access 3h R/W 2h R/W 1h R/W 0h R/W 3144-3145h 3210h Attribute: Size: R/W 16 bits Bits Description Interrupt D Pin Route (IDR): Indicates which physical pin INTD# uses for Device 29. Interrupt C Pin Route (ICR): Indicates which physical pin INTC# uses for Device 29. Interrupt B Pin Route (IBR): Indicates which physical pin INTB# uses for Device 29. Interrupt A Pin Route (IAR): Indicates which physical pin INTA# uses for Device 29. 15:12 11:8 7:4 3:0 78 Datasheet General Chipset Configuration 6.2.2.4 D28IR—Device 28 Interrupt Route Offset Address: Default Value: Default and Access 3h R/W 2h R/W 1h R/W 0h R/W 3146-3147h 3210h Attribute: Size: R/W 16 bits Bits Description Interrupt D Pin Route (IDR): Indicates which physical pin INTD# uses for Device 28. Interrupt C Pin Route (ICR): Indicates which physical pin INTC# uses for Device 28. Interrupt B Pin Route (IBR): Indicates which physical pin INTB# uses for Device 28. Interrupt A Pin Route (IAR): Indicates which physical pin INTA# uses for Device 28. 15:12 11:8 7:4 3:0 6.2.2.5 D27IR—Device 27 Interrupt Route Offset Address: Default Value: Default and Access 3h R/W 2h R/W 1h R/W 0h R/W 3148-3149h 3210h Attribute: Size: R/W 16 bits Bits Description Interrupt D Pin Route (IDR): Indicates which physical pin INTD# uses for Device 27. Interrupt C Pin Route (ICR): Indicates which physical pin INTC# uses for Device 27. Interrupt B Pin Route (IBR): Indicates which physical pin INTB# uses for Device 27. Interrupt A Pin Route (IAR): Indicates which physical pin INTA# uses for Device 27. 15:12 11:8 7:4 3:0 6.2.2.6 D26IR—Device 26 Interrupt Route Offset Address: Default Value: Default and Access 3h R/W 2h R/W 1h R/W 0h R/W 314A-314Bh 3210h Attribute: Size: R/W 16 bits Bits Description Interrupt D Pin Route (IDR): Indicates which physical pin INTD# uses for Device 26. Interrupt C Pin Route (ICR): Indicates which physical pin INTC# uses for Device 26. Interrupt B Pin Route (IBR): Indicates which physical pin INTB# uses for Device 26. Interrupt A Pin Route (IAR): Indicates which physical pin INTA# uses for Device 26. 15:12 11:8 7:4 3:0 Datasheet 79 General Chipset Configuration 6.2.2.7 D02IR—Device 2 Interrupt Route Offset Address: Default Value: Default and Access 3h R/W 2h R/W 1h R/W 0h R/W 314C-314Dh 3210h Attribute: Size: R/W 16 bits Bits Description Interrupt D Pin Route (IDR): Indicates which physical pin INTD# uses for Device 2. Interrupt C Pin Route (ICR): Indicates which physical pin INTC# uses for Device 2. Interrupt B Pin Route (IBR): Indicates which physical pin INTB# uses for Device 2. Interrupt A Pin Route (IAR): Indicates which physical pin INTA# uses for Device 2. 15:12 11:8 7:4 3:0 6.3 6.3.1 General Configuration Register RC—RTC Configuration Register Offset Address: Default Value: Default and Access 0000000h RO 0b R/WLO 0 R/WLO 0 R/WLO Reserved Reserved Upper 128-Byte Lock (UL): When set, bytes 38h–3Fh in the upper 128-byte bank of RTC RAM are locked. Writes will be ignored and reads will not return any ensured data. Lower 128-Byte Lock (LL): When set, bytes 38h–3Fh in the lower 128-byte bank of RTC RAM are locked. Writes will be ignored and reads will not return any ensured data. 3400–3403h 00000000h Attribute: Size: RO, R/WLO 32-bit Bit Description 31:3 2 1 0 §§ 80 Datasheet Host Bridge (D0:F0) 7 7.1 Host Bridge (D0:F0) Functional Description The host bridge logic manages many of the Intel® SCH central functions most specifically the FSB controller, memory controller, and thermal and power management. The host bridge contains all the registers necessary to configure these functions. These registers are organized into two groups, each with its own method of access: 1. PCI configuration space. These registers are accessed using the standard PCI cycle methodology. 2. Custom register space. These registers are accessed through two specific PCI configuration registers, and they are used to issue messages onto the Intel® SCH internal message network. 7.1.1 Dynamic Bus Inversion When the processor or the Intel® SCH drives data, each 16-bit segment is analyzed. If more than 8 of the 16 signals would normally be driven low on the bus the corresponding H_DINV# signal will be asserted and the data will be inverted prior to being driven on the bus. Conversely, whenever the processor or the Intel® SCH receives data, it monitors H_DINV[3:0]# to determine if the corresponding data segment should be inverted. 7.1.2 FSB Interrupt Overview The processor supports FSB interrupt delivery. It does not support the APIC serial bus interrupt delivery mechanism. Interrupt-related messages are encoded on the FSB as “Interrupt Message Transactions”. FSB interrupts may originate from a device part of, or attached to, the Intel® SCH, such as a USB controller or the Intel Graphics Media Accelerator 500. In such a case the Intel® SCH drives the “Interrupt Message Transaction” onto the FSB. In the IOxAPIC environment, an interrupt is generated from the Intel® SCH IOxAPIC to the processor in the form of a Memory Write to the FSB. Furthermore, the PCI 2.3 specification and PCI Express specification define MSIs (Message Signaled Interrupts) that also take the form of Memory Writes. MSI-capable devices, such as PCI Express or USB, may generate an interrupt using the MSI mechanism, writing the interrupt message directly to the FSB. Alternatively, an Interrupt Message Transaction can be directed to the IOxAPIC which in turn routes the interrupt message to the FSB using the traditional IOxAPIC interrupt Memory Write method. The target of an MSI transaction is dependent upon the target address of the interrupt Memory Write. Caution: Improperly formed MSIs, including any non-DWord writes to the space reserved for MSI, may cause unexpected system behavior. Datasheet 81 Host Bridge (D0:F0) 7.1.3 CPU BIST Strap To enter CPU BIST, software first sets the PMSW.CBE (BIST enable) bit, and then does a warm reset by writing to RSTC.WARM. The BIST strap sequence is as follows: • As part of the boot sequence, the power management controller will check whether PMSW.CBE has been set. If so, it will set the state of the BIST bit in the POC vector accordingly. • The power management controller prepares the full POC vector and writes it to the HPOC register internally. These values are driven onto the HA[31:3] and INIT# pins. • CPURST# is deasserted to the processor after ensuring that at least 4 host bus clocks have elapsed after driving POC. • POC pins all take their normal usage two host clocks after CPURST# deassertion. 7.2 Table 19. Host PCI Configuration Registers Host Bridge Configuration Register Address Map Offset 00h–01h 02h–03h 04h–05h 06h–07h 08h 0Ah–0Bh 2Ch–2Fh Mnemonic VID DID PCICMD PCISTS RID CC SS Register Name Vendor ID Device ID PCI Command PCI Status Revision ID Class Codes Subsystem Identifiers Default 8086 8100-8107 0007h 0280h See description 0805h See description RO RO R/W, RO R/WC, RO RO RO RO Type NOTE: Address locations that are not shown should be treated as Reserved. 7.2.1 VID—Identification Register Offset: Default Value: Default and Access 8086h RO 00h–01h 8086h Attribute: Size: RO 16 bits Bit Description 15:0 Vendor ID (VID): PCI standard identification for Intel. 82 Datasheet Host Bridge (D0:F0) 7.2.2 DID—Identification Register Offset: Default Value: Default and Access 81008107h RO 02h–03h 810xh Attribute: Size: RO 16 bits Bit Description Device ID (DID): This is a 16-bit value assigned to the controller. Refer to the Intel® SCH Specification Update for the DID for various product SKU. 15:0 7.2.3 PCICMD—PCI Command Register Offset: Default Value: Default and Access 0 RO 1 RO 1 RO 1 RO Reserved Bus Master Enable (BME): The Intel® SCH is always enabled as a bus master. Memory Space Enable (MSE): The Intel® SCH is always allowed to access memory. I/O Access Enable (IOAE): The memory controller always allows access to I/O. 04h–05h 0007h Attribute: Size: R/W, RO 16 bits Bit Description 15:3 2 1 0 7.2.4 PCISTS—PCI Status Register Offset: Default Value: Default and Access 0000h RO Reserved 06h–07h 0000h Attribute: Size: RO 16 bits Bit Description 15:0 7.2.5 RID—Revision Identification Register Offset Address: Default Value: Default and Access TBD RO 08h TBD Attribute: Size: RO 8 bits Bit Description Revision ID: This value is tied to the value in the LPC bridge (Device 31, Function 0). 7:0 Datasheet 83 Host Bridge (D0:F0) 7.2.6 CC—Class Code Register Offset: Default Value: Default and Access 06h RO 00h RO 0Ah–0Bh 0600h Attribute: Size: RO 16 bits Bit Description 15:8 7:0 Base Class Code (BCC): 06h indicates a bridge device. Sub Class Code (SCC): 00h indicates a host bridge. 7.2.7 SS—Subsystem Identifiers Register Offset: Default Value: Default and Access RO RO Subsystem ID (SSID) Subsystem Vendor ID (SVID) 2Ch–2Fh 00000000h Attribute: Size: RO 32 bits Bit 31:16 15:0 Description 84 Datasheet Host Bridge (D0:F0) 7.2.7.1 TTB—Thermal Trip Behavior Register Offset: Default Value: B6h 00000000h Attribute: Size: (Sheet 1 of 2) RO, R/W, R/WLO 32 bits Bit Default and Access 0 R/W 000b RO Description Internal Thermal Hardware Throttling Enable bit (ITHTE): This is a master enable for internal thermal sensor-based hardware throttling. Interrupts are not affected by this bit. This is for Hot Trip throttling only. Reserved Catastrophic Shutdown Select (CSS): Chooses which option to take upon a catastrophic thermal event. 31 30:28 Bit 00 Definition No external assertions—internal hardware throttling only. Power-down immediately: SLPRDY#, SLPMODE, and RSTRDY# are all driven to 0s within 100 µs. This powers off the platform. A system reboot is required. This is the lowest-latency option. Request S5: SLPRDY# is asserted after S5-ready; Powers off the platform after sleep-readiness has been checked by the Intel® SCH. A system reboot is required. Once the trip point is reached, SLPRDY# stays asserted even if the trip deasserts before the platform is shut down. 01 00b R/W 27:26 10 This has the longest latency, but allows for transactions to finish so as to avoid data from being lost/corrupted. However, there is still no assurance of corruption prevention, as functionality to enter S5 is not ensured in the temperature region where catastrophic trip is normally Reserved Reserved 11 25 0 R/WLO Reserved PROCHOT# ENABLE (PHE): When this bit is set, PROCHOT# is asserted on Aux2 trip. 24 0 R/W 0 = PROCHOT# is not asserted 1 = PROCHOT# can be asserted on Aux2 trip PROCHOT# pulse width has a minimum duration of 500 µs to meet the processor specifications. 23 22 21 0 R/W 0 R/W 0 RO SMI on EXTTS1# Thermal Sensor Trip (SME1T): 1 = SMI is generated on an external Thermal Sensor 1 trip. SMI on EXTTS0# Thermal Sensor Trip (SME1T): 1 = SMI is generated on an external Thermal Sensor 0 trip. Reserved Datasheet 85 Host Bridge (D0:F0) (Sheet 2 of 2) Bit Default and Access 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 RO 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 RO Description SMI on Hot Trip (SMHT): 1 = SMI is generated on a hot trip. SMI on Aux3 Trip (SMA3T): 1 = SMI is generated on an Aux3 trip. SMI on Aux2 Trip (SMA2T): 1 = SMI is generated on an Aux2 trip. SMI on Aux1 Trip (SMA1T): 1 = SMI is generated on an Aux1 trip. SMI on Aux0 Trip (SMA0T): 1 = SMI is generated on an Aux0 trip. SCI on EXTTS1# Thermal Sensor Trip (SCE1T): 1 = SCI is generated on an external Thermal Sensor 1 trip. SCI on EXTTS0# Thermal Sensor Trip (SCE1T): 1 = SCI is generated on an external Thermal Sensor 1 trip. Reserved SCI on Hot Trip (SCHT): 1 = SCI is generated on a hot trip. SCI on Aux3 Trip (SCA3T): 1 = SCI is generated on an Aux3 trip. SCI on Aux2 Trip (SCA2T): 1 = SCI is generated on an Aux2 trip. SCI on Aux1 Trip (SCA1T): 1 = SCI is generated on an Aux1 trip. SCI on Aux0 Trip (SCA0T): 1 = SCI is generated on an Aux0 trip. Reserved 20 19 18 17 16 15 14 13 12 11 10 9 8 7:0 86 Datasheet Host Bridge (D0:F0) 7.2.7.2 EXTTSCS—External Thermal Sensor Control and Status Register Offset: Default Value: Default and Access 0000000h RO 0 R/WLO 0 R/WLO 00b R/WLO 00b R/WLO Reserved EXTTS1 Enable (EXE1): 1 = Indicates EXTTS1 is wired and configured for external thermal sensor input. Reserved EXTTS0 Enable (EXE0): 1 = Indicates EXTTS0 is wired and configured for external thermal sensor input. Reserved B7h 00000000h Attribute: Size: RO, R/WLO 32 bits Bit Description 31:6 7 6:4 3 2:0 7.2.7.3 TSIU[0,1,2,3,4]—Thermal Sensor In Use Register [0,1,2,3,4] Offset: TSIU0 = C0h TSIU1 = C1h TSIU2 = C2h TSIU3 = C3h TSIU4 = C4h 00000000h Attribute: RO, RS/WC Default Value: Default and Access 00000000h RO 0 RS/WC Size: 32 bits. Bit Description 31:1 Reserved In Use Bit IU[0..4]: After a full Intel® SCH reset, a read to this bit returns a 0. After the first read, subsequent reads will return a 1. A write of a 1 to this bit will reset the next read value to 0. Writing a 0 to this bit has no effect 0 Datasheet 87 Host Bridge (D0:F0) 7.2.8 Miscellaneous (Port 05h) Port 05h contains configuration and status registers that don’t specifically belong to other ports or interfaces. 7.2.8.1 MSR—Mode and Status Register Offset: Default Value: Default and Access 0000000h RO RO Reserved Core Clock Frequency: This bit indicates the frequency of the core clock and the FSB and Memory interface frequencies. 0 = 100-MHz Core clock, 400-MT/s FSB, 400-MT/s DDR 1 = 133-MHz Core clock, 533-MT/s FSB, 533-MT/s DDR Graphics Frequency: This bit indicates the frequency for the graphics core clock. 100 = 200 MHz Others = Reserved 03h 0000000Uh Attribute: Size: RO 32 bits. Bit Description 31:4 3 2:0 RO §§ 88 Datasheet Memory Controller (D0:F0) 8 8.1 8.1.1 Memory Controller (D0:F0) Functional Overview DRAM Frequencies and Data Rates To reduce design complexity and clock network power, the Intel® SCH maintains a fixed relationship to the FSB clock frequency. The FSB frequency can be 100 MHz or 133 MHz, resulting in support of the following clock frequencies and data rates for DRAM. FSB Clock 100 MHz 133 MHz DRAM Clock 200 MHz 266 MHz DRAM Data Rate 400 MT/s 533 MT/s DRAM Type DDR2 DDR2 Peak Bandwidth 3.2 GB/s 4.2 GB/s 8.1.2 DRAM Command Scheduling The Intel® SCH memory controller operates at the common core clock, which is one half the DDR2 memory clock frequency, or ¼ the DDR data rate. To provide efficient scheduling, the controller is capable of scheduling two operations in the controller core clock to be able to issue a command every memory clock (where scheduling rules for the memory devices allow). The memory controller operates on up to two requests at a time to provide pipelining for memory commands where possible. It will issue page management commands (activates and precharges) out of order for the later request, but will always service reads and writes (CAS operations) in the order in which they were received by the controller. This provides efficient scheduling while still maintaining in-order rules for compatibility with the FSB IOQ. The Intel® SCH never uses any additive latency, which is provided for in DDR2 to create a posted CAS effect and improve scheduling efficiency in some memory systems. 8.1.3 Page Management The memory controller is capable of closing open pages after the pages have been idle for a configurable period of time. This benefits the system for both power and performance (when properly configured). From a performance standpoint, it helps since it can reduce the number of page misses encountered. From a power perspective, it allows the memory devices to reach the precharge power management state (power down when all banks are closed), which has better power saving characteristics on most memory devices than when the pages are left open and the device is in powered down. Datasheet 89 Memory Controller (D0:F0) Pages that close due to timeout can do so in one of two ways: • When one or more (but not all) pages in a given rank time out, the pages that have timed out will close provided the rank is awake and timing rules allow. If the rank is powered down, it will be powered up to service individual page closures only if configured to do so. This is not the default behavior; however, this is primarily a performance benefit and can adversely effect power consumption. • When all of the open pages in a rank have timed out, the memory controller will power up to service page closures. Note: There is generally a significant power savings by entering the pre-charge powerdown state versus the active powerdown state that is used by the memory devices when pages are still open. Up to 16 Banks can be independently tracked by the Intel® SCH memory controller. Note: 8.2 DRAM Technologies and Organization For the Intel® SCH, 512-Mb, 1-Gb and 2-Gb technologies and addressing are supported for x16 devices. The DRAM sub-system supports a single-channel, 64-bits wide, with one or two ranks. Table 20. DRAM Attributes Device Size 512 Mb 1024 Mb 2048 Mb 512 Mb 1024 Mb 2048 Mb Width X8 X8 X8 X16 X16 X16 Page Size 1KB 1KB 1KB 2KB 2KB 2KB Banks 4 8 8 4 8 8 Bank Addr BA0-BA1 BA0-BA2 BA0-BA2 BA0-BA1 BA0-BA2 BA0-BA2 Row Addr A0-A13 A0-A13 A0-A14 A0-A12 A0-A12 A0-A13 Col Addr A0-A9 A0-A9 A0-A9 A0-A9 A0-A9 A0-A9 8.2.1 DRAM Address Mapping System addresses are decoded by the memory controller to map to the rank, bank, row, and column physical address locations in the populated DRAMs. 8.2.1.1 DRAM Device Address Decode For any rank, the address range it implements is mapped into the physical address regions of the devices on that rank. This is addressable by bank (B), row (R), and column (C) addresses. Once a rank is selected as described above, the range that it is implementing is mapped into the device’s physical address as described in Table 21. 90 Datasheet Memory Controller (D0:F0) Table 21. DRAM Address Decoder Device Density Topic 512 Mb x16 Rank Size Bank Bits Row Bits Col Bits A31 A30 A29 A28 A27 A26 A25 A24 A23 A22 A21 A20 A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 256 MB 2 13 10 — — — — R12 R11 R10 R9 R8 R7 R6 R5 R4 B1 C9 R3 R2 R1 R0 B0 C8 C7 C6 C5 C4 C3 C2 C1 C0 512 Mb x8 512 MB 2 14 10 — — — R13 R12 R11 R10 R9 R8 R7 R6 R5 R4 B1 C9 R3 R2 R1 R0 B0 C8 C7 C6 C5 C4 C3 C2 C1 C0 1024 Mb x16 512 MB 3 13 10 — — — B2 R12 R11 R10 R9 R8 R7 R6 R5 R4 B1 C9 R3 R2 R1 R0 B0 C8 C7 C6 C5 C4 C3 C2 C1 C0 1024 Mb x8 1024 MB 3 14 10 — — R13 B2 R12 R11 R10 R9 R8 R7 R6 R5 R4 B1 C9 R3 R2 R1 R0 B0 C8 C7 C6 C5 C4 C3 C2 C1 C0 2048Mb x16 1024MB 3 14 10 — — R13 B2 R12 R11 R10 R9 R8 R7 R6 R5 R4 B1 C9 R3 R2 R1 R0 B0 C8 C7 C6 C5 C4 C3 C2 C1 C0 2048Mb x8 1024MB 3 15 10 — R14 R13 B2 R12 R11 R10 R9 R8 R7 R6 R5 R4 B1 C9 R3 R2 R1 R0 B0 C8 C7 C6 C5 C4 C3 C2 C1 C0 NOTE: R = Row address bit. C = Column address bit. B = Bank Select bit (SM_BS[2:0]). Datasheet 91 Memory Controller (D0:F0) 8.3 8.4 DRAM Clock Generation The Intel® SCH contains two differential clock pairs (SM_CK[1:0]/SM_CK[1:0]#) that are used to support as many as two ranks of memory on the system board. DDR2 On-Die Termination The Intel® SCH memory controller interface was designed to operate properly without on-die termination. This has resulted is significant power savings, both within the system and within the Intel® SCH. The Intel® SCH contains features to reduce power consumption in the event SSTL termination is used within the system. 8.5 DRAM Power Management The Intel® SCH supports memory power management in the following conditions: • C0–C1: CKE Powerdown • C2–C6: Dynamic Self-Refresh • S3: Self-Refresh 8.5.1 CKE Powerdown The memory controller employs aggressive use of memory power management features. When a rank is not being accessed, the CKE for that rank is deasserted, bringing the devices into either an active or precharge powerdown state depending on whether any pages are still open in the device. DDR2 supports slow or fast exit from active powerdown. These options must be configured in the memory devices themselves by BIOS before memory accesses begin. The slower exit improves power savings when in a low power state but comes at a high latency cost. Due to the latency cost this can in some cases have the effect of increasing power consumption if the memory subsystem frequently has to suffer this delay and is consuming full power on the I/O interface in the process. The Intel® SCH will not use the slower exit, opting instead to use the active powerdown as a lighter powerdown mode, but employing page close timers to get to a more power efficient precharge powerdown state when the pages in the rank have been idle for the configured time. 8.5.2 Interface High-Impedance Although the Intel® SCH is designed to operate properly with no SSTL termination, it provides power saving mechanisms to reduce power consumption if SSTL termination is used. To save power on an SSTL-terminated DDR2 interface, any output signals that are not needed for proper memory operation at that time should be tristated (floated). This is due to the SSTL termination topology which is center-terminated and thus consumes power whenever a signal is driven high or low. • When both ranks are powered down, address and command pins are tristated. • Address and command signals are only enabled when a chip select is asserted, floating these signals at all other times. • When a rank is powered down, the corresponding SM_CS# pins are tristated. • Data and strobe signals are floated. This occurs whenever the data and strobe are not actively transferring write data (or issuing a preamble or postamble on the strobes). • The SM_CK/SM_CK# signals are floated whenever both ranks are in self refresh. • Static disabling is available for preventing unused signals from ever driving. This is provided for SM_BS[2:0], SM_MA[14:13], SM_CK[1:0]/SM_CK[1:0]#, SM_CKE[1:0]. 92 Datasheet Memory Controller (D0:F0) 8.5.3 Refresh The Intel® SCH handles all DRAM refresh operations when the device is not in selfrefresh. To reduce the performance impact of DRAM refreshes, the Intel® SCH waits until eight refreshes are required and then issues all of these refreshes. This provides some increase in efficiency (overall lower percentage of impact to the available bandwidth), but there will also be a longer period of time that the memory will be unavailable, roughly 8 x tRFC. 8.5.4 Self-Refresh Self-refresh can be entered to save power on the memory device and Intel® SCH power to drive the DDR2 differential clock signals. When the memory is in self-refresh, the Intel® SCH disables all output signals, except the SM_CKE signals. The Intel® SCH will enter self refresh as part of the suspend (S3) sequence. It stays in this the self-refresh state until a resume sequence is initiated. 8.5.5 Dynamic Self-Refresh In addition, the Intel® SCH can support dynamic self-refresh in C2–C6 states. It wakes the memory from self-refresh state whenever memory access is needed, then re-enter self-refresh state as soon as there are no more requests are needed. 8.5.6 Note: DDR2 Voltage The Intel® SCH supports 1.8-V and 1.5-V DDR2 memory. 1.5-V DDR2 support is restricted to single rank operation. §§ Datasheet 93 Memory Controller (D0:F0) (This page intentionally left blank.) 94 Datasheet Graphics, Video, and Display (D2:F0) 9 9.1 9.1.1 Graphics, Video, and Display (D2:F0) Graphics Overview 3-D Core Key Features Two pipe scaleable unified shader implementation. — 3-D Peak Performance — Fill Rate: 2 Pixels per clock — Vertex Rate: One Triangle 15 clocks (Transform Only) — Vertex/Triangle Ratio average = 1 vtx/tri, peak 0.5 vtx/tri • Texture max size = 2048 x 2048 • Programmable 4x multi-sampling anti-aliasing (MSAA) — Rotated grid — ISP performance related to AA mode, TSP performance unaffected by AA mode • Optimized memory efficiency using multi-level cache architecture 9.1.2 Shading Engine Key Features The unified pixel/vertex shader engine supports a broad range of instructions. • Unified programming model — Multi-threaded with four concurrently running threads — Zero-cost swapping in/out of threads — Cached program execution model – unlimited program size — Dedicated pixel processing instructions — Dedicated vertex processing instructions — 2048 32-bit registers • SIMD pipeline supporting operations in: — 32-Bit IEEE Float — 2-way, 16-bit fixed point — 4-way, 8-bit integer — 32-bit, bit-wise (logical only) • Static and Dynamic flow control — Subroutine calls — Loops — Conditional branches — Zero-cost instruction predication • Procedural Geometry — Allows generation of more primitives on output compared with input data — Effective geometry compression — High order surface support • External data access — Permits reads from main memory by cache (can be bypassed) — Permits writes to main memory — Data fence facility provided — Dependent texture reads Datasheet 95 Graphics, Video, and Display (D2:F0) 9.1.3 Vertex Processing Modern graphics processors perform two main procedures to generate 3-D graphics. First, vertex geometry information is transformed and lit to create a 2-D representation in the screen space. Those transformed and lit vertices are then processed to create display lists in memory. The pixel processor then rasterizes these display lists on a regional basis to create the final image. The Intel GMA 500 supports DMA data accesses from SDRAM. DMA accesses are controlled by a main scheduler and data sequencer engine. This engine coordinates the data and instruction flow for the vertex processing, pixel processing, and general purpose operations. Transform and lighting operations are performed by the vertex processing pipeline. A 3-D object is usually expressed in terms of triangles, each of which is made up of three vertices defined by X–Y–Z coordinate space. The transform and lighting process is performed by processing data through the unified shader core. The results of this process are sent to the pixel processing function. The steps to transform and light a triangle or vertex are explained below. 9.1.3.1 Vertex Transform Stages • Local space: Relative to the model itself (e.g., using the model centre at reference point). Prior to being placed into a scene with other objects. • World space: Transform LOCAL to WORLD: This is needed to bring all objects in the scene together into a common coordinate system. • Camera space: Transform WORLD to CAMERA (also called EYE): This is required to transform the world in order to align it with camera view. In OpenGL the local to world and world to camera transformation matrix is combined into one, called the ModelView matrix. • Clip space: Transform CAMERA to CLIP: The projection matrix defines the viewing frustum onto which the scene will be projected. Projection can be orthographic, or perspective. Clip is used because clipping occurs in clip space. • Perspective space: Transform CLIP to PERSPECTIVE: The perspective divide is basically what enables 3-D objects to be projected onto a 2-D space. A divide is necessary to represent distant objects as smaller on the screen. Coordinates in perspective space are called normalized device coordinates ([-1,1] in each axis). • Screen space: Transform PERSPECTIVE to SCREEN: This is where 2-D screen coordinates are finally computed, by scaling and biasing the normalized device coordinates according to the required render resolution. 9.1.3.2 Lighting Stages Lighting is used to generate modifications to the base color and texture of vertices; examples of different types of lighting are: • Ambient lighting is constant in all directions and the same color to all pixels of an object. Ambient lighting calculations are fast, but objects appear flat and unrealistic. • Diffuse lighting takes into account the light direction relative to the normal vector of the object’s surface. Calculating diffuse lighting effects takes more time because the light changes for each object vertex, but objects appear shaded with more three-dimensional depth. • Specular lighting identifies bright reflected highlights that occur when light hits an object surface and reflects back toward the camera. It is more intense than diffuse light and falls off more rapidly across the object surface. Although it takes longer to calculate specular lighting than diffuse lighting, it adds significant detail to the surface of some objects. • Emissive lighting is light that is emitted by an object, such as a light bulb. 96 Datasheet Graphics, Video, and Display (D2:F0) 9.1.4 Pixel Processing After vertices are transformed and lit by the vertex processing pipeline, the pixel processor takes the vertex information and generates the final rasterized pixels to be displayed. The steps of this process include removing hidden surfaces, applying textures and shading, and converting pixels to the final display format. The vertex/pixel shader engine is described in Section 9.1.5. The pixel processing operations also have their own data scheduling function that controls image processor functions and the texture and shader routines. 9.1.4.1 Hidden Surface Removal The image processor takes the floating-point results of the vertex processing and further converts them to polygons for rasterization and depth processing. During depth processing, the relative positions of objects in a scene, relative to the camera, are determined. The surfaces of objects hidden behind other objects are then removed from the scene, thus preventing the processing of un-seen pixels. This improves the efficiency of subsequent pixel-processing. 9.1.4.2 Applying Textures and Shading After hidden surfaces are removed, textures and shading are applied. Texture maps are fetched, mipmaps calculated, and either is applied to the polygons. Complex pixelshader functions are also applied at this stage. 9.1.4.3 Final Pixel Formatting The pixel formatting module is the final stage of the pixel-processing pipeline and controls the format of the final pixel data sent to the memory. It supplies the unified shader with an address into the output buffer, and the shader core returns the relevant pixel data. The pixel formatting module also contains scaling functions, as well as a dithering and data format packing function. 9.1.5 Unified Shader The unified shader engine contains a specialized programmable microcontroller with capabilities specifically suited for efficient processing of graphics geometries (vertex shading), graphics pixels (pixel shading), and general-purpose video and image processing programs. In addition to data processing operations, the unified shader engine has a rich set of program-control functions permitting complex branches, subroutine calls, tests, etc., for run-time program execution. The unified shader core also has a task and thread manager which tries to maintain maximum performance utilization by using a 16-deep task queue to keep the 16 threads full. The unified store contains 16 banks of 128 registers. These 32-bit registers contain all temporary and output data, as well as attribute information. The store employs features which reduce data collisions such as data forwarding, pre-fetching of a source argument from the subsequent instruction. It also contains a write back queue. Like the register store, the arithmetic logic unit (ALU) pipelines are 32-bits wide. For floating-point instructions, these correlate to IEEE floating point values. However, for integer instructions, they can be considered as one 32-bit value, two 16-bit values, or four 8-bit values. When considered as four 8-bit values, the integer unit effectively acts like a four-way SIMD ALU, performing four operations per clock. It is expected that in legacy applications pixel processing will be done on 8-bit integers, roughly quadrupling the pixel throughput compared to processing on float formats. Datasheet 97 Graphics, Video, and Display (D2:F0) 9.1.6 Multi Level Cache The multi-level cache is a three-level cache system consisting of two modules, the main cache module and a request management and formatting module. The request management module also provides Level-0 caching for texture and unified shader core requests. The request management module can accept requests from the data scheduler, unified shaders and texture modules. Arbitration is performed between the three data streams, and the cache module also performs any texture decompression that may be required. 9.2 Video Decode Overview The video decode accelerator improves video performance/power by providing hardware-based acceleration at the macroblock level (variable length decode stage entry point). The Intel® SCH supports full hardware acceleration of the following video decode standards. Table 22. Hardware-Accelerated Video Codec Support Codec H.264 H.264 Profile Baseline profile Main profile L3 L4.1 (1080i @ 30fps) (1080p @ 24fps) L4.1 H.264 MPEG2 MPEG4 MPEG4 VC1 VC1 VC1 WMV9 WMV9 High profile Main profile Simple profile Advanced simple profile Simple profile Main profile Advanced profile Simple profile Main profile (1080i @ 30fps) (1080p @ 24fps) High L3 L5 Medium High L3 up to (1080i @ 30fps) (1080p @ 24fps) Medium High Level Note The video decode function is performed in four processing modules: • Entropy coding processing • Motion compensation • Deblocking • Final pixel formatting 98 Datasheet Graphics, Video, and Display (D2:F0) 9.2.1 Entropy Coding The entropy encoding module serves as the master controller for the video accelerator. The master data stream control and bitstream parsing functions for the macroblock level and below are performed here. Required control parameters are sent to the motion compensation and deblocking modules. The macroblock bitstream parsing performs the entropy encoding functions for VLC, CALVC, and CABAC techniques used in video codecs. The entropy encoding module also performs the motion vector reconstruction using the motion vector predictors. After entropy encoding, the iDCT coefficients are extracted and inverse scan ordered. Then inverse quantization, rescaling, and AC/DC coefficient processing is performed. The re-scaled coefficients are passed to the Inverse Transform engine for processing. The Hadamard transform is also supported and performed here. The inversetransformed data is connected to the output port of entropy coding module, which provides the residual data to the motion compensation module. 9.2.2 Motion Compensation The entropy encoder or host can writes a series of commands to define the type of motion predication used. The motion predicated data is then combined with residual data, and the resulting reconstructed data is passed to the de-blocker. The Motion Compensation module is made-up of four sub-modules: • The Module Control Unit module controls the overall motion compensation operation. It parses the command stream to detect errors in the commands sent, and extracts control parameters for use in later parts of the processing pipeline. The Module Control Unit also accepts residual data (either direct from VEC or by a system register), and re-orders the frame/field format to match the predicted tile format. • The Reference Cache module accepts the Inter/Intra prediction commands, along with the motion vectors and index to reference frame in the case of Inter prediction. The module calculates the location of reference data in the frame store (including out-of-bounds processing requirements). The module includes cache memory which is checked before external system memory reads are requested (the cache can significantly reduce system memory bandwidth requirements). In H264 mode, the module also extracts and stores Intra boundary data which is used in Intra prediction. The output of the Reference Cache is passed to the 2-D filter module. • The 2-D filter module implements up to 8-tap Vertical and Horizontal filters to generate predicted data for sub-pixel motion vectors (to a resolution of up-to 1/8th of a pixel). The 2-D filter module also generates H264 Intra prediction tiles (based on the Intra prediction mode and boundary data extracted by the Reference Cache). For VC1 and WMV9, the 2-D filter module also implements Range scaling and Intensity Compensation on Inter reference data prior to sub-pixel filtering. • The Pixel Reconstruction Unit combines predicted data from the 2-D filter with the re-ordered residual data from the Module Control Unit. In the case of Bi-directional macroblocks with two motion vectors per tile, the Pixel Reconstruction Unit combines the two tiles of predicted data prior to combining the result with residual data. In the case of H264, the Pixel Reconstruction Unit also implements Weighted Averaging. The final reconstructed data is then passed to the VDEB for de-blocking (as well as being fed-back to Reference Cache so that Intra boundary data can be extracted). Datasheet 99 Graphics, Video, and Display (D2:F0) 9.2.3 Deblocking The deblocking module is responsible for codec back-end video filtering. It is the last module within the high definition video decoder module pipeline. The deblocking module performs overlap filtering and in-loop deblocking of the reconstructed data generated by the motion-compensation module. The frames generated are used for display and for reference of subsequent decoded frames. The deblocking module performs the following specific codec functions: • H.264 Deblocking, including ASO modes • VC-1/WMV9 overlap filter and in-loop deblocking • Range-mapping • Pass-through of reconstructed data for codec-modes that don’t require deblocking (MPEG2, MPEG4). 9.2.4 Output Reference Frame Storage Format Interlaced pictures (as opposed to progressive pictures) are always stored in system memory as interlaced frames, including interlaced field pictures. 9.2.4.1 Pixel format The pixel format has the name 420PL12YUV8. This consists of a single plane of luma (Y) and a second plane consisting of interleaved Cr/Cb (V/U) components. For 420PL12YUV8, the number of chroma samples is a quarter of the quantity of luma samples – half as many vertically, half as many horizontally. Table 23. Pixel Format for the Luma (Y) Plane Bit 63:56 55:48 47:40 39:32 31:24 23:16 15:8 Symbol Y7[7:0] Y6[7:0] Y5[7:0] Y4[7:0] Y3[7:0] Y2[7:0] Y1[7:0] Description 8-bit Y luma component 8-bit Y luma component 8-bit Y luma component 8-bit Y luma component 8-bit Y luma component 8-bit Y luma component 8-bit Y luma component Table 24. Pixel Formats for the Cr/Cb (V/U) Plane (Sheet 1 of 2) Bit Format 1 7:0 63:56 55:48 47:40 39:32 31:24 23:16 15:8 7:0 Y0[7:0] U3[7:0] V3[7:0] U2[7:0] V2[7:0] U1[7:0] V1[7:0] U0[7:0] V0[7:0] 8-bit Y luma component 8-bit U/Cb chroma component 8-bit V/Cr chroma component 8-bit U/Cb chroma component 8-bit V/Cr chroma component 8-bit U/Cb chroma component 8-bit V/Cr chroma component 8-bit U/Cb chroma component 8-bit V/Cr chroma component Symbol Description 100 Datasheet Graphics, Video, and Display (D2:F0) Table 24. Pixel Formats for the Cr/Cb (V/U) Plane (Sheet 2 of 2) Bit Symbol Description Format 2 (Cr and Cb are reversed relative to Format 1) 63:56 55:48 47:40 39:32 31:24 23:16 15:8 7:0 V3[7:0] U3[7:0] V2[7:0] U2[7:0] V1[7:0] U1[7:0] V0[7:0] U0[7:0] 8-bit U/Cr chroma component 8-bit V/Cb chroma component 8-bit U/Cr chroma component 8-bit V/Cb chroma component 8-bit U/Cr chroma component 8-bit V/Cb chroma component 8-bit U/Cr chroma component 8-bit V/Cb chroma component 9.3 Display Overview The Intel® SCH display output can be divided into three stages: • Planes — Request/Receive data from memory — Format memory data into pixels — Handle fragmentation, tiling, physical address mapping • Pipes — Generate display timing — Scaling, LUT • Ports — Format pixels for output (SDVO, LVDS) — Interface to physical layer 9.3.1 Planes The Intel® SCH contains a variety of planes (such as, Display and Cursor). A plane consists of rectangular shaped image that has characteristics (such as, source, size, position, method, and format). These planes get attached to source surfaces, which are rectangular areas in memory with a similar set of characteristics. They are also associated with a particular destination pipe. • Display Plane - The primary and secondary display plane works in an indexed mode, hi-color mode or a true color mode. The true color mode allows for an 8-bit alpha channel. One of the primary operations of the display plane is the set mode operation. The set-mode operation occurs when it is desired to enable a display, change the display timing, or source format. The secondary display plane can be used as a primary surface on the secondary display or as a sprite planes on either the primary or secondary display. • Cursor Plane - The cursor plane is one of the simplest display planes. With a few exceptions, the cursor plane supports sizes of 64 x 64, 128 x 128 and 256 x 256 fixed Z-order (top). In legacy modes, cursor can cause the display data below it to be inverted. • VGA Plane - VGA mode provides compatibility for pre-existing software that set the display mode using the VGA CRTC registers. VGA Timings are generated based on the VGA register values (the hi-resolution timing generator registers are not used). Note: The Intel® SCH has limited support for a VGA Plane. The VGA plane is suitable for usages such as BIOS boot screens, pre-OS splash screens, etc. Other usages of the VGA plane (like DOS-based games, for example) are not supported. Datasheet 101 Graphics, Video, and Display (D2:F0) 9.3.2 Display Pipes The display consists of two pipes: • Display Pipe A • Display Pipe B A pipe consists of a set of combined planes and a timing generator. The timing generators provide timing information for each of the display pipes. The Intel® SCH has two independent display pipes, allowing for support of two independent display streams. A port is the destination for the result of the pipe. Pipe A can operate in a single-wide mode. The Clock Generator Units (DPLLA and DPLLB) provide a stable frequency for driving display devices. It operates by converting an input reference frequency into an output frequency. The timing generators take their input from internal DPLL devices that are programmable to generate pixel clocks in the range of 20 MHz–180 MHz. 9.3.3 Display Ports Display ports are the destination for the display pipe. These are the places where the display data finally appears to devices outside the graphics device. The Intel® SCH has one dedicated LVDS port and one SDVO port. Since the Intel® SCH has two display ports available for its two pipes, it can support up to two different images on two different display devices. Timings and resolutions for these two images may be different. 9.3.3.1 LVDS Port Display Pipe B supports output to the LVDS display port. The LVDS port is programmed with the panel timing parameters that are determined by installed panel specifications or read from an onboard EDID ROM. The programmed timing values are then locked into the registers to prevent unwanted corruption of the values. From that point on, the display modes are changed by selecting a different source size for that pipe, programming the VGA registers, or selecting a source size and enabling the VGA. The timing signals will remain stable and active through mode changes. These mode changes include VGA to VGA, VGA to HiRes, HiRes to VGA, and HiRes to HiRes. The transmitter can operate in a variety of modes and supports several data formats. The serializer supports 6-bit or 8-bit color per lane (for 18-bit and 24-bit color respectively) and single-channel operating modes. The display stream from the display pipe is sent to the LVDS transmitter port at the dot clock frequency, which is determined by the panel timing requirements. The output of LVDS is running at a fixed multiple of the dot clock frequency. The single LVDS channel can take 18 or 24 bits of RGB pixel data plus 3 bits of timing control (HSYNC/VSYNC/DE) and output them on four differential data pair outputs. This display port is normally used in conjunction with the pipe functions of panel upscaling and 6-to 8-bit dither. This display port is also used in conjunction with the panel power sequencing and additional associated functions. When enabled, the LVDS constant current drivers consume significant power. Individual pairs or sets of pairs can be selected to be powered down when not being used. When disabled, individual or sets of pairs will enter a low power state. When the port is disabled, all pairs enters a low power mode. The panel power sequencing can be set to override the selected power state of the drivers during power sequencing. A maximum pixel clock of 112 MHz is supported for the LVDS interface. 102 Datasheet Graphics, Video, and Display (D2:F0) 9.3.3.2 SDVO Digital Display Port Display Pipe A is configured to use the SDVO port. The SDVO port can support a variety of display types (VGA, LVDS, DVI, TV-Out, etc.) by an external SDVO device. SDVO devices translate SDVO protocol and timings to the desired display format and timings. A maximum pixel clock of 160 MHz is supported on the SDVO interface. 9.3.3.2.1 SDVO DVI/HDMI DVI (and HDMI), a 3.3-V interface standard supporting the TMDS protocol, is a prime candidate for SDVO. The Intel® SCH provides an unscaled mode where the display data is centered within the attached display area. Monitor Hot Plug functionality is supported. 9.3.3.2.2 SDVO LVDS The Intel® SCH can use the SDVO port to drive an LVDS transmitter. Flat Panel is a fixed resolution display. The Intel® SCH supports panel fitting in the transmitter, receiver or an external device, but has no native panel fitting capabilities. The Intel® SCH provides an unscaled mode where the display data is centered within the attached display area. Scaling in the LVDS transmitter through the SDVO stall input pair is also supported. 9.3.3.2.3 SDVO TV-Out The SDVO port supports both standard and high-definition TV displays in a variety of formats. The SDVO port generates the proper blank and sync timing, but the external encoder is responsible for generation of the proper format signal and output timings. The Intel® SCH will support NTSC/PAL/SECAM standard definition formats. The Intel® SCH will generate the proper timing for the external encoder. The external encoder is responsible for generation of the proper format signal. The TV-out interface on the Intel® SCH is addressable as a master device. This allows an external TV encoder device to drive a pixel clock signal on SDVO_TVCLKIN[+/-] that the Intel® SCH uses as a reference frequency. The frequency of this clock is dependent on the output resolution required. 9.3.3.2.4 Flicker Filter and Overscan Compensation The overscan compensation scaling and the flicker filter is done in the external TV encoder chip. Care must be taken to allow for support of TV sets with high performance de-interlacers and progressive scan displays connected to by way of a non-interlaced signal. Timing will be generated with pixel granularity to allow more overscan ratios to be supported. 9.3.3.2.5 Control Bus The SDVO port defines a two-wire (SDVO_CTRLCLK and SDVO_CTRLDATA) communication path between the SDVO device and Intel® SCH. Traffic destined for the PROM or DDC will travel across the Control bus, and will then require the SDVO device to act as a switch and direct traffic from the Control bus to the appropriate receiver. The Control bus is able to operate at up to 1 MHz. Datasheet 103 Graphics, Video, and Display (D2:F0) 9.4 Table 25. Configuration Registers Graphics and Video PCI Configuration Register Address Map Offset 00h–01h 02h–03h 04h–05h 06h–07h 08h 09h–0Bh 0Eh 10h–13h 14h–17h 18h–1Bh 1Ch–1Fh 2Ch–2Fh 34h 3Ch 3Dh 52h–53h 58h–5Bh 5Ch–5Fh 90h 91h 92h–93h 94h–97h 98h–99h B0h B1h C4h D0h D1h D2h–D3h D4h–D5h E0h–E1h E4h–E7h F0h F4h–F7h FCh–FFh Mnemonic VID DID PCICMD PCISTS RID CC HEADTYP MEM_BASE IO_BASE GMEM_BASE GTT_BASE SS CAP_PTR INT_LN INT_PN GC SSRW BSM MSI_CAPID NXT_PTR3 MSI_CTL MSI_ADR MSI_DATA VEND_CAPID NXT_PTR2 FD PM_CAPID NXT_PTR1 PM_CAP PM_CTL_STS SWSCISMI ASLE GCR LBB ASLS Register Name Vendor Identification Device Identification PCI Command PCI Status Revision Identification Class Codes Header Type Memory Mapped Base Address I/O Base Address Graphics Memory Base Address Graphics Translation Table Range Address Subsystem Identifiers Capabilities Pointer Interrupt Line Interrupt Pin Graphics Control Software Scratch Read Write Base of Stolen Memory MSI Capability ID Next Item Pointer 3 MSI Message Control MSI Message Address MSI Message Data Vendor Capability ID Next Item Pointer 2 Function Disable Power Management Capabilities ID Next Item Pointer 1 Power Management Capabilities Power Management Control/Status Software SCI/SMI System Display Event Register Graphics Clock Ratio Legacy Backlight Brightness ASL Storage Default 8086h 8108h 0000h 0000h see description 03U000h 00h 00000000h 00000000h 00000000h 00000000h See description D0h 00h See description 0030h 00000000h 00000000h 05h 00h 0000h 00000000h 0000h 09h See description 00000000h 01h B0h 0022h 0000h 0000h See description See description See description 00000000h RO RO R/W, RO RO RO RO RO RO, R/W RO, R/W RO, R/W, R/ WLOR/WLO RO, R/W RO RO RO RO RO, R/W R/W RO, R/W RO RO RO, R/W RO, R/W RO, R/W RO RO RO, R/W RO RO RO RO, R/W R/W, R/WO R/W R/W R/W R/W Type NOTE: Address locations that are not shown should be treated as Reserved. 104 Datasheet Graphics, Video, and Display (D2:F0) 9.4.1 VID—Vendor Identification Register Register Address: Default Value: Default and Access 8086h RO 00–01h 8086h Attribute: Size: RO 16 bits Bit Description Vendor Identification Number (VID): PCI standard identification for Intel. 15:0 9.4.2 DID—Device Identification Register Register Address: Default Value: Default and Access 8108810Fh RO 02h 810xh Attribute: Size: RO 16 bits Bit Description 15:0 Device Identification Number (DID): This is a 16-bit value assigned to the Graphics controller. Refer to the Intel® SCH Specification Update for the DID for various product SKU. 9.4.3 PCICMD—PCI Command Register Register Address: Default Value: Default and Access 00h RO 0 R/W 0 RO 0 R/W 0 R/W 0 R/W Reserved Interrupt Disable (ID): This bit disables the device from asserting INTx#. 0 = Enables the assertion of this device’s INTx# signal. 1 = Disables the assertion of this device’s INTx# signal. Reserved Bus Master Enable (BME): Enables the Intel Graphics Media Adapter to function as a PCI compliant master. Memory Space Enable (MSE): When set, accesses to this device’s memory space is enabled. I/O Space Enable (IOSE): When set, accesses to this device’s I/O space is enabled. 04–05h 0000h Attribute: Size: RO, R/W 16 bits Bit Description 15:11 10 9:3 2 1 0 Datasheet 105 Graphics, Video, and Display (D2:F0) 9.4.4 PCISTS—PCI Status Register Register Address: Default Value: Default and Access 0 RO 1 RO 0 RO 000b RO Reserved Capability List (CAP): This bit indicates that the register at 34h provides an offset into PCI Configuration Space containing a pointer to the location of the first item in the list. Interrupt Status (IS): This bit reflects the state of the interrupt in the device in the graphics device. Reserved 06-07h 00000000h Attribute: Size: RO, R/W 16 bits Bit Description 15:5 4 3 2:0 9.4.5 RID—Revision Identification Register Address: Default Value: Default and Access 00h RO 08h See description Attribute: Size: RO 8 bits Bit Description Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the value of the Revision ID Register. 7:0 9.4.6 CC—Class Codes Register Register Address: Default Value: Default and Access 03h RO 00h RO 00h RO 09–0Bh 030000h Attribute: Size: RO 24 bits Bit Description 23:16 15:8 7:0 Base Class Code (BCC): Indicates a display controller. Sub-Class Code (SCC): When GC.VD is cleared, this value is 00h. When GC.VD is set, this value is 80h. Programming Interface (PI): Indicates a display controller. 106 Datasheet Graphics, Video, and Display (D2:F0) 9.4.7 HEADTYP—Header Type Register Register Address: Default Value: Default and Access 0 RO 0000000b RO 0Eh 00h Attribute: Size: RO 8 bits Bit Description Multi Function Status (MFunc): Integrated graphics is a single function. Header Code (HDR): Indicates a Type 0 header format. 7 6:0 9.4.8 MEM_BASE—Memory Mapped Base Address Register Register Address: Default Value: 10h–13h 00000000h Attribute: Size: RO, R/W 32 bits This register requests allocation for the Intel Graphics Media Adapter registers and instruction ports. The allocation is for 512 KB. Bit Default and Access 0000h R/W 0000h RO 0 RO Description Base Address (BA): Set by the OS, these bits correspond to Address Signals 31:19. Reserved Resource Type (RTE): Indicates a request for memory space. 31:19 18:1 0:0 9.4.9 IO_BASE—I/O Base Address Register Register Address: Default Value: 14h–17h 00000000h Attribute: Size: RO, R/W 32 bits This register provides the base offset of 8 bytes of I/O registers within this device. Access to I/O space is allowed in the D0 state and CMD.IOSE is set. Access is disallowed in states D1–D3 or if CMD.IOSE is cleared or if this device is disabled. Access to this space is independent of VGA functionality. Default and Access 0000h RO 0000h R/W 00b RO 1 RO Reserved Base Address (BA): Set by the OS, these bits correspond to Address Signals 15:3. Reserved Resource Type (RTE): Indicates a request for I/O space. Bit Description 31:16 15:3 2:1 0:0 Datasheet 107 Graphics, Video, and Display (D2:F0) 9.4.10 GMEM_BASE—Graphics Memory Base Address Register Register Address: Default Value: 18h–1Bh 00000000h Attribute: Size: RO, R/W 32 bits This register provides the base address of the graphics aperture within this device. Accesses to the graphics aperture use the address translation logic of the memory management unit within the graphics core. Note: Accesses to the graphics aperture are only permitted if the internal memory requesters of the graphics core are not enabled. Default and Access 000b R/W 0b RO 0b R/WLO 0s RO 0 RO Bit Description Base Address (BA): Set by the OS, these bits correspond to Address Signals 31:29. Reserved 256-MB Address Mask (M256): This bit is either part of the Memory Base Address (RW) or part of the Address Mask (RO), depending on the value of MSAC.UAS. Reserved Resource Type (RTE): Indicates a request for memory space. 31:29 28 27 26:1 0 9.4.11 GTT_BASE—Graphics Translation Table Base Address Register Register Address: Default Value: Default and Access 0000h R/W 0b R/WLO 0b R/WLO 0s RO 0 RO 1Ch–1Fh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description Base Address (BA): Set by the OS, these bits correspond to Address Signals 31:19. Reserved 256-KB Address Mask (M256): This bit is either part of the GTT Base Address (RW) or part of the Address Mask (RO), depending on the value of MSAC.UAS Reserved Resource Type (RTE): Indicates a request for memory space. 31:19 18 17 16:1 0 108 Datasheet Graphics, Video, and Display (D2:F0) 9.4.12 SS—Subsystem Identifiers This register matches the value written to the LPC bridge. 9.4.13 CAP_PTR—Capabilities Pointer Register Register Address: Default Value: Default and Access D0h RO 34h 00D0h Attribute: Size: RO, R/W 8 bits Bit Description Pointer (PTR): This field contains an offset into the function's PCI Configuration Space for the first item in the New Capabilities Linked List. 7:0 9.4.14 INT_LN—Interrupt Line Register Register Address: Default Value: Default and Access 00h R/W 3Ch 00h Attribute: Size: RO, R/W 8 bits Bit Description Interrupt Line (ILIN): Software written value to indicate which interrupt line (vector) the interrupt is connected to. No hardware action is taken on this bit. 7:0 9.4.15 INT_PN—Interrupt Pin Register Register Address: Default Value: Default and Access Desc RO 3Dh See Description Attribute: Size: RO 16 bits Bit Description Interrupt Pin (IPIN): This value reflects the value of D02IP.GP in the LPC configuration space. 7:0 Datasheet 109 Graphics, Video, and Display (D2:F0) 9.4.16 GC—Graphics Control Register Register Address: Default Value: Default and Access 0 RO Reserved Graphics Mode Select (GMS): This field is used to select the amount of memory pre-allocated to support the graphics device in VGA (non-linear) and Native (linear) modes. If graphics is disabled, this value must be programmed to 000h. Bits 6:4 000 6:4 011b R/W 001 010 011 others Description No memory pre-allocated. Graphics does not claim VGA cycles (Mem and I/O), and CC.SCC is 80h. 1 MB of memory pre-allocated for frame buffer. 4 MB of memory pre-allocated for frame buffer. 8 MB of memory pre-allocated for frame buffer. reserved 52h–53h 0030h Attribute: Size: RO, R/W 16 bits Bit Description 15:7 This register is locked and becomes Read Only when the D_LCK bit in the SMRAM register is set. Hardware does not clear or set any of these bits automatically based on the Intel Graphics Media Adapter being disabled/ enabled. 3:2 00b RO 0 RO 0 RO Reserved VGA Disable (VD) 0 = VGA memory and I/O cycles are enabled, and CC.SCC is set to 00h. 1 = VGA memory or I/O cycles are not claimed, and CC.SCC is set to 80h. Reserved 1 0 9.4.17 SSRW—Software Scratch Read/Write Register Register Address: Default Value: Default and Access 0 R/W Scratch (S): Scratchpad bits 58h–5Bh 00000000h Attribute: Size: R/W 32 bits Bit Description 31:0 110 Datasheet Graphics, Video, and Display (D2:F0) 9.4.18 BSM—Base of Stolen Memory Register Register Address: Default Value: Default and Access 078h R/W 00000h RO 5Ch–5Fh 07800000h Attribute: Size: RO, R/W 32 bits Bit Description Base of Stolen Memory (BSM): This field contains bits 31:20 of the base address of stolen DRAM memory. Reserved 31:20 19:0 9.4.19 MSAC—Multi Size Aperture Control Register Address: Default Value: 62h 02hh Attribute: Size: RO, R/W 8 bits This register determines the size of the graphics memory aperture. By default, the aperture size is 256 MB. Only BIOS writes this register based on address allocation efforts. Drivers may read this register to determine the correct aperture size. BIOS must restore this data upon S3 resume. Default and Access 0h R/W 00b RO Bit Description Scratch Bits (SCRATCH): These bits have no physical effect on hardware. Reserved Untrusted Aperture Size (UAS): Indicates the size of the untrusted aperture space. Bits 1:0 Description 128 MB. Bits 28 and 27 of GTT_BASE are read-write limiting the address space to 128MB. 256 MB. Bit 28 is read-write and bit 27 of GTT_BASE is read-only limiting the address space to 256MB. Reserved Reserved 7:4 3:2 1:0 10b RW 11 10 01 00 Datasheet 111 Graphics, Video, and Display (D2:F0) 9.4.20 MSI_CAPID—MSI Capability Register Register Address: Default Value: Default and Access 05h RO 90h 05h Attribute: Size: RO 8 bits Bit Description 7:0 Capability ID (ID): Indicates a Messaged Signal Interrupt capability. 9.4.21 NXT_PTR3—Next Item Pointer #3 Register Register Address: Default Value: Default and Access 00h RO 91h 00h Attribute: Size: RO 8 bits Bit Description Pointer to Next Capability (NEXT): 00h indicates this is the last capability in the list. 7:0 9.4.22 MSI_CTL—Message Control Register Register Address: Default Value: Default and Access 00h RO 0 RO 000b R/W 000b RO 0 R/W Reserved 64-bit Address Capable (C64): 32-bit capable only Multiple Message Enable (MME): This field is R/W for software compatibility, but only a single message is ever generated. Multiple Message Capable (MMC): This device is only single message capable. MSI Enable (MSIE): If set, MSI is enabled and traditional interrupts are not used to generate interrupts. CMD.BME must be set for an MSI to be generated. 92h 0000h Attribute: Size: RO, R/W 16 bits Bit Description 15:8 7:7 6:4 3:1 0 112 Datasheet Graphics, Video, and Display (D2:F0) 9.4.23 MSI_ADR—Message Address Register Register Address: Default Value: 94-97h 00000000h Attribute: Size: RO, R/W 32 bits A read from this register produces undefined results. Default and Access 0 R/W 00b RO Bit Description Address (ADDR): Lower 32-bits of the system specified message address, always DWord aligned. Reserved 31:2 1:0 9.4.24 MSI_DATA—Message Data Register Register Address: Default Value: Default and Access 0000h R/W 98-99h 0000h Attribute: Size: RO, R/W 16 bits Bit Description Data (DATA): This 16-bit field is programmed by system software and is driven onto the lower word of data during the data phase of the MSI write transaction. 15:0 9.4.25 VEND_CAPID—Vendor Capability Register Register Address: Default Value: Default and Access 09h RO B0h 09h Attribute: Size: RO 8 bits Bit Description 7:0 Capability ID (ID): 09h indicates a vendor-specific capability. 9.4.26 NXT_PTR2—Next Item Pointer #2 Register Register Address: Default Value: Default and Access B1h 90h/00h Attribute: Size: RO 8 bits Bit Description Pointer to Next Capability (NEXT): 90h indicates the address of the next capability. However, if the FD.MD bit is set, the MSI capability will be disabled and this register will report 00h indicating the Power Management capability is the last capability in the list. 7:0 90h/00h RO Datasheet 113 Graphics, Video, and Display (D2:F0) 9.4.27 FD—Function Disable Register Register Address: Default Value: Default and Access 0s RO 0 R/W 0 R/W Reserved MSI Disable (MD): When set, the MSI capability pointer is not available. The item which points to the MSI capability (NXT_PTR2) will, instead, indicate that this is the last item in the list. Disable (D) 1 = D2:F0 is disabled. C4h–C7h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:2 1 0 9.4.28 PM_CAPID—Power Management Capabilities ID Register Register Address: Default Value: Default and Access 01h RO D0h 01h Attribute: Size: RO 8 bits Bit Description 7:0 Capabilities ID (CAPID): This ID is 01h for power management. 9.4.29 NXT_PTR1—Next Item Pointer #1 Register Register Address: Default Value: Default and Access B0h RO D1h B0h Attribute: Size: RO 8 bits Bit Description Pointer to Next Capability (NEXT): B0h indicates the address of the next capability. 7:0 114 Datasheet Graphics, Video, and Display (D2:F0) 9.4.30 PM_CAP—Power Management Capabilities Register Register Address: Default Value: Default and Access 00h RO 0 RO 0 RO 000b RO 1 RO 00b RO 010b RO D2h–D3h 0022h Attribute: Size: RO, R/W 16 bits Bit Description PME Support (PMES): The Intel Graphics Media Adapter does not generate PME#. D2 Support (D2S): The D2 power management state is not supported. D1 Support (D1S): The D1 power management state is not supported. Reserved Device Specific Initialization (DSI): Hardwired to 1 to indicate that special initialization of the Intel Graphics Media Adapter is required before generic class device driver is to use it. Reserved Version (VS): Indicates compliance with PCI Power Management Specification, Revision 1.1. 15:11 10 9 8:6 5 4:3 2:0 9.4.31 PM_CTL_STS—Power Management Control/Status Register Register Address: Default Value: Default and Access 0000h RO Reserved Power State (PS): This field indicates the current power state of graphics and can be used to set graphics into a new power state. If software attempts to write an unsupported state to this field, the data is discarded and no state change occurs. 00 = D0 (Default) 01 = D1 (Not supported) 10 = D2 (Not supported) 11 = D3 D4h–D5h 0000h Attribute: Size: RO, R/W 16 bits Bit Description 15:2 1:0 00b R/W Datasheet 115 Graphics, Video, and Display (D2:F0) 9.4.32 SWSCISMI—Software SCI/SMI Register Register Address: Default Value: Default and Access 0 R/WO 0s R/W 0 R/W 0 = SMI is selected. 1 = SCI is selected. Software Scratch Bits (SS): Used by software. No hardware functionality. Software SCI Event (SWSCI): If MCS is set, setting this bit causes an SCI. E0h–E1h 0000h Attribute: Size: R/W, R/WO 16 bits Bit Description SMI or SC Event Select (MCS): 15 14:1 0 9.4.33 ASLE—System Display Event Register Register Address: Default Value: Default and Access 00h R/W 00h R/W 00h R/W 00h R/W E4h–E7h 00000000h Attribute: Size: R/W 32 bits Bit Description ASLE Scratch Trigger 3 (AST3): When written, this scratch byte triggers an interrupt when IEF-Bit 0 is enabled and IMR-Bit 0 is unmasked. If written as part of a 16-bit or 32-bit write, only one interrupt is generated in common. ASLE Scratch Trigger 2 (AST2): Same definition as AST3. ASLE Scratch Trigger 1 (AST1): Same definition as AST3. ASLE Scratch Trigger 0 (AST0): Same definition as AST3. 31:24 23:16 15:8 7:0 116 Datasheet Graphics, Video, and Display (D2:F0) 9.4.34 GCR—Graphics Clock Ratio Register Register Address: Default Value: F0h–F3h 00000002h Attribute: Size: RO, R/W 32 bits c Bit 31:2 Default and Access RO 10b R/W Reserved Description 3:2 Graphics 2x Clock to Graphics Clock Ratio: The field is used to configure the graphics 2-D processing engine. 01 = ratio is 2:1 All other encodings are reserved. Graphics Clock to Core Clock Ratio (GCCR): Set by BIOS to correctly configure the graphics clock frequency as a function of the Intel SCH core clock frequency. 1:0 10b R/W 01 = ratio is 2:1 for: 200 MHz Graphics at 100 MHz FSB operation 266 MHz Graphics at 133 MHz FSB operation 10 = ratio is 3:2 for: 200 MHz Graphics at 133-MHz FSB operation All other encodings are reserved. 9.4.35 LBB—Legacy Backlight Brightness Register Register Address: Default Value: Default and Access 00h R/W 00h R/W 00h R/W F4h–F7h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description LBPC Scratch Trigger 3 (LST3): When enabled by internal register bits, a write to this range triggers an display event interrupt. If written as part of a 16-bit or 32-bit write, only one interrupt is generated in common. LBPC Scratch Trigger 2 (LST2): Same definition as LST3 LBPC Scratch Trigger 1 (LST1): Same definition as LST3 Legacy Backlight Brightness (LBES): The value of zero is the lowest brightness setting and 255 is the brightest. If field LBES is written as part of a 16-bit (word) or 32-bit (dword) write to LBB, this will cause a flag to be set (LBES) in the PIPEBSTATUS register and cause an interrupt if Backlight event in the PIPEBSTATUS register and cause an Interrupt if Backlight Event (LBEE) and Display B Event is enabled by software. (If field LBES is written as a (one) byte write to LBB (i.e., if only least significant byte of LBB is written), no flag or interrupt will be generated.) 31:24 23:16 15:8 7:0 00h R/W Datasheet 117 Graphics, Video, and Display (D2:F0) 9.4.36 ASLS—ASL Storage Register Register Address: Default Value: Default and Access FCh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description Scratchpad (SP): This definition of this scratch register is worked out in common between System BIOS and driver software. Storage for up to six devices is possible. For each device, the ASL control method requires two bits for _DOD (BIOS detectable yes or no, VGA/Non VGA), one bit for _DGS (enable/disable requested), and two bits for DCS (enabled now/ disabled now, connected or not). 31:0 0s R/W §§ 118 Datasheet Intel® HD Audio (D27:F0) 10 10.1 Intel® HD Audio (D27:F0) Functional Overview The controller consists of a set of DMA engines that are used to move samples of digitally encoded data between system memory and an external codec(s). The Intel® SCH controller communicates with the external codec(s) over the Intel HD Audio serial link. The Intel® SCH implements two output DMA engines and two input DMA engines. The output DMA engines move digital data from system memory to a D-A converter in a codec. The Intel® SCH implements a single Serial Data Output signal (HDA_SDOUT) that is connected to all external codecs. The input DMA engines move digital data from the A-D converter in the codec to system memory. The Intel® SCH supports up to two external codecs by implementing two Serial Digital Input signals (HDA_SDI[1:0]). Audio software renders outbound and processes inbound data to/from buffers in system memory. The location of individual buffers is described by a Buffer Descriptor List (BDL) that is fetched and processed by the controller. The data in the buffers is arranged in a predefined format. The output DMA engines fetch the digital data from memory and reformat it based on the programmed sample rate, bit/sample and number of channels. The data from the output DMA engines is then combined and serially sent to the external codecs over the Intel HD Audio link. The input DMA engines receive data from the codecs over the Intel HD Audio link and format the data based on the programmable attributes for that stream. The data is then written to memory in the predefined format for software to process. Each DMA engine moves one stream of data. A single codec can accept or generate multiple streams of data, one for each A-D or DA converter in the codec. Multiple codecs can accept the same output stream processed by a single DMA engine. Codec commands and responses are also transported to and from the codecs by DMA engines. The DMA engine dedicated to transporting commands from the Command Output Ring Buffer (CORB) in memory to the codec(s) is called the CORB engine. The DMA engine dedicated to transporting responses from the codec(s) to the Response Input Ring Buffer in memory is called the RIBR engine. Every command sent to a codec yields a response from that codec. Some commands are “broadcast” type commands in which case a response will be generated from each codec. A codec may also be programmed to generate unsolicited responses, which the ROBR engine also processes. The Intel® SCH also supports Programmed I/O-based Immediate Command/Response transport mechanism that can be used by BIOS for memory initialization. 10.1.1 Docking The Intel® SCH controls an external switch that is used to isolate a codec in the docking station. When docking occurs, software is notified by ACP, and initiates the docking sequence. The Intel® SCH manages the switch such that the electrical connection between the dock codec and the Intel HD Audio interface occurs during the proper time within the frame sequence and when the signals are not transitioning. The Intel® SCH drives a dedicated reset signal to dock codec(s). It sequences the switch control and dedicated signal such that the dock codec experiences a “normal” reset as specified in the Intel HD Audio specification. The user normally requests undocking. Software halts streams to the codecs in the docking station and initiates the undocking sequence. The Intel® SCH asserts dock reset and manages the external switch to electrically isolate the dock codec. Electrical isolation during surprise undocking is handled external to the Intel® SCH, and software invokes the undocking sequence as part of the clean-up process to prepare for a subsequent docking event. Datasheet 119 Intel® HD Audio (D27:F0) 10.1.1.1 Dock Sequence This sequence is followed when the system is running and a docking event occurs as well as when resuming from S3 (RESET# asserted) and Intel HD Audio controller D3. • ECAP.DS defaults to set. BIOS may clear this bit to effectively turn off the docking feature. • After reset, GCTL.DA and GSTS.DM are cleared, HDA_DOCK_EN# deasserted and HDA_DOCKRST# asserted. H_CLKIN, HDA_SYNC HDA_SDO may or may not be running. • A docking event is signaled to software through ACPI control methods. How this is done is outside the scope the spec. • Software first checks that the docking is supported (ECAP.DS set) and that GSTS.DM is cleared and initiates the docking sequence by setting GCTL.DA. • The Intel® SCH asserts HDA_DOCK_EN# synchronously to H_CLKIN and timed such that H_CLKIN is low, HDA_SYNC is low, and HDA_SDO is low. In the Intel® SCH, the first 8 bits of the Command field are “reserved” and driven to 0s, creating a predictable point in time to assert HDA_DOCK_EN#. • After it asserts HDA_DOCK_EN#, it waits for a minimum of 2400 FSB clocks and deasserts HDA_DOCKRST#, synchronous to H_CLKIN and timed such that there are least 4 H_CLKIN clock periods from the deassertion of HDA_DOCKRST# to the first frame HDA_SYNC assertion. • The Connect/Turnaround/Address Frame hardware initialization sequence occurs on dock codecs' SDI line. A dock codec is detected when SDI is high on the last H_CLKIN cycle of the Frame HDA_SYNC of a Connect Frame. The appropriate bit(s) in the State Change Status (STATESTS) register are set. The Turnaround and Address Frame initialization sequence then occurs on the dock codecs’ SDI(s). • After the sequence is complete, the Intel® SCH sets GSTS.DM indicating the dock is mated and that software can begin codec discovery, enumeration, and configuration. Software discovers dock codecs by comparing the bits now set in the STATSTS register with the bits that were set prior to docking. 10.1.1.2 Undock Sequence There are two possible undocking scenarios. The first is the one that is initiated by the user that invokes software and gracefully shuts down the dock codecs before they are undocked. The second is referred to as the “surprise undock” where the user undocks while the dock codec is running. Both of these situations appear the same to the controller as it is not cognizant of the “surprise removal” • In the docked quiescent state, GCTL.DA and GSTS.DM are asserted. HDA_DOCK_EN# is asserted and HDA_DOCKRST# is deasserted. • User initiates an undock event through a mechanism outside the scope of this document. • Software halts the stream to the dock codec and clears GCTL.DA. • The Intel® SCH asserts HDA_DOCKRST# synchronous to H_CLKIN. HDA_DOCKRST# assertion will occur a minimum of four H_CLKIN ticks after the completion of the current frame. The HD Audio link reset specification requirement that the last Frame sync be skipped will not be met. • A minimum of four H_CLKIN periods after HDA_DOCKRST#, assertion, the Intel® SCH deasserts HDA_DOCK_EN# to isolate the dock codec. HDA_DOCK_EN# is deasserted synchronously to H_CLKIN and timed such that H_CLKIN, HDA_SYNC, and HDA_SDO are low. • Hardware clears GSTS.DM. An interrupt can be enabled (DMIS status and DMIE enable bits) to notify software. • The Intel® SCH is now ready for a subsequent docking event. 120 Datasheet Intel® HD Audio (D27:F0) 10.1.1.3 Relationship between HDA_DOCKRST# and HDA_RST# HDA_RST# is asserted when RESET# occurs or when the CRST# bit is 0. In both of these cases GCTL.DA and GSTS.DM bits are cleared, HDA_DOCK_EN# is deasserted, and HDA_DOCKRST# is asserted. After reset, software is responsible for initiating the electrical connection, discovery, and enumeration process just as it would for a normal docking event. 10.1.1.4 External Pull-Ups/Pull-Downs The following table shows the resistors that should be mounted on the dock side of the isolation switch. Signal HDA_CLK HDA_SYNC HDA_SDO HDA_SDI (from docked codec(s))s HDA_RST# HDA_DOCK_EN# HDA_DOCKRST# NOTE: 1. Weak pull-down resistor is about 10 kΩ. Intel® SCH Resistors1 Weak Pull-down None None Weak Pull-down None None None External Resistors Weak Pull-Down Weak Pull-Down Weak Pull-Down None NA NA Weak Pull-Down 10.1.2 Low Voltage (LV) Mode The Intel® SCH does not implement an automatic voltage detection circuit to dynamically select the I/O voltage of Intel HD Audio I/O pins. Bit zero of the HD Control Register (Offset 40h) is used to select either high-voltage (3.3 V) or low-voltage (1.5 V) I/O operation. The default mode is 3.3 V. Datasheet 121 Intel® HD Audio (D27:F0) 10.2 PCI Configuration Register Space The Intel HD Audio controller resides in PCI Device 27, Function 0 on Bus 0. This function contains a set of DMA engines that are used to move samples of digitally encoded data between system memory and external codecs. All registers in this function (including memory-mapped registers) must be addressable in byte, word, and Dword quantities. The software must always make register accesses on natural boundaries (i.e., Dword accesses must be on Dword boundaries; word accesses on word boundaries, etc.) In addition, the memory-mapped register space must not be accessed with the LOCK semantic exclusive-access mechanism. If software attempts exclusive-access mechanisms to the Intel HD Audio memory-mapped space, the results are undefined. Table 26. Intel HD Audio PCI Configuration Registers (Sheet 1 of 2) Offset 00h–01h 02h–03h 04h–05h 06h–07h 08h 09–0Bh 0Dh 0Dh 0Eh 10h–13h 14h–17h 2Ch–2Fh 34h 3Ch 3Dh 40h 44h 4Ch 4Dh 50h 51h 52h–53h 54h–57h 60h 61h Mnemonic VID DID PCICMD PCISTS RID CC CLS LT HEADTYP LBAR UBAR SS CAP_PTR INTLN INTPN HDCTL TCSEL DCKCTL DCKSTS PM_CAPID NXT_PTR1 PM_CAP PM_CTL_STS MSI_CAPID NXT_PTR3 Register Name Vendor Identification Device Identification PCI Command PCI Status Revision Identification Class Codes Cache Line Size Latency Timer Header Type Lower Base Address Upper Base Address Subsystem Identifiers Capabilities Pointer Interrupt Line Interrupt Pin HD Control Traffic Class Select Docking Control Docking Status PCI Power Management Capability ID Next Capability Pointer #1 Power Management Capabilities Power Management Control and Status MSI Capability ID Next Capability Pointer #3 Default 8086h 811Bh 0000h 0010h See description 040300h 00h 00h 00h 00000004h 00000000h See description 50h 00h See Description 00h 00h 00h 80h 01h 70h C842 00000000h 05h 70h Access RO RO R/W, RO RO RO RO R/W RO RO R/W, RO R/W R/WO RO R/W RO R/W, RO R/W R/W, RO R/WO, RO RO RO RO R/W, RO, R/WC RO RO 122 Datasheet Intel® HD Audio (D27:F0) Table 26. Intel HD Audio PCI Configuration Registers (Sheet 2 of 2) Offset 62h–63h 64h–67h 68h–69h 70h 71h 72h–73h 74h–77h 78h–79h 7Ah–7Bh FCh–FFh 100h–103h 104h–107h 108h–10Bh 10Ch–10Dh 10Eh–10Fh 110h–103h 114h–117h 11Ah–11Bh 11Ch–11Fh 120h–123h 126h–127h 130h–133h 134h–137h 140h–143h 148h–14bh Mnemonic MSI_CTL MSI_ADR MSI_DATA PCIE_CAPID NXT_PTR2 PCIECAP DEVCAP DEVC DEVS FD VCCAP PVCCAP1 PVCCAP2 PVCCTL PVCSTS VC0CAP VC0CTL VC0STS VC1CAP VC1CTL VC1STS RCCAP ESD L1DESC L1ADD Register Name MSI Message Control MSI Message Address MSI Message Data PCI Express Capability ID Next Capability Pointer #2 PCI Express Capabilities Device Capabilities Device Control Device Status Function Disable Register Virtual Channel Enhanced Capability Header Port VC Capability Register 1 Port VC Capability Register 2 Port VC Control Port VC Status VC0 Resource Capability VC0 Resource Control VC0 Resource Status VC1 Resource Capability VC1 Resource Control VC1 Resource Status Root Complex Link Declaration Enhanced Capability Header Element Self Description Link 1 Description Link 1 Address Default 0080h 00000000h 0000h 10h 60h or 00h 0091h 00000000h 0800h 0000h 00000000h 13010002h 00000001h 00000000h 0000h 0000h 00000000h 800000FFh 0000h 00000000h 00000000h 0000h 00010005h 0F000100h See Description See Description Access R/W, RO R/W, RO R/W RO RO RO RO R/W, RO RO, R/W RO, R/W RO RO RO RO RO RO R/W, RO RO RO R/W, RO RO RO RO, R/W RO RO, R/W NOTE: Address locations that are not shown should be treated as Reserved. Datasheet 123 Intel® HD Audio (D27:F0) 10.2.1 VID—Vendor Identification Register Offset: Default Value: Default and Access RO 00h-01h 8086h Attribute: Size: RO 16 bits Bit 15:0 Description Vendor ID This is a 16-bit value assigned to Intel. Intel VID = 8086h 10.2.2 DID—Device Identification Register Offset Address: Default Value: Default and Access 811Bh RO 02h–03h 811Bh Attribute: Size: RO 16 bits Bit Description Device ID: This is a 16-bit value assigned to the Intel HD Audio controller. 15:0 10.2.3 PCICMD—PCI Command Register Offset Address: Default Value: Default and Access 0h RO 0 R/W 00h RO Reserved Interrupt Disable (ID) 10 0 = The INTx# signals may be asserted. 1 = The Intel® HD Audio controller INTx# signal will be deasserted Note: This bit does not effect the generation of MSI(s). 9:3 Reserved Bus Master Enable (BME): Controls standard PCI Express bus mastering capabilities for Memory and I/O, reads and writes. 2 0 R/W Note that this bit also controls MSI generation since MSIs are essentially memory writes. 0 = Disable 1 = Enable 0 R/W 0 RO Memory Space Enable (MSE): Enables memory space addresses to the Intel HD Audio controller. 0 = Disable 1 = Enable Reserved 04h–05h 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15:11 1 0 124 Datasheet Intel® HD Audio (D27:F0) 10.2.4 PCISTS—PCI Status Register Offset Address: Default Value: Default and Access 000h RO 1 RO Reserved Capabilities List (CAP_LIST): Indicates that the controller contains a capabilities pointer list. The first item is pointed to by looking at configuration offset 34h. Interrupt Status (IS) 3 0 RO 0 = This bit is 0 after the interrupt is cleared. 1 = This bit is 1 when the INTx# is asserted. NOTE: This bit is not set by an MSI. 2:0 000b RO Reserved 06h–07h 0010h Attribute: Size: RO 16 bits Bit Description 15:5 4 10.2.5 RID—Revision Identification Register Offset: Default Value: Default and Access See description RO 08h See description Attribute: Size: RO 8 Bits Bit Description 7:0 Revision ID (RID). Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the value of the Revision ID Register 10.2.6 CC—Class Code Register Offset: Default Value: Default and Access 04h RO 03h RO 00h RO 09h–0Bh 040300h Attribute: Size: RO 24 bits Bit Description 23:16 8:15 7:0 Base Class Code (BCC): 04h = Multimedia device Sub-Class Code (SCC): 03h = Audio Device Programming Interface (PI): Indicates Intel® HD Audio programming interface. Datasheet 125 Intel® HD Audio (D27:F0) 10.2.7 CLS—Cache Line Size Register Address Offset: Default Value: Default and Access 00h R/W 0Ch 00h Attribute: Size: R/W 8 bits Bit Description Cache Line Size (CLS): Does not apply to PCI Express. The PCI Express specification requires this to be implemented as a R/W register but has no functional impact on the Intel® SCH. 7:0 10.2.8 LT—Latency Timer Register Address Offset: Default Value: Default and Access 00h RO 0Dh 00h Attribute: Size: RO 8 bits Bit Description 7:0 Latency Timer: Hardwired to 00 10.2.9 HEADTYP—Header Type Register Address Offset: Default Value: Default and Access 00h RO 0Eh 00h Attribute: Size: RO 8 bits Bit Description 7:0 Header Type: Hardwired to 00. 126 Datasheet Intel® HD Audio (D27:F0) 10.2.10 LBAR—Lower Base Address Register Address Offset: Default Value: Default and Access 0000h R/W 000h RO 0 RO 10b RO 0 RO 10h-13h 00000004h Attribute: Size: R/W, RO 32 bits Bit Description Lower Base Address (LBA): This field provides the base address for the Intel HD Audio controller’s memory mapped configuration registers. 16 KB are requested by hardwiring Bits 13:4 to 0’s. Reserved: Hardwired to 0s Prefetchable (PREF): Hardwired to 0 to indicate that this BAR is NOT prefetchable Address Range (ADDRNG): This field indicates that this BAR can be located anywhere in 64-bit address space. Resource Type (RTE): Indicates this BAR is located in memory space. 31:14 13:4 3 2:1 0 10.2.11 UBAR—Upper Base Address Register Address Offset: Default Value: Default and Access 0 R/W 14h-17h 00000000h Attribute: Size: R/W 32 bits Bit Description Upper Base Address (UBA): This field provides the upper 32 bits of the Base address for the Intel® HD Audio controller memory mapped configuration registers. 31:0 This register matches the value written to the LPC bridge. 10.2.12 SS—Sub System Identifiers Register Offset: Default Value: 2Ch–2Fh 00000000h Attribute: Size: R/WO 32 bits This register is initialized to Logic 0 by the assertion of RESET#. This register can be written only once after RESET# deassertion. Default and Access 0000h R/WO 0000h R/WO Bit Description Subsystem ID (SSID): This field is written by BIOS. No hardware action taken on this value. Subsystem Vendor ID (SSVID): This field is written by BIOS. No hardware action taken on this value. 31:16 15:0 Datasheet 127 Intel® HD Audio (D27:F0) 10.2.13 CAP_PTR—Capabilities Pointer Register Address Offset: Default Value: 34h 50h Attribute: Size: RO 8 bits This register indicates the offset for the capability pointer. Default and Access 50h RO Bit Description Pointer (PTR): This field indicates that the first capability pointer offset is offset 50h (Power Management Capability). 7:0 10.2.14 INTLN—Interrupt Line Register Address Offset: Default Value: Default and Access 00h R/W 3Ch 00h Attribute: Size: R/W 8 bits Bit Description Interrupt Line: This data is not used by the Intel® SCH. It is used to communicate to software the interrupt line that the interrupt pin is connected to. 7:0 10.2.15 INTPN—Interrupt Pin Register Address Offset: Default Value: Default and Access 0h RO 0h RO Reserved Interrupt Pin: This reflects the value of D27IP.ZIP (Chipset Config Registers:Offset 3110h:Bits 3:0). 3Dh See Description Attribute: Size: RO 8 bits Bit Description 7:4 3:0 10.2.16 HDCTL—HD Control Register Address Offset: Default Value: Default and Access 00h RO 0 R/W Reserved Low Voltage Mode Enable (LMVE) 0 = (Default) The Intel HD Audio controller operates in high voltage mode. 1 = The Intel HD Audio controller's AFE operates in low voltage mode. 40h 00h Attribute: Size: R/W, RO 8 bits Bit Description 7:1 0 128 Datasheet Intel® HD Audio (D27:F0) 10.2.17 DCKCTL—Docking Control Register Address Offset: Default Value: Default and Access 00h RO Reserved Dock Attach (DA): Software writes a 1 to this bit to initiate the docking sequence on the HDA_DOCK_EN# and HDA_DOCKRST# signals. When the docking sequence is complete, hardware will set the Dock Mated (GSTS.DM) status bit to a 1. Software writes a 0 to this bit to initiate the undocking sequence on the HDA_DOCK_EN# and HDA_DOCKRST# signals. When the undocking sequence is complete hardware will set the Dock Mated (GSTS.DM) status bit to a 0. NOTES: • Software must check the state of the Dock Mated (GSTS.DM) bit prior to writing to the Dock Attach bit. Software shall only change the DA bit from a 0 to a 1 when DM=0. Likewise, software shall only change the DA bit from 1 to 0 when DM=1. If these rules are violated, the results are undefined. • This bit is Read Only when the DCKSTS.DS bit = 0. 4Ch 00h Attribute: Size: R/W, RO 8 bits Bit Description 7:1 0 0 R/W, RO 10.2.18 DCKSTS—Docking Status Register Address Offset: Default Value: Default and Access 1 R/WO 00h RO 0 RO 4Dh 80h Attribute: Size: R/WO, RO 8 bits Bit Description Docking Supported (DS): When set, indicates Intel® SCH supports docking. DKCTL.DA is only writeable when this bit is 1. This bit is reset on RESET#, but not on CRST# Reserved Dock Mated (DM): This bit indicates that codec is physically and electrically docked. 7 6:1 0 Datasheet 129 Intel® HD Audio (D27:F0) 10.2.19 PM_CAPID—PCI Power Management Capability ID Register Address Offset: Default Value: Default and Access 70h RO 01h RO 50h 01h Attribute: Size: RO 8 bits Bit Description Next Capability (Next): Hardwired to 70h. Points to the next capability structure (PCI Express). Cap ID (CAP): Hardwired to 01h to indicate that this pointer is a PCI power management capability. 15:8 7:0 10.2.20 PM_CAP—Power Management Capabilities Register Address Offset: Default Value: Default and Access 01001b RO 0s RO 010b RO 52h–53h 4802h Attribute: Size: RO 16 bits Bit Description PME Support: Hardwired to 01001b to indicate PME# can be generated from D3HOT and D0 states. Reserved Version (VS): Hardwired to 010b to indicate support for PCI Power Management Specification, Revision 1.1. 15:11 10:3 2:0 130 Datasheet Intel® HD Audio (D27:F0) 10.2.21 PM_CTL_STS—Power Management Control and Status Register Address Offset: Default Value: Default and Access 0000h RO 0 R/WC 00h RO 0 R/W 00h RO Reserved PME Status (PMES) 15 0 = Software clears the bit by writing a 1 to it. 1 = when the Intel HD Audio controller would normally assert the PME# signal independent of the state of the PMEE (bit 8 in this register). Reserved PME Enable (PMEE) 8 0 = Disable 1 = When set, and PMES is set, the audio controller generates an internal Power Management Event (PME). Reserved Power State (PS): This field is used both to determine the current power state of the Intel HD Audio controller and to set a new power state. 00 = D0 state 11 = D3HOT state Others = reserved NOTES: 1:0 00b R/W • If software attempts to write a value of 01b or 10b in to this field, the write operation must complete normally; however, the data is discarded and no state change occurs. • When in the D3HOT states, the Intel HD Audio controller configuration space is available, but the I/O and memory space are not. Additionally, interrupts are blocked. • When software changes this value from D3HOT state to the D0 state, an internal warm (soft) reset is generated, and software must re-initialize the function. 54h-57h 00000000h Attribute: Size: RO, R/W, R/WC 32 bits Bit Description 31:16 14:9 7:2 10.2.22 MSI_CAPID—MSI Capability ID Register Address Offset: Default Value: Default and Access 00h RO 05h RO 60h 0005h Attribute: Size: RO 16 bits Bit Description Next Capability (Next): Points to the next item in the capability list. Wired to 00h to indicate this is the last capability in the list. Cap ID (CAP) Hardwired to 05h: Indicates that this pointer is a MSI capability. 15:8 7:0 Datasheet 131 Intel® HD Audio (D27:F0) 10.2.23 MSI_CTL—MSI Message Control Register Address Offset: Default Value: Default and Access 0000h RO 0 R/W Reserved MSI Enable (ME) 0 = An MSI may not be generated 1 = An MSI will be generated instead of an INTx signal. 62h–63h 0000h Attribute: Size: RO, R/W 16 bits Bit Description 15:1 0 10.2.24 MSI_ADR—MSI Message Address Register Address Offset: Default Value: Default and Access 0s R/W 00b RO 64h–67h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:2 1:0 Message Lower Address (MLA): Address used for MSI message. Reserved 10.2.25 MSI_DATA—MSI Message Data Register Address Offset: Default Value: Default and Access 0000h R/W 68h–69h 0000h Attribute: Size: R/W 16 bits Bit Description 15:0 Message Data (MD): Data used for MSI message. 132 Datasheet Intel® HD Audio (D27:F0) 10.2.26 PCIE_CAPID—PCI Express Capability ID Register Address Offset: Default Value: Default and Access 70h 60/00 10h Attribute: Size: RO 8 bits Bit Description Next Capability (Next): Defaults to 60h, the address of the next capability structure in the list. However, if the FD.MD bit is set, the MSI capability will be disabled and this register will report 00h indicating this capability is the last capability in the list. Cap ID (CAP): Hardwired to 10h. Indicates that this pointer is a PCI Express capability structure. 7:0 60h/00h RO 7:0 10h RO 10.2.27 PCIECAP—PCI Express Capabilities Register Address Offset: Default Value: Default and Access 00h RO 9h RO 1h RO Reserved Device/Port Type (DPT): Hardwired to 1001b. Indicates that this is a Root Complex Integrated endpoint device. Capability Version (CV): Hardwired to 0001b. Indicates version #1 PCI Express capability. 72h–73h 0091h Attribute: Size: RO 16 bits Bit Description 15:8 7:4 3:0 10.2.28 DEVCAP—Device Capabilities Register Address Offset: Default Value: Default and Access 0 RO Reserved 74h–77h 00000000h Attribute: Size: RO 32 bits Bit Description 31:0 Datasheet 133 Intel® HD Audio (D27:F0) 10.2.29 DEVC—Device Control Register Address Offset: Default Value: Default and Access 0 RO 000b RO Reserved Max Read Request Size (MRRS): Hardwired to 000 enabling 128 B maximum read request size. No Snoop Enable (NSNPEN): 0 = The Intel HD Audio controller will not set the No-Snoop bit. In this case, isochronous transfers will not use VC1 (VCi) even if it is enabled since VC1 is never snooped. Isochronous transfers will use VC0. 1 = The Intel HD Audio controller is permitted to set the No-Snoop bit in the Requester Attributes of a bus master transaction. In this case, VC0 or VC1 may be used for isochronous transfers. NOTE: This bit is not reset on D3HOT to D0 transition. 10:4 3:0 0 RO 0 R/W Reserved Error Reporting Bits (ERB): R/W to pass PCI Express compliance test. no functionality. 78h–79h 0800h Attribute: Size: R/W, RO 16 bits Bit Description 15 14:12 11 1 R/W 10.2.30 DEVS—Device Status Register Address Offset: Default Value: Default and Access 0000h RO 0 RO 00000b R/W Reserved Transactions Pending (TXP): 5 0 = Completions for all Non-Posted Requests have been received. 1 = The Intel HD Audio controller has issued Non-Posted requests which have not been completed. Reserved 7ah–7bh 0000h Attribute: Size: RO, R/W 16 bits Bit Description 15:6 4:0 134 Datasheet Intel® HD Audio (D27:F0) 10.2.31 FD—Function Disable Register Address Offset: Default Value: Default and Access 0 RO 0 R/W 0 R/W 0 R/W Reserved Clock Gating Disable (GCD) 0 = Dynamic Clock gating within the function is enabled (Default) 1 = Dynamic Clock gating within the function is disabled. MSI Disable (MD) 1 = When set, the MSI capability pointer is hidden. Disable (D) 1 = Intel® HD Audio function (D27:F0) is disabled. FCh–FFh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:3 2 1 0 10.2.32 VCCAP—Virtual Channel Enhanced Capability Header Register Address Offset: Default Value: Default and Access 130h RO 1h RO 0002h RO 100h–103h 13010002h Attribute: Size: RO 32 bits Bit Description Next Capability Offset (NXTAP): Points to the next capability header, which is the Root Complex Link Declaration Enhanced Capability Header. Capability Version PCI Express Extended Capability 31:20 19:16 15:0 10.2.33 PVCCAP1—Port VC Capability Register 1 Address Offset: Default Value: Default and Access 0 RO 001b RO Reserved Extended VC Count (VCCNT): Hardwired to 001b. Indicates that 1 extended VC (in addition to VC0) is supported by the Intel® HD Audio controller. 104h–107h 00000001h Attribute: Size: RO 32 bits Bit Description 31:3 2:0 Datasheet 135 Intel® HD Audio (D27:F0) 10.2.34 PVCC2—Port VC Capability Register 2 Address Offset: Default Value: Default and Access 0 RO Reserved 108h-10Bh 00000000h Attribute: Size: RO 32 Bits Bit Description 31:0 10.2.35 PCCTL—Port VC Control Address Offset: Default Value: Default and Access 0 RO Reserved 10Ch-10Dh 0000h Attribute: Size: RO 16 Bits Bit Description 15:0 10.2.36 PVCSTS—Port VC Status Address Offset: Default Value: Default and Access 0 RO Reserved 10Eh-10Fh 0000h Attribute: Size: RO 16 Bits Bit Description 15:0 10.2.37 VC0CAP—VC0 Resource Capability Register Address Offset: Default Value: 110h-113h 00000000h Attribute: Size: RO 32 bits Bit Default and Access 0 RO Reserved Description 31:0 136 Datasheet Intel® HD Audio (D27:F0) 10.2.38 VC0CTL—VC0 Resource Control Register Address Offset: Default Value: Default and Access 1 RO 0 RO FFh R/W, RO 114h–117h 800000FFh Attribute: Size: R/W, RO 32 bits Bit Description 31 30:8 7:0 VC0 Enable: Hardwired to 1 for VC0. Reserved TC/VC0 Map: Bit 0 is hardwired to 1 since TC0 is always mapped VC0. Bits [7:1] are implemented as R/W bits. 10.2.39 VCSTS—VC0 Resource Status Register Address Offset: Default Value: Default and Access 0 RO Reserved 11Ah-10Bh 0000h Attribute: Size: RO 16 Bits Bit Description 16:0 10.2.40 VC0CAP—VC0 Resource Capability Register Address Offset: Default Value: Default and Access 0 RO Reserved 11Ch-10Fh 00000000h Attribute: Size: RO 32 Bits Bit Description 31:0 Datasheet 137 Intel® HD Audio (D27:F0) 10.2.41 VC1CTL—VC1 Resource Control Register Address Offset: Default Value: Default and Access VC1 Enable 31 0 R/W 0 = VC1 is disabled 1 = VC1 is enabled NOTE: This bit is not reset on D3HOT to D0 transition. 30:27 0h RO 000b R/W 0h RO 00h R/W, RO Reserved VC1 ID: This field assigns a VC ID to the VC1 resource. This field is not used by the Intel® SCH hardware, but it is R/W to avoid confusing software. Reserved TC/VC Map: This field indicates the TCs that are mapped to the VC1 resource. Bit 0 is hardwired to 0 indicating that it cannot be mapped to VC1. Bits [7:1] are implemented as R/W bits. This field is not used by the Intel® SCH, but it is R/W to avoid confusing software. 120h–123h 00000000h Attribute: Size: R/W, RO 32 bits Bit Description 26:24 23:8 7:0 10.2.42 VC1STS—VC1 Resource Status Register Address Offset: Default Value: Default and Access 0 RO Reserved 126h-127h 0000h Attribute: Size: RO 16 Bits Bit Description 15:0 138 Datasheet Intel® HD Audio (D27:F0) 10.2.43 RCCAP—Root Complex Link Declaration Enhanced Capability Header Register Address Offset: Default Value: Default and Access 000h RO 1h RO 0005h RO 130h–133h 00010005h Attribute: Size: RO 32 bits Bit Description 31:20 19:16 15:0 Next Capability Offset: Indicates this is the last capability. Capability Version PCI Express Extended Capability ID 10.2.44 ESD—Element Self Description Register Address Offset: Default Value: Default and Access 0Fh RO 00h R/W 01h RO 0h RO 0h RO 134h–137h 0F000100h Attribute: Size: RO, R/W 32 bits Bit Description Port Number (PN): Hardwired to 0Fh indicating that the Intel® HD Audio controller is assigned as Port #15d. Component ID (COMPID): Set by BIOS to match the value of ESD.CID of the chip configuration section. Number of Link Entries (NLE): The HD Audio controller only connects to the Intel® SCH egress port. Reserved Element Type (ELTYP): The Intel HD Audio controller is an integrated Root Complex Device. Therefore, the field reports a value of 0h. 31:24 23:16 15:8 7:4 3:0 Datasheet 139 Intel® HD Audio (D27:F0) 10.2.45 L1DESC—Link 1 Description Register Address Offset: Default Value: Default and Access RO See Description RO RO 0 RO 1 RO 140h–143h 00000001h Attribute: Size: RO 32 bits Bit Description Target Port Number: The Intel® HD Audio controller targets the Intel® SCH’s RCRB egress port, Port 0. Target Component ID: Returns the value of ESD.COMPID. Reserved Link Type (LNKTYP): Indicates Type 0. Link Valid (LNKVLD) 31:24 23:16 15:2 1 0 10.2.46 L1ADD—Link 1 Address Register Address Offset: Default Value: Default and Access RCBA R/W 0000h RO 148h–14Bh See Description Attribute: Size: RO, R/W 32 bits Bit Description Base (BASE): Hardwired to match the RCBA register value in the PCI-LPC bridge (D31:F0h). Reserved 31:14 13:0 140 Datasheet Intel® HD Audio (D27:F0) 10.3 Memory Mapped Configuration Registers The base memory location for these memory mapped configuration registers is specified in the LBAR and UBAR registers (D27:F0:offset 10h and D27:F0:offset 14h). The individual registers are then accessible at LBAR + Offset as indicated in Table 27. These memory mapped registers must be accessed in byte, word, or Dword quantities. Table 27. Intel HD Audio Memory Mapped Configuration Registers (Sheet 1 of 3) LBAR + Offset 00h–01h 02h 03h 04h–05h 06h–07h 08h–0Bh 0Ch 0Eh 10h–11h 18h–19h 1Ah–1Bh 20h–23h 24h–27h 30h–33h 38h–3Bh 40h–43h 48h–49h 4Ah–4Bh 4Ch 4Dh 4Eh 50h–53h 58h–59h 5Ah–5Bh 5Ch 5Dh 5Eh 60h–63h 64h–67h 68h–69h Mnemonic GCAP VMIN VMAJ OUTPAY INPAY GCTL WAKEEN STATESTS GSTS OUTSTRMPAY INSTRMPAY INTCTL INTSTS WALCLK SSYNC CORBBASE CORBWP CORBRP CORBCTL CORBST CORBSIZE RIRBBASE RIRBWP RINTCNT RIRBCTL RIRBSTS RIRBSIZE IC IR IRS Register Name Global Capabilities Minor Version Major Version Output Payload Capability Input Payload Capability Global Control Wake Enable State Change Status Global Status Output Stream Payload Capability Input Stream Payload Capability Interrupt Control Interrupt Status Wall Clock Counter Stream Synchronization CORB Base Address CORB Write Pointer CORB Read Pointer CORB Control CORB Status CORB Size RIRB Base Address RIRB Write Pointer Response Interrupt Count RIRB Control RIRB Status RIRB Size Immediate Command Immediate Response Immediate Command Status Default 4401h 00h 01h 003Ch 001Dh 00000000h 0000h 0000h 0000h 0030h 0018h 00000000h 00000000h 00000000h 00000000h 00000000h 0000h 0000h 00h 00h 42h 00000000h 0000h 0000h 00h 00h 40h 00000000h 00000000h 0000h Access RO RO RO RO RO R/W R/W, RO R/W, RO R/WC RO RO R/W, RO RO RO R/W, RO R/W, RO R/W, RO R/W, RO R/W, RO R/WC RO R/W, RO WO, RO R/W, RO R/W, RO R/WC, RO RO R/W RO R/W, R/ WC, RO Datasheet 141 Intel® HD Audio (D27:F0) Table 27. Intel HD Audio Memory Mapped Configuration Registers (Sheet 2 of 3) LBAR + Offset 70h–73h 80-82h 83h 84h–87h 88h–8Bh 8Ch–8dh 8Eh–8Fh 90h–91h 92h–93h 98h–9Bh A0h–A2h A3h A4h–A7h A8h–ABh ACh–ADh AEh–AFh B0h–B1h B2-B3h B8-BBh C0h–C2h C3h C4h–C7h C8h–CBh CCh–CDh CEh–CFh D0h–D1h D2h-D3h D8h–DBh E0h–E2h 123h Mnemonic DPBASE ISD0CTL ISD0STS ISD0LPIB ISD0CBL ISD0LVI ISD0FIFOW ISD0FIFOS ISD0FMT ISD0BDPL ISD1CTL ISD1STS ISD1LPIB ISD1CBL ISD1LVI ISD1FIFOW ISD1FIFOS ISD1FMT ISD1BDPL OSD0CTL OSD0STS OSD0LPIB OSD0CBL OSD0LVI OSD0FIFOW OSD0FIFOS OSD0FMT OSD0BDPL OSD1CTL OSD1STS Register Name DMA Position Base Address Input Stream Descriptor 0 (ISD0) Control ISD0 Status ISD0 Link Position in Buffer ISD0 Cyclic Buffer Length ISD0 Last Valid Index ISD0 FIFO Watermark ISD0 FIFO Size ISD0 Format ISD0 Buffer Descriptor List Pointer Input Stream Descriptor 1(ISD01) Control ISD1 Status ISD1 Link Position in Buffer ISD1 Cyclic Buffer Length ISD1 Last Valid Index ISD1 FIFO Watermark ISD1 FIFO Size ISD1 Format ISD1 Buffer Descriptor List Pointer Output Stream Descriptor 0 (OSD0) Control OSD0 Status OSD0 Link Position in Buffer OSD0 Cyclic Buffer Length OSD0 Last Valid Index OSD0 FIFO Watermark OSD0 FIFO Size OSD0 Format OSD0 Buffer Descriptor List Pointer Output Stream Descriptor 1 (OSD1) Control OSD1 Status Default 00000000h 040000h 00h 00000000h 00000000h 0000h 0004h 0077h 0000h 00000000h 040000h 00h 00000000h 00000000h 0000h 0004h 0077h 0000h 00000000h 040000h 00h 00000000h 00000000h 0000h 0004h 00BFh 0000h 00000000h 040000h 00h Access R/W, RO R/W, RO R/WC, RO RO R/W R/W, RO R/W, RO RO R/W, RO R/W, RO, WO R/W, RO R/WC, RO RO R/W R/W, RO R/W, RO RO R/W, RO R/W, RO, WO R/W, RO R/WC, RO RO R/W R/W, RO R/W, RO R/W, RO R/W, RO R/W, RO, WO R/W, RO R/WC, RO 142 Datasheet Intel® HD Audio (D27:F0) Table 27. Intel HD Audio Memory Mapped Configuration Registers (Sheet 3 of 3) LBAR + Offset E4h–E7h E8h–EBh ECh–EDh EEh–EFh F0h–F1h F2h–F3h F8h–FBh Mnemonic OSD1LPIB OSD1CBL OSD1LVI OSD1FIFOW OSD1FIFOS OSD1FMT OSD1BDPL Register Name OSD1 Link Position in Buffer OSD1 Cyclic Buffer Length OSD1 Last Valid Index OSD1 FIFO Watermark OSD1 FIFO Size OSD1 Format OSD1 Buffer Descriptor List Pointer Default 00000000h 00000000h 0000h 0004h 00BFh 0000h 00000000h Access RO R/W R/W, RO R/W, RO R/W, RO R/W, RO R/W, RO Vendor-Specific Memory Mapped Registers1 1030h–1033h 1004h–1007h 1008h–100Bh 100Ch–100Fh 1010h–1013h 1014h–1017h 1020h–1023h 1024h–1027h 1030h–1033h 2030h–2033h 2084h–2087h 20A4h–20A7h 2104h–2107h 2124h–2127h EM1 INRC OUTRC FIFOTRK I0DPIB I1DPIB O0DPIB O1DPIB EM2 WLCLKA ISD0LPIBA ISD1LPIBA OSD0LPIBA OSD1LPIBA Extended Mode 1 Input Stream Repeat Count Output Stream Repeat Count FIFO Tracking Input Stream 0 DMA Position in Buffer Input Stream 1 DMA Position in Buffer Output Stream 0 DMA Position in Buffer Output Stream 1 DMA Position in Buffer Extended Mode 2 Wall Clock Counter Alias ISD0 Link Position in Buffer Alias ISD1 Link Position in Buffer Alias OSD0 Link Position in Buffer Alias OSD1 Link Position in Buffer Alias 0C00000h 00000000h 00000000h 000FF800h 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h R/W, RO RO RO RO, R/W RO RO RO RO R/W, RO RO RO RO RO RO NOTES: 1. The 4-KB memory-mapped range starting at LBAR + 4 KB is reserved in the Intel HD Audio specification for Vendor-specific registers. 2. Address locations that are not shown should be treated as Reserved. Datasheet 143 Intel® HD Audio (D27:F0) 10.3.1 GCAP—Global Capabilities Register Memory Address: Default Value: Default and Access 0010b RO 0010b RO 00000b RO RO 0b RO 0b RO LBAR + 00h 4401h Attribute: Size: RO 16 bits Bit Description Output Stream Supported (OSS): Indicates that the Intel® HD Audio controller supports 2 output streams. Input Stream Supported (ISS): Indicates that the Intel HD Audio controller supports 2 input streams. Bidirectional Stream Supported: Indicates that the Intel HD Audio controller supports 0 bidirectional stream. Reserved Serial Data Out Signals (NSDO): Indicates that the Intel HD Audio controller supports 1 serial data output signal. 64-bit Address Supported (64OK): 64-bit addressing is not supported. 15:12 11:8 7:3 2 1 0 10.3.2 VMIN—Minor Version Register Memory Address: Default Value: Default and Access 00h RO LBAR + 02h 00h Attribute: Size: RO 8 bits Bit Description Minor Version (MAJ): Indicates that the Intel® SCH supports minor revision number 00h of the Intel® HD Audio specification. 7:0 10.3.3 VMAJ—Major Version Register Memory Address: Default Value: Default and Access 01h RO LBAR + 03h 01h Attribute: Size: RO 8 bits Bit Description Major Version (MAJ): Indicating that the Intel® SCH supports major revision number 01h of the Intel® HD Audio specification. 7:0 144 Datasheet Intel® HD Audio (D27:F0) 10.3.4 OUTPAY—Output Payload Capability Register Memory Address: Default Value: Default and Access 0 RO Reserved Output Payload Capability (OUT): Indicates the total output payload available on the link as 60 words (120 bytes). This field indicates the total output payload available on the link. This does not include bandwidth used for command and control. This measurement is in 16-bit word quantities per 48-MHz frame. 6:0 3Ch RO The default link clock of 24.000 MHz (the data is double pumped) provides 1000 bits per frame, or 62.5 words in total. 40 bits are used for command and control, leaving 60 words available for data payload. 00h = 0 word 01h = 1 word payload ..... FFh = 256 word payload LBAR + 04h 003Ch Attribute: Size: RO 16 bits Bit Description 15:7 10.3.5 INPAY—Input Payload Capability Register Memory Address: Default Value: Default and Access 0 RO Reserved Input Payload Capability (IN): Hardwired to 1Dh indicating 29 word payload. This field indicates the total output payload available on the link. This does not include bandwidth used for response. This measurement is in 16-bit word quantities per 48-MHz frame. The default link clock of 24.000 MHz provides 500 bits per frame, or 31.25 words in total. 36 bits are used for response, leaving 29 words available for data payload. 00h = 0 word 01h = 1 word payload ..... FFh = 256 word payload LBAR + 06h 001dh Attribute: Size: RO 16 bits Bit Description 15:7 6:0 1Dh RO Datasheet 145 Intel® HD Audio (D27:F0) 10.3.6 GCTL—Global Control Register Memory Address: Default Value: LBAR + 08h 00000000h Attribute: Size: (Sheet 1 of 2) R/W, RO 32 bits Bit Default and Access 0 RO 0 R/W 000000b RO Reserved Description 31:9 Accept Unsolicited Response Enable (AURE) 8 0 = Unsolicited responses from the codecs are not accepted. 1 = Unsolicited response from the codecs are accepted by the controller and placed into the Response Input Ring Buffer. Reserved Flush Control (FLUSH): Writing a 1 to this bit initiates a flush. When the flush completion is received by the controller, hardware sets the Flush Status bit and clears this Flush Control bit. Before a flush cycle is initiated, the DMA Position Buffer must be programmed with a valid memory address by software, but the DMA Position Buffer Bit 0 needs not be set to enable the position reporting mechanism. Also, all streams must be stopped (the associated RUN bit must be a 0. When the flush is initiated, the controller will flush the pipelines to memory to ensure that the hardware is ready to transition to a D3 state. Setting this bit is not a critical step in the power state transition if the content of the FIFIOs is not critical. 7:2 1 0 R/W 146 Datasheet Intel® HD Audio (D27:F0) (Sheet 2 of 2) Bit Default and Access Controller Reset # Description 0 0 R/W 0 = Writing a 0 to this bit causes the Intel HD Audio controller to be reset. All state machines, FIFOs and non-resume well memory mapped configuration registers (not PCI configuration registers) in the controller will be reset. The Intel HD Audio link RESET# signal will be asserted, and all other link signals will be driven to their default values. After the hardware has completed sequencing into the reset state, it will report a 0 in this bit. Software must read a 0 from this bit to verify the controller is in reset. 1 = Writing a 1 to this bit causes the controller to exit its reset state and deassert the Intel HD Audio link RESET# signal. Software is responsible for setting/clearing this bit such that the minimum Intel HD Audio link RESET# signal assertion pulse width specification is met. When the controller hardware is ready to begin operation, it will report a 1 in this bit. Software must read a 1 from this bit before accessing any controller registers. This bit defaults to a 0 after Hardware reset, therefore, software needs to write a 1 to this bit to begin operation. NOTES: • The CORB/RIRB RUN bits and all stream RUN bits must be verified cleared to 0 before writing a 0 to this bit in order to assure a clean re-start. • When setting or clearing this bit, software must ensure that minimum link timing requirements (minimum RESET# assertion time, etc.) are met. • When this bit is 0 indicating that the controller is in reset, writes to all Intel HD Audio memory mapped registers are ignored as if the device is not present. The only exception is this register itself. The Global Control register is write-able as a DWord, Word, or Byte even when CRST# (this bit) is 0 if the byte enable for the byte containing the CRST# bit (Byte Enable 0) is active. If Byte Enable 0 is not active, writes to the Global Control register will be ignored when CRST# is 0. When CRST# is 0, reads to Intel HD Audio memory mapped registers will return their default value except for registers that are not reset with RESET# or on a D3HOT to D0 transition. 10.3.7 STATESTS - State Change Status Memory Address: Default Value: LBAR + 0Eh 001dh Attribute: Size: RO 16 bits Datasheet 147 Intel® HD Audio (D27:F0) Bit Default and Access 0 RO Reserved Description 15:3 SDIN State Change Status Flags (SDIWAKE): Flag bits that indicate which SDI signal(s) received a "State Change" event. The bits are cleared by writing a 1 to them. 1:0 00b RWC Bit 0 is for SDI0, Bit 1 is for SDI1 Bit 2 is for SDI2. These bits are in the suspend well and only cleared on a power-on reset. Software must not make assumptions about the reset state of these bits and must set them appropriately. 148 Datasheet Intel® HD Audio (D27:F0) 10.3.8 GSTS—Global Status Register Memory Address: Default Value: Default and Access 000h RO Reserved Dock Mated Interrupt Status (DMIS): A 1 indicates that the dock mating or unmating process has completed. For the docking process it indicates that dock is electrically connected and that software may detect and enumerate the docked codecs. For the undocking process it indicates that the dock is electrically isolated and that software may report to the user that physical undocking may commence. This bit gets set to a 1 by hardware when the DM bit transitions from a 0 to a 1 (docking) or from a 1 to a 0 (undocking). Note that this bit is set regardless of the state of the DMIE bit. Software clears this bit by writing a 1 to it. Writing a 0 to this bit has no effect. Dock Mated (DM): This bit effectively communicates to software that an Intel HD Audio docked codec is physically and electrically attached. Controller hardware sets this bit to 1 after the docking sequence triggered by writing a 1 to the Dock Attach (GCTL.DA) bit is completed (HDA_DOCKRST# deassertion). This bit indicates to software that the docked codec(s) may be discovered by the STATESTS register and then enumerated. Controller hardware sets this bit to 0 after the undocking sequence triggered by writing a 0 to the Dock Attach (GCTL.DA) bit is completed (DOCK_EN# deasserted). This bit indicates to software that the docked codec(s) may be physically undocked. This bit is Read Only. Writes to this bit have no effect. 0 R/WC 0 RO Flush Status: This bit is set to 1 by hardware to indicate that the flush cycle initiated when the Flush Control bit (LBAR + 08h, Bit 1) was set has completed. Software must write a 1 to clear this bit before the next time the Flush Control bit is set to clear the bit. Reserved LBAR + 10h 0000h Attribute: Size: R/WC, RO 16 bits Bit Description 15:4 3 0 R/WC 2 0 RO 1 0 Datasheet 149 Intel® HD Audio (D27:F0) 10.3.9 ECAP—Extended Capabilities Memory Address: Default Value: Default and Access 0 RO 000b R/WO Reserved Docking Supported (DS): A 1 indicates that Intel® SCH supports Intel HD Audio Docking. The GCTL.DA bit is only writable when this bit is 1. This bit is reset to its default value only on RESET#, but not on a CRST# or D3HOT-to-D0 transition. LBAR + 14h 00000001h Attribute: Size: RO 32 bits Bit Description 31:1 1 10.3.10 STRMPAY—Stream Payload Capability Memory Address: Default Value: Default and Access 00h RO 18h RO 00h RO 30h RO Reserved Input (IN): Indicates the number of words per frame for the input streams is 24 words. This measurement is in 16-bit word quantities per 48-kHz frame. Reserved Output (OUT): Indicates the number of words per frame for output streams is 48 words. This measurement is in 16-bit word quantities per 48-kHz frame. LBAR + 18h 00180030h Attribute: Size: RO 32 bits Bit Description 31:24 23:16 15:8 7:0 150 Datasheet Intel® HD Audio (D27:F0) 10.3.11 INTCTL—Interrupt Control Register Memory Address: Default Value: Default and Access LBAR + 20h 00000000h Attribute: Size: R/W, RO 32 bits Bit Description Global Interrupt Enable (GIE): Global bit to enable device interrupt generation. 1 = Intel® HD Audio function is enabled to generate an interrupt. This control is in addition to any bits in the bus specific address space, such as the Interrupt Enable bit in the PCI configuration space. NOTE: This bit is not affected by the D3HOT to D0 transition. Controller Interrupt Enable (CIE): Enables the general interrupt for controller functions. 1 = Controller generates an interrupt when the corresponding status bit gets set due to a Response Interrupt, a Response Buffer Overrun, and State Change events. NOTE: This bit is not affected by the D3HOT to D0 transition. 31 0 R/W 30 0 R/W 29:4 3 2 1 0 0 RO 0 R/W 0 R/W 0 R/W 0 R/W Reserved Output Stream 2 (OS2): This bit set and GE set enables INTSTS.OS2 to generate an interrupt. Output Stream 1 (OS1): This bit set and GE set enables INTSTS.OS1 to generate an interrupt. Input Stream 2 (IS2): This bit set and GE set enables INTSTS.IS2 to generate an interrupt. Input Stream 1 (IS1): This bit set and GE set enables INTSTS.IS1 to generate an interrupt. Datasheet 151 Intel® HD Audio (D27:F0) 10.3.12 INTSTS—Interrupt Status Register Memory Address: Default Value: Default and Access 0 RO LBAR + 24h 00000000h Attribute: Size: RO 32 bits Bit Description Global Interrupt Status (GIS): This bit is an OR of all the interrupt status bits in this register. NOTE: This bit is not affected by the D3HOT to D0 transition. Controller Interrupt Status (CIS): Status of general controller interrupt. 1 = Indicates that an interrupt condition occurred due to a Response Interrupt, a Response Buffer Overrun Interrupt, or a SDIN State Change event. The exact cause can be determined by interrogating other registers. This bit is an OR of all of the stated interrupt status bits for this register. NOTES: 1. This bit is set regardless of the state of the corresponding Interrupt Enable bit, but a hardware interrupt will not be generated unless the corresponding enable bit is set. 2. This bit is not affected by the D3HOT to D0 transition. 31 30 0 RO 29:4 3 2 1 0 0 RO 0 RO 0 RO 0 RO 0 RO Reserved Output Stream 2 (OS2): 1 = Interrupt occurred on Output Stream 2. Output Stream 1 (OS1): 1 = Interrupt occurred on Output Stream 1. Input Stream 2 (IS2): 1 = Interrupt occurred on Input Stream 2. Input Stream 1 (IS1): 1 = Interrupt occurred on Input Stream 1. 152 Datasheet Intel® HD Audio (D27:F0) 10.3.13 WALCLK—Wall Clock Counter Register Memory Address: Default Value: Default and Access LBAR + 30h 00000000h Attribute: Size: RO 32 bits Bit Description Wall Clock Counter: This field is a 32-bit counter that is incremented on each link H_CLKIN period and rolls over from FFFF FFFFh to 0000 0000h. This counter will roll over to 0 with a period of approximately 179 seconds. This counter is enabled while the H_CLKIN bit is set to 1. Software uses this counter to synchronize between multiple controllers. Will be reset on controller reset. 31:0 0s RO 10.3.14 SSYNC—Stream Synchronization Register Memory Address: Default Value: Default and Access 0 RO 0 R/W 0 R/W 0 R/W 0 R/W Reserved Output Stream 2 Sync (OS2): When set, this bit blocks data from being sent for output stream 2. Output Stream 1 Sync (OS1): When set, this bit blocks data from being sent for output stream 1. Input Stream 2 Sync (IS2): When set, this bit blocks data from being received from input stream 2. Input Stream 1 Sync (IS1): When set, this bit blocks data from being received from input stream 1. LBAR + 38h 00000000h Attribute: Size: R/W, RO 32 bits Bits Description 31:4 3 2 1 0 10.3.15 CORBBASE—CORB Base Address Register Memory Address: Default Value: Default and Access 0 R/W 0 RO LBAR + 40h 00000000h Attribute: Size: R/W, RO 32 bits Bit Description CORB Base Address: This field is the lower address of the Command Output Ring Buffer, allowing the CORB base address to be assigned on any 128-B boundary. This register field must not be written when the DMA engine is running or the DMA transfer may be corrupted. Reserved 31:7 6:0 Datasheet 153 Intel® HD Audio (D27:F0) 10.3.16 CORBWP—CORB Write Pointer Register Memory Address: Default Value: Default and Access 00h RO Reserved CORB Write Pointer: Software writes the last valid CORB entry offset into this field in Dword granularity. The DMA engine fetches commands from the CORB until the Read pointer matches the Write pointer. Supports 256 CORB entries (256 x 4 byte = 1 KB). This register field may be written when the DMA engine is running. LBAR + 48h 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15:8 7:0 00h R/W 10.3.17 CORBRP—CORB Read Pointer Register Memory Address: Default Value: Default and Access LBAR + 4Ah 0000h Attribute: Size: R/W, RO 16 bits Bit Description CORB Read Pointer Reset: Software writes a 1 to this bit to reset the CORB Read Pointer to 0 and clear any residual prefetched commands in the CORB hardware buffer within the Intel HD Audio controller. The hardware will physically update this bit to 1 when the CORB Pointer reset is complete. Software must read a 1 to verify that the reset completed correctly. Software must clear this bit back to 0 and read back the 0 to verify that the clear completed correctly. The CORB DMA engine must be stopped prior to resetting the Read Pointer or else DMA transfer may be corrupted. Reserved CORB Read Pointer (CORBRP): Software reads this field to determine how many commands it can write to the CORB without over-running. The value read indicates the CORB Read Pointer offset in Dword granularity. The offset entry read from this field has been successfully fetched by the DMA controller and may be over-written by software. Supports 256 CORB entries (256 x 4 byte =1 KB). This field may be read while the DMA engine is running. 15 0 R/W 14:8 00h RO 7:0 00h RO 154 Datasheet Intel® HD Audio (D27:F0) 10.3.18 CORBCTL—CORB Control Register Memory Address: Default Value: Default and Access 00h RO Reserved Enable CORB DMA Engine: 0 R/W 0 = DMA stop 1 = DMA run After software writes a 0 to this bit, the hardware may not stop immediately. The hardware will physically update the bit to 0 when the DMA engine is truly stopped. Software must read a 0 from this bit to verify that the DMA engine is truly stopped. CORB Memory Error Interrupt Enable: If this bit is set, the controller will generate an interrupt if the CMEI status bit (LBAR + 4Dh: bit 0) is set. LBAR + 4Ch 00h Attribute: Size: R/W, RO 8 bits Bit Description 7:2 1 0 0 R/W 10.3.19 CORBST—CORB Status Register Memory Address: Default Value: Default and Access 00h Reserved LBAR + 4dh 00h Attribute: Size: RO 8 bits Bit 7:0 Description 10.3.20 CORBSIZE—CORB Size Register Memory Address: Default Value: Default and Access 0100b RO 00b RO 10b RO LBAR + 4Eh 42h Attribute: Size: RO 8 bits Bit Description CORB Size Capability: Hardwired to 0100b indicating that the Intel® SCH only supports a CORB size of 256 CORB entries (1024B). Reserved CORB Size: Hardwired to 10b which sets the CORB size to 256 entries (1024 B). 7:4 3:2 1:0 Datasheet 155 Intel® HD Audio (D27:F0) 10.3.21 RIRBBASE—RIRB Base Address Register Memory Address: Default Value: Default and Access 0s R/W 00h RO LBAR + 50h 00000000h Attribute: Size: R/W, RO 32 bits Bit Description CORB Lower Base Address: This field is the lower address of the Response Input Ring Buffer, allowing the RIRB base address to be assigned on any 128-B boundary. This register field must not be written when the DMA engine is running or the DMA transfer may be corrupted. Reserved 31:7 6:0 10.3.22 RIRBWP—RIRB Write Pointer Register Memory Address: Default Value: Default and Access 0 WO 00h RO LBAR + 58h 0000h Attribute: Size: WO, RO 16 bits Bit Description RIRB Write Pointer Reset: Software writes a 1 to this bit to reset the RIRB Write Pointer to 0. The RIRB DMA engine must be stopped prior to resetting the Write Pointer or else DMA transfer may be corrupted. This bit is always read as 0. 15 14:8 Reserved RIRB Write Pointer (RIRBWP): This field is the indicates the last valid RIRB entry written by the DMA controller. Software reads this field to determine how many responses it can read from the RIRB. The value read indicates the RIRB Write Pointer offset in 2-DWord RIRB entry units (since each RIRB entry is 2 dwords long). Supports up to 256 RIRB entries (256 x 8 bytes = 2KB). This register field may be written when the DMA engine is running. 7:0 00h RO 156 Datasheet Intel® HD Audio (D27:F0) 10.3.23 RINTCNT—Response Interrupt Count Register Memory Address: Default Value: Default and Access 00h RO Reserved N Response Interrupt Count 0000 0001b = 1 response sent to RIRB ........... 1111 1111b = 255 responses sent to RIRB 7:0 00h R/W 0000 0000b = 256 responses sent to RIRB The DMA engine should be stopped when changing this field or else an interrupt may be lost. Note that each response occupies 2 DWords in the RIRB. This is compared to the total number of responses that have been returned, as opposed to the number of frames in which there were responses. If more than one codecs responds in one frame, then the count is increased by the number of responses received in the frame. LBAR + 5Ah 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15:8 10.3.24 RIRBCTL—RIRB Control Register Memory Address: Default Value: Default and Access 0h RO 0 R/W Reserved Response Overrun Interrupt Control: If this bit is set, the hardware will generate an interrupt when the Response Overrun Interrupt Status bit (LBAR + 5Dh: bit 2) is set. Enable RIRB DMA Engine: 0 R/W 0 = DMA stop 1 = DMA run After software writes a 0 to this bit, the hardware may not stop immediately. The hardware will physically update the bit to 0 when the DMA engine is truly stopped. Software must read a 0 from this bit to verify that the DMA engine is truly stopped. Response Interrupt Control: 0 0 R/W 0 = Disable Interrupt 1 = Generate an interrupt after N number of responses are sent to the RIRB buffer OR when an empty Response slot is encountered on all SDI[x] inputs (whichever occurs first). The N counter is reset when the interrupt is generated. LBAR + 5Ch 00h Attribute: Size: R/W, RO 8 bits Bit Description 7:3 2 1 Datasheet 157 Intel® HD Audio (D27:F0) 10.3.25 RIRBSTS—RIRB Status Register Memory Address: Default Value: Default and Access 0h RO Reserved Response Overrun Interrupt Status: Software sets this bit to 1 when the RIRB DMA engine is not able to write the incoming responses to memory before additional incoming responses overrun the internal FIFO. When the overrun occurs, the hardware will drop the responses which overrun the buffer. An interrupt may be generated if the Response Overrun Interrupt Control bit is set. Note that this status bit is set even if an interrupt is not enabled for this event. Software clears this bit by writing a 1 to it. 1 0 RO Reserved Response Interrupt: Hardware sets this bit to 1 when an interrupt has been generated after N number of Responses are sent to the RIRB buffer OR when an empty Response slot is encountered on all SDI[x] inputs (whichever occurs first). Note that this status bit is set even if an interrupt is not enabled for this event. Software clears this bit by writing a 1 to it. LBAR + 5Dh 00h Attribute: Size: R/WC, RO 8 bits Bit Description 7:3 2 0 R/WC 0 0 R/WC 10.3.26 RIRBSIZE—RIRB Size Register Memory Address: Default Value: Default and Access 0100b RO 00b RO 00b RO LBAR + 5Eh 40h Attribute: Size: RO 8 bits Bit Description RIRB Size Capability: Hardwired to 0100b indicating that the Intel® SCH only supports a RIRB size of 256 RIRB entries (2048 B). Reserved RIRB Size: Hardwired to 10b which sets the CORB size to 256 entries (2048 B). 7:4 3:2 1:0 158 Datasheet Intel® HD Audio (D27:F0) 10.3.27 IC—Immediate Command Register Memory Address: Default Value: Default and Access 0 R/W LBAR + 60h 00000000h Attribute: Size: R/W 32 bits Bit Description Immediate Command Write: The command to be sent to the codec by the Immediate Command mechanism is written to this register. The command stored in this register is sent out over the link during the next available frame after a 1 is written to the ICB bit (LBAR + 68h: bit 0). 31:0 10.3.28 IR—Immediate Response Register Memory Address: Default Value: Default and Access LBAR + 64h 00000000h Attribute: Size: RO 32 bits Bit Description Immediate Response Read (IRR): This register contains the response received from a codec resulting from a command sent by the Immediate Command mechanism. If multiple codecs responded in the same time, there is no assurance as to which response will be latched. Therefore, broadcast-type commands must not be issued by the Immediate Command mechanism. 31:0 0 RO Datasheet 159 Intel® HD Audio (D27:F0) 10.3.29 IRS—Immediate Command Status Register Memory Address: Default Value: Default and Access 0 RO Reserved Immediate Result Valid (IRV): This bit is set to 1 by hardware when a new response is latched into the Immediate Response register (LBAR + 64). This is a status flag indicating that software may read the response from the Immediate Response register. Software must clear this bit by writing a 1 to it before issuing a new command so that the software may determine when a new response has arrived. Immediate Command Busy (ICB): When this bit is read as 0, it indicates that a new command may be issued using the Immediate Command mechanism. When this bit transitions from a 0 to a 1 (by software writing a 1), the controller issues the command currently stored in the Immediate Command register to the codec over the link. When the corresponding response is latched into the Immediate Response register, the controller hardware sets the IRV flag and clears the ICB bit back to 0. NOTE: An Immediate Command must not be issued while the CORB/RIRB mechanism is operating, otherwise the responses conflict. This must be enforced by software. LBAR + 68h 0000h Attribute: Size: R/W, R/WC, RO 16 bits Bit Description 15:2 1 0 R/WC 0 0 R/W 10.3.30 DPBASE—DMA Position Base Address Register Memory Address: Default Value: Default and Access LBAR + 70h 00000000h Attribute: Size: R/W, RO 32 bits Bit Description DMA Position Base Address: This field is the lower 32 bits of the DMA Position Buffer Base Address. This register field must not be written when any DMA engine is running or the DMA transfer may be corrupted. This same address is used by the Flush Control and must be programmed with a valid value before the Flush Control bit (LBAR+08h:Bit 1) is set. Reserved DMA Position Buffer Enable: When this bit is set to 1, the controller will write the DMA positions of each of the DMA engines to the buffer in the main memory periodically (typically once per frame). Software can use this value to know what data in memory is valid data. 31:7 0 R/W 6:1 00000b RO 0 R/W 0 160 Datasheet Intel® HD Audio (D27:F0) 10.3.31 SDCTL—Stream Descriptor Control Register Memory Address: Input Stream[0]: LBAR + 80h Input Stream[1]: LBAR + A0h Output Stream[0]: LBAR + C0h Output Stream[1]: LBAR + E0h 040000h Attribute: R/W, RO Default Value: Default and Access Size: 24 bits Bit Description Stream Number: This value reflect the Tag associated with the data being transferred on the link. When data controlled by this descriptor is sent out over the link, it will have its stream number encoded on the HDA_SYNC signal. When an input stream is detected on any of the SDI signals that match this value, the data samples are loaded into FIFO associated with this descriptor. Note that while a single SDI input may contain data from more than one stream number, two different SDI inputs may not be configured with the same stream number. 0000 = 0001 = ........ 1110 = 1111 = Reserved Stream 1 Stream 14 Stream 15 23:20 0h R/W 19 18 17:16 15:5 0 RO 1 RO 00 RO 0 RO 0 R/W Bidirectional Direction Control: This bit is only meaningful for bidirectional streams; therefore, this bit is hardwired to 0. Traffic Priority: Hardwired to 1 indicating that all streams will use VC1 if it is enabled through the PCI Express registers. Stripe Control: This bit is only meaningful for input streams; therefore, this bit is hardwired to 0. Reserved Descriptor Error Interrupt Enable 0 = Disable 1 = An interrupt is generated when the Descriptor Error Status bit is set. FIFO Error Interrupt Enable: This bit controls whether the occurrence of a FIFO error (overrun for input or underrun for output) will cause an interrupt or not. If this bit is not set, Bit 3 in the Status register will be set, but the interrupt will not occur. Either way, the samples will be dropped. Interrupt on Completion Enable: This bit controls whether or not an interrupt occurs when a buffer completes with the IOC bit set in its descriptor. If this bit is not set, Bit 2 in the Status register will be set, but the interrupt will not occur. 4 3 0 R/W 2 0 R/W Datasheet 161 Intel® HD Audio (D27:F0) Bit Default and Access Stream Run (RUN): Description 1 0 R/W 0 = The DMA engine associated with this input stream will be disabled. The hardware will report a 0 in this bit when the DMA engine is actually stopped. Software must read a 0 from this bit before modifying related control registers or restarting the DMA engine. 1 = The DMA engine associated with this input stream will be enabled to transfer data from the FIFO to the main memory. The SSYNC bit must also be cleared in order for the DMA engine to run. For output streams, the cadence generator is reset whenever the RUN bit is set. Stream Reset (SRST): 0 = Writing a 0 causes the corresponding stream to exit reset. When the stream hardware is ready to begin operation, it will report a 0 in this bit. Software must read a 0 from this bit before accessing any of the stream registers. 1 = Writing a 1 causes the corresponding stream to be reset. The Stream Descriptor registers (except the SRST bit itself) and FIFOs for the corresponding stream are reset. After the stream hardware has completed sequencing into the reset state, it will report a 1 in this bit. Software must read a 1 from this bit to verify that the stream is in reset. The RUN bit must be cleared before SRST is asserted. 0 0 R/W 162 Datasheet Intel® HD Audio (D27:F0) 10.3.32 SDSTS—Stream Descriptor Status Register Memory Address: Input Stream[0]: LBAR + 83h Input Stream[1]: LBAR + A3h Output Stream[0]: LBAR + C3h Output Stream[1]: LBAR + E3h 00h Attribute: R/WC, RO Default Value: Default and Access 00b RO Size: 8 bits Bit Description 7:6 Reserved FIFO Ready (FIFORDY): For output streams, the controller hardware will set this bit to 1 while the output DMA FIFO contains enough data to maintain the stream on the link. This bit defaults to 0 on reset because the FIFO is cleared on a reset. For input streams, the controller hardware will set this bit to 1 when a valid descriptor is loaded and the engine is ready for the RUN bit to be set. Descriptor Error: When set, this bit indicates that a serious error occurred during the fetch of a descriptor. This could be a result of a Master Abort, a parity or ECC error on the bus, or any other error which renders the current Buffer Descriptor or Buffer Descriptor list useless. This error is treated as a fatal stream error, as the stream cannot continue running. The RUN bit will be cleared and the stream will stopped. Software may attempt to restart the stream engine after addressing the cause of the error and writing a 1 to this bit to clear it. FIFO Error: This bit is set when a FIFO error occurs. This bit is set even if an interrupt is not enabled. The bit is cleared by writing a 1 to it. 5 0 RO 4 0 R/WC 3 0 R/WC For an input stream, this indicates a FIFO overrun occurring while the RUN bit is set. When this happens, the FIFO pointers do not increment and the incoming data is not written into the FIFO, thereby being lost. For an output stream, this indicates a FIFO underrun when there are still buffers to send. The hardware should not transmit anything on the link for the associated stream if there is not valid data to send. 2 0 R/WC 00 RO Buffer Completion Interrupt Status: This bit is set to 1 by the hardware after the last sample of a buffer has been processed, AND if the Interrupt on Completion bit is set in the command byte of the buffer descriptor. It remains active until software clears it by writing a 1 to it. Reserved 1:0 Datasheet 163 Intel® HD Audio (D27:F0) 10.3.33 SDLPIB—Stream Descriptor Link Position in Buffer Register Memory Address: Input Stream[0]: LBAR + 84h Attribute: Input Stream[1]: LBAR + A4h Output Stream[0]: LBAR + C4h Output Stream[1]: LBAR + E4h 00000000h Size: RO Default Value: Default and Access 0 RO 32 bits Bit Description Link Position in Buffer: This field indicates the number of bytes that have been received off the link. This register will count from 0 to the value in the Cyclic Buffer Length register and then wrap to 0. 31:0 10.3.34 SDCBL—Stream Descriptor Cyclic Buffer Length Register Memory Address: Input Stream[0]: LBAR + 88h Attribute: Input Stream[1]: LBAR + A8h Output Stream[0]: LBAR + C8h Output Stream[1]: LBAR + E8h 00000000h Size: R/W Default Value: Default and Access 32 bits Bit Description Cyclic Buffer Length: Indicates the number of bytes in the complete cyclic buffer. This register represents an integer number of samples. Link Position in Buffer will be reset when it reaches this value. 31:0 0 R/W Software may only write to this register after Global Reset, Controller Reset, or Stream Reset has occurred. This value should be only modified when the RUN bit is 0. Once the RUN bit has been set to enable the engine, software must not write to this register until after the next reset is asserted, or transfer may be corrupted. 164 Datasheet Intel® HD Audio (D27:F0) 10.3.35 SDLVI—Stream Descriptor Last Valid Index Register Memory Address: Input Stream[0]: LBAR + 8Ch Input Stream[1]: LBAR + ACh Output Stream[0]: LBAR + CCh Output Stream[1]: LBAR + ECh 0000h Attribute: R/W, RO Default Value: Default and Access 00h RO Size: 16 bits Bit Description 15:8 Reserved Last Valid Index: The value written to this register indicates the index for the last valid Buffer Descriptor in BDL. After the controller has processed this descriptor, it will wrap back to the first descriptor in the list and continue processing. This field must be at least 1 (i.e., there must be at least 2 valid entries in the buffer descriptor list before DMA operations can begin). This value should only modified when the RUN bit is 0. 7:0 00h R/W 10.3.36 SDFIFOW—Stream Descriptor FIFO Watermark Register Memory Address: Input Stream[0]: LBAR + 8Eh Input Stream[1]: LBAR + AEh Output Stream[0]: LBAR + CEh Output Stream[1]: LBAR + EEh 0004h Attribute: R/W, RO Default Value: Default and Access 0 RO Size: 16 bits Bit Description 15:3 Reserved FIFO Watermark (FIFOW). Indicates the minimum number of bytes accumulated/free in the FIFO before the controller will start a fetch/ eviction of data. 010 = 8 B 2:0 100b R/W 011 = 16 B 100 = 32 B (Default) Others = Unsupported NOTE: When the bit field is programmed to an unsupported size, the hardware sets itself to the default value. Software must read the bit field to test if the value is supported after setting the bit field. Datasheet 165 Intel® HD Audio (D27:F0) 10.3.37 SDFIFOS—Stream Descriptor FIFO Size Register Memory Address: Input Stream[0]: LBAR + 90h Attribute: Input Stream[1]: LBAR + B0h Output: Output Stream[0]: LBAR + D0h Output Stream[1]: LBAR + F0h Input Stream: 0077h Size: Output Stream: 00BFh Input: RO R/W, RO 16 bits Default Value: Bit Default and Access 00h RO Reserved Description 15:8 FIFO Size — RO (Input stream), R/W (Output stream): Indicates the maximum number of bytes that could be fetched by the controller at one time. This is the maximum number of bytes that may have been DMA’d into memory but not yet transmitted on the link, and is also the maximum possible value that the PICB count will increase by at one time. The value in this field is different for input and output streams. It is also dependent on the Bits per Samples setting for the corresponding stream. Following are the values read/written from/to this register for input and output streams, and for non-padded and padded bit formats: Output Stream R/W value: Value 0Fh = 16B 1Fh = 32B 3Fh = 64B 7Fh = 128B BFh = 192B FFh = 256B Output Streams 8, 16, 20, 24, or 32 bit Output Streams 8, 16, 20, 24, or 32 bit Output Streams 8, 16, 20, 24, or 32 bit Output Streams 8, 16, 20, 24, or 32 bit Output Streams 8, 16, or 32 bit Output Streams 20, 24 bit Output Streams 77h RO (input) 7:0 BFh R/W (output) NOTES: 1. All other values not listed are not supported. 2. When the output stream is programmed to an unsupported size, the hardware sets itself to the default value (BFh). 3. Software must read the bit field to test if the value is supported after setting the bit field. Input Stream RO value: Value 77h = 120B 9Fh = 160B Input Streams 8, 16, 32 bit Input Streams 20, 24 bit Input Streams NOTE: The default value is different for input and output streams, and reflects the default state of the BITS fields (in Stream Descriptor Format registers) for the corresponding stream. 166 Datasheet Intel® HD Audio (D27:F0) 10.3.38 SDFMT—Stream Descriptor Format Register Memory Address: Input Stream[0]: LBAR + 92h Input Stream[1]: LBAR + B2h Output Stream[0]: LBAR + D2h Output Stream[1]: LBAR + F2h 0000h Attribute: R/W, RO Default Value: Default and Access 0 RO 0 R/W Size: 16 bits Bit Description 15 Reserved Sample Base Rate: R/W 0 = 48 kHz 1 = 44.1 kHz Sample Base Rate Multiple: R/W 000 = 48 kHz, 44.1 kHz or less 14 13:11 000b R/W 001 = x2 (96 kHz, 88.2 kHz, 32 kHz) 010 = x3 (144 kHz) 011 = x4 (192 kHz, 176.4 kHz) Others = Reserved. Sample Base Rate Divisor: 000 = Divide by 1(48 kHz, 44.1 kHz) 001 = Divide by 2 (24 kHz, 22.05 kHz) 010 = Divide by 3 (16 kHz, 32 kHz) 011 = Divide by 4 (11.025 kHz) 100 = Divide by 5 (9.6 kHz) 101 = Divide by 6 (8 kHz) 110 = Divide by 7 111 = Divide by 8 (6 kHz) 10:8 000b R/W 7 0 RO Reserved Bits per Sample (BITS): 000 = 8 bits. The data will be packed in memory in 8-bit containers on 16-bit boundaries 001 = 16 bits. The data will be packed in memory in 16-bit containers on 16-bit boundaries 6:4 000b R/W 010 = 20 bits. The data will be packed in memory in 32-bit containers on 32-bit boundaries 011 = 24 bits. The data will be packed in memory in 32-bit containers on 32-bit boundaries 100 = 32 bits. The data will be packed in memory in 32-bit containers on 32-bit boundaries Others = Reserved. Number of Channels (CHAN): Indicates number of channels in each frame of the stream. 3:0 0h R/W 0000 =1 0001 =2 ........ 1111 =16 Datasheet 167 Intel® HD Audio (D27:F0) 10.3.39 SDBDPL—Stream Descriptor Buffer Descriptor Pointer List Base Register Memory Address: Input Stream[0]: LBAR + 98h Input Stream[1]: LBAR + B8h Output Stream[0]: LBAR + D8h Output Stream[1]: LBAR + F8h 00000000h Attribute: R/W, RO, WO Default Value: Default and Access 0 R/W 00h RO 0 RW/WO Size: 32 bits Bit Description Buffer Descriptor List Pointer Lower Base Address: Lower address of the Buffer Descriptor List. This value should only be modified when the RUN bit is 0, or DMA transfer may be corrupted. Reserved Protect (PROT): When set, all bits of this register are WO and return 0 when read. When cleared, bits are RW. Tis bit can only be changed when all four bytes of this register are written in a single write operation. If less than four bytes are written this bit retains its previous value. 31:7 6:1 0 168 Datasheet Intel® HD Audio (D27:F0) 10.4 10.4.1 Vendor Specific Memory Mapped Registers EM1—Extended Mode 1 Register Memory Address: Default Value: Bit Default and Access 0 RO 00b RW 00 RW 0b RW 1b RW Reserved Loopback Enable (LPBKEN): When set, output data is rerouted to the input. Each input has its own loopback enable. Free Count Request (FREECNTREQ): This field determines the clock in which freecnt will be requested from the XFR layer. BIOS or software must set FREECNTREQ to “11” Any other selection will cause RIRB failures. 25 Phase Select (PSEL): Sets the input data sample point within phyclk. 1 = Phase C, 0 = Phase D Boundary Break (128_4K): Sets the break boundary for reads. 0 = 4KB 1 = 128B CORB Pace (CORBPACE): Determines the rate at which CORB commands are issued on the link. 23:21 000b RW 000 = Every Frame 001 = Every 2 Frames ...... 111 = Every 8 Frames FIFO Ready Select (FRS): When cleared, SDS.FRDY is asserted when there are 2 or more packets available in the FIFO. When set, SDS.FRDY is asserted when there are one or more packets available in the FIFO. Reserved 48 KHz Enable: When set, Intel® SCH adds one extra bitclk to every twelfth frame. When cleared, it will use the normal functionality and send 500 bitclks per frame. Dock Enable Signal Transition Select (DETS): When set, DOCK_EN# transitions off the falling edge of BCLK (phase C). When cleared, DOCK_EN# transitions 1/4 BCLK after the falling edge of BCLK (phase D). Reserved Input Repeat Count Resets (IRCR): Software writes a 1 to clear the respective Repeat Count to 00h. Reads from these bits return 0. Bit 5 = Input Stream 1 Repeat Count Reset Bit 4 = Input Stream 0 Repeat Count Reset 3:2 00b RO 00b WO Reserved Output Repeat Count Resets (ORCR): Software writes a 1 to clear the respective Repeat Count to 00h. Reads from these bits return 0. Bit 1 = Output Stream 1 Repeat Count Reset Bit 0 = Output Stream 0 Repeat Count Reset 1000h 00000000h Attribute: Size: Description RO 32 bits 31:24 28:28 27:26 24 20 19:15 14 0b RW 00000b RO 0b RW 0b RW 0s RO 00b WO 13 12:6 5:4 1:0 Datasheet 169 Intel® HD Audio (D27:F0) 10.4.2 INRC—Input Stream Repeat Count Register Memory Address: Default Value: Default and Access 0 RO 00h RO 00h RO Reserved Stream 1 (S1): Reports the number of times a buffer descriptor list has been repeated. Stream 0 (S0): Reports the number of times a buffer descriptor list has been repeated. 1004h 00000000h Attribute: Size: RO 32 bits Bit Description 31:24 15:8 7:0 10.4.3 OUTRC—Output Stream Repeat Count Register Memory Address: Default Value: Default and Access 0 RO 00h RO 00h RO Reserved Stream 1 (S1): Reports the number of times a buffer descriptor list has been repeated. Stream 0 (S0): Reports the number of times a buffer descriptor list has been repeated. 1008h 00000000h Attribute: Size: RO 32 bits Bit Description 31:16 15:8 7:0 170 Datasheet Intel® HD Audio (D27:F0) 10.4.4 FIFOTRK – FIFO Tracking Register Memory Address: Default Value: Default and Access 000h RO 1FFh RO Reserved Minimum Status (MSTS): Tracks the minimum FIFO free count for inbound engines, and the minimum avail count for outbound engines when EN is set and R is deasserted. The FIFO of the DMA selected by SEL is tracked. Error Count (EC): Increments each time a FIFO error occurs in the FIFO which the DMA select is pointing to when the enable bit is set and R is deasserted. When EC reaches a max count of 1FFh (63), the count saturates and holds the max count until it is reset. Select (SEL): MSTS and EC track the FIFO for the DMA select by this register, as follows: 000 = Output DMA 0 001 = Output DMA 1 4:2 000b R/W 010 = Reserved 011 = Reserved 100 = Input DMA 0 101 = Input DMA 1 110 = Reserved 111 = Reserved 1 0 0 R/W 0 R/W Enable (EN): When set, MSTS and EC track the minimum FIFO status or error count. When cleared, MSTS and EC hold its previous value. Reset (R): When set, MSTS and EC are reset to their default value. 100Ch 000FF800h Attribute: Size: R/W, RO 32 bits Bit Description 31:20 19:11 10:5 000h RO 10.4.5 SDPIB—Stream DMA Position in Buffer Register Memory Address: Input Stream 0: 1010h Input Stream 1: 1014h Output Stream 0: 1020h Output Stream 2: 1024h 00000000h Attribute: RO Default Value: Default and Access 0 RO Size: 32 bits Bit Description Position (POS): Indicates the number of bytes processed by the DMA engine from the beginning of the BDL. For output streams, it is incremented when data is loaded into the FIFO. 31:0 Datasheet 171 Intel® HD Audio (D27:F0) 10.4.6 EM2—Extended Mode 2 Register Memory Address: Default Value: Default and Access 0 RO 0 R/W 0h RO Reserved CORB Reset Pointer Change Disable (CORPRPDIS): When cleared, CORBRP.RPR works as described. When this bit is set, the CORB FIFO is not reset and CORBRP.RPR is WO and always read as 0. Reserved 1030h 00000000h Attribute: Size: R/W, RO 32 bits Bit Description 31:9 8 7:0 10.4.7 WLCLKA—Wall Clock Counter Alias Register Memory Address: Default Value: Default and Access 2030h 00000000h Attribute: Size: RO 32 bits Bit Description Wall Clock Counter Alias (CounterA): Alias of WALCK. 32-bit counter that is incremented on each link H_CLKIN period and rolls over from FFFF_FFFFh to 0000_0000h. This counter will roll over to zero with a period of approximately 179 seconds. This counter is enabled while the H_CLKIN bit is set to 1. Software uses this counter to synchronize between multiple controllers. Will be reset on controller reset. 31:0 0 RO 10.4.8 SLPIB—Stream Link Position in Buffer Register Memory Address: Input Stream 0: 2084h Input Stream 1: 20A4h Output Stream 0: 2104h Output Stream 2: 2124h 00000000h Attribute: RO Default Value: Default and Access 0 RO Size: 32 bits Bit Description Position (POS): Alias of the corresponding LPIB. Indicates the number of bytes that have been received off the link. It counts from 0 to the value in the Cyclic Buffer Length register and wraps. 31:0 §§ 172 Datasheet PCI Express* (D28:F0, F1) 11 11.1 PCI Express* (D28:F0, F1) Functional Description There are two PCI Express root ports available in the Intel® SCH. They reside in device 28 and take function 0 and 1. Port 1 is function 0 and Port 2 is function 1. 11.1.1 Interrupt Generation If enabled to do so, the Intel® SCH PCI Express root port generates interrupts as a result of power management events. These interrupts can be communicated either by legacy interrupt pins (internal to the Intel® SCH), or as Message Signal Interrupt messages to the FSB. For the legacy pin behavior, the D28IP (Base address + 310Ch) and D28IR (Base address + 3146h) registers can be configured to drive a particular internal interrupt signal. The following table summarizes interrupt behavior for MSI and wire modes. In the table, “bits” refers to the PME interrupt bits. Table 28. MSI vs. PCI IRQ Actions Interrupt Register All bits are 0 One or more bits set to 1 One or more bits set to 1, new bit gets set to 1 One or more bits set to 1, software clears some (but not all) bits One or more bits set to 1, software clears all bits Software clears one or more bits, and one or more bits are set on the same clock Wire-Mode Action Wire inactive Wire active Wire active Wire active Wire inactive Wire active MSI Action No action Send message Send message Send message No action Send message 11.1.2 11.1.2.1 Power Management Sleep State Support Software initiates the transition to S3/S4/S5 by performing an I/O write to the Power Management Control register. After the I/O write completion has been returned to the processor, each root port will send a PME_Turn_Off TLP (Transaction Layer Packet) message on it's downstream link. The device attached to the link will eventually respond with a PME_TO_Ack TLP message followed by sending a PM_Enter_L23 DLLP (Data Link Layer Packet) request to enter the L2/L3 Ready state. When all of the Intel® SCH root ports links are in the L2/L3 Ready state, the Intel® SCH power management control logic will proceed with the entry into S3/S4/S5. Prior to entering S3, software is required to put each device into D3HOT. When a device is put into D3HOT it will initiate entry into a L1 link state by sending a PM_Enter_L1 DLLP. Thus under normal operating conditions when the root ports sends the PME_Turn_Off message the link will be in state L1. However, when the root port is instructed to send the PME_Turn_Off message, it will send it whether or not the link was in L1. Endpoints attached to ICH can make no assumptions about the state of the link prior to receiving a PME_Turn_Off message. Datasheet 173 PCI Express* (D28:F0, F1) 11.1.2.2 Resuming From Suspended State The root port can detect a wake event through the WAKE# signal and wake the system. When the root port detects a WAKE# assertion, an internal signal is sent to the power management controller of the Intel® SCH to cause the system to wake up. This internal message is not logged in any register, nor is an interrupt/GPE generated. 11.1.2.3 Device Initiated PM_PME Message When the system has returned to a working state from a previous low power state, a device requesting service will send a PM_PME message continuously, until acknowledge by the root port. The root port will take different actions depending upon whether this is the first PM_PME has been received, or whether a previous message has been received but not yet serviced by the operating system. If this is the first message received (RSTS.PS - D28:F0/F1:Offset 60h:bit 16 is cleared), the root port will set RSTS.PS, and log the PME Requester ID into RSTS.RID (D28:F0/F1:Offset 60h:bits 15:0). If an interrupt is enabled by RCTL.PIE (D28:F0/ F1:Offset 5Ch:bit 3), an interrupt will be generated. This interrupt can be either a pin or an MSI if MSI is enabled by MSI_CTL.MSIE (D28:F0/F1:Offset 82h:bit 0). See Section 11.1.2.4 for SMI/SCI generation. If this is a subsequent message received (RSTS.PS is already set), the root port will set RSTS.PP (D28:F0/F1:Offset 60h:bit 17) and log the PME Requester ID from the message in a hidden register. No other action will be taken. When the first PME event is cleared by software clearing RSTS.PS, the root port will set RSTS.PS, clear RSTS.PP, and move the requester ID from the hidden register into RSTS.RID. If RCTL.PIE is set, generate an interrupt. If RCTL.PIE is not set, send over to the power management controller so that a GPE can be set. If messages have been logged (RSTS.PS is set), and RCTL.PIE is later written from a 0 to a 1, and interrupt must be generated. This last condition handles the case where the message was received prior to the operating system re-enabling interrupts after resuming from a low power state. 11.1.2.4 SMI/SCI Generation Interrupts for power management events are not supported on legacy operating systems. To support power management on non-PCI Express aware operating systems, PM events can be routed to generate SCI. To generate SCI, MPC.PMCE must be set. When set, a power management event will cause SMSCS.PMCS (D28:F0/F1:Offset DCh:bit 31) to be set. Additionally, BIOS workarounds for power management can be supported by setting MPC.PMME (D28:F0/F1:Offset D8h:bit 0). When this bit is set, power management events will set SMSCS.PMMS (D28:F0/F1:Offset DCh:bit 0), and SMI # will be generated. This bit will be set regardless of whether interrupts or SCI is enabled. The SMI# may occur concurrently with an interrupt or SCI. 11.1.3 Hot-Plug The Intel® SCH does not support PCI Express Hot-Plug. 174 Datasheet PCI Express* (D28:F0, F1) 11.1.4 11.1.4.1 Additional Clarifications Non-Snoop Cycles Are Not Supported The Intel® SCH does not support No Snoop cycles on PCIe. DCTL.ENS can never be set. Platform BIOS must disable generation of these cycles in all installed PCIe devices. Generation of a No Snoop request by a PCIe device may result in a protocol violation and lead to errors. For example, a no-snoop read by a device may be returned by a snooped completion, and this attribute difference, a violation of the specification, will cause the device to ignore the completion. 11.2 Table 29. PCI Express* Configuration Registers PCI Express* Register Address Map (Sheet 1 of 2) Offset 00h–01h 02h–03h 04h–05h 06h–07h 08h 09h–0Bh 0Ch 0Dh 0Eh 18h–1Ah 1Bh 1Ch–1Dh 1Eh–1Fh 20h–23h 24h–27h 34h 3ch 3dh 3Eh–3Fh 40h 41h 42h–43h 44h–47h Mnemonic VID DID PCICMD PCISTS RID CC CLS PLT HEADTYP BNUM SLT IOBL SSTS MBL PMBL CAP_PTR INT_LN INT_PN BCTRL PCIE_CAPID NXT_PTR1 PCIECAP DCAP Register Name Vendor Identification Device Identification PCI Command PCI Status Revision Identification Class Codes Cache Line Size Primary Latency Timer Header Type Bus Number Secondary Latency Timer I/O Base and Limit Secondary Status Memory Base and Limit Prefetchable Memory Base and Limit Capabilities Pointer Interrupt Line Interrupt Pin Bridge Control PCI Express Capability ID Next Item Pointer #1 PCI Express Capabilities Device Capabilities Default 8086h See Description 0000h 0010h See Description 060400h 00h 00h 81h 000000h 0h 0000h 0000h 00000000h 00010001h 40h 00h See description 0000h 10 90h 0041 00000FE0h RO RO R/W, RO R/WC, RO RO RO R/W RO RO R/W RO R/W, RO R/WC, RO R/W, RO R/W, RO RO R/W RO R/W, RO RO RO R/WO, RO RO Type Datasheet 175 PCI Express* (D28:F0, F1) Table 29. PCI Express* Register Address Map (Sheet 2 of 2) Offset 48h–49h 4ah–4bh 4Ch–4Fh 50h–51h 52h–53h 54h–57h 58h–59h 5Ah–5Bh 5Ch–5Dh 5Eh 60h–63h 90h 91h 94h–97h A0h A1h A2h–A3h A4–A7h D8–Dbh DC–DFh FCh–FFh Mnemonic DCTL DSTS LCAP LCTL LSTS SLCAP SLCTL SLSTS RCTL RCAP RSTS SV_CAPID NXT_PTR3 SVID PM_CAPID NXT_PTR4 PM_CAP PM_CNTL_STS MPC SMSCS FD Register Name Device Control Device Status Link Capabilities Link Control Link Status Slot Capabilities Slot Control Slot Status Root Control Root Capabilities Root Status Subsystem Vendor Capability ID Next Item Pointer #3 Subsystem Vendor Identification Power Management Capability ID Next Item Pointer #4 Power Management Capabilities Power Management Control/ Status Miscellaneous Port Configuration SMI/SCI Status Function Disable Default 0000h 0010h 00054C11h 0000h See description 00000060h 0000h See description 0000h xxxxh 00000000h 0dh A0h 00h 01h 00h C802h 00000000h 00110000h 00000000h 00000000h Type R/W, RO R/WC, RO RO, R/WO R/W, WO, RO RO R/WO, RO R/W, RO R/WC, RO R/W, RO RO R/WC, RO RO RO R/WO RO RO RO R/W, RO R/W, RO R/WC, RO R/W, RO NOTE: Address locations that are not shown should be treated as Reserved. 176 Datasheet PCI Express* (D28:F0, F1) 11.2.1 VID—Vendor Identification Register Address Offset: Default Value: Default and Access 8086h RO 00h–01h 8086h Attribute: Size: RO 16 bits Bit Description 15:0 Vendor ID (VID): This is a 16-bit value assigned to Intel. 11.2.2 DID—Device Identification Register Address Offset: Default Value: Default and Access See Description RO 02h–03h See Description Attribute: Size: RO 16 bits Bit Description Device ID (DID): This is a 16-bit value assigned to the Intel® SCH PCI Express controller. Port 1 = 8110h Port 2 = 8112h 15:0 Datasheet 177 PCI Express* (D28:F0, F1) 11.2.3 PCICMD—PCI Command Register Address Offset: Default Value: Default and Access 0h RO Reserved Interrupt Disable (ID): This bit disables pin-based INTx# interrupts on enabled hot-plug and power management events. 10 0 R/W 0 = Internal INTx# messages are generated if there is an interrupt for hot-plug or power management. 1 = Internal INTx# messages will not be generated. This bit does not effect interrupt forwarding from devices connected to the root port. Assert_INTx and Deassert_INTx messages will still be forwarded to the internal interrupt controllers if this bit is set. 9 8 7:3 0 RO 0 R/W 0h RO 0 R/W Reserved SERR# Enable (SEE): Hardwired to 0 to indicate this port cannot generate SERR# messages. Reserved Bus Master Enable (BME) 2 0 = Disable. All cycles from the device are master aborted 1 = Enable. Allows the root port to forward cycles onto the backbone from a PCI Express device. Memory Space Enable (MSE) 1 0 R/W 0 = Disable. Memory cycles within the range specified by the memory base and limit registers are master aborted on the backbone. 1 = Enable. Allows memory cycles within the range specified by the memory base and limit registers can be forwarded to the PCI Express device. I/O Space Enable (IOSE): This bit controls access to the I/O space registers. 0 0 R/W 0 = Disable. I/O cycles within the range specified by the I/O base and limit registers are master aborted on the backbone. 1 = Enable. Allows I/O cycles within the range specified by the I/O base and limit registers can be forwarded to the PCI Express device. 04h–05h 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15:11 178 Datasheet PCI Express* (D28:F0, F1) 11.2.4 PCISTS—PCI Status Register Address Offset: Default Value: 06h–07h 0010h Attribute: Size: R/WC, RO 16 bits Note: There is a secondary status register (SSTS) located at offset 1Eh. Default and Access 0 RO 0 R/WC 000h RO 1 RO Reserved Signaled System Error (SSE) 14 0 = No system error signaled. 1 = Set when the root port signals a system error to the internal SERR# logic. Reserved Capabilities List (CLIST): Hardwired to 1 indicating the presence of a capabilities list (at offset 34h) Interrupt Status (IS): Indicates status of hot-plug and power management interrupts on the root port that result in INTx# message generation. 0 = Interrupt is deasserted. 1 = Interrupt is asserted. This bit is set regardless of the state of PCICMD.Interrupt Disable bit (D28:F0/F1:04h:bit 10). 2:0 000b RO Reserved Bit Description 15 13:5 4 3 0 RO 11.2.5 RID—Revision Identification Register Offset Address: Default Value: Default and Access See Description RO 08h See description Attribute: Size: RO 8 bits Bit Description 7:0 Revision ID (RID): Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the value of the Revision ID Register. Datasheet 179 PCI Express* (D28:F0, F1) 11.2.6 CC—Class Codes Register Address Offset: Default Value: Default and Access 06h RO 04h RO 00h RO 09h–0Bh 060400h Attribute: Size: RO 24 bits Bit Description 23:16 15:8 7:0 Base Class Code (BCC): 06h indicates the device is a bridge device. Sub Class Code (SCC): 04h indicates this is a PCI-to-PCI bridge. Programming Interface (PI): No specific register level programming interface defined. 11.2.7 CLS—Cache Line Size Register Address Offset: Default Value: Default and Access 00h R/W 0Ch 00h Attribute: Size: R/W 8 bits Bit Description Cache Line Size (CLS): This is read/write but contains no functionality, per the PCI Express Base Specification. 7:0 11.2.8 PLT—Primary Latency Timer Register Address Offset: Default Value: Default and Access 0h RO 000b RO 0Dh 00h Attribute: Size: RO 8 bits Bit Description 7:3 2:0 Latency Count (CT): Reserved per the PCI Express Base Specification. Reserved 180 Datasheet PCI Express* (D28:F0, F1) 11.2.9 HEADTYP—Header Type Register Address Offset: Default Value: Default and Access 1 RO 01h RO 0 = Single-function device. 1 = Multi-function device. Configuration Layout (CL): Indicates the header layout of the configuration space, which is a PCI-to-PCI bridge, indicated by 1h in this field. 0Eh 81h Attribute: Size: RO 8 bits Bit Description Multi-Function Device (MFD) 7 6:0 11.2.10 BNUM—Bus Number Register Address Offset: Default Value: Default and Access 00h R/W 00h R/W 00h R/W 18–1Ah 000000h Attribute: Size: R/W 24 bits Bit Description Subordinate Bus Number (SBBN): Indicates the highest PCI bus number below the bridge. Secondary Bus Number (SCBN): Indicates the bus number the port. Primary Bus Number (PBN): Indicates the bus number of the backbone. 23:16 15:8 7:0 11.2.11 SLT—Secondary Latency Timer Address Offset: Default Value: Default and Access 00h RO 1Bh 00h Attribute: Size: RO 8 bits Bit Description Secondary Latency Timer (SLT): Reserved for a Root Port per the PCI Express Base Specification. 7:0 Datasheet 181 PCI Express* (D28:F0, F1) 11.2.12 IOBL—I/O Base and Limit Register Address Offset: Default Value: Default and Access 0h R/W 0h RO 0h R/W 0h RO 1Ch–1Dh 0000h Attribute: Size: R/W, RO 16 bits Bit Description I/O Limit Address (IOLA): I/O Base bits corresponding to address lines 15:12 for 4 KB alignment. Bits 11:0 are assumed to be padded to FFFh. I/O Limit Address Capability (IOLC): Indicates that the bridge does not support 32-bit I/O addressing. I/O Base Address (IOBA): I/O Base bits corresponding to address lines 15:12 for 4 KB alignment. Bits 11:0 are assumed to be padded to 000h. I/O Base Address Capability (IOBC): Indicates that the bridge does not support 32-bit I/O addressing. 15:12 11:8 7:4 3:0 11.2.13 SSTS—Secondary Status Register Address Offset: Default Value: Bit Default and Access 0 R/WC 1Eh–1Fh 0000h Attribute: Size: Description R/WC, RO 16 bits Detected Parity Error (DPE) 0 = No error. 1 = The port received a poisoned TLP. Received System Error (RSE) 0 = No error. 1 = The port received an ERR_FATAL or ERR_NONFATAL message from the device. Received Master Abort (RMA) 0 = Unsupported Request not received. 1 = The port received a completion with “Unsupported Request” status from the device. Received Target Abort (RTA) 0 = Completion Abort not received. 1 = The port received a completion with “Completion Abort” status from the device. Signaled Target Abort (STA): Reserved. The Intel® SCH cannot generate a target abort. Secondary DEVSEL# Timing Status (SDTS): Reserved per PCI Express Base Specification. Data Parity Error Detected (DPD) 0 = Conditions below did not occur. 1 = Set when the BCTRL.PERE (D28:F0/F13E: bit 0) is set, and either of the following two conditions occurs: • Port receives completion marked poisoned. • Port poisons a write request to the secondary side. 15 14 0 R/WC 13 0 R/WC 12 0 R/WC 0 RO 00 RO 11 10:9 8 0 R/WC 7:0 00h RO Reserved 182 Datasheet PCI Express* (D28:F0, F1) 11.2.14 MBL—Memory Base and Limit Register Address Offset: Default Value: 20h–23h 00000000h Attribute: Size: R/W, RO 32 bits Accesses that are within the ranges specified in this register will be sent to the attached device if the Memory Space Enable bit of PCICMD is set. Accesses from the attached device that are outside the ranges specified will be forwarded to the internal Intel® SCH message network if the Bus Master enable bit of PCICMD is set. Default and Access 000h R/W 0h RO 000h R/W 0h RO Bit Description Memory Limit (ML): These bits are compared with bits 31:20 of the incoming address to determine the upper 1 MB aligned value of the range. Reserved Memory Base (MB): These bits are compared with bits 31:20 of the incoming address to determine the lower 1 MB aligned value of the range. Reserved 31:20 19:16 15:4 3:0 11.2.15 PMBL—Prefetchable Memory Base and Limit Register Address Offset: Default Value: 24h–27h 00000000h Attribute: Size: R/W, RO 32 bits Accesses that are within the ranges specified in this register will be sent to the device if the Memory Space Enable bit of PCICMD is set. The comparison performed is: PMBU32.PMB ≥ AD[63:32]:AD[31:20] ≤ PMLU32.PML. Accesses from the device that are outside the ranges specified will be forwarded to the backbone if the Bus Master enable bit of PCICMD is set. Default and Access 000h R/W 0h RO 000h R/W 0h RO Bit Description Prefetchable Memory Limit (PML): These bits are compared with bits 31:20 of the incoming address to determine the upper 1 MB aligned value of the range. 64-bit Indicator (I64L): Indicates support for 64-bit addressing Prefetchable Memory Base (PMB): These bits are compared with bits 31:20 of the incoming address to determine the lower 1 MB aligned value of the range. 64-bit Indicator (I64B): Indicates support for 64-bit addressing 31:20 19:16 15:4 3:0 Datasheet 183 PCI Express* (D28:F0, F1) 11.2.16 CAP_PTR—Capabilities Pointer Register Address Offset: Default Value: Default and Access 40h RO 34h 40h Attribute: Size: R0 8 bits Bit Description Pointer (PTR): Indicates that the pointer for the first entry in the capabilities list is at offset 40h in configuration space. 7:0 11.2.17 INT_LN—Interrupt Line Register Address Offset: Default Value: Default and Access 00h R/W 3Ch 00h Attribute: Size: R/W 8 bits Bit Description Interrupt Line (INT_LN): This data is not used by the Intel® SCH. It is used as a scratchpad register to communicate to software the interrupt line that the interrupt pin is connected to. 7:0 11.2.18 INT_PN—Interrupt Pin Register Address Offset: Default Value: Default and Access 3Dh See bit description Attribute: Size: RO 8 bits Bit Description Interrupt Pin (IPIN): This value tells the software which interrupt pin each PCI Express port uses. The upper 4 bits are hardwired to 0000b; bits 3:0 are determined by the Interrupt Pin default values programmed in the memory-mapped configuration space as follows: Port 1 Port 2 D28IP.P1IP (Offset 310Ch, bits 3:0) D28IP.P2IP (Offset 310Ch, bits 7:4) 7:0 0xh RO NOTE: This does not determine the mapping to the PIRQ pins. 184 Datasheet PCI Express* (D28:F0, F1) 11.2.19 BCTRL—Bridge Control Register Address Offset: Default Value: Bit Default and Access 0h RO 0 RO 0 RO 0 RO 0 RO 0 RO 0 R/W 0 RO 0 R/W Reserved Discard Timer SERR# Enable (DTSE): Reserved per PCI Express Base Specification, Revision 1.0a Discard Timer Status (DTS): Reserved per PCI Express Base Specification, Revision 1.0a. Secondary Discard Timer (SDT). Reserved per PCI Express Base Specification, Revision 1.0a. Primary Discard Timer (PDT): Reserved per PCI Express Base Specification, Revision 1.0a. Fast Back to Back Enable (FBE): Reserved per PCI Express Base Specification, Revision 1.0a. Secondary Bus Reset (SBR): Triggers a hot reset on the PCI Express port. Master Abort Mode (MAM): Reserved per Express specification. VGA 16-Bit Decode (V16) 4 0 = VGA range is enabled. 1 = The I/O aliases of the VGA range (see BCTRL:VE definition in Bit 3) are not enabled, and only the base I/O ranges can be decoded. VGA Enable (VE) 0 R/W 0 = The ranges below will not be claimed off the backbone by the root port. 1 = The following ranges will be claimed off the backbone by the root port: • Memory ranges A0000h–BFFFFh • I/O ranges 3B0h – 3BBh and 3C0h – 3DFh, and all aliases of bits 15:10 in any combination of 1s ISA Enable (IE): This bit only applies to I/O addresses that are enabled by the I/O Base and I/O Limit registers and are in the first 64 KB of PCI I/O space. 2 0 R/W 0 = The root port will not block any forwarding from the backbone as described below. 1 = The root port will block any forwarding from the backbone to the device of I/O transactions addressing the last 768 bytes in each 1 KB block (offsets 100h to 3FFh). SERR# Enable (SE) 1 0 R/W 0 = The messages described below are not forwarded to the backbone. 1 = ERR_COR, ERR_NONFATAL, and ERR_FATAL messages received are forwarded to the backbone. Parity Error Response Enable (PERE) 0 0 R/W 0 = Poisoned write TLPs and completions indicating poisoned TLPs will not set the SSTS.DPD (D28:F0/F1:1Eh, bit 8). 1 = Poisoned write TLPs and completions indicating poisoned TLPs will set the SSTS.DPD (D28:F0/F1:1Eh, bit 8). 3Eh–3Fh 0000h Attribute: Size: Description RO, R/W 16 bits 15:12 11 10 9 8 7 6 5 3 Datasheet 185 PCI Express* (D28:F0, F1) 11.2.20 PCIE_CAPID—PCI Express Capability ID Register Address Offset: Default Value: Default and Access 10h RO 40h 10h Attribute: Size: RO 8 bits Bit Description 7:0 Capability ID (CID): This field indicates this is a PCI Express capability. 11.2.21 NXT_PTR1—Next Item Pointer #1 Register Address Offset: Default Value: Default and Access 90h RO 41h 90h Attribute: Size: RO 8 bits Bit Description Next Capability (NEXT): This field indicates the location of the next capability. 7:0 11.2.22 PCIECAP—PCI Express Capabilities Register Address Offset: Default Value: Default and Access 00b RO 00h RO 0 R/WO 4h RO 1h RO Reserved Interrupt Message Number (IMN): The Intel® SCH does not have multiple MSI interrupt numbers. Slot Implemented (SI): Indicates whether the root port is connected to a slot. Slot support is platform specific. BIOS programs this field, and it is maintained until a platform reset. Device/Port Type (DT): This field indicates this is a PCI Express root port. Capability Version (CV): This field indicates PCI Express 1.0. 42h–43h 0041h Attribute: Size: RO, R/WO 16 bits Bit Description 15:14 13:9 8 7:4 3:0 186 Datasheet PCI Express* (D28:F0, F1) 11.2.23 DCAP—Device Capabilities Register Address Offset: Default Value: Default and Access 0h RO 00b RO 00h RO 00b RO 1 RO 0 RO 0 RO 0 RO 111b RO 111b RO 0 RO 00b RO 000b RO Reserved Captured Slot Power Limit Scale (CSPS): Not supported. Captured Slot Power Limit Value (CSPV): Not supported. Reserved Role Based Error Reporting (RBER): Indicates that this device implements the functionality defined in the Error Reporting ECN as required by the PCI Express 1.1 specification. Power Indicator Present (PIP): This bit indicates no power indicator is present on the root port. Attention Indicator Present (AIP): This bit indicates no attention indicator is present on the root port. Attention Button Present (ABP): This bit indicates no attention button is present on the root port. Endpoint L1 Acceptable Latency (E1AL): This field indicates more than 4 µs. This field essentially has no meaning for root ports since root ports are not endpoints. Endpoint L0 Acceptable Latency (E0AL): This field indicates more than 64 µs. This field essentially has no meaning for root ports since root ports are not endpoints. Extended Tag Field Supported (ETFS): This bit indicates that 8-bit tag fields are supported. Phantom Functions Supported (PFS): No phantom functions supported. Max Payload Size Supported (MPS): This field indicates the maximum payload size supported is 128 Bytes. 44h–47h 00008FC0h Attribute: Size: RO 32 bits Bit Description 31:28 27:26 25:18 17:16 15 14 13 12 11:9 8:6 5 4:3 2:0 Datasheet 187 PCI Express* (D28:F0, F1) 11.2.24 DCTL—Device Control Register Address Offset: Default Value: Default and Access 0 RO 000b RO 0 RO 0 R/W 0 RO 0 RO 000b R/W 0 RO Reserved Max Read Request Size (MRRS): Hardwired to 0. Enable No Snoop (ENS): Not supported. The root port will never issue non-snoop requests. Aux Power PM Enable (APME): The OS will set this bit to 1 if the device connected has detected aux power. It has no effect on the root port otherwise. Phantom Functions Enable (PFE): Not supported. Extended Tag Field Enable (ETFE): Not supported. Max Payload Size (MPS): The root port only supports 128-B payloads, regardless of the programming of this field. Enable Relaxed Ordering (ERO): Not supported. Unsupported Request Reporting Enable (URE): 0 = The root port will ignore unsupported request errors. 1 = Allows signaling ERR_NONFATAL, ERR_FATAL, or ERR_COR to the Root Control register when detecting an unmasked Unsupported Request (UR). An ERR_COR is signaled when a unmasked Advisory Non-Fatal UR is received. An ERR_FATAL, ERR_or NONFATAL, is sent to the Root Control Register when an uncorrectable non-Advisory UR is received with the severity set by the Uncorrectable Error Severity register. Fatal Error Reporting Enable (FEE): 2 0 R/W 0 = The root port will ignore fatal errors. 1 = Enables signaling of ERR_FATAL to the Root Control register due to internally detected errors or error messages received across the link. Other bits also control the full scope of related error reporting. Non-Fatal Error Reporting Enable (NFE): 1 0 R/W 0 = The root port will ignore non-fatal errors. 1 = Enables signaling of ERR_NONFATAL to the Root Control register due to internally detected errors or error messages received across the link. Other bits also control the full scope of related error reporting. Correctable Error Reporting Enable (CEE): 0 0 R/W 0 = The root port will ignore correctable errors. 1 = Enables signaling of ERR_CORR to the Root Control register due to internally detected errors or error messages received across the link. Other bits also control the full scope of related error reporting. 48h–49h 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15 14:12 11 10 9 8 7:5 4 3 0 R/W 188 Datasheet PCI Express* (D28:F0, F1) 11.2.25 DSTS—Device Status Register Address Offset: Default Value: Default and Access 00h RO 0 RO 1 RO 0 R/WC Reserved Transactions Pending (TDP): This bit has no meaning for the root port since only one transaction may be pending to the Intel® SCH, so a read of this bit cannot occur until it has already returned to 0. AUX Power Detected (APD): The root port contains AUX power for wake up. Unsupported Request Detected (URD): This bit indicates an unsupported request was detected. Fatal Error Detected (FED): This bit indicates a fatal error was detected. 0 = No fatal errors have occurred. 1 = A fatal error occurred from a data link protocol error, link training error, buffer overflow, or malformed TLP. Non-Fatal Error Detected (NFED): This bit indicates a non-fatal error was detected. 1 0 R/WC 0 = Non-fatal has not occurred. 1 = A non-fatal error occurred from a poisoned TLP, unexpected completions, unsupported requests, completer abort, or completer timeout. Correctable Error Detected (CED): This bit indicates a correctable error was detected. 0 0 R/WC 0 = Correctable has not occurred. 1 = The port received an internal correctable error from receiver errors/ framing errors, TLP CRC error, DLLP CRC error, replay num rollover, replay timeout. 4Ah–4Bh 0010h Attribute: Size: R/WC, RO 16 bits Bit Description 15:6 5 4 3 2 0 R/WC Datasheet 189 PCI Express* (D28:F0, F1) 11.2.26 LCAP—Link Capabilities Register Address Offset: Default Value: Bit 31:24 23:21 Default and Access 00h RO 00b RO 1b RO 0b RO 1 RO 010b RO 100b RO 4Ch–4Fh 00054C11h Attribute: Size: Description R/WO, RO 32 bits Port Number (PN): Indicates the port number for the root port. This value is different for each implemented port. Port 1 = 01h. Port 2 = 02h. Reserved Link Active Reporting Capable (LARC): Hardwired to 1 to indicate that this port supports the optional capability of reporting the DL_Active state of the Data Link Control and Management State Machine. Reserved Clock Power Management (CPM): Indicates clock power management is supported. L1 Exit Latency (EL1): Set to 010b to indicate an exit latency of 2 µs to 4 µs. L0s Exit Latency (EL0): Indicates an exit latency based upon common-clock configuration. 0 = Use MPC.UCEL. 1 = Use MPC.CCEL Active State Link PM Support (APMS): Indicates what level of active state link power management is supported on the root port. 11b = both L0s and L1 entry are supported. Maximum Link Width (MLW): Single lane only Maximum Link Speed (MLS). Set to 1h to indicate the link speed is 2.5 GB/s. 20 19 18 17:15 14:12 11:10 11b R/WO 01h RO 1h RO 9:4 3:0 190 Datasheet PCI Express* (D28:F0, F1) 11.2.27 LCTL—Link Control Register Address Offset: Default Value: Default and Access 00h RO 0 R/W 0 R/W Reserved CLOCKREQ# Enable (CE) This bit must always be cleared to 0. Extended Synch (ES) 7 0 = Extended synch disabled. 1 = Forces extended transmission of FTS ordered sets in FTS and extra TS2 at exit from L1 prior to entering L0. Common Clock Configuration (CCC) 1 = The Intel® SCH and device are operating with a distributed common reference clock. Retrain Link (RL): When set, the root port will train its downstream link. This bit always returns '0' when read. Software uses LSTS.LT and LSTS.LTE to check the status of training. Link Disable (LD) 0 = Link enabled. 1 = The root port will disable the link. Read Completion Boundary Control (RCBC): Indicates the read completion boundary is 64 bytes. Reserved Active State Link PM Control (APMC): Indicates whether the root port should enter L0s or L1 or both. 00b R/W Bits 00b 01b 10b 11b Disabled L0s Entry is Enabled L1 Entry is Enabled L0s and L1 Entry Enabled Definition 50h-51h 0000h Attribute: Size: R/W, WO, RO 16 bits Bit Description 15:9 8 6 0 R/W 0 R0/WO 0 R/W 0 RO 0 RO 5 4 3 2 1:0 Datasheet 191 PCI Express* (D28:F0, F1) 11.2.28 LSTS—Link Status Register Address Offset: Default Value: Default and Access 00b RO Reserved Data Link Layer Active (DLLA) 13 0 RO 0 = Data Link Control and Management State Machine is not in the DL Active state 1 = Data Link Control and Management State Machine is in the DL Active state Slot Clock Configuration (SCC) 1 = indicate that the Intel® SCH uses the same reference clock as on the platform and does not generate its own clock. Link Training (LT): Not supported. Hardwired to 0. Link Training Error (LTE): The root port sets this bit whenever link training is occurring. It clears the bit upon completion of link training. Negotiated Link Width (NLW): May only take the value of a single link (01h). The value of this register is undefined if the link has not successfully trained. Link Speed (LS): This field indicates the negotiated Link speed of the given PCI Express link. 01h = Link speed is 2.5 GB/s. 52h–53h See bit description Attribute: Size: RO 16 bits Bit Description 15:14 12 1 RO 0 RO 0 RO 00h RO 1h RO 11 10 9:4 3:0 192 Datasheet PCI Express* (D28:F0, F1) 11.2.29 SLCAP—Slot Capabilities Register Address Offset: Default Value: Default and Access 0000h R/WO 00b RO 00b R/WO 54h–57h 00000060h Attribute: Size: R/WO, RO 32 bits Bit Description Physical Slot Number (PSN): This is a value that is unique to the slot number. BIOS sets this field and it remains set until a platform reset. Reserved Slot Power Limit Scale (SLS): Specifies the scale used for the slot power limit value. BIOS sets this field and it remains set until a platform reset. Slot Power Limit Value (SLV): These bits, in conjunction with SLS, specify the upper limit on power supplied by the slot. The two values Together, SLV and SLS indicate the amount of power in watts allowed for the slot. BIOS sets this field and it remains set until a platform reset. Hot Plug Capable (HPC) 1 = Indicates that hot-plug is supported. Hot Plug Surprise (HPS) 1 = Indicates the device may be removed from the slot without prior notification. Power Indicator Present (PIP) 0 = Indicates that a power indicator LED is not present for this slot. Attention Indicator Present (AIP) 0 = Indicates that an attention indicator LED is not present for this slot. MRL Sensor Present (MSP) 0 = Indicates that an MRL sensor is not supported Power Controller Present (PCP) 0 = Indicates that a power controller is not supported for this slot. Attention Button Present (ABP) 0 = Indicates that an attention button is not supported for this slot. 31:19 18:17 16:15 14:7 00h R/WO 1 RO 1 RO 0 RO 0 RO 0 RO 0 RO 0 RO 6 5 4 3 2 1 0 Datasheet 193 PCI Express* (D28:F0, F1) 11.2.30 SLCTL—Slot Control Register Address Offset: Default Value: Bit Default and Access 000b RO 0 R/W 0 RO 0 RO Reserved Link Active Changed Enable (LACE): When set, this field enables generation of a hot plug interrupt when the Data Link Layer Link Active field (D28:F0/F1:52h:bit 13) is changed. Reserved Power Controller Control (PCC): This bit has no meaning for module based hot-plug. Power Indicator Control (PIC): When read, the current state of the power indicator is returned. When written, the appropriate POWER_INDICATOR_* messages are sent. Defined encodings are: 9:8 00b R/W Bits 00b 01b 10b 11b Definition Reserved On Blink Off 58h–59h 0000h Attribute: Size: Description R/W, RO 16 bits 15:13 12 11 10 7:6 00b R/W 0 R/W Attention Indicator Control (AIC): When read, the current state of the attention indicator is returned. When written, the appropriate ATTENTION_INDICATOR_* messages are sent. Defined encodings are the same as the PIC bits above. Hot Plug Interrupt Enable (HPE) 0 = Hot plug interrupts based on hot-plug events is disabled. 1 = Enables generation of a hot-plug interrupt on enabled hot-plug events. Command Completed Interrupt Enable (CCE) 0 = Hot plug interrupts based on command completions is disabled. 1 = Enables the generation of a hot-plug interrupt when a command is completed by the hot-plug controller. Presence Detect Changed Enable (PDE) 0 = Hot plug interrupts based on presence detect logic changes is disabled. 1 = Enables the generation of a hot-plug interrupt or wake message when the presence detect logic changes state. MRL Sensor Changed Enable (MSE) 0 = Indicates that an MRL sensor is not supported. Power Fault Detected Enable (PFE) 0 = PFE not supported. Attention Button Pressed Enable (ABE): ABE is not supported, but is read/write for ease of implementation and to easily draft off of the PCIExpress specification. 5 4 0 R/W 3 0 R/W 2 1 0 0 R/W 0 R/W 0 R/W 194 Datasheet PCI Express* (D28:F0, F1) 11.2.31 SLSTS—Slot Status Register Address Offset: Default Value: Default and Access 00h Reserved Link Active State Changed (LASC): This bit is set when the value reported in Data Link Layer Link Active field of the Link Status register (D28:F0/F1:52h:bit 13) is changed. In response to a Data Link Layer State Changed event, software must read Data Link Layer Link Active field of the Link Status register to determine if the link is active before initiating configuration cycles to the hot plugged device. Reserved Presence Detect State (PDS): If XCAP.SI (D28:F0/F1:42h:bit 8) is set (indicating that this root port spawns a slot), then this bit: 0 = Indicates the slot is empty. 1 = Indicates the slot has a device connected. Otherwise, if XCAP.SI is cleared, this bit is always set (1). 5 4 0 RO 0 RO 0 R/WC 0 RO 0 RO 0 RO MRL Sensor State (MS): Reserved as the MRL sensor is not implemented. Command Completed (CC): Hardcoded to 0. These messages are not supported. Presence Detect Changed (PDC) 0 = No change in the PDS bit. 1 = The PDS bit changed states. MRL Sensor Changed (MSC): Reserved as the MRL sensor is not implemented. Power Fault Detected (PFD): Reserved as a power controller is not implemented. Attention Button Pressed (ABP): Hardcoded to 0. Attention button messages are not supported. 5Ah–5Bh 0000h Attribute: Size: R/WC, RO 16 bits Bit 15:9 Description 8 0 R/WC 7 0 RO See description RO 6 3 2 1 0 Datasheet 195 PCI Express* (D28:F0, F1) 11.2.32 RCTL—Root Control Register Address Offset: Default Value: Default and Access 000h RO Reserved Power Management Event Interrupt Enable (PIE) 3 0 R/W 0 = Interrupt generation disabled. 1 = Interrupt generation enabled when PCISTS.IS is in a set state (either due to a 0 to 1 transition, or due to this bit being set with RSTS.IS already set). System Error on Fatal Error Enable (SFE) 0 = An SERR# will not be generated. System Error on Non-Fatal Error Enable (SNE) 0 = An SERR# will not be generated. System Error on Correctable Error Enable (SCE) 0 = An SERR# will not be generated. 5Ch–5Dh 0000h Attribute: Size: RO, R/W 16 bits Bit Description 15:4 2 1 0 0 R/W 0 R/W 0 R/W 196 Datasheet PCI Express* (D28:F0, F1) 11.2.33 RCAP—Root Capabilities Address Offset: Default Value: Default and Access 000h RO 0b RO Reserved CRS Software Visibility (CSV): This bit is not supported by the Intel® SCH. This bit, when set, indicates that the Root Port is capable of returning Configuration Request Retry Status (CRS) Completion Status to software. 5Eh 0000h Attribute: Size: RO 16 bits Bit Description 15:1 0 11.2.34 RSTS—Root Status Register Address Offset: Default Value: Default and Access 0000h RO 0 RO 0 R/WC 0 RO Reserved PME Pending (PP): Hardcoded to 0. PME Status (PS) 16 0 = PME was not asserted. 1 = PME was asserted by the requestor ID in RID. Subsequent PMEs are kept pending until this bit is cleared. PME Requestor ID (RID): Indicates the PCI requestor ID of the last PME requestor. Valid only when PS is set. 60h–63h 00000000h Attribute: Size: R/WC, RO 32 bits Bit Description 31:18 17 15:0 Datasheet 197 PCI Express* (D28:F0, F1) 11.2.35 RCAP—Root Capabilities Register Address Offset: Default Value: Default and Access 0000h RO 0 RO Reserved Software Visibility of Configuration Retry (SVCR): Maintained for compatibility 5eh 0000h Attribute: Size: RO 16 bits Bit Description 15:1 0 11.2.36 SV_CAPID—Subsystem Vendor Capability ID Register Address Offset: Default Value: Default and Access 0Dh RO 90h 0Dh Attribute: Size: RO 8 bits Bit Description Capability Identifier (CID): Value of 0Dh indicates this is a PCI bridge subsystem vendor capability. 7:0 11.2.37 NXT_PTR3—Next Item Pointer #3 Register Address Offset: Default Value: Default and Access A0h RO 91h A0h Attribute: Size: RO 8 bits Bit Description Next Capability (NEXT): This field indicates the location of the next capability. 7:0 11.2.38 SVID—Subsystem Vendor Identification Register Address Offset: Default Value: Default and Access 00h R/WO 00h R/WO 94h–97h 0000h Attribute: Size: R/WO 32 bits Bit Description Subsystem Identifier (SID): This field indicates the subsystem as identified by the vendor. This field is write once and is locked down until a bridge reset occurs. Subsystem Vendor Identifier (SVID): This field indicates the manufacturer of the subsystem. This field is write once and is locked down until a bridge reset occurs. 31:16 15:0 198 Datasheet PCI Express* (D28:F0, F1) 11.2.39 PCI—Power Management Capability ID Register Address Offset: Default Value: Default and Access 01h RO A0h 01h Attribute: Size: RO 8 bits Bit Description Capability Identifier (CID): Value of 01h indicates this is a PCI power management capability. 7:0 11.2.40 NXT_PTR4—Next Item Pointer #4 Register Address Offset: Default Value: Default and Access 00h RO A1h 00h Attribute: Size: RO 8 bits Bit Description Next Capability (NEXT): This field indicates this is the last capability in the list. 7:0 11.2.41 PM_CAP—Power Management Capabilities Register Address Offset: Default Value: Default and Access 11001b RO 0 RO 0 RO 000b RO 0 RO 0 RO 0 RO 010b RO A2h–A3h C802h Attribute: Size: RO 16 bits Bit Description PME_Support (PMES): This field indicates PME# is supported for states D0, D3HOT and D3COLD. The root port does not generate PME#, but reporting that it does is necessary for some legacy operating systems to enable PME# in devices connected behind this root port. D2_Support (D2S): The D2 state is not supported. D1_Support (D1S): The D1 state is not supported. Aux_Current (AC): Reports 375 mA maximum suspend well current required when in the D3COLD state. Device Specific Initialization (DSI): This bit indicates that no devicespecific initialization is required. Reserved PME Clock (PMEC): This bit indicates that PCI clock is not required to generate PME#. Version (VS): This field indicates support for Revision 1.1 of the PCI Power Management Specification. 15:11 10 9 8:6 5 4 3 2:0 Datasheet 199 PCI Express* (D28:F0, F1) 11.2.42 PM_CNTL_STS—Power Management Control and Status Register Address Offset: Default Value: Default and Access 00h RO 0 RO 00h RO Reserved PME Status (PMES): This bit indicates a PME was received on the downstream link. Reserved PME Enable (PMEE): This bit indicates PME is enabled. The root port takes no action on this bit, but it must be R/W for some legacy operating systems to enable PME# on devices connected to this root port. This bit is sticky and resides in the resume well. The reset for this bit is RSMRST# which is not asserted during a warm reset. Reserved Power State (PS): This field is used both to determine the current power state of the root port and to set a new power state. The values are: 00 = D0 state 11 = D3HOT state 1:0 00b R/W NOTE: When in the D3HOT state, the controller’s configuration space is available, but the I/O and memory spaces are not. Type 1 configuration cycles are also not accepted. Interrupts are not required to be blocked as software will disable interrupts prior to placing the port into D3HOT. If software attempts to write a 10 or 01 to these bits, the write will be ignored. A4h–A7h 00000000h Attribute: Size: R/W, RO 32 bits Bit Description 31:16 15 14:9 8 0 R/W 7:2 00h RO 200 Datasheet PCI Express* (D28:F0, F1) 11.2.43 MPC—Miscellaneous Port Configuration Register Address Offset: Default Value: Default and Access 0 R/W D8h–DBh 00110000h Attribute: Size: R/W, RO 32 bits Bit Description Power Management SCI Enable (PMCE) 31 0 = SCI generation based on a power management event is disabled. 1 = Enables the root port to generate SCI whenever a power management event is detected. Hot Plug SCI Enable (HPCE) 0 = SCI generation based on a hot-plug event is disabled. 1 = Enables the root port to generate SCI whenever a hot-plug event is detected. Link Hold Off (LHO): When set, the port will not take any TLP. This is used during loopback mode to fill up the downstream queue. Address Translator Enable (ATE): Used to enable address translation by the AT bits in this register during loopback mode. Reserved Unique Clock Exit Latency (UCEL): L0s Exit Latency when LCAP.CCC is cleared. Common Clock Exit Latency (CCEL): L0s Exit Latency LCAP.CCC is set. Reserved Address Translator (AT): During loopback, these bits are XOR'd with bits [31:28] of the receive address, if the ATE bit in this register is enabled. Reserved Hot Plug SMI Enable (HPME) 30 0 R/W 0 R/W 0 R/W 0h RO 100b R/W 010b R/W 000b R/W 0 R/W 0 RO 0 R/W 29 28 27:21 20:18 17:15 14:12 11:8 7:2 1 0 = SMI generation based on a Hot-Plug event is disabled. 1 = Enables the root port to generate SMI whenever a Hot-Plug event is detected. Power Management SMI Enable (PMME) 0 = SMI generation based on a power management event is disabled. 1 = Enables the root port to generate SMI whenever a power management event is detected. 0 0 R/W Datasheet 201 PCI Express* (D28:F0, F1) 11.2.44 SMSCS—SMI/SCI Status Register Address Offset: Default Value: Default and Access 0 R/WC 0 R/WC 000000h R/WC 0 R/WC 00b RO 0 R/WC DCh–DFh 00000000h Attribute: Size: R/WC, RO 32 bits Bit Description Power Management SCI Status (PMCS): This bit is set if the PME control logic needs to generate an interrupt, and this interrupt has been routed to generate an SCI. Hot Plug SCI Status (HPCS): This bit is set if the Hot-Plug controller needs to generate an interrupt, and has this interrupt been routed to generate an SCI. Reserved Hot Plug Link Active State Changed SMI Status (HPLAS): This bit is set when SLSTS.LASC (D28:F0/F1:5A, bit 8) transitions from 0 to 1, and MPC.HPME (D28:F0/F1:D8h, bit 1) is set. When this bit is set, an SMI# will be generated. Reserved Hot Plug Presence Detect SMI Status (HPPDM): This bit is set when SLSTS.PDC (D28:F0/F1:5A, bit 3) transitions from 0 to 1, and MPC.HPME (D28:F0/F1:D8h, bit 1) is set. When this bit is set, an SMI# will be generated. Power Management SMI Status (PMMS): This bit is set when RSTS.PS (D28:F0/F1:60h, bit 16) transitions from 0 to 1, and MPC.PMME (D28:F0/ F1:D8, bit 1) is set. 31 30 29:5 4 3:2 1 0 0 R/WC 11.2.45 FD—Function Disable Register Address Offset: Default Value: Default and Access 0 RO 0 R/W 0 RO 0 R/W Reserved Clock Gating Disable (CGD) 0 = Clock gating within this function is enabled. 1 = Clock gating within this function is disabled. Reserved Disable (D) 0 = This function is enabled. 1 = This function is disabled. FCh–FFh 00000000h Attribute: Size: R/W, R0 32 bits Bit Description 31:3 2 1 0 §§ 202 Datasheet UHCI Host Controller (D29:F0, F1, F2) 12 12.1 UHCI Host Controller (D29:F0, F1, F2) Functional Description The Intel® SCH contains three controllers supporting the Universal Host Controller Interface (UHCI). Each Universal Host Controller (UHC) includes a root hub with two separate USB 1.1 ports, for a total of 6 USB ports. • Overcurrent detection on all six USB ports is supported. The overcurrent inputs are not 5-V tolerant, and can be used as GPIs if not needed. • The UHCs are arbitrated differently than standard PCI devices to improve arbitration latency. • The UHCs use the Analog Front End (AFE) embedded cell that allows support for USB full-speed signaling rates, instead of USB I/O buffers. 12.1.1 Bus Protocol Refer to the Universal Serial Bus Specification, Revision 1.1, Chapter 8 for full details on the USB bus protocol. 12.1.2 USB Interrupts There are two general groups of USB interrupt sources: those resulting from execution of transactions in the schedule, and those resulting from an Intel® SCH operation error. For more information on transaction-based and operational error-based interrupts, refer to chapter 4 of Universal Host Controller Interface Specification, Revision 1.1. When the Intel® SCH drives an interrupt for USB, it internally drives one of the virtual PIRQ# pins as configured by the Interrupt Pin and Interrupt Route registers defined for that device in the Intel® SCH root register complex. 12.1.3 USB Power Management The UHC can be put into a suspended state and its power can be removed. This requires that certain bits of information be retained in the resume power plane of the Intel® SCH so that a device on a port may wake the system. Such a device may be a fax-modem, which will wake up the machine to receive a fax or take a voice message. The settings of the following bits in I/O space will be maintained when the Intel® SCH enters the S3, S4, or S5 states. Datasheet 203 UHCI Host Controller (D29:F0, F1, F2) Table 30. Bits Maintained in Low Power States Register Command Status Offset 00h 02h Bit 3 2 2 Port Status and Control 10h and 12h 6 8 12 Description Enter Global Suspend Mode (EGSM) Resume Detect Port Enabled/Disabled Resume Detect Low-speed Device Attached Suspend When the Intel® SCH detects a resume event on any of its ports, it sets the corresponding USB_STS bit in ACPI space. If USB is enabled as a wake/break event, the system wakes up and an SCI generated. 204 Datasheet UHCI Host Controller (D29:F0, F1, F2) 12.2 Table 31. PCI Configuration Registers UHCI Controller PCI Register Address Map (D29:F0/F1/F2) Offset 00h–01h 02h–03h 04h–05h 06h–07h 08h 09h–0Bh 0Dh 0Eh 20h–23h 2Ch–2Fh 34h 3Ch 3Dh 60h C4h FCh Mnemonic VID DID PCICMD PCISTS RID CC MLT HEADTYP BASE SSID CAP_PTR INT_LN INT_PN USB_RELNUM USB_RES FD Register Name Vendor Identification Device Identification PCI Command PCI Status Revision Identification Class Codes Master Latency Timer Header Type Base Address Subsystem Identifiers Capabilities Pointer Interrupt Line Interrupt Pin Serial Bus Release Number USB Resume Enable Function Disable Default 8086h See description 0000h 0000h Reserved 0C0300h 00h See description 00000001h See description 00h 00h See description 10h 00h 00000000h Type RO RO R/W, RO R/WC, RO RO RO RO RO R/W, RO R/WO RO RO RO RO R/W, RO RO. R/W NOTE: Address locations that are not shown should be treated as Reserved. Datasheet 205 UHCI Host Controller (D29:F0, F1, F2) 12.2.1 VID—Vendor Identification Register Address Offset: Default Value: Default and Access 8086 RO 00h–01h 8086h Attribute: Size: RO 16 bits Bit Description 15:0 Vendor ID (VID): This is a 16-bit value assigned to Intel. 12.2.2 DID—Device Identification Register Address Offset: Default Value: Default and Access See description RO UHCI #1 (D29:F0): 8114h UHCI #2 (D29:F1): 8115h UHCI #3 (D29:F2): 8116h 02h–03h See bit description Attribute: Size: RO 16 bits Bit Description Device ID (DID): This is a 16-bit value assigned to the UHC. 15:0 12.2.3 PCICMD—PCI Command Register Address Offset: Default Value: Default and Access 0 RO Reserved Interrupt Disable 10 0 R/W 0 = Enable. The function is able to generate its interrupt to the interrupt controller. 1 = Disable. The function is not capable of generating interrupts. PCISTS.IS is not affected by the interrupt enable. 9:3 00h RO 0 R/W 0 RO 0 R/W Reserved Bus Master Enable (BME) 2 0 = Disable 1 = Enable. The Intel® SCH can act as a master on the PCI bus for USB transfers. Reserved I/O Space Enable (IOSE): This bit controls access to the I/O space registers. 0 = Disable 1 = Enable accesses to the USB I/O registers. The Base Address register for USB should be programmed before this bit is set. 04h–05h 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15:11 1 0 206 Datasheet UHCI Host Controller (D29:F0, F1, F2) 12.2.4 PCISTS—PCI Status Register Address Offset: Default Value: Default and Access 000h RO Reserved Interrupt Status: This bit reflects the state of this function’s interrupt at the input of the enable/disable logic. 3 0 RO 0 = Interrupt is deasserted. 1 = Interrupt is asserted. The value reported in this bit is independent of the value in the Interrupt Enable bit. 2:0 000b RO Reserved 06h–07h 0000h Attribute: Size: RO 16 bits Bit Description 15:4 12.2.5 RID—Revision Identification Register Offset Address: Default Value: Default and Access see description RO 08h see description Attribute: Size: RO 8 bits Bit Description 7:0 Revision ID: Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the value of the Revision ID Register. 12.2.6 CC—Class Code Register Address Offset: Default Value: Default and Access 0Ch RO 03h RO 00h RO 09h–0Bh 0C0300h Attribute: Size: RO 24 bits Bit Description 23:16 8:15 7:0 Base Class Code (BCC): 0Ch = Serial Bus controller. Sub Class Code (SCC): 03h = USB host controller. Programming Interface (PI): 00h = No specific register level programming interface defined. Datasheet 207 UHCI Host Controller (D29:F0, F1, F2) 12.2.7 MLT—Master Latency Timer Register Address Offset: Default Value: Default and Access RO 0Dh 00h Attribute: Size: RO 8 bits Bit Description Master Latency Timer (MLT): Hardwired to 00h. The USB controller is implemented internal to the Intel® SCH and not arbitrated as a PCI device. 7:0 12.2.8 HEADTYP—Header Type Register Address Offset: Default Value: Default and Access Multi-Function Device 7 See Desc. RO 0 = Single-function device. 1 = Multi-function device. (Default) For UHCI #2 and #3 (D29:F1 and F2 respectively) this register is hardwired to 00h. For UHCI #1 (D29:F0), bit 7 always reports 1. Configuration Layout: Hardwired to 00h, which indicates the standard PCI configuration layout. 0Eh See Bit Description Attribute: Size: RO 8 bits Bit Description 6:0 00h RO 12.2.9 BASE—Base Address Register Address Offset: Default Value: Default and Access 0000h RO 000h R/W 000b RO 1 RO Reserved Base Address: Bits 15:5 correspond to I/O address signals AD[15:5], respectively. This gives 32 bytes of relocatable I/O space. Reserved Resource Type Indicator (RTE): Hardwired to 1 to indicate that the base address field in this register maps to I/O space. 20h–23h 00000001h Attribute: Size: R/W, RO 32 bits Bit Description 31:16 15:5 4:1 0 12.2.10 SSID—Subsystem Identifiers Register This register matches the value written to the LPC bridge. 208 Datasheet UHCI Host Controller (D29:F0, F1, F2) 12.2.11 SID—Subsystem Identification Register Address Offset: Default Value: Default and Access 2Eh–2Fh 0000h Attribute: Size: R/WO 16 bits Bit Description Subsystem ID (SID): BIOS sets the value in this register to identify the Subsystem ID. The SID register, in combination with the SVID register (D29:F0/F1/F2:2C), enables the operating system to distinguish each subsystem from other(s). The value read in this register is the same as what was written to the LPC’s SSID register. NOTE: The software can write to this register only once per core well reset. Writes should be done as a single, 16-bit cycle. 15:0 R/WO 12.2.12 CAP_PTR—Capabilities Pointer Register Address Offset: Default Value: Default and Access 00h RO 34h 00h Attribute: Size: RO 8 bits Bit Description 7:0 Pointer (PTR): 00h indicates this device has no additional capabilities. 12.2.13 INT_LN—Interrupt Line Register Address Offset: Default Value: Default and Access RO 3Ch 00h Attribute: Size: RO 8 bits Bit Description Interrupt Line (INT_LN): This data is not used by the Intel® SCH. It is to communicate to software the interrupt line that the interrupt pin is connected to. 7:0 Datasheet 209 UHCI Host Controller (D29:F0, F1, F2) 12.2.14 INT_PN—Interrupt Pin Register Address Offset: Default Value: Default and Access 3Dh See Description Attribute: Size: RO 8 bits Bit Description Interrupt Line (INT_LN): This value tells the software which interrupt pin each USB host controller uses. The upper 4 bits are hardwired to 0000b; the lower 4 bits are determine by the Interrupt Pin default values that are programmed in the memory-mapped configuration space as follows: UHCI #1 — D29IP.U0P (Chipset Config Registers:Offset 3108h:bits 3:0) UHCI #2 — D29IP.U1P (Chipset Config Registers:Offset 3108h:bits 7:4) UHCI #3 — D29IP.U2P (Chipset Config Registers:Offset 3108h:bits 11:8) NOTE: This does not determine the mapping to the PIRQ pins. 7:0 See Description RO 12.2.15 USB_RELNUM—Serial Bus Release Number Register Address Offset: Default Value: Default and Access 10h RO Serial Bus Release Number 10h = USB controller supports the USB Specification, Release 1.0. 60h 10h Attribute: Size: RO 8 bits Bit Description 7:0 12.2.16 USB_RES—USB Resume Enable Register Address Offset: Default Value: C4h 00h Attribute: Size: R/W, RO 8 bits This register is in the Resume well. Default and Access 0h RO Reserved PORT0EN: Enable port 0 of the USB controller to respond to wakeup events. 0 = The USB controller will not look at this port for a wakeup event. 1 = The USB controller will monitor this port for remote wakeup and connect/disconnect events. PORT1EN: Enable port 1 of the USB controller to respond to wakeup events. 0 = The USB controller will not look at this port for a wakeup event. 1 = The USB controller will monitor this port for remote wakeup and connect/disconnect events. Bit Description 7:2 1 0 R/W 0 0 R/W 210 Datasheet UHCI Host Controller (D29:F0, F1, F2) 12.2.17 FD—Function Disable Register Address Offset: Default Value: Default and Access 0 RO 0 R/W 0 RO 0 R/W Reserved Clock Gating Disable (CGD) 0 = Clock gating within this function is enabled 1 = Clock gating within this function is disabled Reserved Disable (D) 0 = This function is enabled 1 = This function is disabled and the configuration space is not accessible. FCh 00000000h Attribute: Size: R/W, RO 32 bits Bit Description 31:3 2 1 0 12.3 I/O Registers Some of the read/write register bits that deal with changing the state of the USB hub ports function such that on read back they reflect the current state of the port, and not necessarily the state of the last write to the register. This allows the software to poll the state of the port and wait until it is in the proper state before proceeding. A host controller reset, global reset, or port reset will immediately terminate a transfer on the affected ports and disable the port. This affects the USBCMD register, bit 4 and the PORT[7:0]SC registers, bits [12,6,2]. See individual bit descriptions for more detail. Table 32. USB I/O Registers Offset1 00h–01h 02h–03h 04h–05h 06h–07h 08h–0Bh 0Ch 10h–11h 12h–13h Mnemonic USBCMD USBSTS USBINTR FRNUM FRBASEADD SOFMOD PORTSC0 PORTSC1 Register Name USB Command USB Status USB Interrupt Enable Frame Number Frame List Base Address Start of Frame Modify Port 0 Status/Control Port 1 Status/Control Default 0000h 0020h 0000h 0000h Undefined 40h 0080h 0080h Type2 R/W, RO R/WC R/W R/W (see Note) R/W R/W R/WC, RO, R/W (see Note) R/WC, RO, R/W (see Note) NOTES: 1. Register offsets are with respect to BASE. 2. Registers that are writable are WORD writable only. Byte writes to these registers. Datasheet 211 UHCI Host Controller (D29:F0, F1, F2) 12.3.1 USBCMD—USB Command Register I/O Offset: Default Value: BASE + (00h–01h) 0000h Attribute: Size: R/W, RO 16 bits The USB Command Register indicates the command to be executed by the serial bus host controller. Writing to the register causes a command to be executed. The table following the bit description provides additional information on the operation of the Run/Stop and Debug bits. Default and Access 00h RO Reserved Loop Back Test Mode: 8 0 R/W 0 = Disable loop back test mode. 1 = The Intel® SCH is in loop back test mode. When both ports are connected together, a write to one port will be seen on the other port and the data will be stored in I/O offset 18h. Max Packet (MAXP): This bit selects the maximum packet size that can be used for full speed bandwidth reclamation at the end of a frame. This value is used by the host controller to determine whether it should initiate another transaction based on the time remaining in the SOF counter. Use of reclamation packets larger than the programmed size will cause a Babble error if executed during the critical window at frame end. The Babble error results in the offending endpoint being stalled. Software is responsible for ensuring that any packet which could be executed under bandwidth reclamation be within this size limit. 0 = 32 bytes 1 = 64 bytes Configure Flag (CF): This bit has no effect on the hardware. It is provided only as a semaphore service for software. 0 = Indicates that software has not completed host controller configuration. 1 = HCD software sets this bit as the last action in the process of configuring the host controller. Software Debug (SWDBG): The SWDBG bit must only be manipulated when the controller is in the stopped state. This can be determined by checking the HCHalted bit in the USBSTS register. 0 = Normal Mode. 1 = Debug mode. In SW Debug mode, the host controller clears the Run/ Stop bit after the completion of each USB transaction. The next transaction is executed when software sets the Run/Stop bit back to 1. Force Global Resume (FGR): 0 = Software resets this bit to 0 after 20 ms has elapsed to stop sending the Global Resume signal. At that time all USB devices should be ready for bus activity. The 1 to 0 transition causes the port to send a low speed EOP signal. This bit will remain a 1 until the EOP has completed. 1 = Host controller sends the Global Resume signal on the USB, and sets this bit to 1 when a resume event (connect, disconnect, or K-state) is detected while in global suspend mode. Bit Description 15:7 7 0 R/W 6 0 R/W 5 0 R/W 4 0 R/W 212 Datasheet UHCI Host Controller (D29:F0, F1, F2) Bit Default and Access Description Enter Global Suspend Mode (EGSM) 0 = Software resets this bit to 0 to come out of Global Suspend mode. Software writes this bit to 0 at the same time that Force Global Resume (bit 4) is written to 0 or after writing bit 4 to 0. 1 = Host controller enters the Global Suspend mode. No USB transactions occur during this time. The Host controller is able to receive resume signals from USB and interrupt the system. Software must ensure that the Run/Stop bit (bit 0) is cleared prior to setting this bit. Global Reset (GRESET) 0 = This bit is reset by the software after a minimum of 10 ms has elapsed as specified in Chapter 7 of the USB Specification. 1 = Global Reset. The host controller sends the global reset signal on the USB and then resets all of its logic, including the internal hub registers. The hub registers are reset to their power on state. Chip Hardware Reset has the same effect as Global Reset (bit 2), except that the host controller does not send the Global Reset on USB. Host Controller Reset (HCRESET): The effects of HCRESET on Hub registers are slightly different from Chip Hardware Reset and Global USB Reset. The HCRESET affects bits [8,3:0] of the Port Status and Control Register (PORTSC) of each port. HCRESET resets the state machines of the host controller including the Connect/Disconnect state machine (one for each port). When the Connect/Disconnect state machine is reset, the output that signals connect/disconnect are negated to 0, effectively signaling a disconnect, even if a device is attached to the port. This virtual disconnect causes the port to be disabled. This disconnect and disabling of the port causes bit 1 (connect status change) and bit 3 (port enable/disable change) of the PORTSC to get set. The disconnect also causes bit 8 of PORTSC to reset. About 64 bit times after HCRESET goes to 0, the connect and low-speed detect will take place, and bits 0 and 8 of the PORTSC will change accordingly. 0 = Reset by the host controller when the reset process is complete. 1 = Reset. When this bit is set, the host controller module resets its internal timers, counters, state machines, etc. to their initial value. Any transaction currently in progress on USB is immediately terminated. Run/Stop (RS): When set to 1, the Intel® SCH proceeds with execution of the schedule. The Intel® SCH continues execution as long as this bit is set. When this bit is cleared, the Intel® SCH completes the current transaction on the USB and then halts. The HC Halted bit in the status register indicates when the host controller has finished the transaction and has entered the stopped state. The host controller clears this bit when the following fatal errors occur: consistency check failure, PCI Bus errors. 0 = Stop 1 = Run NOTE: This bit should only be cleared if there are no active Transaction Descriptors in the executable schedule or software will reset the host controller prior to setting this bit again. 3 0 R/W 2 0 R/W 1 0 R/W 0 0 R/W Datasheet 213 UHCI Host Controller (D29:F0, F1, F2) Table 33. Run/Stop, Debug Bit Interaction SWDBG (Bit 5), Run/Stop (Bit 0) Operation SWDBG (Bit 5) Run/Stop (Bit 0) Description If executing a command, the host controller completes the command and then stops. The 1.0 ms frame counter is reset and command list execution resumes from start of frame using the frame list pointer selected by the current value in the FRNUM register. (While Run/ Stop=0, the FRNUM register (BASE + 06h) can be reprogrammed). Execution of the command list resumes from Start Of Frame using the frame list pointer selected by the current value in the FRNUM register. The host controller remains running until the Run/Stop bit is cleared (by software or hardware). If executing a command, the host controller completes the command and then stops and the 1.0 ms frame counter is frozen at its current value. All status are preserved. The host controller begins execution of the command list from where it left off when the Run/Stop bit is set. Execution of the command list resumes from where the previous execution stopped. The Run/Stop bit is set to 0 by the host controller when a TD is being fetched. This causes the host controller to stop again after the execution of the TD (single step). When the host controller has completed execution, the HC Halted bit in the Status Register is set. 0 0 0 1 1 0 1 1 When the USB host controller is in Software Debug Mode (USBCMD Register bit 5=1), the single stepping software debug operation is as follows: To Enter Software Debug Mode: 1. HCD puts host controller in Stop state by setting the Run/Stop bit to 0. 2. HCD puts host controller in Debug Mode by setting the SWDBG bit to 1. 3. HCD sets up the correct command list and Start Of Frame value for starting point in the Frame List Single Step Loop. 4. HCD sets Run/Stop bit to 1. 5. Host controller executes next active TD, sets Run/Stop bit to 0, and stops. 6. HCD reads the USBCMD register to check if the single step execution is completed (HCHalted=1). 7. HCD checks results of TD execution. Go to step 4 to execute next TD or step 8 to end Software Debug mode. 8. HCD ends Software Debug mode by setting SWDBG bit to 0. 9. HCD sets up normal command list and Frame List table. 10. HCD sets Run/Stop bit to 1 to resume normal schedule execution. In Software Debug mode, when the Run/Stop bit is set, the host controller starts. When a valid TD is found, the Run/Stop bit is reset. When the TD is finished, the HCHalted bit in the USBSTS register (bit 5) is set. The SW Debug mode skips over inactive TDs and only halts after an active TD has been executed. When the last active TD in a frame has been executed, the host controller waits until the next SOF is sent and then fetches the first TD of the next frame before halting. This HCHalted bit can also be used outside of Software Debug mode to indicate when the host controller has detected the Run/Stop bit and has completed the current transaction. Outside of the Software Debug mode, setting the Run/Stop bit to 0 always resets the SOF counter so that when the Run/Stop bit is set the host controller starts over again from the frame list location pointed to by the Frame List Index (see FRNUM Register description) rather than continuing where it stopped. 214 Datasheet UHCI Host Controller (D29:F0, F1, F2) 12.3.2 USBSTS—USB Status Register I/O Offset: Default Value: BASE + (02h–03h) 0020h Attribute: Size: R/WC, RO 16 bits This register indicates pending interrupts and various states of the host controller. The status resulting from a transaction on the serial bus is not indicated in this register. Default and Access 00h RO Reserved HCHalted 5 1 R/W 0 = Software clears this bit by writing a 1 to it. 1 = The host controller has stopped executing as a result of the Run/Stop bit being set to 0, either by software or by the host controller hardware (debug mode or an internal error). Default. Host Controller Process Error 0 = Software clears this bit by writing a 1 to it. 1 = The host controller has detected a fatal error. This indicates that the host controller suffered a consistency check failure while processing a Transfer Descriptor. An example of a consistency check failure would be finding an invalid PID field while processing the packet header portion of the TD. When this error occurs, the host controller clears the Run/Stop bit in the Command register (D29:F0/F1/F2:BASE + 00h, bit 0) to prevent further schedule execution. A hardware interrupt is generated to the system. Host System Error 0 = Software clears this bit by writing a 1 to it. 1 = A serious error occurred during a host system access involving the host controller module. In a PCI system, conditions that set this bit to 1 include PCI Parity error, PCI Master Abort, and PCI Target Abort. When this error occurs, the host controller clears the Run/Stop bit in the Command register to prevent further execution of the scheduled TDs. A hardware interrupt is generated to the system. Resume Detect (RSM_DET) 2 0 R/WC 0 = Software clears this bit by writing a 1 to it. 1 = The host controller received a “RESUME” signal from a USB device. This is only valid if the Host controller is in a global suspend state (Command register, D29:F0/F1/F2:BASE + 00h, bit 3 = 1). USB Error Interrupt 1 0 R/WC 0 = Software clears this bit by writing a 1 to it. 1 = Completion of a USB transaction resulted in an error condition (e.g., error counter underflow). If the TD on which the error interrupt occurred also had its IOC bit (D29:F0/F1/F2:BASE + 04h, bit 2) set, both this bit and Bit 0 are set. USB Interrupt (USBINT) 0 R/WC 0 = Software clears this bit by writing a 1 to it. 1 = The host controller sets this bit when the cause of an interrupt is a completion of a USB transaction whose Transfer Descriptor had its IOC bit set. Also set when a short packet is detected (actual length field in TD is less than maximum length field in TD), and short packet detection is enabled in that TD. Bit Description 15:6 4 0 R/WC 3 0 R/WC 0 Datasheet 215 UHCI Host Controller (D29:F0, F1, F2) 12.3.3 USBINTR—USB Interrupt Enable Register I/O Offset: Default Value: BASE + (04h–05h) 0000h Attribute: Size: R/W, RO 16 bits This register enables and disables reporting of the corresponding interrupt to the software. When a bit is set and the corresponding interrupt is active, an interrupt is generated to the host. Fatal errors (host controller processor error, (D29:F0/F1/ F2:BASE + 02h, bit 4, USBSTS Register) cannot be disabled by the host controller. Interrupt sources that are disabled in this register still appear in the Status Register to allow the software to poll for events. Default and Access 0000h RO 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W Reserved Scratchpad (SP) Short Packet Interrupt Enable 0 = Disabled 1 = Enabled Interrupt on Complete Enable (IOC) 0 = Disabled 1 = Enabled Resume Interrupt Enable 0 = Disabled 1 = Enabled Timeout/CRC Interrupt Enable 0 = Disabled 1 = Enabled Bit Description 15:5 4 3 2 1 0 216 Datasheet UHCI Host Controller (D29:F0, F1, F2) 12.3.4 FRNUM—Frame Number Register I/O Offset: Default Value: BASE + (06–07h) 0000h Attribute: Size: R/W (Writes must be Word writes) 16 bits Bits [10:0] of this register contain the current frame number that is included in the frame SOF packet. This register reflects the count value of the internal frame number counter. Bits [9:0] are used to select a particular entry in the Frame List during scheduled execution. This register is updated at the end of each frame time. This register must be written as a word. Byte writes are not supported. This register cannot be written unless the host controller is in the STOPPED state as indicated by the HCHalted bit (D29:F0/F1/F2:BASE + 02h, bit 5). A write to this register while the Run/ Stop bit is set (D29:F0/F1/F2:BASE + 00h, bit 0) is ignored. Default and Access 00h RO Reserved Frame List Current Index/Frame Number: This field provides the frame number in the SOF Frame. The value in this register increments at the end of each time frame (approximately every 1 ms). In addition, bits 9:0 are used for the Frame List current index and correspond to memory address signals 11:2. Bit Description 15:11 10:0 000h R/W 12.3.5 FRBASEADD—Frame List Base Address Register I/O Offset: Default Value: BASE + (08h–0Bh) Undefined Attribute: Size: R/W 32 bits This 32-bit register contains the beginning address of the Frame List in the system memory. HCD loads this register prior to starting the schedule execution by the host controller. When written, only the upper 20 bits are used. The lower 12 bits are written as 0s (4 KB alignment). The contents of this register are combined with the frame number counter to enable the host controller to step through the Frame List in sequence. The two least significant bits are always 00. This requires dword-alignment for all list entries. This configuration supports 1024 Frame List entries. Default and Access R/W 000h RO Bit Description Base Address: These bits correspond to memory address signals 31:12, respectively. Reserved 31:12 11:0 Datasheet 217 UHCI Host Controller (D29:F0, F1, F2) 12.3.6 SOFMOD—Start of Frame Modify Register I/O Offset: Default Value: Base + (0Ch) 40h Attribute: Size: R/W 8 bits This register is used to modify the value used in the generation of SOF timing on the USB. When a new value is written to bits 7:0, the SOF timing of the next frame will be adjusted. This feature can be used to adjust out any offset from the clock source that generates the clock that drives the SOF counter. This register can also be used to maintain real time synchronization with the rest of the system so that all devices have the same sense of real time. Using this register, the frame length can be adjusted across the full range required by the USB specification. The initial programmed value is system dependent based on the accuracy of hardware USB clock and is initialized by system BIOS. It may be reprogrammed by USB system software at any time. The value will take effect from the beginning of the next frame. This register is reset upon a host controller reset or global reset. Software must maintain a copy of the value for reprogramming if necessary. Default and Access 0, RO Reserved SOF Timing Value: Guidelines for the modification of frame time are contained in Chapter 7 of the USB Specification. The SOF cycle time (number of SOF counter clock periods to generate a SOF frame length) is equal to 11936 + value in this field. The default value is decimal 64 which gives a SOF cycle time of 12000. For a 12-MHz SOF counter clock input, this produces a 1-ms Frame period. The following table indicates what SOF Timing Value to program into this field for a certain frame period. 6:0 40h R/W Frame Length (# 12 MHz Clocks) (decimal) 11936 11937 — 11999 12000 — 12063 SOF Timing Value (this register) (decimal) 0 1 — 63 64 — 127 Bit 7 Description 218 Datasheet UHCI Host Controller (D29:F0, F1, F2) 12.3.7 PORTSC[0,1]—Port Status and Control Registers I/O Offset: Default Value: Port 0,2,4: BASE + (10h–11h) Port 1,3,5: BASE + (12h–13h) 0080h Attribute: R/WC, RO, R/W (Word writes only) Size: 16 bits After a power-up reset, global reset, or host controller reset, the initial conditions of a port are: no device connected, Port disabled, and the bus line status is 00 (singleended 0). Port Reset and Enable Sequence When software wishes to reset a USB device it will assert the Port Reset bit in the Port Status and Control register. The minimum reset signaling time is 10 ms and is enforced by software. To complete the reset sequence, software clears the port reset bit. The UHCI controller must re-detect the port connect after reset signaling is complete before the controller will allow the port enable bit to reset. This time is approximately 5.3 µs. Software has several possible options to meet the timing requirement and a partial list is enumerated below: • Iterate a short wait, setting the port enable bit and reading it back to see if the enable bit is set. • Poll the connect status bit and wait for the hardware to recognize the connect prior to enabling the port. • Wait longer than the hardware detect time after clearing the port reset and prior to enabling the port. Default and Access 0 RO Reserved Suspend (SUS): This bit should not be written to a 1 if global suspend is active (bit 3=1 in the USBCMD register). Bit 2 and bit 12 of this register define the hub states as follows: Bits [12,2] X,0 0, 1 1, 1 12 0 R/W Hub State Disable Enable Suspend Bit Description 15:13 When in suspend state, downstream propagation of data is blocked on this port, except for single-ended 0 resets (global reset and port reset). The blocking occurs at the end of the current transaction, if a transaction was in progress when this bit was written to 1. In the suspend state, the port is sensitive to resume detection. Note that the bit status does not change until the port is suspended and that there may be a delay in suspending a port if there is a transaction currently in progress on the USB. 1 = Port in suspend state. 0 = Port not in suspend state NOTE: Normally, if a transaction is in progress when this bit is set, the port will be suspended when the current transaction completes. Overcurrent Indicator: Set by hardware. Software clears this bit by writing a 1. 0 = No inactive to active transition has occurred 1 = Overcurrent pin has gone from inactive to active on this port 11 0 R/WC Datasheet 219 UHCI Host Controller (D29:F0, F1, F2) Bit Default and Access 0 RO Description Overcurrent Active: This bit is set and cleared by hardware. 0 = Indicates that the overcurrent pin is inactive (high) 1 = Indicates that the overcurrent pin is active (low) Port Reset (PR) 0 = Port is not in Reset 1 = Port is in Reset. When set, the port is disabled and sends the USB Reset signaling. Low Speed Device Attached (LS) 0 = Full speed device is attached 1 = Low speed device is attached to this port Reserved. Hardwired to 1 Resume Detect (RSM_DET): Software sets this bit to a 1 to drive resume signaling. The host controller sets this bit to a 1 if a J-to-K transition is detected for at least 32 microseconds while the port is in the Suspend state. The Intel® SCH will then reflect the K-state back onto the bus as long as the bit remains a 1, and the port is still in the suspend state (bit 12,2 are 11). Writing a 0 (from 1) causes the port to send a low speed EOP. This bit will remain a 1 until the EOP has completed. 0 = No resume (K-state) detected/driven on port. 1 = Resume detected/driven on port. 10 9 0 R/W 8 0 RO 1 RO 7 6 0 R/W 5:4 0 RO Line Status: These bits reflect the D+ (bit 4) and D– (bit 5) signals lines’ logical levels. These bits are used for fault detect and recovery as well as for USB diagnostics. This field is updated at EOF2 time (See Chapter 11 of the USB Specification). Port Enable/Disable Change: For the root hub, this bit gets set only when a port is disabled due to disconnect on that port or due to the appropriate conditions existing at the EOF2 point (See Chapter 11 of the USB Specification). 0 = No change. Software clears this bit by writing a 1 to the bit location. 1 = Port enabled/disabled status has changed. Port Enabled/Disabled (PORT_EN): Ports can be enabled by host software only. Ports can be disabled by either a fault condition (disconnect event or other fault condition) or by host software. 3 0 R/WC 2 0 R/W Note that the bit status does not change until the port state actually changes and that there may be a delay in disabling or enabling a port if there is a transaction currently in progress on the USB. 0 = Disable 1 = Enable 220 Datasheet UHCI Host Controller (D29:F0, F1, F2) Bit Default and Access 0 RO Description Overcurrent Active: This bit is set and cleared by hardware. 0 = Indicates that the overcurrent pin is inactive (high) 1 = Indicates that the overcurrent pin is active (low) Port Reset (PR) 0 = Port is not in Reset 1 = Port is in Reset. When set, the port is disabled and sends the USB Reset signaling. Low Speed Device Attached (LS) 0 = Full speed device is attached 1 = Low speed device is attached to this port Reserved. Hardwired to 1 Resume Detect (RSM_DET): Software sets this bit to a 1 to drive resume signaling. The host controller sets this bit to a 1 if a J-to-K transition is detected for at least 32 microseconds while the port is in the Suspend state. The Intel® SCH will then reflect the K-state back onto the bus as long as the bit remains a 1, and the port is still in the suspend state (bit 12,2 are 11). Writing a 0 (from 1) causes the port to send a low speed EOP. This bit will remain a 1 until the EOP has completed. 0 = No resume (K-state) detected/driven on port. 1 = Resume detected/driven on port. 10 9 0 R/W 8 0 RO 1 RO 7 6 0 R/W 5:4 0 RO Line Status: These bits reflect the D+ (bit 4) and D– (bit 5) signals lines’ logical levels. These bits are used for fault detect and recovery as well as for USB diagnostics. This field is updated at EOF2 time (See Chapter 11 of the USB Specification). Port Enable/Disable Change: For the root hub, this bit gets set only when a port is disabled due to disconnect on that port or due to the appropriate conditions existing at the EOF2 point (See Chapter 11 of the USB Specification). 0 = No change. Software clears this bit by writing a 1 to the bit location. 1 = Port enabled/disabled status has changed. Port Enabled/Disabled (PORT_EN): Ports can be enabled by host software only. Ports can be disabled by either a fault condition (disconnect event or other fault condition) or by host software. 3 0 R/WC 2 0 R/W Note that the bit status does not change until the port state actually changes and that there may be a delay in disabling or enabling a port if there is a transaction currently in progress on the USB. 0 = Disable 1 = Enable Datasheet 221 UHCI Host Controller (D29:F0, F1, F2) Bit Default and Access Description Connect Status Change: This bit indicates that a change has occurred in the port’s Current Connect Status (see bit 0). The hub device sets this bit for any changes to the port device connect status, even if system software has not cleared a connect status change. If, for example, the insertion status changes twice before system software has cleared the changed condition, hub hardware will be setting” an already-set bit (i.e., the bit will remain set). However, the hub transfers the change bit only once when the host controller requests a data transfer to the Status Change endpoint. System software is responsible for determining state change history in such a case. 0 = No change. Software clears this bit by writing a 1 to it. 1 = Change in Current Connect Status. Current Connect Status: This value reflects the current state of the port, and may not correspond directly to the event that caused the Connect Status Change bit (Bit 1) to be set. 0 = No device is present. 1 = Device is present on port. 1 0 R/WC 0 0 RO §§ 222 Datasheet EHCI Host Controller (D29:F7) 13 13.1 EHCI Host Controller (D29:F7) Functional Description The Intel® SCH contains an Enhanced Host Controller Interface (EHCI), which supports up to eight USB 2.0 high-speed root ports. USB 2.0 allows data transfers up to 480 MB/ s. Ports 0-5 of the EHCI share the same pins as the six USB full-speed/low-speed ports detailed in Chapter 12. The two other high-speed ports, Ports 6 and 7, only support USB 2.0. The Intel® SCH contains port-routing logic that determines whether a USB port is controlled by one of the three UHCI controllers or by the EHCI controller. A USB 2.0-based debug port is also implemented in Intel® SCH and is documented in this chapter. A summary of the key architectural differences between the UHCI and EHCI host controllers are shown in Table 34. Table 34. UHCI vs. EHCI Parameter Accessible by Memory Data Structure Differential Signaling Voltage Ports per Controller USB UHCI I/O space Single linked list 3.3 V 2 USB EHCI Memory Space Separated into periodic and asynchronous lists 400 mV 8 13.1.1 EHCI Initialization The expected initialization sequence of the EHCI begins with a complete power cycle during which the suspend well and core well have been off. After core power wells have been powered up and stabilized, the BIOS performs a number of platform customization steps to configure the Intel® SCH and its attached devices. This makes the system ready for the first operating system drivers to be loaded and initialized. (See Chapter 4 of the Enhanced Host Controller Interface Specification for Universal Serial Bus, Revision 1.0 for more information on USB driver initialization.) In addition to the standard Intel® SCH hardware resets, portions of the EHCI are reset by the HCRESET bit and the transition from the D3HOT device power management state to the D0 state. The effects of each of these resets are as follows: Reset Does Reset Memory space registers except Structural Parameters (which is written by BIOS). Core well registers (except BIOSprogrammed registers). Does not Reset Configuration registers. Comments The HCRESET must only effect registers that the EHCI driver controls. PCI Configuration space and BIOS-programmed parameters cannot be reset. The D3-to-D0 transition must not cause wake information (suspend well) to be lost. It also must not clear BIOS-programmed registers because BIOS may not be invoked following the D3-to-D0 transition. HCRESET bit set. Software writes the Device Power State from D3HOT (11b) to D0 (00b). Suspend well registers; BIOSprogrammed core well registers. Datasheet 223 EHCI Host Controller (D29:F7) Any exceptions mentioned in the detailed register descriptions supersede the rules given above. This summary is provided to help explain the reasons for the reset policies. 13.1.2 USB 2.0 Interrupts and Error Conditions Section 4 of the Enhanced Host Controller Interface Specification for Universal Serial Bus, Revision 1.0 goes into detail on the EHCI interrupts and the error conditions that cause them. All error conditions that the EHCI detects can be reported through the EHCI Interrupt status bits. Only Intel® SCH-specific interrupt and error-reporting behavior is documented in this section. The EHCI Interrupts Section must be read first, followed by this section to fully comprehend the EHCI interrupt and error-reporting functionality. • Based on the EHCI’s Buffer sizes and buffer management policies, the Data Buffer Error can never occur on the Intel® SCH. • Master Abort and Target Abort responses from hub interface on EHCI-initiated read packets will be treated as Fatal Host Errors. The EHCI halts when these conditions are encountered. • The Intel® SCH may assert the interrupts which are based on the interrupt threshold as soon as the status for the last complete transaction in the interrupt interval has been posted in the internal write buffers. The requirement in the Enhanced Host Controller Interface Specification for Universal Serial Bus, Revision 1.0. • Since the Intel® SCH supports the 1024-element Frame List size, the Frame List Rollover interrupt occurs every 1024 milliseconds. • The Intel® SCH delivers interrupts using PIRQH#. • The Intel® SCH does not modify the CERR count on an Interrupt IN when the “Do Complete-Split” execution criteria are not met. • For complete-split transactions in the Periodic list, the “Missed Microframe” bit does not get set on a control-structure-fetch that fails the late-start test. If subsequent accesses to that control structure do not fail the late-start test, then the “Missed Microframe” bit will get set and written back. 13.1.2.1 Aborts on USB 2.0—Initiated Memory Reads If a read initiated by the EHCI is aborted, the EHCI treats it as a fatal host error. The following actions are taken when this occurs: • The Host System Error status bit is set • The DMA engines are halted after completing up to one more transaction on the USB interface • If enabled (by the Host System Error Enable), then an interrupt is generated • If the status is Master Abort, then the Received Master Abort bit in configuration space is set • If the status is Target Abort, then the Received Target Abort bit in configuration space is set • If enabled (by the SERR Enable bit in the function’s configuration space), then the Signaled System Error bit in configuration bit is set. 224 Datasheet EHCI Host Controller (D29:F7) 13.1.3 13.1.3.1 USB 2.0 Power Management Pause Feature This feature allows platforms (especially mobile systems) to dynamically enter lowpower states during brief periods when the system is idle (i.e., between keystrokes). This is useful for enabling power management features like Enhanced Intel SpeedStep® Technology in the Intel® SCH. The policies for entering these states typically are based on the recent history of system bus activity to incrementally enter deeper power management states. Normally, when the EHCI is enabled, it regularly accesses main memory while traversing the DMA schedules looking for work to do; this activity is viewed by the power management software as a non-idle system, thus preventing the power managed states to be entered. Suspending all of the enabled ports can prevent the memory accesses from occurring, but there is an inherent latency overhead with entering and exiting the suspended state on the USB ports that makes this unacceptable for the purpose of dynamic power management. As a result, the EHCI software drivers are allowed to pause the EHCI’s DMA engines when it knows that the traffic patterns of the attached devices can afford the delay. The pause only prevents the EHCI from generating memory accesses; the SOF packets continue to be generated on the USB ports (unlike the suspended state). 13.1.3.2 Suspend Feature The Enhanced Host Controller Interface (EHCI) For Universal Serial Bus Specification, Section 4.3 describes the details of Port Suspend and Resume. 13.1.3.3 ACPI Device States The USB 2.0 function only supports the D0 and D3 PCI Power Management states. Notes regarding the Intel® SCH implementation of the Device States: 1. The EHCI hardware does not inherently consume any more power when it is in the D0 state than it does in the D3 state. However, software is required to suspend or disable all ports prior to entering the D3 state such that the maximum power consumption is reduced. 2. In the D0 state, all implemented EHCI features are enabled. 3. In the D3 state, accesses to the EHCI memory-mapped I/O range will master abort. NOTE: Since the Debug Port uses the same memory range, the Debug Port is only operational when the EHCI is in the D0 state. 4. In the D3 state, the EHCI interrupt must never assert for any reason. The internal PME# signal is used to signal wake events, etc. 5. When the Device Power State field is written to D0 from D3, an internal reset is generated. See section EHCI Resets for general rules on the effects of this reset. 6. Attempts to write any other value into the Device Power State field other than 00b (D0 state) and 11b (D3 state) will complete normally without changing the current value in this field. Datasheet 225 EHCI Host Controller (D29:F7) 13.1.3.4 ACPI System States The EHCI behavior as it relates to other power management states in the system is summarized in the following list: • The System is always in the S0 state when the EHCI is in the D0 state. However, when the EHCI is in the D3 state, the system may be in any power management state (including S0). • When in D0, the Pause feature (See Section 13.1.3.1) enables dynamic processor low-power states to be entered. • The PLL in the EHCI is disabled when entering the S3/S4/S5 states (core power turns off). • All core well logic is reset in the S3/S4/S5 states. 13.1.3.5 Activity During C-States The USB2 host controller can operating while the processor is in low C-states, causing pop-up to C2. 13.1.3.6 Mobile Considerations The Intel® SCH USB 2.0 implementation does not behave differently in the mobile configurations versus the desktop configurations. However, some features may be especially useful for the mobile configurations. • If a system (e.g., mobile) does not implement all ten USB 2.0 ports, the Intel® SCH provides mechanisms for changing the structural parameters of the EHCI and hiding unused UHCI controllers. • Mobile systems may want to minimize the conditions that will wake the system. The Intel® SCH implements the “Wake Enable” bits in the Port Status and Control registers, as specified in the EHCI spec, for this purpose. • Mobile systems may want to cut suspend well power to some or all USB ports when in a low-power state. The Intel® SCH implements the optional Port Wake Capability Register in the EHCI Configuration Space for this platform-specific information to be communicated to software. 13.1.4 Interaction with UHCI Host Controllers The Enhanced Host controller shares its ports with UHCI Host controllers in the Intel® SCH. The UHC at D29:F0 shares Ports 0 and 1; the UHC at D29:F1 shares Ports 2 and 3; the UHC at D29:F2 shares Ports 4 and 5. There is very little interaction between the Enhanced and the UHCI controllers other than the multiplexing control which is provided as part of the EHCI. Figure 4 shows the USB Port Connections at a conceptual level. Note: Ports 6 and 7 are not multiplexed onto a UHCI controller, so they are only capable of high-speed operation. This means they can only be used for internal device attachment as USB 2.0 spec requires that external ports be backward compatible with USB 1.1 devices. 13.1.4.1 Port-Routing Logic Integrated into the EHCI functionality is port-routing logic, which performs the multiplexing between the UHCI and EHCI host controllers. The Intel® SCH conceptually implements this logic as described in Section 4.2 of the Enhanced Host Controller Interface Specification for Universal Serial Bus, Revision 1.0. If a device is connected that is not capable of USB 2.0’s high-speed signaling protocol or if the EHCI software 226 Datasheet EHCI Host Controller (D29:F7) drivers are not present as indicated by the Configured Flag, then the UHCI controller owns the port. Owning the port means that the differential output is driven by the owner and the input stream is only visible to the owner. The host controller that is not the owner of the port internally sees a disconnected port. Figure 4. Intel® SCH USB Port Connections UHCI #2 UHCI #1 UCHI #0 Port 7 Port 6 Port 5 Port 4 Port 3 Port 2 Port 1 Port 0 Debug Port Note: Enhanced Host Controller Logic The port-routing logic is the only block of logic within the Intel® SCH that observes the physical (real) connect/disconnect information. The port status logic inside each of the host controllers observes the electrical connect/disconnect information that is generated by the port-routing logic. Only the differential signal pairs are multiplexed/de-multiplexed between the UHCI and EHCI host controllers. The other USB functional signals are handled as follows: • The Overcurrent inputs (OC[7:0]#) are directly routed to both controllers. An overcurrent event is recorded in both controllers’ status registers. The Port-Routing logic is implemented in the Suspend power well so that reenumeration and re-mapping of the USB ports is not required following entering and exiting a system sleep state in which the core power is turned off. The Intel® SCH also allows the USB Debug Port traffic to be routed in and out of Port 0. When in this mode, the Enhanced Host controller is the owner of Port 0. Datasheet 227 EHCI Host Controller (D29:F7) 13.1.4.2 Device Connects The Enhanced Host Controller Interface Specification for Universal Serial Bus, Revision 1.0 describes the details of handling Device Connects in Section 4.2. There are four general scenarios that are summarized below. 1. Configure Flag = 0 and a full-speed/low-speed-only Device is connected — In this case, the UHC is the owner of the port both before and after the connect occurs. The EHCI (except for the port-routing logic) never sees the connect occur. The UHCI driver handles the connection and initialization process. 2. Configure Flag = 0 and a high-speed-capable Device is connected — In this case, the UHC is the owner of the port both before and after the connect occurs. The EHCI (except for the port-routing logic) never sees the connect occur. The UHCI driver handles the connection and initialization process. Since the UHC does not perform the high-speed chirp handshake, the device operates in compatible mode. 3. Configure Flag = 1 and a full-speed/low-speed-only Device is connected — In this case, the EHCI is the owner of the port before the connect occurs. The EHCI driver handles the connection and performs the port reset. After the reset process completes, the EHCI hardware has cleared (not set) the Port Enable bit in the EHC’s PORTSC register. The EHCI driver then writes a 1 to the Port Owner bit in the same register, causing the UHC to see a connect event and the EHCI to see an “electrical” disconnect event. The UHCI driver and hardware handle the connection and initialization process from that point on. The EHCI driver and hardware handle the perceived disconnect. 4. Configure Flag = 1 and a high-speed-capable Device is connected — In this case, the EHCI is the owner of the port before, and remains the owner after, the connect occurs. The EHCI driver handles the connection and performs the port reset. After the reset process completes, the EHCI hardware has set the Port Enable bit in the EHC’s PORTSC register. The port is functional at this point. The UHC continues to see an unconnected port. 13.1.4.3 Device Disconnects The Enhanced Host Controller Interface Specification for Universal Serial Bus, Revision 1.0 describes the details of handling Device Connects in Section 4.2. There are three general scenarios that are summarized below. 1. Configure Flag = 0 and the device is disconnected — In this case, the UHC is the owner of the port both before and after the disconnect occurs. The EHCI (except for the port-routing logic) never sees a device attached. The UHCI driver handles disconnection process. 2. Configure Flag = 1 and a full-speed/low-speed-capable Device is disconnected — In this case, the UHC is the owner of the port before the disconnect occurs. The disconnect is reported by the UHC and serviced by the associated UHCI driver. The port-routing logic in the EHCI cluster forces the Port Owner bit to 0, indicating that the EHCI owns the unconnected port. 3. Configure Flag = 1 and a high-speed-capable Device is disconnected — In this case, the EHCI is the owner of the port before, and remains the owner after, the disconnect occurs. The EHCI hardware and driver handle the disconnection process. The UHC never sees a device attached. 228 Datasheet EHCI Host Controller (D29:F7) 13.1.4.4 Effect of Resets on Port-Routing Logic As mentioned above, the Port Routing logic is implemented in the suspend power well so that remuneration and re-mapping of the USB ports is not required following entering and exiting a system sleep state in which the core power is turned off. Reset Event Suspend Well Reset Core Well Reset D3-to-D0 Reset HCRESET Effect on Configure Flag cleared (0) no effect no effect cleared (0) Effect on Port Owner Bits set (1) no effect no effect set (1) 13.1.5 USB 2.0 Based Debug Port The Intel® SCH supports the elimination of the legacy COM ports by providing the ability for new debugger software to interact with devices on a USB 2.0 port. For details on the debug port, refer to Appendix C of Enhanced Host Controller Interface Specification for Universal Serial Bus, Revision 1.0. Datasheet 229 EHCI Host Controller (D29:F7) 13.2 Note: Table 35. USB EHCI Configuration Registers All bit descriptions in this chapter assume the default configuration of Device 29 supporting USB Ports 0-2. USB EHCI PCI Register Address Map Offset 00h–01h 02h–03h 04h–05h 06h–07h 08h 09h–0Bh 0Dh 0Eh 10h–13h 2Ch–2Dh 2Eh–2Fh 34h 3Ch 3Dh 50h 51h 52h–53h 54h–55h 58h 59h 5Ah–5Bh 60h 61h 62h–63h 64h–65h 68h–6Bh 6Ch–6Fh 70h–73h 80h C0h–C3h Mnemonic VID DID PCICMD PCISTS RID CC MLT HEADTYP MEM_BASE SVID SID CAP_PTR INT_LN INT_PN PM_CAPID NXT_PTR1 PM_CAP PM_CTL_STS DEBUG_CAPID NXT_PTR2 DEBUG_BASE USB_RELNUM FL_ADJ PWAKE_CAP CUO LEG_EXT_CAP LEG_EXT_CS SPECIAL_SMI ACCESS_CNTL FD Register Name Vendor Identification Device Identification PCI Command PCI Status Revision Identification Class Codes Master Latency Timer Header Type Memory Base Address USB EHCI Subsystem Vendor Identification USB EHCI Subsystem Identification Capabilities Pointer Interrupt Line Interrupt Pin PCI Power Management Capability ID Next Item Pointer Power Management Capabilities Power Management Control/Status Debug Port Capability ID Next Item Pointer #2 Debug Port Base Offset USB Release Number Frame Length Adjustment Port Wake Capabilities Classic USB Override USB EHCI Legacy Support Extended Capability USB EHCI Legacy Extended Support Control/Status Intel specific USB 2.0 SMI Access Control Function Disable Default Value 8086h 8117h 0000h 0010h See description 0C0320h 00h 00h 00000000h UUUUh UUUUh 50h 00h See description 01h 58h C9C2h 0000h 0Ah 00h 20A0h 20h 20h 03FDh 0000h 00000001h 00000000h 00000000h 00h 00000000h RO RO R/W, RO R/W, RO RO RO RO RO R/W, RO R/W (special) R/W (special) RO R/W RO RO R/W (special) R/W (special) R/W, R/WC, RO RO RO RO RO R/W RO RO, R/W R/W, RO R/W, R/WC, RO R/W, R/WC R/W RO, R/W Type NOTE: All configuration registers in this section are in the core well and reset by a core well reset and the D3-to-D0 warm reset, except as noted. 230 Datasheet EHCI Host Controller (D29:F7) 13.2.1 VID—Vendor Identification Register Offset Address: Default Value: Default and Access 8086 RO 00h–01h 8086h Attribute: Size: RO 16 bits Bit Description 15:0 Vendor ID: This is a 16-bit value assigned to Intel. 13.2.2 DID—Device Identification Register Offset Address: Default Value: Default and Access 8117h RO 02h–03h 8117h Attribute: Size: RO 16 bits Bit Description Device ID: The value 8117h corresponds to the Intel® SCH EHCI controller. 15:0 13.2.3 PCICMD—PCI Command Register Address Offset: Default Value: Default and Access 0 RO Reserved Interrupt Disable 10 0 R/W 0 = The function is capable of generating interrupts. 1 = The function cannot generate its interrupt to the interrupt controller. Note that the corresponding Interrupt Status bit (D29:F7:06h, bit 3) is not affected by the interrupt enable. Reserved Bus Master Enable (BME) 2 0 R/W 0 = Disables this functionality. 1 = Enables the Intel® SCH to act as a master on the PCI bus for USB transfers. Memory Space Enable (MSE): This bit controls access to the USB 2.0 Memory Space registers. 0 = Disables this functionality. 1 = Enables accesses to the USB 2.0 registers. The Base Address register (D29:F7:10h) for USB 2.0 should be programmed before this bit is set. Reserved 04h–05h 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15:11 9:3 00h RO 1 0 R/W 0 0 RO Datasheet 231 EHCI Host Controller (D29:F7) 13.2.4 PCISTS—PCI Status Register Address Offset: Default Value: Default and Access 000h RO 1 RO Reserved Capabilities List (CAP_LIST): Hardwired to 1 indicating that offset 34h contains a valid capabilities pointer. Interrupt Status: This bit reflects the state of this function’s interrupt at the input of the enable/disable logic. 3 0 RO 0 = This bit will be 0 when the interrupt is deasserted. 1 = This bit is a 1 when the interrupt is asserted. The value reported in this bit is independent of the value in the Interrupt Enable bit. 2:0 0 RO Reserved 06h–07h 0010h Attribute: Size: R/W, RO 16 bits Bit Description 15:5 4 13.2.5 RID—Revision Identification Register Offset Address: Default Value: Default and Access RO 08h See bit description Attribute: Size: RO 8 bits Bit Description Revision ID: Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the value of the Revision ID Register 7:0 13.2.6 CC—Class Codes Register Address Offset: Default Value: Default and Access 0Ch RO 03h RO 20h RO Base Class Code (BCC) 0Ch = Serial bus controller. Sub Class Code (SCC) 03h = Universal serial bus host controller. Programming Interface (PI): A value of 20h indicates that this USB 2.0 host controller conforms to the EHCI Specification. 09h–0Bh 0C0320h Attribute: Size: RO 24 bits Bit Description 23:16 15:8 7:0 232 Datasheet EHCI Host Controller (D29:F7) 13.2.7 MLT—Master Latency Timer Register Address Offset: Default Value: Default and Access 00h RO 0Dh 00h Attribute: Size: RO 8 bits Bit Description Master Latency Timer (MLT): Hardwired to 00h. Because the EHCI controller is internally implemented with arbitration on an interface (and not PCI), it does not need a master latency timer. 7:0 13.2.8 HEADTYP—Header Type Register Address Offset: Default Value: Default and Access 0 RO 00h RO 0Eh 00h Attribute: Size: RO 8 bits Bit Description Multi-Function Device: Hardwired to 0h indicating this is a single function device. Configuration Layout. Hardwired to 00h, which indicates the standard PCI configuration layout. 7 6:0 13.2.9 MEM_BASE—Base Address Register Address Offset: Default Value: Default and Access 0000h R/W 00h RO 0 RO 00b RO 0 RO 10h–13h 00000000h Attribute: Size: R/W, RO 32 bits Bit Description Memory Base Address: Bits 31:10 correspond to memory address signals 31:10, respectively. This gives 1 KB of locatable memory space aligned to 1 KB boundaries. Reserved Prefetchable: Hardwired to 0 indicating that this range should not be prefetched. Type: Hardwired to 00b indicating that this range can be mapped anywhere within 32-bit address space. Resource Type Indicator (RTE): Hardwired to 0 indicating that the base address field in this register maps to memory space. 31:10 9:4 3 2:1 0 Datasheet 233 EHCI Host Controller (D29:F7) 13.2.10 SVID—USB EHCI Subsystem Vendor ID Register Address Offset: Default Value: Reset: Default and Access 2Ch–2Dh UUUUh None Attribute: Size: R/W (special) 16 bits Bit Description Subsystem Vendor ID (SVID) (special): This register, in combination with the USB 2.0 Subsystem ID register, enables the operating system to distinguish each subsystem from the others. NOTE: Writes to this register are enabled when the WRT_RDONLY bit (D29:F7:80h, bit 0) is set to 1. 15:0 R/W 13.2.11 SID—USB EHCI Subsystem ID Register Address Offset: Default Value: Reset: Default and Access 2Eh–2Fh UUUUh None Attribute: Size: R/W (special) 16 bits Bit Description Subsystem ID (SID) (special): BIOS sets the value in this register to identify the Subsystem ID. This register, in combination with the Subsystem Vendor ID register, enables the operating system to distinguish each subsystem from other(s). NOTE: Writes to this register are enabled when the WRT_RDONLY bit (D29:F7:80h, bit 0) is set to 1. 15:0 R/W 13.2.12 CAP_PTR—Capabilities Pointer Register Address Offset: Default Value: Default and Access 50h RO 34h 50h Attribute: Size: RO 8 bits Bit Description Pointer (PTR): This register points to the starting offset of the USB 2.0 capabilities ranges. 7:0 234 Datasheet EHCI Host Controller (D29:F7) 13.2.13 INT_LN—Interrupt Line Register Address Offset: Default Value: Default and Access 00h R/W 3Ch 00h Attribute: Size: R/W 8 bits Bit Description Interrupt Line (INT_LN): This data is not used by the Intel® SCH. It is used as a scratchpad register to communicate to software the interrupt line that the interrupt pin is connected to. 7:0 13.2.14 INT_PN—Interrupt Pin Register Address Offset: Default Value: Default and Access 00h RO 3Dh See Description Attribute: Size: RO 8 bits Bit Description Interrupt Pin. This reflects the value of D29IP.EIP (Chipset Config Registers:Offset 3108:bits 31:28). NOTE: Bits 7:4 are always 0. 7:0 13.2.15 PM_CAPID—PCI Power Management Capability ID Register Address Offset: Default Value: Default and Access 01h RO 50h 01h Attribute: Size: RO 8 bits Bit Description Power Management Capability ID: A value of 01h indicates that this is a PCI Power Management capabilities field. 7:0 Datasheet 235 EHCI Host Controller (D29:F7) 13.2.16 NXT_PTR1—Next Item Pointer #1 Register Address Offset: Default Value: Default and Access 51h 58h Attribute: Size: R/W (special) 8 bits Bit Description Next Item Pointer 1 Value (special): This register defaults to 58h, which indicates that the next capability registers begin at configuration offset 58h. This register is writable when the WRT_RDONLY bit (D29:F7:80h, bit 0) is set. This allows BIOS to effectively hide the Debug Port capability registers, if necessary. This register should only be written during system initialization before the plug-and-play software has enabled any master-initiated traffic. Only values of 58h (Debug Port visible) and 00h (Debug Port invisible) are expected to be programmed in this register. NOTE: Register not reset by D3-to-D0 warm reset. 7:0 58h R/W 13.2.17 PM_CAP—Power Management Capabilities Register Address Offset: Default Value: Default and Access 11001b R/W 0 RO 0 RO 111b R/W 0 RO 0 RO 0 RO 010b RO 52h–53h C9C2h Attribute: Size: R/W (special), RO 16 bits Bit Description PME Support (PME_SUP) (special): This 5-bit field indicates the power states in which the function may assert PME#. The EHCI does not support the D1 or D2 states. For all other states, the EHCI is capable of generating PME#. Software should never need to modify this field. D2 Support (D2_SUP). 0 = D2 State is not supported D1 Support (D1_SUP). 0 = D1 State is not supported Auxiliary Current (AUX_CUR). The EHCI reports 375 mA maximum suspend well current required when in the D3COLD state. This value may be rewritten by BIOS when a better current value is known. Device Specific Initialization (DSI). The Intel® SCH reports 0, indicating that no device-specific initialization is required. Reserved PME Clock (PME_CLK). The Intel® SCH reports 0, indicating that no PCI clock is required to generate PME#. Version (VER). The Intel® SCH reports 010b, indicating that it complies with Revision 1.1 of the PCI Power Management Specification. 15:11 10 9 8:6 5 4 3 2:0 NOTES: 1. Normally, this register is read-only to report capabilities to the power management software. To report different power management capabilities, depending on the system in which the Intel® SCH is used, bits 15:11 and 8:6 in this register are writable when the WRT_RDONLY bit (D29:F7:80h, bit 0) is set. The value written to this register does not effect the hardware other than changing the value returned during a read. 2. This register is reset during a core well reset, but not D3-to-D0 state transition. 236 Datasheet EHCI Host Controller (D29:F7) 13.2.18 PWR_CNTL_STS—Power Management Control/Status Register Address Offset: Default Value: Default and Access PME Status (STS) 0 = Writing a 1 to this bit will clear it and cause the internal PME to deassert (if enabled). 1 = This bit is set when the EHCI would normally assert the PME# signal independent of the state of the PME_En bit. NOTE: This bit must be explicitly cleared by the operating system each time the operating system is loaded. 14:13 12:9 00b RO 0h RO Data Scale (DSCA): Hardwired to 00b indicating it does not support the associated Data register. Data Select (DSEL): Hardwired to 0000b indicating it does not support the associated Data register. PME Enable (EN) 0 R/W 0 = Disable. 1 = Enable. Enables EHCI to generate an internal PME signal when PME_Status is 1. NOTE: This bit must be explicitly cleared by the operating system each time it is initially loaded. 7:2 00h RO Reserved Power State: This 2-bit field is used both to determine the current power state of EHCI function and to set a new power state. The definition of the field values are: 00 = D0 state 11 = D3HOT state 1:0 00b R/W If software attempts to write a value of 10b or 01b in to this field, the write operation must complete normally; however, the data is discarded and no state change occurs. When in the D3HOT state, the Intel® SCH must not accept accesses to the EHCI memory range; but the configuration space must still be accessible. When software changes this value from the D3HOT state to the D0 state, an internal warm (soft) reset is generated, and software must re-initialize the function. NOTE: Reset (bits 15, 8): suspend well, and not D3-to-D0 warm reset nor core well reset. 54h–55h 0000h Attribute: Size: R/W, R/WC, RO 16 bits Bit Description 15 0 R/WC 8 Datasheet 237 EHCI Host Controller (D29:F7) 13.2.19 DEBUG_CAPID—Debug Port Capability ID Register Address Offset: Default Value: Default and Access 0Ah RO 58h 0Ah Attribute: Size: RO 8 bits Bit Description Debug Port Capability ID: Hardwired to 0Ah indicating that this is the start of a Debug Port Capability structure. 7:0 13.2.20 NXT_PTR2—Next Item Pointer #2 Register Address Offset: Default Value: Default and Access 00h RO 59h 00h Attribute: Size: RO 8 bits Bit Description Next (NEXT): Hardwired to 00h to indicate there are no more capability structures in this function. 7:0 13.2.21 DEBUG_BASE—Debug Port Base Offset Register Address Offset: Default Value: Default and Access 02h RO A0h RO 5Ah–5Bh 20A0h Attribute: Size: RO 16 bits Bit Description BAR Number: Hardwired to 001b to indicate the memory BAR begins at offset 10h in the EHCI configuration space. Debug Port Offset: Hardwired to 0A0h to indicate that the Debug Port registers begin at offset A0h in the EHCI memory range. 15:13 12:0 13.2.22 USB_RELNUM—USB Release Number Register Address Offset: Default Value: Default and Access 20h RO 60h 20h Attribute: Size: RO 8 bits Bit Description USB Release Number: A value of 20h indicates that this controller follows Universal Serial Bus (USB) Specification, Revision 2.0. 7:0 238 Datasheet EHCI Host Controller (D29:F7) 13.2.23 FL_ADJ—Frame Length Adjustment Register Address Offset: Default Value: 61h 20h Attribute: Size: R/W 8 bits This feature is used to adjust any offset from the clock source that generates the clock that drives the SOF counter. When a new value is written into these six bits, the length of the frame is adjusted. Its initial programmed value is system dependent based on the accuracy of hardware USB clock and is initialized by system BIOS. This register should only be modified when the HChalted bit (D29:F7:CAPLENGTH + 24h, bit 12) in the USB2.0_STS register is a 1. Changing value of this register while the host controller is operating yields undefined results. It should not be reprogrammed by USB system software unless the default or BIOS programmed values are incorrect, or the system is restoring the register while returning from a suspended state. These bits in suspend well and not reset by a D3-to-D0 warm rest or a core well reset. Default and Access 00b RO Bit Description 7:6 Reserved. These bits are reserved for future use and should read as 00b. Frame Length Timing Value: Each decimal value change to this register corresponds to 16 high-speed bit times. The SOF cycle time (number of SOF counter clock periods to generate a SOF micro-frame length) is equal to 59488 + value in this field. The default value is decimal 32 (20h), which gives a SOF cycle time of 60000. Frame Length (# 480 MHz Clocks) (decimal) Frame Length Timing Value (this register) (decimal) 0 1 2 — 31 32 — 62 63 5:0 20h R/W 59488 59504 59520 — 59984 60000 — 60480 60496 Datasheet 239 EHCI Host Controller (D29:F7) 13.2.24 PWAKE_CAP—Port Wake Capability Register Address Offset: Default Value: 62–63h 01FFh Attribute: Size: RO 16 bits This register is in the suspend power well. A one in a bit position indicates that a device connected below the port can be enabled as a wake-up device and the port may be enabled for disconnect/connect or over-current events as wake-up events. This is an information-only mask register. Reset: Suspend well, and not D3-to-D0 warm reset nor core well reset. Bit Default and Access 0 RO 1FFh RO 1b RO Reserved Port Wake Up Capability Mask: Bit positions 1 through 8 (Device 29) correspond to a physical port implemented on this host controller. For example, Bit Position 1 corresponds to Port 1, Bit Position 2 corresponds to Port 2, etc. Port Wake Implemented: A 1 in this bit indicates that this register is implemented to software. Description 15:9 8:1 0 13.2.25 CUO—Classic USB Override Register Address Offset: Default Value: 64h 00h Attribute: Size: RO, R/W 16 bits This 16-bit register provides a bit corresponding to each of the ports on the EHCI host controller. When a bit is set to 1, the corresponding USB port is routed to the classic (UHCI) host controller and will only operate using the classic signaling rates. The feature is implemented with the following requirements: • The associated Port Owner bit does not reflect the value in this new override register. This ensures compatibility with EHCI drivers. • BIOS must only write to this register during initialization (while the Configured Flag is 0). • The register is implemented in the Suspend well to maintain port-routing when the core power goes down • When a 1 is present in the CUO register, then the classic controller operates the port regardless of the EHCI port routing logic. The corresponding EHCI port will always appear disconnected in this mode. • Port 0 must not be programmed into Classic USB Override mode as this is the Debug Port. Default and Access 00h RO 00h R/W 0 RO Reserved Classic USB Port Owner: A 1 in a bit position forces the corresponding USB port to the classic host controller. Reserved Bit Description 15:8 7:1 0 240 Datasheet EHCI Host Controller (D29:F7) 13.2.26 LEG_EXT_CAP—USB EHCI Legacy Support Extended Capability Register Address Offset: Default Value: 68–6Bh 00000001h Attribute: Size: R/W, RO 32 bits Note: These bits are not reset by a D3-to-D0 warm rest or a core well reset. This register lives in the resume power well. Default and Access 00h RO 0 R/W 00h RO 0 R/W 00h RO 01h RO Reserved. Hardwired to 00h HC OS Owned Semaphore: System software sets this bit to request ownership of the EHCI controller. Ownership is obtained when this bit reads as 1 and the HC BIOS Owned Semaphore bit reads as clear. Reserved. Hardwired to 00h HC BIOS Owned Semaphore: The BIOS sets this bit to establish ownership of the EHCI controller. System BIOS will clear this bit in response to a request for ownership of the EHCI controller by system software. Next EHCI Capability Pointer: Hardwired to 00h to indicate that there are no EHCI Extended Capability structures in this device. Capability ID: Hardwired to 01h to indicate that this EHCI Extended Capability is the Legacy Support Capability. Bit Description 31:25 24 23:17 16 15:8 7:0 13.2.27 LEG_EXT_CS—USB EHCI Legacy Support Extended Control/Status Register Address Offset: Default Value: Power Well: 6C–6Fh 00000000h Suspend Attribute: Size: R/W, R/WC, RO 32 bits Note: These bits are not reset by a D3-to-D0 warm rest or a core well reset. Default and Access 0 R/WC Bit Description SMI on BAR: Software clears this bit by writing a 1 to it. 0 = Base Address Register (BAR) not written. 1 = This bit is set to 1 when the Base Address Register (BAR) is written. SMI on PCI Command: Software clears this bit by writing a 1 to it. 0 = PCI Command (PCICMD) Register Not written. 1 = This bit is set to 1 when the PCI Command (PCICMD) Register is written. SMI on OS Ownership Change: Software clears this bit by writing a 1 to it. 31 30 0 R/WC 29 0 R/WC 0 = No HC OS Owned Semaphore bit change. 1 = This bit is set to 1 when the HC OS Owned Semaphore bit in the LEG_EXT_CAP register (D29:F7:68h, bit 24) transitions from 1-to-0 or 0-to-1. Datasheet 241 EHCI Host Controller (D29:F7) Bit Default and Access 00h RO Reserved. Hardwired to 00h Description 28:22 21 0 RO SMI on Async Advance: This bit is a shadow bit of the Interrupt on Async Advance bit (D29:F7:CAPLENGTH + 24h, bit 5) in the USB2.0_STS register. NOTE: To clear this bit system software must write a 1 to the Interrupt on Async Advance bit in the USB2.0_STS register. 20 0 RO SMI on Host System Error: This bit is a shadow bit of Host System Error bit in the USB2.0_STS register (D29:F7:CAPLENGTH + 24h, bit 4). NOTE: To clear this bit system software must write a 1 to the Host System Error bit in the USB2.0_STS register. SMI on Frame List Rollover: This bit is a shadow bit of Frame List Rollover bit (D29:F7:CAPLENGTH + 24h, bit 3) in the USB2.0_STS register. NOTE: To clear this bit system software must write a 1 to the Frame List Rollover bit in the USB2.0_STS register. SMI on Port Change Detect: This bit is a shadow bit of Port Change Detect bit (D29:F7:CAPLENGTH + 24h, bit 2) in the USB2.0_STS register. NOTE: To clear this bit system software must write a 1 to the Port Change Detect bit in the USB2.0_STS register. SMI on USB Error: This bit is a shadow bit of USB Error Interrupt (USBERRINT) bit (D29:F7:CAPLENGTH + 24h, bit 1) in the USB2.0_STS register. NOTE: To clear this bit system software must write a 1 to the USB Error Interrupt bit in the USB2.0_STS register. SMI on USB Complete: This bit is a shadow bit of USB Interrupt (USBINT) bit (D29:F7:CAPLENGTH + 24h, bit 0) in the USB2.0_STS register. NOTE: To clear this bit system software must write a 1 to the USB Interrupt bit in the USB2.0_STS register. SMI on BAR Enable 19 0 RO 18 0 RO 17 0 RO 16 0 RO 15 0 R/W 0 = Disable. 1 = Enable. When this bit is 1 and SMI on BAR (D29:F7:6Ch, bit 31) is 1, then the host controller will issue an SMI. SMI on PCI Command Enable 0 = Disable. 1 = Enable. When this bit is 1 and SMI on PCI Command (D29:F7:6Ch, bit 30) is 1, then the host controller will issue an SMI. SMI on OS Ownership Enable 0 = Disable. 1 = Enable. When this bit is a 1 and the OS Ownership Change bit (D29:F7:6Ch, bit 29) is 1, the host controller will issue an SMI. Reserved: Hardwired to 00h 14 0 R/W 13 0 R/W 00h RO 12:6 242 Datasheet EHCI Host Controller (D29:F7) Bit Default and Access Description SMI on Async Advance Enable 5 0 R/W 0 = Disable. 1 = Enable. When this bit is a 1, and the SMI on Async Advance bit (D29:F7:6Ch, bit 21) is a 1, the host controller will issue an SMI immediately. SMI on Host System Error Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the SMI on Host System Error (D29:F7:6Ch, bit 20) is a 1, the host controller will issue an SMI. SMI on Frame List Rollover Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the SMI on Frame List Rollover bit (D29:F7:6Ch, bit 19) is a 1, the host controller will issue an SMI. SMI on Port Change Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the SMI on Port Change Detect bit (D29:F7:6Ch, bit 18) is a 1, the host controller will issue an SMI. SMI on USB Error Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the SMI on USB Error bit (D29:F7:6Ch, bit 17) is a 1, the host controller will issue an SMI immediately. SMI on USB Complete Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the SMI on USB Complete bit (D29:F7:6Ch, bit 16) is a 1, the host controller will issue an SMI immediately. 4 0 R/W 3 0 R/W 2 0 R/W 1 0 R/W 0 0 R/W Datasheet 243 EHCI Host Controller (D29:F7) 13.2.28 SPECIAL_SMI—Intel Special USB 2.0 SMI Register Address Offset: Default Value: Power Well: Default and Access 00b RO Reserved. Hardwired to 00b SMI on PortOwner: Software clears these bits by writing a 1 to it. 29:22 0 R/WC 0 = No Port Owner bit change. 1 = Bits 29:22 correspond to the Port Owner bits for Ports 8 (29) through 1 (22). These bits are set to 1 when the associated Port Owner bits transition from 0 to 1 or 1 to 0. SMI on PMCSRC: Software clears these bits by writing a 1 to it. 21 0 R/WC 0 = Power State bits Not modified. 1 = Software modified the Power State bits in the Power Management Control/Status (PMCSR) register (D29:F7:54h). SMI on Async: Software clears these bits by writing a 1 to it. 0 = No Async Schedule Enable bit change 1 = Async Schedule Enable bit transitioned from 1-to-0 or 0-to-1. SMI on Periodic: Software clears this bit by writing a 1 it. 0 = No Periodic Schedule Enable bit change. 1 = Periodic Schedule Enable bit transitions from 1-to-0 or 0-to-1. SMI on CF: Software clears this bit by writing a 1 it. 0 = No Configure Flag (CF) change. 1 = Configure Flag (CF) transitions from 1-to-0 or 0-to-1. SMI on HCHalted: Software clears this bit by writing a 1 it. 0 = HCHalted did Not transition to 1 (as a result of the Run/Stop bit being cleared). 1 = HCHalted transitions to 1 (as a result of the Run/Stop bit being cleared). SMI on HCReset: Software clears this bit by writing a 1 it. 0 = HCRESET did Not transitioned to 1. 1 = HCRESET transitioned to 1. Reserved: Hardwired to 00b SMI on PortOwner Enable 0 = Disable. 1 = Enable. When any of these bits are 1 and the corresponding SMI on PortOwner bits are 1, then the host controller will issue an SMI. Unused ports should have their corresponding bits cleared. SMI on PMSCR Enable 0 = Disable. 1 = Enable. When this bit is 1 and SMI on PMSCR is 1, then the host controller will issue an SMI. 70h–73h 00000000h Suspend Attribute: Size: R/W, R/WC 32 bits Bit Description 31:30 20 0 R/WC 0 R/WC 0 R/WC 19 18 17 0 R/WC 16 0 R/WC 00b RO 15:14 13:6 00h R/W 5 0 R/W 244 Datasheet EHCI Host Controller (D29:F7) Bit Default and Access 0 R/W Description SMI on Async Enable 0 = Disable. 1 = Enable. When this bit is 1 and SMI on Async is 1, then the host controller will issue an SMI SMI on Periodic Enable 0 = Disable. 1 = Enable. When this bit is 1 and SMI on Periodic is 1, then the host controller will issue an SMI. SMI on CF Enable 0 = Disable. 1 = Enable. When this bit is 1 and SMI on CF is 1, then the host controller will issue an SMI. SMI on HCHalted Enable 0 = Disable. 1 = Enable. When this bit is a 1 and SMI on HCHalted is 1, then the host controller will issue an SMI. SMI on HCReset Enable 0 = Disable. 1 = Enable. When this bit is a 1 and SMI on HCReset is 1, then host controller will issue an SMI. 4 3 0 R/W 2 0 R/W 1 0 R/W 0 0 R/W NOTE: These bits are not reset by a D3-to-D0 warm rest or a core well reset. 13.2.29 ACCESS_CNTL—Access Control Register Address Offset: Default Value: Default and Access 00h RO Reserved WRT_RDONLY: When set to 1, this bit enables a select group of normally read-only registers in the EHCI function to be written by software. Registers that may only be written when this mode is entered are noted in the summary tables and detailed description as “Read/Write-Special”. The registers fall into two categories: System-configured parameters and Status bits. 80h 00h Attribute: Size: R/W 8 bits Bit Description 7:1 0 0 R/W Datasheet 245 EHCI Host Controller (D29:F7) 13.2.30 FD—Function Disable Register Address Offset: Default Value: Bit Default and Access 0s RO 0 R/W 0 RO 0 R/W Reserved Clock Gating Disable (CGD) 0 = Clock gating within this function is enabled 1 = Clock gating within this function is disabled Reserved Disable (D) 0 = This function is enabled 1 = This function is disabled and the configuration space is not accessible. C0h–C3h 00000000h Attribute: Size: Description RO, R/W 32 bits 31:3 2 1 0 13.3 Memory-Mapped I/O Registers The EHCI memory-mapped I/O space is composed of two sets of registers: Capability Registers and Operational Registers. Note: The Intel® SCH EHCI controller will not accept memory transactions (neither reads nor writes) as a target that are locked transactions. The locked transactions should not be forwarded to PCI as the address space is known to be allocated to USB. When the EHCI function is in the D3 PCI power state, accesses to the USB 2.0 memory range are ignored and result a master abort. Similarly, if the Memory Space Enable (MSE) bit (D29:F7:04h, bit 1) is not set in the Command register in configuration space, the memory range will not be decoded by the Intel® SCH enhanced host controller (EHC). If the MSE bit is not set, then the Intel® SCH must default to allowing any memory accesses for the range specified in the BAR to go to PCI. This is because the range may not be valid and, therefore, the cycle must be made available to any other targets that may be currently using that range. Note: 13.3.1 Host Controller Capability Registers These registers specify the limits, restrictions and capabilities of the host controller implementation. Within the host controller capability registers, only the structural parameters register is writable. These registers are implemented in the suspend well and is only reset by the standard suspend-well hardware reset, not by HCRESET or the D3-to-D0 reset. Note: The EHCI controller does not support as a target memory transactions that are locked transactions. Attempting to access the EHCI controller Memory-Mapped I/O space using locked memory transactions will result in undefined behavior. When the USB2 function is in the D3 PCI power state, accesses to the USB2 memory range are ignored and will result in a master abort Similarly, if the Memory Space Enable (MSE) bit is not set in the Command register in configuration space, the memory range will not be decoded by the Enhanced Host Controller (EHC). If the MSE bit is not set, then the EHCI will not claim any memory accesses for the range specified in the BAR. Note: 246 Datasheet EHCI Host Controller (D29:F7) Table 36. EHCI Capability Registers MEM_BASE + Offset 00h 02h–03h Mnemonic CAPLENGTH HCIVERSION Register Capabilities Registers Length Host Controller Interface Version Number Host Controller Structural Parameters Host Controller Capability Parameters Default 20h 0100h Type RO RO R/W (special), RO RO 04h–07h HCSPARAMS 00104208h 08h–0Bh HCCPARAMS 00006871h NOTE: Read/Write Special means that the register is normally read-only, but may be written when the WRT_RDONLY bit is set. Because these registers are expected to be programmed by BIOS during initialization, their contents must not get modified by HCRESET or D3-to-D0 internal reset. 13.3.1.1 CAPLENGTH—Capability Registers Length Register Offset: Default Value: Default and Access 20h RO MEM_BASE + 00h 20h Attribute: Size: RO 8 bits Bit Description Capability Register Length Value: This register is used as an offset to add to the Memory Base Register (D29:F7:10h) to find the beginning of the Operational Register Space. This field is hardwired to 20h indicating that the Operation Registers begin at offset 20h. 7:0 13.3.1.2 HCIVERSION—Host Controller Interface Version Number Register Offset: Default Value: Default and Access 0100h RO MEM_BASE + 02h–03h Attribute: 0100h Size: RO 16 bits Bit Description Host Controller Interface Version Number: This is a two-byte register containing a BCD encoding of the version number of interface that this host controller interface conforms. 15:0 Datasheet 247 EHCI Host Controller (D29:F7) 13.3.1.3 HCSPARAMS—Host Controller Structural Parameters Offset: Default Value: MEM_BASE + 04h–07h Attribute: 00103206h Size: R/W (special), RO 32 bits Note: This register is in the Suspend well and is reset by a suspend well reset and not a D3to-D0 reset or HCRESET. Default and Access 00h RO 1h RO 0h RO Reserved Debug Port Number (DP_N) (special): Hardwired to 1h indicating that the Debug Port is on the lowest numbered port on the EHCI. Reserved Number of Companion Controllers (N_CC): This field indicates the number of companion controllers associated with this USB EHCI host controller. A 0 in this field indicates there are no companion host controllers. Portownership hand-off is not supported. Only high-speed devices are supported on the host controller root ports. A value of 1 or more in this field indicates there are companion USB UHCI host controller(s). Port-ownership hand-offs are supported. High, Full- and Low-speed devices are supported on the host controller root ports. The Intel® SCH allows the default value of 3h to be over-written by BIOS. When removing classic controllers, they must be disabled in the following order: Function 2, Function 1, and Function 0, which correspond to Ports 5:4, 3:2, and 1:0, respectively for Device 29. 11:8 2h RO Number of Ports per Companion Controller (N_PCC): Hardwired to 2h. This field indicates the number of ports supported per companion host controller. It is used to indicate the port routing configuration to system software. Port Routing Rules (PRR): Indicating the first NPCC ports are routed to the lowest numbered function companion host controller, the next NPCC ports are routed to the next lowest function companion controller, and so on. Hardwired to 0. Reserved Number of Ports (N_PORTS): This field specifies the number of physical downstream ports implemented on this host controller. The value of this field determines how many port registers are addressable in the Operational Register Space. Valid values are in the range of 1h to Fh. The Intel® SCH reports 8h by default. However, software may write a value less than the default for some platform configurations. A 0 in this field is undefined. Bit Description 31:24 23:20 19:16 15:12 3h R/W 7 0h RO 000b RO 6:4 3:0 8h R/W NOTE: This register is writable when the WRT_RDONLY bit is set. 248 Datasheet EHCI Host Controller (D29:F7) 13.3.1.4 HCCPARAMS—Host Controller Capability Parameters Register Offset: Default Value: Default and Access 0000h RO 1 RO 68h RO Reserved Periodic Schedule Update Capability (PSUC): Indicates the EHCI supports ECMD.PUE. EHCI Extended Capabilities Pointer (EECP): This field is hardwired to 68h, indicating that the EHCI capabilities list exists and begins at offset 68h in the PCI configuration space. Isochronous Scheduling Threshold: This field indicates, relative to the current position of the executing host controller, where software can reliably update the isochronous schedule. When bit 7 is 0, the value of the least significant 3 bits indicates the number of micro-frames a host controller hold a set of isochronous data structures (one or more) before flushing the state. When bit 7 is a 1, then host software assumes the host controller may cache an isochronous data structure for an entire frame. Refer to the EHCI specification for details on how software uses this information for scheduling isochronous transfers. This field is hardwired to 7h. 3 2 0 RO 0 RO Reserved. These bits are reserved and should be set to 0. Asynchronous Schedule Park Capability: This bit is hardwired to 0 indicating that the host controller does not support this optional feature. Programmable Frame List Flag: 0 = System software must use a frame list length of 1024 elements with this host controller. The USB2.0_CMD register (D29:F7:CAPLENGTH + 20h, bits 3:2) Frame List Size field is a read-only register and must be set to 0. 1 = System software can specify and use a smaller frame list and configure the host controller by the USB2.0_CMD register Frame List Size field. The frame list must always be aligned on a 4-K page boundary. This requirement ensures that the frame list is always physically contiguous. 64-bit Addressing Capability: This field documents the addressing range capability of this implementation. The value of this field determines whether software should use the 32-bit or 64-bit data structures. Values for this field have the following interpretation: 0 1 RO 0 = Data structures using 32-bit address memory pointers 1 = Data structures using 64-bit address memory pointers This bit is hardwired to 1. NOTE: The Intel® SCH only implements 44 bits of addressing. Bits 63:44 will always be 0. MEM_BASE + 08h–0Bh Attribute: 00016871h Size: RO 32 bits Bit Description 31:17 16 15:8 7:4 7h RO 1 0 RO Datasheet 249 EHCI Host Controller (D29:F7) 13.3.2 Host Controller Operational Registers This section defines the enhanced host controller operational registers. These registers are located after the capabilities registers. The operational register base must be dword-aligned and is calculated by adding the value in the first capabilities register (CAPLENGTH) to the base address of the enhanced host controller register address space (MEM_BASE). Since CAPLENGTH is always 20h, Table 37 already accounts for this offset. All registers are 32 bits in length. The first set of registers in Table 37 (offsets MEM_BASE + 20:3Bh) are implemented in the core power well. These core well registers are reset by either a core well hardware reset, manually resetting the EHCI controller by the HCRESET bit in the USB2.0_CMD register. The second set of registers (offsets MEM_BASE + 60:83h) are powered by the suspend power well and remain powered during the S3 sleep state. These registers are reset either during a suspend well hardware reset or by resetting the EHCI controller (by the USB2.0_CMD.HCRESET bit). Table 37. Enhanced Host Controller Operational Register Address Map MEM_BASE + Offset 20h–23h 24h–27h 28h–2Bh 2Ch–2Fh 30h–33h 34h–37h 38h–3Bh 60h–63h 64h–67h 68h–6Bh 6Ch–6Fh 70h–73h 74h–77h 78h–7Bh 7Ch–7Fh 80h–83h Mnemonic USB2.0_CMD USB2.0_STS USB2.0_INTR FRINDEX CTRLDSSEGMENT PERODICLISTBASE ASYNCLISTADDR CONFIGFLAG PORT0SC PORT1SC PORT2SC PORT3SC PORT4SC PORT5SC PORT6SC PORT7SC Register Name USB 2.0 Command USB 2.0 Status USB 2.0 Interrupt Enable USB 2.0 Frame Index Control Data Structure Segment Current Asynchronous List Address Configure Flag Port 0 Status and Control Port 1 Status and Control Port 2 Status and Control Port 3 Status and Control Port 4 Status and Control Port 5 Status and Control Port 6 Status and Control Port 7 Status and Control Default 00080000h 00001000h 00000000h 00000000h 00000000h Type R/W, RO R/WC, RO R/W R/W, R/W, RO R/W R/W R/W R/W, R/ WC, RO R/W, R/ WC, RO R/W, R/ WC, RO R/W, R/ WC, RO R/W, R/ WC, RO R/W, R/ WC, RO R/W, R/ WC, RO R/W, R/ WC, RO Period Frame List Base Address 00000000h 00000000h 00000000h 00003000h 00003000h 00003000h 00003000h 00003000h 00003000h 00003000h 00003000h 250 Datasheet EHCI Host Controller (D29:F7) 13.3.2.1 USB2.0_CMD—USB 2.0 Command Register Offset: Default Value: Bit Default and Access 00h RO MEM_BASE + 20–23h Attribute: 00080000h Size: Description R/W, RO 32 bits 31:24 Reserved. These bits are reserved and should be set to 0 when writing this register. Interrupt Threshold Control: System software uses this field to select the maximum rate at which the host controller will issue interrupts. The only valid values are defined below. If software writes an invalid value to this register, the results are undefined. Value Maximum Interrupt Interval Reserved 1 micro-frame 2 micro-frames 4 micro-frames 8 micro-frames (= ~1 ms) (default) 16 micro-frames (2 ms) 32 micro-frames (4 ms) 64 micro-frames (8 ms) 00h 01h 02h 04h 08h 10h 20h 40h 23:16 08h R/W 15:12 11:8 7 0h RO 0h RO 0 RO Reserved. These bits are reserved and should be set to 0 when writing this register. Unimplemented Asynchronous Park Mode: Hardwired to 0h indicating the host controller does not support this optional feature. Light Host Controller Reset: Hardwired to 0. The Intel® SCH does not implement this optional reset. Interrupt on Async Advance Doorbell: This bit is used as a doorbell by software to tell the host controller to issue an interrupt the next time it advances asynchronous schedule. 0 = The host controller sets this bit to a 0 after it has set the Interrupt on Async Advance status bit (D29:F7:CAPLENGTH + 24h, bit 5) in the USB2.0_STS register to a 1. 1 = Software must write a 1 to this bit to ring the doorbell. When the host controller has evicted all appropriate cached schedule state, it sets the Interrupt on Async Advance status bit in the USB2.0_STS register. If the Interrupt on Async Advance Enable bit in the USB2.0_INTR register (D29:F7:CAPLENGTH + 28h, bit 5) is a 1 then the host controller will assert an interrupt at the next interrupt threshold. See the EHCI specification for operational details. NOTE: Software should not write a 1 to this bit when the asynchronous schedule is inactive. Doing so will yield undefined results. 6 0 R/W 5 0 R/W Asynchronous Schedule Enable: Default 0b. This bit controls whether the host controller skips processing the Asynchronous Schedule. 0 = Do not process the Asynchronous Schedule 1 = Use the ASYNCLISTADDR register to access the Asynchronous Schedule. Periodic Schedule Enable: Default 0b. This bit controls whether the host controller skips processing the Periodic Schedule. 0 = Do not process the Periodic Schedule 1 = Use the PERIODICLISTBASE register to access the Periodic Schedule. 4 0 R/W Datasheet 251 EHCI Host Controller (D29:F7) Bit Default and Access 0 RO Description Frame List Size: The Intel® SCH hardwires this field to 00b because it only supports the 1024-element frame list size. Host Controller Reset (HCRESET): This control bit used by software to reset the host controller. The effects of this on root hub registers are similar to a Chip Hardware Reset (i.e., RSMRST# assertion and PWROK deassertion on the Intel® SCH). When software writes a 1 to this bit, the host controller resets its internal pipelines, timers, counters, state machines, etc. to their initial value. Any transaction currently in progress on USB is immediately terminated. A USB reset is not driven on downstream ports. NOTE: PCI configuration registers and Host controller capability registers are not effected by this reset. All operational registers, including port registers and port state machines are set to their initial values. Port ownership reverts to the companion host controller(s), with the side effects described in the EHCI spec. Software must re-initialize the host controller in order to return the host controller to an operational state. This bit is set to 0 by the host controller when the reset process is complete. Software cannot terminate the reset process early by writing a 0 to this register. Software should not set this bit to a 1 when the HCHalted bit (D29:F7:CAPLENGTH + 24h, bit 12) in the USB2.0_STS register is a 0. Attempting to reset an actively running host controller will result in undefined behavior. This reset me be used to leave EHCI port test modes. Run/Stop (RS): 0 = Stop (default) 1 = Run. When set to a 1, the Host controller proceeds with execution of the schedule. The Host controller continues execution as long as this bit is set. When this bit is set to 0, the Host controller completes the current transaction on the USB and then halts. The HCHalted bit in the USB2.0_STS register indicates when the Host controller has finished the transaction and has entered the stopped state. Software should not write a 1 to this field unless the host controller is in the Halted state (i.e., HCHalted in the USBSTS register is a 1). The Halted bit is cleared immediately when the Run bit is set. The following table explains how the different combinations of Run and Halted should be interpreted: Run/Stop 0b 0b 1b 1b Halted 0b 1b 0b 1b Halted Running Invalid - the HCHalted bit clears immediately Interpretation In the process of halting 3:2 1 0 R/W 0 0 R/W Memory read cycles initiated by the EHCI that receive any status other than Successful will result in this bit being cleared. NOTE: The Command Register indicates the command to be executed by the serial bus host controller. Writing to the register causes a command to be executed. 252 Datasheet EHCI Host Controller (D29:F7) 13.3.2.2 USB2.0_STS—USB 2.0 Status Register Offset: Default Value: MEM_BASE + 24h–27h Attribute: 00001000h Size: R/WC, RO 32 bits This register indicates pending interrupts and various states of the EHCI controller. The status resulting from a transaction on the serial bus is not indicated in this register. See the Interrupts description in Section 4 of the EHCI specification for additional information concerning USB 2.0 interrupt conditions. Note: For the writable bits, software must write a 1 to clear bits that are set. Writing a 0 has no effect. Bit Default and Access 0000h RO Description Reserved. These bits are reserved and should be set to 0 when writing this register. Asynchronous Schedule Status: This bit reports the current real status of the Asynchronous Schedule. 0 = Status of the Asynchronous Schedule is disabled. (Default) 1 = Status of the Asynchronous Schedule is enabled. 15 0 RO NOTE: The Host controller is not required to immediately disable or enable the Asynchronous Schedule when software transitions the Asynchronous Schedule Enable bit (D29:F7:CAPLENGTH + 20h, bit 5) in the USB2.0_CMD register. When this bit and the Asynchronous Schedule Enable bit are the same value, the Asynchronous Schedule is either enabled (1) or disabled (0). Periodic Schedule Status: This bit reports the current real status of the Periodic Schedule. 0 = Status of the Periodic Schedule is disabled. (Default) 1 = Status of the Periodic Schedule is enabled. 14 0 RO NOTE: The Host controller is not required to immediately disable or enable the Periodic Schedule when software transitions the Periodic Schedule Enable bit (D29:F7:CAPLENGTH + 20h, bit 4) in the USB2.0_CMD register. When this bit and the Periodic Schedule Enable bit are the same value, the Periodic Schedule is either enabled (1) or disabled (0). Reclamation 13 0 RO 0 = This read-only status bit is used to detect an empty asynchronous schedule. The operational model and valid transitions for this bit are described in Section 4 of the EHCI Specification. HCHalted 12 1 RO 00h RO 0 = This bit is a 0 when the Run/Stop bit is a 1. 1 = The Host controller sets this bit to 1 after it has stopped executing as a result of the Run/Stop bit being set to 0, either by software or by the Host controller hardware (e.g., internal error). (Default) Reserved Interrupt on Async Advance: 0=Default. System software can force the host controller to issue an interrupt the next time the host controller advances the asynchronous schedule by writing a 1 to the Interrupt on Async Advance Doorbell bit (D29:F7:CAPLENGTH + 20h, bit 6) in the USB2.0_CMD register. This bit indicates the assertion of that interrupt source. 31:16 11:6 5 0 R/WC Datasheet 253 EHCI Host Controller (D29:F7) Bit Default and Access Host System Error Description 4 0 R/WC 0 = No serious error occurred during a host system access involving the Host controller module 1 = The Host controller sets this bit to 1 when a serious error occurs during a host system access involving the Host controller module. A hardware interrupt is generated to the system. Memory read cycles initiated by the EHCI that receive any status other than Successful will result in this bit being set. When this error occurs, the Host controller clears the Run/Stop bit in the USB2.0_CMDregister (D29:F7:CAPLENGTH + 20h, bit 0) to prevent further execution of the scheduled TDs. A hardware interrupt is generated to the system (if enabled in the Interrupt Enable Register). Frame List Rollover 0 = No Frame List Index rollover from its maximum value to 0. 1 = The Host controller sets this bit to a 1 when the Frame List Index (see Section) rolls over from its maximum value to 0. Since the Intel® SCH only supports the 1024-entry Frame List Size, the Frame List Index rolls over every time FRNUM13 toggles. Port Change Detect: This bit is allowed to be maintained in the Auxiliary power well. Alternatively, it is also acceptable that on a D3 to D0 transition of the EHCI HC device, this bit is loaded with the OR of all of the PORTSC change bits (including: Force port resume, overcurrent change, enable/ disable change and connect status change). Regardless of the implementation, when this bit is readable (i.e., in the D0 state), it must provide a valid view of the Port Status registers. 0 = No change bit transition from a 0 to 1 or No Force Port Resume bit transition from 0 to 1 as a result of a J-K transition detected on a suspended port. 1 = The Host controller sets this bit to 1 when any port for which the Port Owner bit is set to 0 has a change bit transition from a 0 to 1 or a Force Port Resume bit transition from 0 to 1 as a result of a J-K transition detected on a suspended port. USB Error Interrupt (USBERRINT) 0 = No error condition. 1 = The Host controller sets this bit to 1 when completion of a USB transaction results in an error condition (e.g., error counter underflow). If the TD on which the error interrupt occurred also had its IOC bit set, both this bit and Bit 0 are set. See the EHCI specification for a list of the USB errors that will result in this interrupt being asserted. USB Interrupt (USBINT) 0 = No completion of a USB transaction whose Transfer Descriptor had its IOC bit set. No short packet is detected. 1 = The Host controller sets this bit to 1 when the cause of an interrupt is a completion of a USB transaction whose Transfer Descriptor had its IOC bit set. The Host controller also sets this bit to 1 when a short packet is detected (actual number of bytes received was less than the expected number of bytes). 3 0 R/WC 2 0 R/WC 1 0 R/WC 0 0 R/WC 254 Datasheet EHCI Host Controller (D29:F7) 13.3.2.3 USB2.0_INTR—USB 2.0 Interrupt Enable Register Offset: Default Value: MEM_BASE + 28h–2Bh Attribute: 00000000h Size: R/W 32 bits This register enables and disables reporting of the corresponding interrupt to the software. When a bit is set and the corresponding interrupt is active, an interrupt is generated to the host. Interrupt sources that are disabled in this register still appear in the USB2.0_STS Register to allow the software to poll for events. Each interrupt enable bit description indicates whether it is dependent on the interrupt threshold mechanism (see Section 4 of the EHCI specification), or not. Default and Access 0000000h RO Bit Description Reserved. These bits are reserved and should be 0 when writing this register. Interrupt on Async Advance Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the Interrupt on Async Advance bit (D29:F7:CAPLENGTH + 24h, bit 5) in the USB2.0_STS register is a 1, the host controller will issue an interrupt at the next interrupt threshold. The interrupt is acknowledged by software clearing the Interrupt on Async Advance bit. Host System Error Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the Host System Error Status bit (D29:F7:CAPLENGTH + 24h, bit 4) in the USB2.0_STS register is a 1, the host controller will issue an interrupt. The interrupt is acknowledged by software clearing the Host System Error bit. Frame List Rollover Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the Frame List Rollover bit (D29:F7:CAPLENGTH + 24h, bit 3) in the USB2.0_STS register is a 1, the host controller will issue an interrupt. The interrupt is acknowledged by software clearing the Frame List Rollover bit. Port Change Interrupt Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the Port Change Detect bit (D29:F7:CAPLENGTH + 24h, bit 2) in the USB2.0_STS register is a 1, the host controller will issue an interrupt. The interrupt is acknowledged by software clearing the Port Change Detect bit. USB Error Interrupt Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the USBERRINT bit (D29:F7:CAPLENGTH + 24h, bit 1) in the USB2.0_STS register is a 1, the host controller will issue an interrupt at the next interrupt threshold. The interrupt is acknowledged by software by clearing the USBERRINT bit in the USB2.0_STS register. USB Interrupt Enable 0 = Disable. 1 = Enable. When this bit is a 1, and the USBINT bit (D29:F7:CAPLENGTH + 24h, bit 0) in the USB2.0_STS register is a 1, the host controller will issue an interrupt at the next interrupt threshold. The interrupt is acknowledged by software by clearing the USBINT bit in the USB2.0_STS register. 31:6 5 0 R/W 4 0 R/W 3 0 R/W 2 0 R/W 1 0 R/W 0 0 R/W Datasheet 255 EHCI Host Controller (D29:F7) 13.3.2.4 FRINDEX—Frame Index Register Offset: Default Value: MEM_BASE + 2Ch–2Fh Attribute: 00000000h Size: R/W 32 bits The SOF frame number value for the bus SOF token is derived or alternatively managed from this register. Refer to Section 4 of the EHCI specification for a detailed explanation of the SOF value management requirements on the host controller. The value of FRINDEX must be within 125 µs (1 micro-frame) ahead of the SOF token value. The SOF value may be implemented as an 11-bit shadow register. For this discussion, this shadow register is 11 bits and is named SOFV. SOFV updates every 8 micro-frames (1 millisecond). An example implementation to achieve this behavior is to increment SOFV each time the FRINDEX[2:0] increments from 0 to 1. Software must use the value of FRINDEX to derive the current micro-frame number, both for high-speed isochronous scheduling purposes and to provide the get microframe number function required to client drivers. Therefore, the value of FRINDEX and the value of SOFV must be kept consistent if chip is reset or software writes to FRINDEX. Writes to FRINDEX must also write-through FRINDEX[13:3] to SOFV[10:0]. To keep the update as simple as possible, software should never write a FRINDEX value where the three least significant bits are 111b or 000b. Note: This register is used by the host controller to index into the periodic frame list. The register updates every 125 microseconds (once each micro-frame). Bits 12:3 are used to select a particular entry in the Periodic Frame List during periodic schedule execution. The number of bits used for the index is fixed at 10 for the Intel® SCH since it only supports 1024-entry frame lists. This register must be written as a dword. Word and byte writes produce undefined results. This register cannot be written unless the Host controller is in the Halted state as indicated by the HCHalted bit (D29:F7:CAPLENGTH + 24h, bit 12). A write to this register while the Run/Stop bit (D29:F7:CAPLENGTH + 20h, bit 0) is set to a 1 (USB2.0_CMD register) produces undefined results. Writes to this register also effect the SOF value. See Section 4 of the EHCI specification for details. Default and Access 00000h RO Reserved Frame List Current Index/Frame Number: The value in this register increments at the end of each time frame (e.g., micro-frame). Bits 12:3 are used for the Frame List current index. This means that each location of the frame list is accessed 8 times (frames or micro-frames) before moving to the next index. Bit Description 31:14 13:0 0000h R/W 256 Datasheet EHCI Host Controller (D29:F7) 13.3.2.5 CTRLDSSEGMENT—Control Data Structure Segment Register Offset: Default Value: MEM_BASE + 30h–33h Attribute: 00000000h Size: R/W, RO 32 bits This 32-bit register corresponds to the most significant address bits 63:32 for all EHCI data structures. Since the Intel® SCH hardwires the 64-bit Addressing Capability field in HCCPARAMS to 1, then this register is used with the link pointers to construct 64-bit addresses to EHCI control data structures. This register is concatenated with the link pointer from either the PERIODICLISTBASE, ASYNCLISTADDR, or any control data structure link field to construct a 64-bit address. This register allows the host software to locate all control data structures within the same 4 GB memory segment. Default and Access 00000h R/W 000h R/W Bit Description Upper Address[63:44]: Hardwired to 0s. The EHCI is only capable of generating addresses up to 16 terabytes (44 bits of address). Upper Address[43:32]: This 12-bit field corresponds to address bits 43:32 when forming a control data structure address. 31:12 11:0 13.3.2.6 PERIODICLISTBASE—Periodic Frame List Base Address Register Offset: Default Value: MEM_BASE + 34h–37h 00000000h Attribute: Size: R/W 32 bits This 32-bit register contains the beginning address of the Periodic Frame List in the system memory. Since the Intel® SCH host controller operates in 64-bit mode (as indicated by the 1 in the 64-bit Addressing Capability field in the HCCSPARAMS register) (offset 08h, bit 0), then the most significant 32 bits of every control data structure address comes from the CTRLDSSEGMENT register. HCD loads this register prior to starting the schedule execution by the host controller. The memory structure referenced by this physical memory pointer is assumed to be 4 KB aligned. The contents of this register are combined with the Frame Index Register (FRINDEX) to enable the Host controller to step through the Periodic Frame List in sequence. Default and Access 00000h R/W 000h R/W Bit Description Base Address (Low): These bits correspond to memory address signals 31:12, respectively. Reserved: Must be written as 0s. During runtime, the value of these bits are undefined. 31:12 11:0 Datasheet 257 EHCI Host Controller (D29:F7) 13.3.2.7 ASYNCLISTADDR—Current Asynchronous List Address Register Offset: Default Value: MEM_BASE + 38h–3Bh Attribute: 00000000h Size: R/W 32 bits This 32-bit register contains the address of the next asynchronous queue head to be executed. Since the Intel® SCH host controller operates in 64-bit mode (as indicated by a 1 in 64-bit Addressing Capability field in the HCCPARAMS register) (offset 08h, bit 0), then the most significant 32 bits of every control data structure address comes from the CTRLDSSEGMENT register (offset 08h). Bits 4:0 of this register cannot be modified by system software and will always return 0s when read. The memory structure referenced by this physical memory pointer is assumed to be 32-byte aligned. Default and Access 0000000h R/W 0h RO Bit Description Link Pointer Low (LPL): These bits correspond to memory address signals 31:5, respectively. This field may only reference a Queue Head (QH). Reserved: These bits are reserved and their value has no effect on operation. 31:5 4:0 13.3.2.8 CONFIGFLAG—Configure Flag Register Offset: Default Value: MEM_BASE + 60h–63h Attribute: 00000000h Size: R/W 32 bits This register is in the suspend power well. It is only reset by hardware when the suspend power is initially applied or in response to a host controller reset. Default and Access 00000000h Bit Description 31:1 RO Reserved. Read from this field will always return 0. Configure Flag (CF): Host software sets this bit as the last action in its process of configuring the Host controller. This bit controls the default port-routing control logic. Bit values and side-effects are listed below. See Section 4 of the EHCI spec for operation details. Port routing control logic default-routes each port to the UHCIs (default). Port routing control logic default-routes all ports to this host controller. 0 0 R/W 258 Datasheet EHCI Host Controller (D29:F7) 13.3.2.9 PORT[7:0]SC—Port N Status and Control Register Offset: PORT0SC: PORT1SC: PORT2SC: PORT3SC: PORT4SC: PORT5SC: PORT6SC: PORT7SC: R/W, R/WC, RO 00003000h MEM_BASE MEM_BASE MEM_BASE MEM_BASE MEM_BASE MEM_BASE MEM_BASE MEM_BASE Size: + + + + + + + + 64h–67h 68h–6Bh 6Ch–6Fh 70h–73h 74h–77h 78h–7Bh 7Ch–7Fh 80h–83h 32 bits Attribute: Default Value: A host controller must implement one or more port registers. Software uses the N_PORTS information from the Structural Parameters Register to determine how many ports need to be serviced. All ports have the structure defined below. Software must not write to unreported Port Status and Control Registers. This register is in the suspend power well. It is only reset by hardware when the suspend power is initially applied or in response to a host controller reset. The initial conditions of a port are: • No device connected • Port disabled When a device is attached, the port state transitions to the attached state and system software will process this as with any status change notification. Refer to Section 4 of the EHCI specification for operational requirements for how change events interact with port suspend mode. Default and Access 0000h RO Bit Description Reserved. These bits are reserved for future use and will return a value of 0s when read. Wake on Overcurrent Enable (WKOC_E): 0 = Disable. (Default) 1 = Enable. Writing this bit to a 1 enables the setting of the PME Status bit in the Power Management Control/Status Register (offset 54, bit 15) when the overcurrent Active bit (bit 4 of this register) is set. Wake on Disconnect Enable (WKDSCNNT_E): 0 = Disable. (Default) 1 = Enable. Writing this bit to a 1 enables the setting of the PME Status bit in the Power Management Control/Status Register (offset 54, bit 15) when the Current Connect Status changes from connected to disconnected (i.e., bit 0 of this register changes from 1-to-0). Wake on Connect Enable (WKCNNT_E): 0 = Disable. (Default) 1 = Enable. Writing this bit to a 1 enables the setting of the PME Status bit in the Power Management Control/Status Register (offset 54, bit 15) when the Current Connect Status changes from disconnected to connected (i.e., bit 0 of this register changes from 0-to-1). 31:23 22 0 R/W 21 0 R/W 20 0 R/W Datasheet 259 EHCI Host Controller (D29:F7) Bit Default and Access Description Port Test Control (PTC): When this field is 0s, the port is NOT operating in a test mode. A non-zero value indicates that it is operating in test mode and the specific test mode is indicated by the specific value. The encoding of the test mode bits are (0110b – 1111b are reserved): Value Maximum Interrupt Interval Test mode not enabled (default) Test J_STATE Test K_STATE Test SE0_NAK Test Packet FORCE_ENABLE 19:16 0h R/W 0000b 0001b 0010b 0011b 0100b 0101b Refer to USB Specification Revision 2.0, Chapter 7 for details on each test mode. 15:14 00b RO Reserved Port Owner (PO): Default = 1b. This bit unconditionally goes to a 0 when the Configured Flag bit in the USB2.0_CMD register makes a 0 to 1 transition. 13 1 R/W System software uses this field to release ownership of the port to a selected host controller (in the event that the attached device is not a high-speed device). Software writes a 1 to this bit when the attached device is not a high-speed device. A 1 in this bit means that a companion host controller owns and controls the port. See Section 4 of the EHCI Specification for operational details. Port Power (PP): Read-only with a value of 1. This indicates that the port does have power. Line Status (LS): These bits reflect the current logical levels of the D+ (bit 11) and D– (bit 10) signal lines. These bits are used for detection of low-speed USB devices prior to the port reset and enable sequence. This field is valid only when the port enable bit is 0 and the current connect status bit is set to a 1. 00 10 01 11 = = = = SE0 J-state K-state Undefined. Not low speed device, perform EHCI reset. 12 1 RO 11:10 00b RO 9 0 RO Reserved. This bit will return a 0 when read. 260 Datasheet EHCI Host Controller (D29:F7) Bit Default and Access Description Port Reset (PR): Default = 0. When software writes a 1 to this bit (from a 0), the bus reset sequence as defined in the USB Specification, Revision 2.0 is started. Software writes a 0 to this bit to terminate the bus reset sequence. Software must keep this bit at a 1 long enough to ensure the reset sequence completes as specified in the USB Specification, Revision 2.0. 1 = Port is in Reset. 0 = Port is not in Reset. NOTE: When software writes a 0 to this bit, there may be a delay before the bit status changes to a 0. The bit status will not read as a 0 until after the reset has completed. If the port is in high-speed mode after reset is complete, the host controller will automatically enable this port (e.g., set the Port Enable bit to a 1). A host controller must terminate the reset and stabilize the state of the port within 2 milliseconds of software transitioning this bit from 0-to-1. For example: if the port detects that the attached device is highspeed during reset, then the host controller must have the port in the enabled state within 2 ms of software writing this bit to a 0. The HCHalted bit (D29:F7:CAPLENGTH + 24h, bit 12) in the USB2.0_STS register should be a 0 before software attempts to use this bit. The host controller may hold Port Reset asserted to a 1 when the HCHalted bit is a 1. This bit is 0 if Port Power is 0. NOTE: System software should not attempt to reset a port if the HCHalted bit in the USB2.0_STS register is a 1. Doing so will result in undefined behavior. Suspend (SUS) 0 = Port not in suspend state.(Default) 1 = Port in suspend state. Port Enabled Bit and Suspend bit of this register define the port states as follows: Port Enabled 0 Suspend X 0 1 Port State Disabled Enabled Suspend 8 0 R/W 7 0 R/W 1 1 When in suspend state, downstream propagation of data is blocked on this port, except for port reset. Note that the bit status does not change until the port is suspended and that there may be a delay in suspending a port depending on the activity on the port. The host controller will unconditionally set this bit to a 0 when software sets the Force Port Resume bit to a 0 (from a 1). A write of 0 to this bit is ignored by the host controller. If host software sets this bit to a 1 when the port is not enabled (i.e., Port enabled bit is a 0) the results are undefined. Datasheet 261 EHCI Host Controller (D29:F7) Bit Default and Access Force Port Resume (FPR) Description 6 0 R/W 0 = No resume (K-state) detected/driven on port. (Default) 1 = Resume detected/driven on port. Software sets this bit to a 1 to drive resume signaling. The Host controller sets this bit to a 1 if a J-to-K transition is detected while the port is in the Suspend state. When this bit transitions to a 1 because a J-to-K transition is detected, the Port Change Detect bit (D29:F7:CAPLENGTH + 24h, bit 2) in the USB2.0_STS register is also set to a 1. If software sets this bit to a 1, the host controller must not set the Port Change Detect bit. NOTE: When the EHCI controller owns the port, the resume sequence follows the defined sequence documented in the USB Specification, Revision 2.0. The resume signaling (Full-speed 'K') is driven on the port as long as this bit remains a 1. Software must appropriately time the Resume and set this bit to a 0 when the appropriate amount of time has elapsed. Writing a 0 (from 1) causes the port to return to high-speed mode (forcing the bus below the port into a high-speed idle). This bit will remain a 1 until the port has switched to the high-speed idle. Overcurrent Change (OCC): The functionality of this bit is not dependent upon the port owner. Software clears this bit by writing a 1 to it. 0 = No change. (Default) 1 = There is a change to Overcurrent Active. Overcurrent Active (OCA) 0 = This port does not have an overcurrent condition. (Default) 1 = This port currently has an overcurrent condition. This bit will automatically transition from 1 to 0 when the over current condition is removed. The Intel® SCH automatically disables the port when the overcurrent active bit is 1. Port Enable/Disable Change (PEDC): For the root hub, this bit gets set to a 1 only when a port is disabled due to the appropriate conditions existing at the EOF2 point (See Chapter 11 of the USB Specification for the definition of a port error). This bit is not set due to the Disabled-to-Enabled transition, nor due to a disconnect. Software clears this bit by writing a 1 to it. 0 = No change in status. (Default). 1 = Port enabled/disabled status has changed. Port Enabled/Disabled (PED): Ports can only be enabled by the host controller as a part of the reset and enable. Software cannot enable a port by writing a 1 to this bit. Ports can be disabled by either a fault condition (disconnect event or other fault condition) or by host software. Note that the bit status does not change until the port state actually changes. There may be a delay in disabling or enabling a port due to other host controller and bus events. 0 = Disable 1 = Enable (Default) 5 0 R/WC 4 0 RO 3 0 R/WC 2 0 R/W 262 Datasheet EHCI Host Controller (D29:F7) Bit Default and Access Description Connect Status Change (CSC): This bit indicates a change has occurred in the port’s Current Connect Status. Software sets this bit to 0 by writing a 1 to it. 1 0 R/WC 0 = No change (Default). 1 = Change in Current Connect Status. The host controller sets this bit for all changes to the port device connect status, even if system software has not cleared an existing connect status change. For example, the insertion status changes twice before system software has cleared the changed condition, hub hardware will be “setting” an already-set bit (i.e., the bit will remain set). Current Connect Status (CCS): This value reflects the current state of the port, and may not correspond directly to the event that caused the Connect Status Change bit (Bit 1) to be set. 0 = No device is present. (Default) 1 = Device is present on port. 0 0 RO 13.3.3 USB 2.0 Based Debug Port Register The Debug port’s registers are located in the same memory area, defined by the Base Address Register (MEM_BASE), as the standard EHCI registers. The base offset for the debug port registers (A0h) is declared in the Debug Port Base Offset Capability Register at Configuration offset 5Ah (D29:F7:offset 5Ah). The address map of the Debug Port registers is shown in Table 38. Table 38. Debug Port Register Address Map MEM_BASE + Offset A0–A3h A4–A7h A8–ABh AC–AFh B0–B3h Mnemonic CNTL_STS USBPID DATABUF[3:0] DATABUF[7:4] CONFIG Register Name Control/Status USB PIDs Data Buffer (Bytes 3:0) Data Buffer (Bytes 7:4) Configuration Default 00000000h 00000000h 00000000h 00000000h 00007F01h Type R/W, R/WC, RO, WO R/W, RO R/W R/W R/W NOTES: 1. All of these registers are implemented in the core well and reset by RESET#, EHCI HCRESET, and a EHCI D3-to-D0 transition. 2. The hardware associated with this register provides no checks to ensure that software programs the interface correctly. How the hardware behaves when programmed in an invalid manner is undefined. Datasheet 263 EHCI Host Controller (D29:F7) 13.3.3.1 CNTL_STS—Control/Status Register Offset: Default Value: Default and Access RO Reserved OWNER_CNT 0 = Ownership of the debug port is NOT forced to the EHCI controller (Default) 1 = Ownership of the debug port is forced to the EHCI controller (i.e., immediately taken away from the companion Classic USB Host controller) If the port was already owned by the EHCI controller, then setting this bit has no effect. This bit overrides all of the ownership-related bits in the standard EHCI registers. Reserved ENABLED_CNT 0 = Software can clear this by writing a 0 to it. The hardware clears this bit for the same conditions where the Port Enable/Disable Change bit (in the PORTSC register) is set. (Default) 1 = Debug port is enabled for operation. Software can directly set this bit if the port is already enabled in the associated PORTSC register (this is enforced by the hardware). Reserved DONE_STS: Software can clear this by writing a 1 to it. 16 R/WC 0 = Request Not complete 1 = Set by hardware to indicate that the request is complete. LINK_ID_STS: This field identifies the link interface. 0h = Hardwired. Indicates that it is a USB Debug Port. Reserved. This bit returns 0 when read. Writes have no effect. IN_USE_CNT: Set by software to indicate that the port is in use. Cleared by software to indicate that the port is free and may be used by other software. This bit is cleared after reset. (This bit has no effect on hardware.) EXCEPTION_STS: This field indicates the exception when the ERROR_GOOD#_STS bit is set. This field should be ignored if the ERROR_GOOD#_STS bit is 0. 000 = No Error. (Default) NOTE: This should not be seen, since this field should only be checked if there is an error. 001 = Transaction error: indicates the USB 2.0 transaction had an error (CRC, bad PID, timeout, etc.) 010 = Hardware error. Request was attempted (or in progress) when port was suspended or reset. All Other combinations are reserved MEM_BASE + A0h 0000h Attribute: Size: R/W, R/WC, RO, WO 32 bits Bit Description 31 30 R/W 29 RO 28 R/W 27:17 RO 15:12 11 RO RO 10 R/W 9:7 RO 264 Datasheet EHCI Host Controller (D29:F7) Bit Default and Access ERROR_GOOD#_STS Description 6 RO 0 = Hardware clears this bit to 0 after the proper completion of a read or write. (Default) 1 = Error has occurred. Details on the nature of the error are provided in the Exception field. GO_CNT — WO 5 WO R/W 0 = Hardware clears this bit when hardware sets the DONE_STS bit. (Default) 1 = Causes hardware to perform a read or write request. NOTE: Writing a 1 to this bit when it is already set may result in undefined behavior. WRITE_READ#_CNT: Software clears this bit to indicate that the current request is a read. Software sets this bit to indicate that the current request is a write. 0 = Read (Default) 1 = Write DATA_LEN_CNT: This field is used to indicate the size of the data to be transferred. default = 0h. For write operations, this field is set by software to indicate to the hardware how many bytes of data in Data Buffer are to be transferred to the console. A value of 0h indicates that a zero-length packet should be sent. A value of 1–8 indicates 1–8 bytes are to be transferred. Values 9– Fh are invalid and how hardware behaves if used is undefined. For read operations, this field is set by hardware to indicate to software how many bytes in Data Buffer are valid in response to a read operation. A value of 0h indicates that a zero length packet was returned and the state of Data Buffer is not defined. A value of 1–8 indicates 1–8 bytes were received. Hardware is not allowed to return values 9–Fh. The transferring of data always starts with byte 0 in the data area and moves toward byte 7 until the transfer size is reached. 4 0 R/W 3:0 R/W NOTES: 1. Software should do Read-Modify-Write operations to this register to preserve the contents of bits not being modified. This include Reserved bits. 2. To preserve the usage of RESERVED bits in the future, software should always write the same value read from the bit until it is defined. Reserved bits will always return 0 when read. Datasheet 265 EHCI Host Controller (D29:F7) 13.3.3.2 USBPID—USB PIDs Register Offset: Default Value: MEM_BASE + A4h 0000h Attribute: Size: R/W, RO 32 bits This DWORD register is used to communicate PID information between the USB debug driver and the USB debug port. The debug port uses some of these fields to generate USB packets, and uses other fields to return PID information to the USB debug driver. Default and Access 00h RO Bit Description 31:24 Reserved: These bits will return 0 when read. Writes will have no effect. RECEIVED_PID_STS: Hardware updates this field with the received PID for transactions in either direction. When the controller is writing data, this field is updated with the handshake PID that is received from the device. When the host controller is reading data, this field is updated with the data packet PID (if the device sent data), or the handshake PID (if the device NAKs the request). This field is valid when the hardware clears the GO_DONE#_CNT bit. SEND_PID_CNT: Hardware sends this PID to begin the data packet when sending data to USB (i.e., WRITE_READ#_CNT is asserted). Software typically sets this field to either DATA0 or DATA1 PID values. TOKEN_PID_CNT: Hardware sends this PID as the Token PID for each USB transaction. Software typically sets this field to either IN, OUT, or SETUP PID values. 23:16 00h RO 15:8 00h R/W 00h R/W 7:0 13.3.3.3 DATABUF[7:0]—Data Buffer Bytes [7:0] Register Offset: Default Value: MEM_BASE + A8h–AFh 0000000000000000h Attribute: Size: R/W 64 bits This register can be accessed as 8 separate 8-bit registers or 2 separate 32-bit register. Default and Access Bit Description DATABUFFER[63:0]: This field is the 8 bytes of the data buffer. Bits 7:0 correspond to least significant byte (byte 0). Bits 63:56 correspond to the most significant byte (byte 7). 63:0 0s R/W The bytes in the Data Buffer must be written with data before software initiates a write request. For a read request, the Data Buffer contains valid data when DONE_STS bit (offset A0, bit 16) is cleared by the hardware, ERROR_GOOD#_STS (offset A0, bit 6) is cleared by the hardware, and the DATA_LENGTH_CNT field (offset A0, bits 3:0) indicates the number of bytes that are valid. 266 Datasheet EHCI Host Controller (D29:F7) 13.3.3.4 CONFIG—Configuration Register Offset: Default Value: Bit Default and Access 0000h RO 7Fh R/W 0h RO 1h R/W Reserved USB_ADDRESS_CNF: The USB device address used by the controller for all Token PID generation. Reserved USB_ENDPOINT_CNF: This 4-bit field identifies the endpoint of all Token PIDs. MEM_BASE + B0–B3h Attribute: 00007F01h Size: Description R/W 32 bits 31:15 14:8 7:4 3:0 §§ Datasheet 267 EHCI Host Controller (D29:F7) (This page intentionally left blank.) 268 Datasheet USB Client Controller (D26:F0) 14 USB Client Controller (D26:F0) The Intel® SCH USB Client implements a software defined USB device. This allows a platform based on the Intel® SCH chipset to connect to other platforms implementing a USB Host interface for purposes of file transfer, network connectivity, or any other functionality that can be implemented as a USB Device. This USB Client implementation provides very little hardware acceleration or assistance, and is optimized for flexibility and hardware simplicity. Software is responsible for almost all behaviors above the USB protocol layer and DMA, including handling USB Descriptors, Transaction level formatting, and implementing defined Device Classes. 14.1 Functional Description The Intel® SCH contains a Universal Serial Bus 2.0 client controller. The USB client is configured to operate on USB port 2. The serial information transmitted and received by the USB Client contains layers of communication protocols. These communication protocols are defined by Universal Serial Bus Specification, Revision 2.0. The most basic of these protocols are defined within fields. Examples of these USB fields include: Sync, Packet Identifier, Address, Endpoint, Frame Number, Data, and CRC. Fields are used to produce packets. Depending on the packet function, a different combination and number of fields can be used. Packet types include: Token, Data, and Handshake. Token packets may be of several types including Start of Frame, and PING (high-speed). Packets are assembled to produce transactions. Transactions fall into six groups: Data In, Data Out, SOF, Setup, Status and Ping (HS). Data flow is relative to the USB host controller. In packets represent data flow from the USB Client to the USB host controller. Out packets represent data flow from the USB host controller to the USB Client. SOF transactions signify the start of a new frame. Setup and Status transactions are used for control transfers. Ping transactions are used in high-speed mode to assist with bulk transfers. Some sets of transactions together make up transfers and are used to transfer data between the host and device. Transfers fall into four groups: bulk, control, interrupt, and isochronous. SOF and PING transactions are not components of transfers. The term transfer may refer to a set of related data transfer transactions within a single frame/ μframe (HS) such as for a bulk transfer which may transfer an amount of data split into many packets of related data within a single frame/μframe (HS), or it may refer to related data transferred across several frames/μframes (HS), such as for an interrupt transfer. Transactions are strung together into frames for low-speed and full-speed operation modes, or μframes during high-speed mode. While a transfer refers to transactions with related data, but not necessarily in any specific order, frames and μframes represent a series of transactions put together in the order which will be observed on the USB bus, but not necessarily having related data. Figure 5 graphically represents the communication layers in the protocol. See Universal Serial Bus Specification, Revision 2.0 for more details on USB protocol. The USB host controller referenced in this chapter refers to any Universal Serial Bus Specification-compliant USB host controller. Datasheet 269 USB Client Controller (D26:F0) Figure 5. Communication Protocol Layers in the USB Client Controller Fields Sync Packet Identifier Address Endpoint Frame Data CRC Packets Token Data Handshake Transactions SOF Data in Data out Setup Status Ping (HS) Bulk Control Interrupt Isochronous Frames / nFrames (HS) Software is responsible for handling all transactions, including Setup transactions, with the exception of the SET_ADDRESS transaction. In contrast to other hardware designs available in the industry which may rely on hardware to handle USB interface descriptor requests and Property Get/Set operations, the Intel® SCH USB Client relies on software to handle these operations. Software must, in a timely manner, process all packets received on OUT endpoints, and where required provide the requested data through the appropriate IN endpoint. 14.2 Operation The Intel® SCH USB Client device is constructed of a series of endpoints which use DMA engines to transfer data between the USB controller and memory. Endpoints 0_IN and 0_OUT are always implemented as the Default Control endpoint and represent the default way that the host software communicates with the device to determine capabilities, configure options, and select interfaces. The Intel® SCH supports six other end points, known as 1_IN, 1_OUT, 2_IN, 2_OUT, 3_IN, and 3_OUT. These additional endpoints may be configured as needed, such as a set of Bulk In and Bulk Out endpoints, to facilitate data transfer. As an example, a Communications Class device will use the Endpoint 0 In and Out as a control pipe, and Endpoint 1_IN and 1_OUT as a Data Class pipe to transfer packets. 270 Datasheet USB Client Controller (D26:F0) DMA engines are associated with the endpoints which transfer the data being transferred to or from the Host from the Client system RAM. The DMA engine for a particular endpoint must be configured before data can be exchanged with the host. Transfers (exchanges between client and host) are comprised of zero to many Data packets which contain a number of bytes equal to the Max Packet Size, and a last packet containing fewer bytes (including zero-length packets) known as a Short Packet. For instance, to transfer a 1500-byte Ethernet frame, a Client may provide a 1024-byte packet followed by a 478-byte Short Packet. In many interface class definition, the receiver implicitly understands that the Transfer is complete when it sees the Short packet. In other usage models (such as streaming video) the stream may simply be a large number of bytes, where the transfer framing information is contained within the data format itself. A Bulk In endpoint may be used to send available bytes when the host asks for them. Packets are made of individual phases. Different phases and Token types to different endpoint types: • Control Endpoint use SETUP PID, DATA0/1 phases, and ACK phase • Bulk Endpoints use IN/OUT PID, DATA0/1 phases, and ACK phase • Isoch Endpoints use IN/OUT PID and DATA0 phases only • Interrupt Endpoints use IN/OUT PID, DATA0/1 Phases, and ACK phase. Important hardware requirements: • Hardware must identify destination by matching packet address on packet and handling based on endpoint address and direction. • Hardware must handle DATA0/1 toggling for Control, Interrupt, and Bulk endpoints • Hardware must generate (IN) or check (OUT) CRC of packet (except in Control DMA Mode) • Hardware must handle the SOF token by placing the Frame number in the Frame register • Hardware must detect short packets • Hardware must ACK packets received properly, and NAK packets with errors • Hardware must NAK packets if there is no data to send or no room in the receive buffer • Hardware must detect bus conditions, such as Suspend, Resume, and Reset, and report the conditions to the software. 14.2.1 USB Features • USB Revision 2.0, high-speed/full-speed compliant device • Eight, concurrent programmable endpoints — Programmable endpoint type: bulk, isochronous, or interrupt — Programmable endpoint maximum packet size — 4 ‘IN’ Endpoints, and 4 ‘OUT’ endpoints — Interface and endpoint requests handled entirely by software — 1 IN and 1 OUT endpoint used as EP0 Control Pipe — Automatic hardware handling of SET_ADDRESS Datasheet 271 USB Client Controller (D26:F0) 14.2.2 DMA Features • Supports aligned and unaligned transfers to and from system memory. • Supports 4 IN (client memory to USB) and 4 OUT (USB to client memory) Endpoints. • Supports Control, Linear, and Scatter Gather modes of operation to allow efficient use of client system memory. • Retrieves trailing bytes in the receive endpoint FIFOs. • Supports up to 4 GBytes of data transfer per descriptor. Packets longer than the defined Max Packet Size are automatically transferred as multiple packets. • Control Mode DMA supports placing all packet information (including PID) from a single transaction in the DMA buffer • Linear and Scatter/Gather DMA modes for OUT/IN endpoints place/fetch the DATA phase of multiple USB transactions to/from the same endpoint linearly in memory to optimize lengthy transfers. • Automatic NAK support for endpoints which do not yet have data ready. 14.2.3 Reset The USB client port may be reset by either a Device Reset message from the Intel® SCH’s internal message bus or using a USB Reset packet from the USB host. 14.2.4 PCI Device Reset Clear all MMIO registers to reset values, flush FIFO, and initialize all state machines to their power on condition. On the USB bus, if the Client is currently connected to the USB host, the Client signal disconnect/reconnect 14.2.5 Wake of Client The Intel® SCH USB client does not issue PME# interrupts which would wake the system from a sleep state. 14.2.6 Wake of Host (USB Resume) The Dev_CTRL.SignalResume bit allows the Client device to signal Resume to the Host while the link is in the Suspend state. This may allow the client to bring the host to S0, or merely resume a link suspended for power reasons. Before software sets this bit, it must make sure that the client has been enabled to signal wake. The Host OS will write a 1 to the “Remote Wakeup” bit in the bmAttributes field of the Standard Configuration Descriptor to signal that the client may generate Resume signaling. Software must also make sure that the Link has been in the Suspend state for at least 5 ms, per USB spec requirements. Software may determine that more than 5 ms has elapsed by monitoring the SUSPEND bit in the Device Status register. When software writes a 1 to this bit, hardware will generate resume signaling on the link if the link is in the Suspend state. Software is responsible for knowing whether the device has been enabled to generate the signaling by the Host system, and for ensuring that the link has been in the Suspend state for the 5-ms minimum, per USB 2.0 Specification, Section 7.1.7.7. Hardware is responsible for asserting the resume signaling on the link for the requisite amount of time. When the resume signaling is completed, hardware will clear this bit to a 0. While resume signaling is enabled, software writes to this bit will be ignored. 272 Datasheet USB Client Controller (D26:F0) 14.3 Table 39. PCI Configuration Registers USB Client Controller PCI Register Address Map (D26:F0) Offset 00–01h 02–03h 04–05h 06–07h 08h 09h–0Bh 0Eh 10–13h 2C–2Fh 34h 3Ch 3Dh 40h 50h 51h 52h–53h 54h–55h C4h FCh Mnemonic VID DID PCICMD PCISTS RID CC HTYPE MEM_BASE SS CAP_PTR INT_LN INT_PN USBPR PM_CAPID NXT_PTR PM_CAP PM_CNTL_STS URE FD Register Name Vendor Identification Device Identification PCI Command PCI Status Revision Identification Class Codes Header Type Memory Base Address Subsystem Identification Capabilities Pointer Interrupt Line Interrupt Pin USB Port Routing PCI Power Management Capability ID Next Item Pointer Power Management Capabilities Power Management Control/ Status USB Resume Enable Function Disable Default 8086h 8118h 0000h 0010h See Note 0C0380h 00h 00000000h 00000000h 50h 00h see description 02h 01h 00h 0000h 00000000h 00h 00000000h RO RO R/W, RO RO RO RO RO RO, R/W R/W RO RO R/W RO, R/W RO RO RO RO, R/W RO, R/W RO, R/W Type NOTE: Address locations that are not shown should be treated as Reserved. 14.3.1 VID—Vendor Identification Register Offset Address: Default Value: Default and Access 8086 RO 00h–01h 8086h Attribute: Size: RO 16 bits Bit Description 15:0 Vendor ID: This is a 16-bit value assigned to Intel. Datasheet 273 USB Client Controller (D26:F0) 14.3.2 DID—Device Identification Register Offset Address: Default Value: Default and Access 8118h RO 02h–03h 8118h Attribute: Size: RO 16 bits Bit Description 15:0 Device ID: 8118h assigned to the USB client controller in the Intel® SCH. 14.3.3 PCICMD—PCI Command Register Address Offset: Default Value: Default and Access 0 RO Reserved Interrupt Disable (ID) 10 0 R/W 0 = The function is capable of generating interrupts. 1 = The function cannot generate its interrupt to the interrupt controller and it may not generate an MSI. Note that the corresponding Interrupt Status bit (PCISTS, bit 3) is not affected by the interrupt enable. 9 0 RO 0 R/W Reserved Bus Master Enable (BME) 2 0 = Disables this functionality. 1 = Enables the USB client to generate bus master cycles. It also controls MSI generation since MSI are essentially memory writes. Memory Space Enable (MSE): This bit controls access to the USB 2.0 Memory Space registers. 0 = Disables this functionality. 1 = Enables accesses to the USB 2.0 registers. The Base Address register (D29:F7:10h) for USB 2.0 should be programmed before this bit is set. Reserved 04h–05h 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15:11 1 0 R/W 0 0 RO 274 Datasheet USB Client Controller (D26:F0) 14.3.4 PCISTS—PCI Status Register Address Offset: Default Value: Default and Access 0 RO 1 RO Reserved Capabilities List (CAP_LIST): Hard wired to 1 indicating that the USB client controller contains a capabilities pointer list at offset 34h. Interrupt Status: This bit reflects the state of this function’s interrupt at the input of the enable/disable logic. 3 0 RO 0 = This bit will be 0 when the interrupt is cleared 1 = This bit is a 1 when the interrupt is asserted The value reported in this bit is independent of the value in the Interrupt Disable (ID) bit in the PCICMD register. 2:0 0 RO Reserved 06h–07h 0010h Attribute: Size: R/W, RO 16 bits Bit Description 15:5 4 14.3.5 RID—Revision Identification Register Offset Address: Default Value: Default and Access RO 08h See bit description Attribute: Size: RO 8 bits Bit Description Revision ID: Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the value of the Revision ID Register. 7:0 14.3.6 CC—Class Codes Register Address Offset: Default Value: Default and Access 0Ch RO 03h RO 80h RO 09h–0Bh 0C0380h Attribute: Size: RO 24 bits Bit Description Base Class Code (BCC): This register indicates that the function implements a Serial Bus Controller device. Sub Class Code (SCC): Indicates that the Programming Interface is 'Not a Host', i.e., it's not EHCI, UHCI, or OHCI. Programming Interface (PI): Universal Serial Bus with no specific programming interface. 23:16 15:8 7:0 Datasheet 275 USB Client Controller (D26:F0) 14.3.7 HTYPE - Header Type Register Address Offset: Default Value: Default and Access 00h RO 0E 00h Attribute: Size: RO 8 bits Bit Description 7:0 Header Type (HTYPE): Implements a Type 0 Configuration header. 14.3.8 MEM_BASE— USB Client Memory Base Address Register Address Offset: Default Value: 10h–17h 00000000h Attribute: Size: R/W, RO 32 bits This base address register creates 2048 bytes of memory space to signify the base address of USB Client memory mapped configuration registers. Default and Access 0s RW 0s R/W 0s RO 0 RO 10 RO 0h RO Bit Description Upper Address (UA): Upper 32 bits of the Base address for the USB Client controller's memory mapped configuration registers. This may be Read-Only 0's if 64b address decode is not supported. Lower Address (LA): Base address for the USB Client controller's memory mapped configuration registers. 2048 bytes are requested by hardwiring bits 10:4 to 0s. Reserved Prefetchable (PREF): Indicates that this BAR is NOT pre-fetchable. Address Range (ADDRNG): Indicates that this BAR can be located anywhere in 64 bit address space. Note that this needs to be adjusted if the USBCBARU is implemented as Read Only to indicate that 64b address decode is not supported. Space Type (SPTYP): Indicates that this BAR is located in memory space 63:32 31:11 10:4 3 2:1 0 276 Datasheet USB Client Controller (D26:F0) 14.3.9 SID—Subsystem ID Register Address Offset: Default Value: 2Ch–2Fh 00000000h Attribute: Size: R/W 32 bits This register matches the value written to the LPC bridge. Default and Access 0000h RW 0000h RW Bit Description 31:15 15:0 Subsystem ID (SSID): These RW bits have no hardware functionality. Subsystem Vendor ID (SVID): These RW bits have no hardware functionality. 14.3.10 CAP_PTR—Capabilities Pointer Register Address Offset: Default Value: Default and Access 50h RO 34h 50h Attribute: Size: RO 8 bits Bit Description Capability Pointer (CP): Indicates that the first capability pointer offset is offset 50h 7:0 14.3.11 INT_LN—Interrupt Line Register Address Offset: Default Value: Default and Access 00h R/W 3Ch 00h Attribute: Size: R/W 8 bits Bit Description Interrupt Line (INT_LN): This data is not used by the Intel® SCH. It is used as a scratchpad register to communicate to software the interrupt line that the interrupt pin is connected to. 7:0 Datasheet 277 USB Client Controller (D26:F0) 14.3.12 INT_PN—Interrupt Pin Register Address Offset: Default Value: Default and Access 0h RO RO Reserved Interrupt Pin: This reflects the value of D26IP.UTIP (Chipset Config Registers:Offset 3114, bits 3:0). 3Dh See Description Attribute: Size: RO 8 bits Bit Description 7:4 3:0 14.3.13 USBPR—USB Port Routing Register Address Offset: Default Value: Default and Access 0 R/W EnablePortRouting 0 = USB port 2 will be routed to the USB host controller 1 = USB port 2 will be routed to the USB client controller ForcePortRouting 1 = The USB port indicated by PID will always be routed to the USB Client controller, regardless of the state of the external ID pin. 0 = The USB port indicated by PID will be routed to the USB controller only when the input GPIOSUS3 is set to a 1. If is set to 0 and there is a 0 at the GPIOSUS3 input, the USB Client controller will consider the port disconnected. Reserved Port ID (PID): Denotes the binary encoding of the port number to be configured as a client. Port 2 is the default. All other values are reserved. 40h 02h Attribute: Size: RO 8 bits Bit Description 7 6 0 R/W 5:4 00b RO 02h R/W 3:0 14.3.14 PM_CAPID—PCI Power Management Capability ID Register Address Offset: Default Value: Default and Access 01h RO 50h 01h Attribute: Size: RO 8 bits Bit Description Power Management Capability ID: A value of 01h indicates that this is a PCI Power Management capabilities field. 7:0 278 Datasheet USB Client Controller (D26:F0) 14.3.15 NXT_PTR—Next Item Pointer Register Address Offset: Default Value: Default and Access 00h R/W 51h 00h Attribute: Size: R/W (special) 8 bits Bit Description Next Item Pointer 1 Value (NXT_PTR1): This register indicates that this is the last capability in the list. 7:0 14.3.16 PM_CAP—Power Management Capabilities Register Address Offset: Default Value: Default and Access 11001b RO 0b RO 0b RO 000b RO 0 RO 0 RO 0 RO 010b RO 52h–53h 0002h Attribute: Size: R/W (special), RO 16 bits Bit Description PME Support (PME_SUP): Indicates PME# can be generated from only D0 states. D2_Support: The D2 state is not supported. D1_Support: The D1 state is not supported. Auxiliary Current (AUX_CUR) (special): Reports 0mA maximum Suspend well current required when in the D3 cold state. Device Specific Initialization (DSI): Indicates that no device-specific initialization is required. Reserved PME Clock (PMEC): Does not apply. Hard wired to 0. Version (VER): Indicates that it complies with Revision 1.1 of the PCI Power Management Specification. 15:11 10 9 8:6 5 4 4 2:0 Datasheet 279 USB Client Controller (D26:F0) 14.3.17 PM_CNTL_STS—Power Management Control/Status Register Address Offset: Default Value: Default and Access 00h RO 0b RO 0b RO 0...0b RO Data: No data Bus Power/Clock Control Enable (BPCCE): Does not apply. Hard wired to 0. B2/B3 Support (B23): Does not apply. Hard wired to 0. Reserved Power State (PS): This field is used both to determine the current power state of the USB Client controller and to set a new power state. The values are: 00 = D0 state 01 = Reserved 1:0 00b R/W 10 = Reserves 11 = D3HOT state When in D3HOT, the USB Client controller’s configuration space is available, but the I/O and memory spaces are not. Additionally, interrupts are blocked. When software changes this value from D3HOT to D0, an internal warm (soft) reset is generated, and software must re-initialize the function. NOTE: Reset (bits 15, 8): suspend well, and not D3-to-D0 warm reset nor core well reset. 54h–55h 00000000h Attribute: Size: R/W, RO 32bits Bit Description 31:24 23 22 21:2 280 Datasheet USB Client Controller (D26:F0) 14.3.18 URE—USB Resume Enable Address Offset: Default Value: Default and Access 0s RO 0b R/W Reserved Port 0 Enable (P0E): When set, UHC monitors port 0 for wakeup and connect/disconnect events. C4h 00000000h Attribute: Size: R/W, RO 32bits Bit Description 7:1 0 14.3.19 FD—Function Disable Register Address Offset: Default Value: Default and Access 0000h RO 0 R/W 0 RO 0 R/W Reserved Clock Gating Disable (CGD): When set, clock gating within the function is disabled. When cleared, clock gating within the function is enabled. Reserved Disable (D): When set, the function is disabled (configuration space is disabled). FCh 00000000h Attribute: Size: R/W 32 bits Bit Description 31:3 2 1 0 Datasheet 281 USB Client Controller (D26:F0) 14.4 Table 40. Memory-Mapped I/O Registers USB Client I/O Registers (Sheet 1 of 2) MEM_BASE +Offset 000–003h 100–103h 104–107h 10C–10Fh 110–113h 000–003h 100–103h 104–107h 10C–10Fh 110–113h 114–117h 200–207h 220–227h 240–247h 260–267h 280–287h 2A0–2A7h 2C0–2C7h 2E0–2E7h 208–209h 228–229h 248–249h 268–269h 288–289h 2A8–2A9h 2C8–2C9h 2E8–2E9h 20A–20Bh 22A–22Bh 24A–24Bh 26A–26Bh 28A–28Bh 2AA–2ABh 2CA–2CBh 2EA–2EBh 20C–20Dh 22C–22Dh 24C–24Dh 26C–26Dh 28C–28Dh 2AC–2ADh 2CC–2CDh 2EC–2EDh Mnemonic GCAP DEV_STS FRAME INT_STS INT_CTRL GCAP DEV_STS FRAME INT_STS INT_CTRL DEV_CTRL EP0IB EP0OB EP1IB EP1OB EP2IB EP2OB EP3IB EP3OB EP0IL EP0OL EP1IL EP1OL EP2IL EP2OL EP3IL EP3OL EP0IPB EP0OPB EP1IPB EP1OPB EP2IPB EP2OPB EP3IPB EP3OPB EP0IDL EP0ODL EP1IDL EP1ODL EP2IDL EP2ODL EP3IDL EP3ODL Register Global Capabilities Device Status Frame Number Interrupt Status Interrupt Control Global Capabilities Device Status Frame Number Interrupt Status Interrupt Control Device Control Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint 0 0 1 1 2 2 3 3 0 0 1 1 2 2 3 3 0 0 1 1 2 2 3 3 0 0 1 1 2 2 3 3 IN Base OUT Base IN Base OUT Base IN Base OUT Base IN Base OUT Base IN Length OUT Length IN Length OUT Length IN Length OUT Length IN Length OUT Length IN Position in Buffer OUT Position in Buffer IN Position in Buffer OUT Position in Buffer IN Position in Buffer OUT Position in Buffer IN Position in Buffer OUT Position in Buffer IN Descriptor in List OUT Descriptor in List IN Descriptor in List OUT Descriptor in List IN Descriptor in List OUT Descriptor in List IN Descriptor in List OUT Descriptor in List Default 4007000h 00000000h 00000000h 00000000h 00000000h 4007000h 00000000h 00000000h 00000000h 00000000h 00000000h Type RO RO RO RO, R/WC RO, R/W RO RO RO RO, R/WC RO, R/W RO, R/W 00000000 00000000h RO, R/W 0000h R/W 0000h RO, WC 0000h RO, WC 282 Datasheet USB Client Controller (D26:F0) Table 40. USB Client I/O Registers (Sheet 2 of 2) MEM_BASE +Offset 20E–20Fh 22E–22Fh 24E–24Fh 26E–26Fh 28E–28Fh 2AE–2AFh 2CE–2CFh 2EE–2EFh 210–211h 230–231h 250–251h 270–271h 290–291h 2B0–2B1h 2D0–2D1h 2F0–2F1h 212–213h 232–233h 252–253h 272–273h 292–293h 2B2–2B3h 2D2–2D3h 2F2–2F3h 214–214h 234–234h 254–254h 274–274h 294–294h 2B4–2B4h 2D4–2D4h 2F4–2F4h 237h 277h 2B7h 2F7h 238–23Fh 278–27Fh 2B8–2BFh 2F8–2FFh Mnemonic EP0ITQ EP0OTQ EP1ITQ EP1OTQ EP2ITQ EP2OTQ EP3ITQ EP3OTQ EP0IMPS EP0OMPS EP1IMPS EP1OMPS EP2IMPS EP2OMPS EP3IMPS EP3OMPS EP0IS EP0OS EP1IS EP1OS EP2IS EP2OS EP3IS EP3OS EP0IC EP0OC EP1IC EP1OC EP2IC EP2OC EP3IC EP3OC EP0OSPS EP1OSPS EP2OSPS EP3OSPS EP0OSP EP1OSP EP2OSP EP3OSP Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Endpoint Status Endpoint Status Endpoint Status Endpoint Status Endpoint Endpoint Endpoint Endpoint 0 0 1 1 2 2 3 3 0 0 1 1 2 2 3 3 0 0 1 1 2 2 3 3 0 0 1 1 2 2 3 3 Register IN Transfer in Queue OUT Transfer in Queue IN Transfer in Queue OUT Transfer in Queue IN Transfer in Queue OUT Transfer in Queue IN Transfer in Queue OUT Transfer in Queue IN Max Packet Size OUT Max Packet Size IN Max Packet Size OUT Max Packet Size IN Max Packet Size OUT Max Packet Size IN Max Packet Size OUT Max Packet Size IN Status OUT Status IN Status OUT Status IN Status OUT Status IN Status OUT Status IN Configuration OUT Configuration IN Configuration OUT Configuration IN Configuration OUT Configuration IN Configuration OUT Configuration Default Type 0000h RO, WC 0040h RO, R/W 0000h RO, R/WC 0000h RO, R/W 0 Output Setup Package 1Output Setup Package 2 Output Setup Package 3 Output Setup Package 0 Output Setup Packet 1Output Setup Packet 2 Output Setup Packet 3 Output Setup Packet 00h RO, R/WC 0 R/W Datasheet 283 USB Client Controller (D26:F0) 14.4.1 GCAP—Global Capabilities Register Address Offset: Default Value: Default and Access 000h–003h 40000003h Attribute: Size: RO 32 bits Bit Description Endpoint Cap: Indicates the number of Endpoints supported by this device. 31:28 4h RO One ‘IN' and one 'OUT' pair is considered an endpoint, so the minimum device configuration would have a default value of '1', indicating that only the Endpoint 0 IN and Endpoint 0 OUT are supported. (Reset value may vary if other than four endpoint pairs are supported.) 27:5 0s RO 0b RO 0 RO 0 RO 1 RO 1 RO Reserved Interrupt on Completion Capable (IOCC) 1 = the hardware has the capability of generating an interrupt based on the Transfer or Scatter Gather DMA mode Buffer Descriptor IOC bit. Transfer Mode Capable (TM) 1 = the device supports Transfer Mode DMA operation. Scatter Gather Mode Capable (SGM) 1 = indicates the device supports Scatter Gather Mode DMA operation Linear Mode Capable (LM) 1 = indicates the device supports Buffer Mode DMA operation. Control Mode Capable (CM) 1 = indicates the device supports Control Mode DMA operation 4 3 2 1 0 284 Datasheet USB Client Controller (D26:F0) 14.4.2 DEV_STS—Device Status Register Address Offset: Default Value: Default and Access 0000h RO Reserved Address (ADDR): This field provides the address of the device on the bus. At initialization, this is zero, and will reset to zero if the device is disconnected from the bus or a Bus Reset event is detected on the link. This register will reflect the address assigned to the device by the controller when the address has been assigned. This is read/write to facilitate testing - software should not write under normal operation Reserved Rate (R): The Intel® SCH assigns this bit after negotiating with a USB host. 3 0 RO 0 = Device is operating in Full-Speed (12 Mbps) mode. 1 = Device is operating in High-Speed (480 Mbps) mode. A second read maybe required after Connected is read asserted in order to read the correct Rate value. 2 0 RO Reserved Connected (C): 0 RO 0 = The device is not electrically connected to a USB host or hub device. 1 = The hardware is electrically connected to a USB host or hub device based on D+/D- signaling and if has determined whether the connection is high speed or full speed. If the host resets the device, this bit is reset to a “0” and it is set back to a “1” only after the speed mode is established. Suspend (S): 0 0 RO 0 = a link Resume is seen to take the device out of reset. 1 = The hardware has detected that more than 3 ms have elapsed since the last activity on the bus, indicating that the device should enter USB “suspend” state. 100h–103h 00000000h Attribute: Size: RO 32 bits Bit Description 31:15 14:8 00h RO 7:4 0h RO 1 14.4.3 FRAME—Frame Number Register Address Offset: Default Value: Default and Access 00000h RO 000h RO Reserved Number (NUM): Indicates the last 11b frame number received in a SOF packet on the bus 104h–107h 00000000h Attribute: Size: RO 32 bits Bit Description 31:12 11:0 Datasheet 285 USB Client Controller (D26:F0) 14.4.4 INT_STS—Interrupt Status Register Address Offset: Default Value: Default and Access 000h RO Reserved Reset (R): A Device Reset signal on the USB port has been detected. When a bus reset is received, the Intel® SCH must immediately stop any transmissions. Endpoint FIFOs are flushed. All Endpoint Enable bits should transition to a '0' at the detection of USB Bus reset, but all other endpoint bits should NOT be affected. While the Reset is being signaled on the USB Bus, software may set the Enable bit on endpoints so that they are ready when bus activity resumes. 17 16 15:8 0 R/WC 0 R/WC 000h RO Connect (C): Set by hardware when the Device Status CONNECTED bit (100h:1) transitions from 0-to-1 OR 1-to-0. Suspend (S): Set by hardware when the Device Status SUSPEND bit (100h:0) transitions from 0-to-1 OR 1-to-0. Reserved Endpoint Status (EPSTS): These are status bits only; the actual interrupt(s) are cleared by writing a 1 to the appropriate bit(s) in the EP0_IN_STS Register. Bit 7 6 5 4 3 2 1 0 Endpoint EP3_OUT EP3_IN EP2_OUT EP2_IN EP1_OUT EP1_IN EP0_OUT EP0_IN 10Ch–10Fh 00000000h Attribute: Size: RO, R/WC 32 bits Bit Description 31:19 18 0 R/WC 7:0 00h RO 286 Datasheet USB Client Controller (D26:F0) 14.4.5 INT_CTRL—Interrupt Control Register Address Offset: Default Value: Default and Access 000h RO 0 R/W 0 R/W 0 R/W 000h R/W Reserved Reset Interrupt Enable (RIEN): When set, and INT_STS.R is set, an interrupt is generated. Connect Interrupt Enable(CIEN): When set and INT_STS.C is set, an interrupt is generated. Suspend Interrupt Enable(SIEN): When set and INT_STS.S is set, an interrupt is generated. Reserved Endpoint Interrupt Enable (EPINTEN): When one of the Endpoint Interrupt Enable bits is set and the corresponding interrupt status bit (INT_STS.EPSTS) is set, an interrupt is generated. Each bit maps to a particular endpoint as shown below: 00h R/W Bit 7 6 5 4 3 2 1 0 Endpoint EP3_IN EP3_OUT EP2_IN EP2_OUT EP1_IN EP1_OUT EP0_IN EP0_OUT 110h–113h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:19 18 17 16 15:8 7:0 Datasheet 287 USB Client Controller (D26:F0) 14.4.6 DEV_CTRL—Device Control Register Address Offset: Default Value: Default and Access 114h–117h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description Enable (EN): While cleared, any writes to any bit(s) in any register other than this bit are ignored. They complete, but will have no effect on any registers. Hardware must not drive D+/D- to signal a connection to the host. 31 0 R/W When software sets this bit, hardware transitions to the running state. Software must poll this bit and not perform any reads or writes to the register space until the bit is read as a '1'. If the bit is not read as a '1' within 5 ms, software may assume that there is a hardware fault. When software clears this bit, hardware transitions all registers to their reset values (except register "Offset 104h: FRAME - Frame Number" which keeps the last frame number received), and deasserts any interrupts, clears any FIFOs, and performs a device reset. Connection Enable (CE): 0 = D+/D- must not be pulled up to indicate to a host that a device is connected, and should appear as not connected. 1 = appropriate pull-ups are enabled to signal a connection to a host. When transitioning from '1' to '0', the device shall appear to the host to Disconnect, as defined in section 7.1.7.3 of the USB 2.0 specification. Reserved TestMode: When set to a 1, the USB Client will respond with fast CHIRP's to speed test time. Test_se0_nak_mode: When set to a '1', the USB Client will be configured in high-speed mode and will respond with NAK to all incoming IN packets. Reserved SignalResume (SR): When software writes a 1 to this bit, hardware will generate resume signaling on the link if the link is in the Suspend state. Software is responsible for knowing whether the device has been enabled to generate the signaling by the Host system, and for ensuring that the link has been in the suspend state for the 5 ms minimum, per USB 2.0 Specification, Section 7.1.7.7. Hardware is responsible for asserting the resume signaling on the link for the requisite amount of time. When the resume signaling is completed, hardware will clear this bit to a '0'. While resume signaling is enabled, software writes to this bit will be ignored. 30 0 R/W 29:0 8 7 6:5 0 RO 0 R/W 0b R/W 000b RO 4 0 R/W 288 Datasheet USB Client Controller (D26:F0) Bit Default and Access Description Charge Enable (CGE): Software will program the maximum number of unit loads that the device may consume from the bus. Software will determine this based on the Device Configuration selected by the Host software. This value may be from 000b to 101b, representing 0 to 5 unit loads. Since a unit load is defined as 100 mA, hardware may then proceed to draw up to the indicated amount of current. Hardware may assume that 1 unit load (100 mA) of current will be available, and up to 500 mA may be available if the Client Device is plugged into a Host or Powered Hub. Hardware may optionally use this software provided value to charge a battery or draw power off the link for other purposes, or it may ignore the value if it has no need for link power. If hardware does not implement this functionality, it may be Read-Only '000b'. Force Full Speed (FFS): If set, the Intel® SCH will not attempt to negotiate High-Speed operation, and will fall back to default Full-Speed operation. 3:1 000b R/W 0 0 R/W Datasheet 289 USB Client Controller (D26:F0) 14.5 Device Endpoint Register Map The following provides the Device Endpoint register map. Byte Offset 7 6 5 4 3 2 1 0 7 00h Input Length MaxData Packet Size 08h 10h 18h 20h Output Length MaxData Packet Size 28h 30h 38h Address Offset Input Base Address Transfer in Queue Reserved Descriptor in List Status Position in Buffer Configuration Reserved Output Base Address Transfer in Queue Setup Packet Status Reserved Descriptor in List Status Position in Buffer Configuration Setup Packet 14.5.1 EPnIB—Endpoint [0..3] Input Base Address Register Address Offset: EP0_IN_BASE EP1_IN_BASE EP2_IN_BASE EP3_IN_BASE 0000000000000000h 200h–207h 240h–247h 280h–287h 2C0h–2C7h Attribute: RO, R/W Default Value: Default and Access 000000000h R/W Size: 64 bits Bit Description Base Address (BA): Must be 64B aligned. This register may be implemented as a 32b register, with the upper 32b Read Only 00000000h. 63:0 14.5.2 EPnIL—Endpoint [0,1] Input Length Register Address Offset: EP0IL EP1IL EP2IIL EP3IL Default Value: 208h–209h 248h–249h 288h–289h 2C8h–2C9h 0000h Attribute: R/W Size: 16 bits Bit Default and Access 0000h R/W Description Length (LEN): If EPnIC.MD is Buffer, this field indicates the length of the data buffer. If EPnIC.MD is ScatterGather or Transfer, this field indicates the number of entries in the Descriptor List. 15:0 290 Datasheet USB Client Controller (D26:F0) 14.5.3 EPnIPB—Endpoint [0..3] Input Position in Buffer Register Address Offset: EP0IPB EP1IPB EP2IPB EP3IPB Default Value: 20Ah–20Bh 24Ah–24Bh 28Ah–28Bh 2CAh–2CBh 0000h Attribute: RO, W/C Size:16 bits Bit Default and Access 0000h R/WC Description 15:0 Position (POS): Byte offset of the last byte fetched by the DMA engine within the current buffer. 14.5.4 EPnIDL—Endpoint [0..3] Input Descriptor in List Register Address Offset: EP0IDL EP1IDL EP2IDL EP3IDL 0000h 20Ch–20Dh 24Ch–24Dh 28Ch–28Dh 2CCh–2CDh Attribute: RO, W/C Default Value: Default and Access 0000h R/WC Size:16 bits Bit Description Position (POS): If EPnIC.MD is Linear, this is field is RO and not used. If EPnIC.MD is Transfer or Scatter Gather, this field indicates the offset of the current Descriptor in the Descriptor List. 15:0 14.5.5 EPnITQ—Endpoint [0..3] Input Transfer in Queue Register Address Offset: EP0ITQ EP1ITQ EP2ITQ EP3ITQ 0000h 20Eh–20Fh 24Eh–24Fh 28Eh–28Fh 2CEh–2CFh Attribute: RO, W/C Default Value: Default and Access 0000h R/WC Size:16 bits Bit Description Position (POS): If EPnIC.MD is Linear this, this field is RO and not used. If EPnIC.MD is Transfer, this field indicates the offset of the current Transfer in the Transfer Queue. 15:0 Datasheet 291 USB Client Controller (D26:F0) 14.5.6 EPnIMPS—Endpoint [0..3] Input Maximum Packet Size Register Address Offset: EP0IMPS EP1IMPS EP2IMPS EP3IMPS 0040h 210h–211h 250h–251h 290h–291h 2D0h–2D1h Attribute: RO, R/W Default Value: Default and Access 00h RO Size: 16 bits Bit Description 15:11 Reserved Size (S): This field indicates the maximum number of data bytes that may be sent in each inbound DATA packet, up to 1024 Bytes. 10:0 040h R/W Software is responsible for making sure that the value programmed here does not break the USB protocol (such as setting to 1024B on a Control endpoint). This defaults to 64 Bytes, which is the default size of a Control Endpoint. 14.5.7 EPnIS—Endpoint [0..3] Input Status Register Address Offset: EP0IS EP1IS EP2IS EP3IS Default Value: 212h–213h 252h–253h 292h–293h 2D2h–2D3h 0000h Description Bad PID Type Detected (BP): An inappropriate PID type was seen; for instance, a SETUP PID to an endpoint configured as a BULK endpoint. CRC Error (CE): A CRC error on the packet from the USB host detected. FIFO Error (FE): Data over-run. The packet received may have been corrupted. DMA Error (DE): There was an error fetching descriptors, or writing buffer data. Hardware may STALL transactions targeted at this endpoint (rather than NAKing them) to indicate to the Host that a serious problem as occurred. Transfer Complete (TC): LENGTH bytes have been sent, or one queue descriptor is complete and IOC was set Reserved Interrupt on Completion (IOC): If GC.IOCC is set, when in Scatter Gather or Transfer mode, indicates that a DMA buffer which has IOC set in the descriptor has been completely transferred. If GC.IOCC is cleared, this bit is read-only 0. Reserved Attribute: RO, R/WC Size:16 bits Bit Default and Access 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 RO 0 R/WC 00h RO 15 14 13 12 11 10 9 8:0 292 Datasheet USB Client Controller (D26:F0) 14.5.8 EPnIC—Endpoint [0..3] Input Configuration Register Address Offset: EP0IC EP1IC EP2IC EP3IC 0000h 214h–215h 254h–255h 294h–295h 2D4h–2D5h Attribute: RO, R/W Default Value: Default and Access 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 RO 0 RW 0 RO Size:16 bits Bit Description Interrupt on Bad PID Type (BP): Enables EPnIS.BPT to generate an interrupt when set. Interrupt on CRC Error (ICE): Enables EPnIS.CE to generate an interrupt when set. Interrupt on FIFO Error (IFE): Enables EPnIS.FE to generate an interrupt when set. Interrupt on DMA Error (IDE): Enables EPnIS.DE to generate an interrupt when set. Interrupt on Transfer Complete (ITC): Enables EPnIS.TC to generate an interrupt when set. Reserved Interrupt on DMA Interrupt on Completion (IDIOC): Enables EPnIS.IOC to generate an interrupt when set. Reserved Mode (MD): Indicates the way the address and Length fields are interpreted, and the way the data is fetched. See section Error! Reference source not found. for a description of these modes. 15 14 13 12 11 10 9 8 7:6 00b R/W 00 = Linear Mode, Only Linear Mode and Control Mode are supported by the Intel® SCH 01 = Scatter Gather Mode 10 = Transfer Mode 11 = Control Mode Type (TYP): Changes some endpoint behaviors based on the type of the endpoint. In particular, Isochronous endpoints do not send ACK/NAK packets, and do not perform error checking. The transfer limits for Control and Interrupt are also smaller than the limits for Isoch or Bulk (but only software cares). 5:4 00b R/W 00 = Control/Message 01 = Isochronous 10 = Bulk 11 = Interrupt When Control/Message, software should set MD to Linear Mode so that the software can handle each arriving packet. Endpoints 0_IN and 0_OUT (the default Control pipe) will always be used in Control/Message mode. Datasheet 293 USB Client Controller (D26:F0) Bit Default and Access 00b RO Reserved Description 3:2 1 0 R/W Enable (EN) 1 = hardware will send data from the data buffer (fetching from DMA as needed) for as long as there is data remaining to be sent in the buffer. The size of each individual transfer is limited by the EPnIMPS. If IN_Enable is set when the Length register is zero (indicating no bytes or no descriptors), a zero length packet will be sent on the next transfer. 0 = input from this Endpoint is not enabled. If V is set, hardware will send a NAK for any packet addressed to this endpoint. If v is cleared, hardware will STALL any IN transfer to indicate a problem with the Endpoint. On a transition from 1-to-0 the FIFO must be flushed so that the next data transmission is fetched from memory. Valid (V): This bit indicates whether this is a valid and configured Endpoint on this device. Clearing this bit causes an endpoint reset. During the reset: • All register values associated with this endpoint must return to their default values. • The DATA0/1 sequence toggling for this endpoint defaults back to DATA0 • All interrupts and status bits associated with this endpoint are cleared. • All DMA FIFOs and state machines are cleared and reset, including any FIFO errors • Intel® SCH minimizes power usage to the extent possible 0 0 R/W 14.5.9 EPnOB—Endpoint [0..3] Output Base Address Register Address Offset: EP0OB EP1OB EP2OB EP3OB 0000000000000000h 220h–227h 260h–267h 2A0h–2A7h 2E0h–2E7h Attribute: RO, R/W Default Value: Default and Access 000000000h R/W Size: 64 bits Bit Description Base Address (BA): Must be 64B aligned. This register may be implemented as a 32b register, with the upper 32b Read Only 00000000h. 63:0 294 Datasheet USB Client Controller (D26:F0) 14.5.10 EPnOL—Endpoint [0..3] Output Length Register Address Offset: EP0OL EP1OL EP2OL EP3OL 0000h 228h–229h 268h–269h 2A8h–2A9h 2E8h–2E9h Attribute: R/W Default Value: Default and Access 0000h R/W Size: 16 bits Bit Description Length (LEN): If EPnIC.MD is Buffer, this field indicates the length of the data buffer. If EPnIC.MD is ScatterGather or Transfer, this field indicates the number of entries in the Descriptor List. 15:0 14.5.11 EPnOPB—Endpoint [0..3] Output Position in Buffer Register Address Offset: EP0OPB EP1OPB EP2OPB EP3OPB 0000h 22Ah–22Bh 26Ah–24Bh 2AAh–2ABh 2EAh–2EBh Attribute: RO, W/C Default Value: Default and Access 0000h R/WC Size:16 bits Bit Description 15:0 Position (POS): Byte offset of the last byte written to by the DMA engine within the current buffer. 14.5.12 EPnODL—Endpoint [0..3] Output Descriptor in List Register Address Offset: EP0ODL EP1ODL EP2ODL EP3ODL 0000h 22Ch–20Dh 26Ch–24Dh 2ACh–28Dh 2ECh–2CDh Attribute: RO, W/C Default Value: Default and Access 0000h R/WC Size:16 bits Bit Description Position (POS): If EPnIC.MD is Linear, this field is RO and not used. If EPnIC.MD is Transfer or Scatter Gather, this field indicates the offset of the current Descriptor in the Descriptor List. 15:0 Datasheet 295 USB Client Controller (D26:F0) 14.5.13 EPnOTQ—Endpoint [0..3] Output Transfer in Queue Register Address Offset: EP0OTQ EP1OTQ EP2OTQ EP3OTQ 0000h 20Eh–20Fh 24Eh–24Fh 28Eh–28Fh 2CEh–2CFh Attribute: RO, W/C Default Value: Default and Access 0000h R/WC Size:16 bits Bit Description Position (POS): If EPnIC.MD is Linear this field is RO and not used. If EPnIC.MD is Transfer, this field indicates the offset of the current Transfer in the Transfer Queue. 15:0 14.5.14 EPnOMPS—Endpoint [0..3] Output Maximum Packet Size Register Address Offset: EP0OMPS EP1OMPS EP2OMPS EP3OMPS 0040h 230h–231h 270h–271h 2B0h–2B1h 2F0h–2F1h Attribute: RO, R/W Default Value: Default and Access 00h RO Size: 16 bits Bit Description 15:11 Reserved Size (S): This field indicates the maximum number of data bytes than may be sent in each inbound DATA packet, up to 1024 Bytes. 10:0 040h R/W Software is responsible for making sure that the value programmed here does not break the USB protocol (such as setting to 1024B on a Control endpoint). This defaults to 64 Bytes, which is the default size of a Control Endpoint. 296 Datasheet USB Client Controller (D26:F0) 14.5.15 EPnOS—Endpoint [0..3] Output Status Register Address Offset: EP0OS EP1OS EP2OS EP3OS 0000h 232h–233h 272h–273h 2B2h–2B3h 2F2h–2F3h Attribute: RO, R/WC Default Value: Bit Default and Access 0 R/WC 0 R/WC 0 R/WC 0 R/WC Size:16 bits Description Bad PID Type Detected (BPTD): An inappropriate PID type was seen; for instance, a SETUP PID to an endpoint configured as a BULK endpoint CRC Error (CE): A CRC error on the packet from the USB host detected. FIFO Error (FE): Data under-run. The packet received may have been corrupted. DMA Error (DE): There was an error fetching descriptors, or fetching buffer data. Hardware may STALL transactions targeted at this endpoint (rather than NAKing them) to indicate to the Host that a serious problem as occurred. Transfer Complete (TC): Short Packet detected, meaning less than EPnOMPS bytes were sent in a Data0/1 phase. This includes zero length packets. This will also be set if or one queue descriptor is complete and IOC was set. Ping NAK Sent (PNS): Set if hardware responds to a PING with a NAK. Software can use this bit as an indication that the buffer size is insufficient, and that the host is waiting to send a larger packet than can be accommodated. Interrupt on Completion (IOC): If GC.IOCC is set, when in Scatter Gather or Transfer mode, indicates that a DMA buffer which has IOC set in the descriptor has been completely transferred. If GC.IOCC is cleared, this bit is read-only '0'. Reserved 15 14 13 12 11 0 R/WC 10 0 RO 9 0 R/WC 00h RO 8:0 14.5.16 EPnOC—Endpoint [0..3] Output Configuration Register Address Offset: EP0OC EP1OC EP2OC EP3OC 0000h 234h–235h 274h–275h 2B4h–2B5h 2F4h–2F5h Attribute: RO, R/W Default Value: Default and Access 0 R/W 0 R/W 0 R/W Size:16 bits Bit Description Interrupt on Bad PID Type (IBPT): Enables EPnOS.BPT to generate an interrupt when set. Interrupt on CRC Error (ICE): Enables EPnOS.CE to generate an interrupt when set. Interrupt on FIFO Error (IFE): Enables EPnOS.FE to generate an interrupt when set. 15 14 13 Datasheet 297 USB Client Controller (D26:F0) Bit Default and Access 0 R/W 0 R/W 0 RO 0 RW 0 RO Description Interrupt on DMA Error (IDE): Enables EPnOS.DE to generate an interrupt when set. Interrupt on Transfer Complete (ITC): Enables EPnOS.TC to generate an interrupt when set. Interrupt on PingNAKSent (IPNS): Enables EPnOS.PNS to generate an interrupt when set. Interrupt on DMA Interrupt on Completion (IDIOC): Enables EPnOS.IOC to generate an interrupt when set. Reserved Mode (MD): Indicates the way the address and Length fields are interpreted, and the way the data is fetched. 12 11 10 9 8 7:6 00b R/W 00 = Linear Mode, Only Linear Mode and Control Mode are supported by the Intel® SCH 01 = Scatter Gather Mode 10 = Transfer Mode 11 = Control Mode Type (TYP): Changes some endpoint behaviors based on the type of the endpoint. In particular, Isochronous endpoints do not send ACK/NAK packets, and do not perform error checking. The transfer limits for Control and Interrupt are also smaller than the limits for Isoch or Bulk (but only software cares). 5:4 00b R/W 00 = Control/Message 01 = Isochronous 10 = Bulk 11 = Interrupt When Control/Message, software should set MD to Linear Mode so that the software can handle each arriving packet. Endpoints 0_IN and 0_OUT (the default Control pipe) will always be used in Control/Message mode. 3:2 00b RO Reserved Enable (EN) 1 = hardware will receive data into the data buffer for as long as there is space in the buffer. 0 = Output on this Endpoint is not enabled. If V is set, hardware will send a NAK for any packet addressed to this endpoint. If V is cleared, hardware will STALL any IN transfer to indicate a problem with the Endpoint. On a transition from 1-to-0, the DMA FIFO must be flushed so that all of the data received is flushed to memory. On a transition from 0-to-1, the Position In Buffer register, and the Description Descriptor in List and Transaction in Queue registers, if implemented, will be reset to zero to cause the DMA to begin transferring the next transaction at the beginning of the buffer. 1 0 R/W 298 Datasheet USB Client Controller (D26:F0) Bit Default and Access Description Valid (V): Indicates whether this is a valid and configured Endpoint on this device. Clearing this bit causes an endpoint reset. During the reset: • All register values associated with this endpoint must return to their default values. 0 0 R/W • The DATA0/1 sequence toggling for this endpoint defaults back to DATA0 • All interrupts and status bits associated with this endpoint are cleared. • All DMA FIFOs and state machines are cleared and reset, including any FIFO errors • Intel® SCH minimizes power usage to the extent possible 14.5.17 EPnOSPS—Endpoint [0..3] Output Setup Package Status Register Address Offset: EP0OSPS EP1OSPS EP2OSPS EP3OSPS 00h 237h 277h 2B7h 2F7h Attribute: RO, R/W Default Value: Default and Access 00h RO 0 R/WC Size:8 bits Bit Description 7:1 0 Reserved Valid (V): Indicates that a valid Setup Packet is in EPnOSP. 14.5.18 EPnOSP—Endpoint [0..3] Output Setup Packet Register Address Offset: EP0OSP EP1OSP EP2OSP EP3OSP 0000000000000000h 238h-23Fh 278h-27Fh 2B8h-2BFh 2F8h-2FFh Size: Attribute: RO, Default Value: Default and Access 0 RO 64 bits Bit Description 63:0 Received Setup Packet Data §§ Datasheet 299 USB Client Controller (D26:F0) (This page intentionally left blank.) 300 Datasheet SDIO/MMC (D30:F0, F1, F2) 15 15.1 SDIO/MMC (D30:F0, F1, F2) SDIO Functional Description (D30:F0, F1, F2) The Intel® SCH contains three SDIO/MMC ports. • Port 0 and Port 1 are 4-bits wide. Port 2 is 8-bits wide. The controller supports MMC 4.1 and SDIO 1.1 specifications. • MMC 4.1 transfer rates can be up to 48 MHz and bus widths of 1, 4, or 8 bits. • SDIO 1.1 supports transfer rates up to 24 MHz and bus widths of 1 or 4 bits. 15.1.1 Protocol Overview The SDIO/MMC transfer protocol utilizes the following definitions: • Command: A command is a 6-byte token that starts an operation. The command set includes card initialization, card register reads and writes, and data transfers. The MMC/SD/SDIO controller sends the command serially on the SD_CMD signal pin. • Response: A response is a token that is an answer to a command token. Each command has either a specific response type or no response type. The format for a response varies according to the command sent and the card mode. Response formats are detailed in the MultiMediaCard System Specification Version 4.0. • Data: Data is transferred serially between the SDIO/MMC controller and the card in 8-bit blocks and at rates up to 48 MB/s. The format for the data depends on the card mode. Depending on the status of certain enable bits, a particular response type can be selected. Table 41 summarizes these Response Type dependencies. Table 41. Determining the Response Type Response Type Select 00 01 10 10 11 Index Check Enable 0 0 0 1 1 CRC Check Enable 0 1 0 1 1 Response Type No Response R2 R3, R4 R1, R5, R6 R1b, R5b Once known, the Response Type will be transmitted by occupying a certain bit field within the 48-bit or 136-bit response. Table 42 summarizes the Response Register mapping. Datasheet 301 SDIO/MMC (D30:F0, F1, F2) Table 42. Response Register Mapping Kind of Response R1, R1b Normal Response R1b Auto CMD12 Response R2 CID, CSD Register Response R3 OCR Register R4 OCR Register R5, R5b R6 Published RCA Response Meaning of Response Card Status Card Status for AutoCMD12 CID or CSD register incl OCR Register OCR Register in I/O mode SDIO Response New published RCA[31:16] etc. Length of Response 48 48 Response Mapping 39:8 39:8 RESP Register Mapping REP[31:0] REP[127:96] 136 127:1 REP[126:0] 48 48 48 48 39:8 39:8 39:8 39:8 REP[31:0] REP[31:0] REP[31:0] REP[31:0] Figure 6. Response Token Formats Transmitter Bit: 0 = Card Response Status Bit: Always 0 R1, R3, R4, R5 0 0 Context Total Length = 48 bits CRC 1 End Bit: Always 1 Response Content: Mirrored command and status information (R1 response), OCR Register (R3 response) or RCA (R4 and R5), protected by a 7-bit CRC checksum. End Bit: Always 1 R2 0 0 Context – CID or CSD Total Length = 136 bits CRC 1 15.1.2 Integrated Pull-Up Resistors The Intel® SCH SDIO/MMC controller contains on-die pull-up resistors on each data bus pin. The value of these internal resistors is nominally 75 kΩ and meets the pull-up requirement for both SD/SDIO 1.1 and MMC 4.1 specifications. 302 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.2 Table 43. PCI Configuration Registers SDIO/MMC PCI Register Address Map Offset 00–01h 02–03h 04–05h 06–07h 08h 09h–0Bh 0Dh 0Eh 10–13h 2Ch 34h 3Ch 3Dh 40h 84h–87h 90h–93h F4h-F7h F8h-FBh FC–FFh Mnemonic VID DID PCICMD PCISTS RID CC MLT HEADTYP MEM_BASE SSID CAP_PTR INT_LN INT_PN SLOTINF BC SDIOID CAPCNTL MANID FD Register Name Vendor Identification Device Identification PCI Command PCI Status Revision Identification Class Codes Master Latency Timer Header Type Base Address Register Subsystem Identifiers Capabilities Pointer Interrupt Line Interrupt Pin Slot Information Buffer Control SDIO Identification Capabilities Control Manufacturers ID Function Disable Default 8086h See description. 0000h 0280h See description 080501h 00h 00h 00000000h 0000h 00h 00h See description 02h 00000000h 00000000h 0000000xh 00000F86h 00000000h RO RO R/W, RO R/WC, RO RO RO RO RO R/W,R0 RO RO R/W RO RO RO, R/W RO, R/W RO, R/W RO RO, R/W Type NOTE: Address locations that are not shown should be treated as Reserved. 15.2.1 VID—Vendor Identification Register Address Offset: Default Value: Default and Access 8086 RO 00h–01h 8086h Attribute: Size: RO 16 bits Bit Description 15:0 Vendor ID (VID): This is a 16-bit value assigned to Intel. Datasheet 303 SDIO/MMC (D30:F0, F1, F2) 15.2.2 DID—Device Identification Register Address Offset: Default Value: Default and Access See description RO 811Ch 811Dh 811Eh 02h–03h See bit description Attribute: Size: RO 16 bits Bit Description Device ID (DID): This is a 16-bit value assigned to the SDIO controller. SDIO Controller #1 (D30:F0) SDIO Controller #2 (D30:F1) SDIO Controller #3 (D30:F2) 15:0 15.2.3 PCICMD—PCI Command Register Address Offset: Default Value: Default and Access 0s RO 0 R/W Reserved Bus Master Enable (BME): Allows the SDIO controller to act as a bus master. 0 = Disable bus mastering 1 = Enable bus mastering Memory Space Enable (MSE). Allows access to the SDIO controller memory space 0 = Disable access to memory space 1 = Enable access to memory space Reserved 04h–05h 0000h Attribute: Size: R/W, RO 16 bits Bit Description 15:3 2 1 0 R/W 0 RO 0 304 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.2.4 PCISTS—PCI Status Register Address Offset: Default Value: Default and Access 0000h RO Reserved 06h–07h 0000h Attribute: Size: RO 16 bits Bit Description 15:0 15.2.5 CC—Class Codes Register Address Offset: Default Value: Default and Access 02h RO 00h RO 01h RO 00h RO Base Class Code (BCC) 02h = Indicates that this device is a generic peripheral. Note: Network device mode is not supported. Sub Class Code (SCC) 00 = this field indicates that this device is an SDIO host controller Note: Network device mode is not supported. Programming Interface (PI) 01h = Indicates the DMA is supported with this controller Note: Network device mode is not supported. Revision ID (RID): Matches the value of the RID register in the LPC bridge. 08h–0Bh 08050100h Attribute: Size: RO 32 bits Bit Description 31:24 23:16 15:8 7:0 Datasheet 305 SDIO/MMC (D30:F0, F1, F2) 15.2.6 HEADTYP—Header Type Register Address Offset: Default Value: Default and Access 1 or 0 RO 00h RO 0Eh See description Attribute: Size: RO 8 bits Bit Description Multi-Function Device (MFD) 0 = Single function device (Functions 1 and 2) 1 = Multi function device (Function 0) Configuration Layout: Hardwired to 00h, which indicates the standard PCI configuration layout. 7 6:0 15.2.7 MEM_BASE—Base Address Register Address Offset: Default Value: Default and Access 000000h R/W 00h RO 0 RO 10h–13h 00000000h Attribute:R/W, RO Size:32 bits Bit Description Memory Base Address: Provides the 256 byte t memory space for slot 1's address space. Reserved. Space Indicator: This bit reads 0, indicating that the BAR is memory mapped. 31:8 7:1 0 15.2.8 SS—Subsystem Identifier Register Offset: Default Value: Default and Access description RO 2Ch See bit description Attribute: Size: RO 8 bits Bit Description Revision ID (RID): Matches the value of the RID register in the LPC bridge. Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the RID for each stepping. 7:0 306 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.2.9 INT_LN—Interrupt Line Register Address Offset: Default Value: Default and Access RO 3Ch 00h Attribute: Size: R/W 8 bits Bit Description Interrupt Line (INT_LN): This data is not used by the Intel® SCH. It is to communicate to software the interrupt line that the interrupt pin is connected to. 7:0 15.2.10 INT_PN—Interrupt Pin Register Address Offset: Default Value: Default and Access 3Dh See Description Attribute: Size: RO 8 bits Bit Description Interrupt Line (INT_LN): This value tells the software which interrupt pin each SDIO/MMC host controller uses. The upper 4 bits are hardwired to 0000b; the lower 4 bits are determine by the Interrupt Pin default values that are programmed in the memory-mapped configuration space as follows: SDIO #1 — D30IP.SD0IP (Chipset Config Registers:Offset 3104:bits 3:0) SDIO #2 — D30IP.SD1IP (Chipset Config Registers:Offset 3104:bits 7:4) SDIO #3 — D30IP.SD2IP (Chipset Config Registers:Offset 3104:bits 11:8) NOTE: This does not determine the mapping to the PIRQ pins. 7:0 RO 15.2.11 SLOTINF—Slot Information Register Address Offset: Default Value: Default and Access 0 RO 000b RO 0 RO 010b RO Reserved Number of Slots (NS): 000b indicates 1 slot supported on this controller. Reserved First Base Address Register Number (FBAR): Indicates the offset containing the MEM_BASE (10h). 40h 02h Attribute: Size: RO 8 bits Bit Description 7 6:4 3 2:0 Datasheet 307 SDIO/MMC (D30:F0, F1, F2) 15.2.12 BC—Buffer Control Register Address Offset: Default Value: 84h–87h 00000000h Attribute: Size: RO, R/W 32 bits BIOS/Firmware must correctly program the Buffer Strength bits based on the length of signal traces used in the design. Default and Access 00000h RO Reserved Core Clock Delay (CCD): Connects to clock buffer. The length value to program is: 5:4 00 00 = 0 to 4 inches 01 = 4 to 5 inches 10 = Reserved 11 = Reserved Data Buffer Output Delay (DBOD): Connects to all data buffers. The length value to program is: 3:2 00 00 = 0 to 4 inches 01 = 4 to 5 inches 10 = Reserved 11 = Reserved Data Buffer Input Delay (DBID): Connects to all data buffers. The length value to program is: 1:0 00 00 = 0 to 4 inches 01 = 4 to 5 inches 10 = Reserved 11 = Reserved Bit Description 31:6 308 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.2.13 SDIOID—SDIO Identification Register Address Offset: Default Value: Default and Access 0 RO Reserved Host Controller ID as Network Device (HCND): 1 = The base class, bus class, and programming interface for this SDIO controller changes to a network controller. | NOTE: Network device mode the is not supported. 90h–93h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:1 0 0 R/W 15.2.14 CAPCNTL—SDIO Capability Control Register Address Offset: Default Value: Default and Access 000h RO 1b RW see des RW 0b RW Reserved Bit 2 Control: Bit2 control bit for register offset 40h bit 21; Bit 1 Control: Bit1 control bit for register offset 40h bit 17. This bit will default to a 1 for SDIO Slot 0, and 0 for SDIO Slot 1 and 2 Bit 0 Control: Bit0 control bit for register offset 40h bit 16 F4h–F7h 0000000xh Attribute: Size: RO, R/W 32 bits Bit Description 31:8 2 1 0 Note: Bit 2:0 Notes: The default value of these register bits matches the default value of the bits in register offset 40h. Writing these bits to a different value allows validation to test the hardware in other configurations without changing the register bits in offset 40h. Datasheet 309 SDIO/MMC (D30:F0, F1, F2) 15.2.15 MANID—Manufacturer ID Address Offset: Default Value: Default and Access 00h RO xh RO 0Fh RO 86h RO Reserved Stepping IDSTATEefer to the Spec Update Manufacturer: 0Fh = Intel Process/Dot: 86h = process 861.6 F8h–FBh 00000F86h Attribute: Size: RO 32 bits Bit Description 31:24 23:16 15:8 7:0 15.2.16 FD—Function Disable Register Address Offset: Default Value: Default and Access 0 RO 0 R/W Reserved Disable (D): 0 = This function is enabled 1 = This function is disabled and configuration space is disabled FCh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:1 0 310 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3 SDIO/MMC Memory-Mapped Registers For the following memory mapped registers, the base address is that pointed to by the contents of the MEM_BASE (offset 10h) register described above. Here is a list of the SDIO transfer restrictions: • the Intel® SCH does not support zero block size transfer • For DMA mode, the Intel® SCH does not support the following mode: — offset 0Ch, bit 5 = 1, Multiple Transfer — offset 0Ch, bit 1 = 1, Block Count Enabled — offset 06h = 0000h, Block Count = 0 (aka Stop Multiple Transfer) • For PIO mode, the Intel® SCH does not support the following modes: — (Stop Multiple Transfer) offset 0Ch, bit 5 = 1, Multiple Transfer offset 0Ch, bit 1 = 1, Block Count Enabled offset 06h = 0000h, Block Count = 0 — Infinite Transfer offset 0Ch, bit 5 = 1, Multiple Transfer offset 0Ch, bit 1 = 0, Block Count Disabled offset 06h = 0000h, Block Count = 0 or 1 Table 44. SDIO/MMC Memory-Mapped Register Address Map (Sheet 1 of 2) MEM_BASE + Offset 00h–03h 04h–05h 06h–07h 08h–0Bh 0Ch–0Dh 0Eh–0Fh 10h–1Fh 20h–23h 24h–27h 28h 29h 2Ah 2Bh 2Ch–2Dh 2Eh 2Fh 30h–31h 32h–33h 34h–35h Mnemonic DMAADR BLKSZ BLKCNT CMDARG XFRMODE SDCMD RESP BUFDATA PSTATE HOSTCTL PWRCTL BLKGAPCTL WAKECTL CLKCTL TOCTL SWRST NINTSTS ERINTSTS NINTEN Register Name DMA Address Block Size Block Count Command Argument Transfer Mode SDIO Command Response Buffer Data Port Present State Host Control Power Control Block Gap Control Wakeup Control Clock Control Timeout Control Software Reset Normal Interrupt Status Error Interrupt Status Normal Interrupt Enable Default 00000000h 0000h 0000h 00000000h 0000h 0000h 0s 00000000h 00000000h 00h 00h 00h 00h 0000h 00h 00h 0000h 0000h 0000h Type R/W RO, R/W R/W R/W RO, R/W RO, R/W R/W R/W RO, R/W, ROC RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W, R/WC RO, R/WC RO, R/WC RO, R/W Datasheet 311 SDIO/MMC (D30:F0, F1, F2) Table 44. SDIO/MMC Memory-Mapped Register Address Map (Sheet 2 of 2) MEM_BASE + Offset 36h–37h 38h–39h 3Ah–3Bh 3Ch–3Dh 40h–43h 48h–4Bh FCh–FDh FEh–FFh Mnemonic ERINTEN NINTSIGEN ERINTSIGEN AC12ERRSTS CAP MCCAP SLTINTSTS CTRLRVER Register Name Error Interrupt Enable Normal Interrupt Signal Enable Error Interrupt Signal Enable Auto CMD12 Error Status Capabilities Maximum Current Capabilities Slot Interrupt Status Host Controller Version Default 0000h 0000h 0000h 0000h 00000000h 00000000h 0000h 0000h Type RO, R/WC RO, R/W RO, R/WC RO RO RO RO RO 15.3.1 DMAADR—DMA Address Register I/O Offset: Default Value: Default and Access Base + (00h–03h) 00000000h Attribute: Size: R/W 32 bits Bit Description System Address (SA): This field contains the system memory address for a DMA transfer. During data transfers, reads of these bits will return invalid data and writes will be ignored. When the Intel® SCH stops a DMA transfer, this points to the system address of the next data position. The DMA transfer stops at every boundary specified by BS.BB. Intel® SCH generates DMA Interrupt to request software to update this register. Software must then write the address of the next data position to this register. When the upper byte of this register (offset 003h) is written, the Intel® SCH restarts the transfer. When restarting a DMA transfer through the Resume command or by setting the Continue Request bit in the Block Gap Control register, the Host Controller shall start at the next contiguous address stored here in the System Address register. If the DMA transfer crosses DMA buffer boundary, the DMA system address must be chosen such that it is any multiple of the programmed blk_size below the DMA buffer boundary. This equates to: DMA Sys Addr = DMA buffer boundary – (n * blk_size) where n is any number that will equate the DMA Sys Addr below the DMA buffer boundary. 31:0 0 R/W 312 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.2 BLKSZ—Block Size Register I/O Offset: Default Value: Default and Access 0 RO Reserved Buffer Boundary (BB): These bits specify the size of contiguous buffer in the system memory. The DMA transfer shall wait at the boundary specified by this field and Intel® SCH generates the DMA Interrupt to request software to update DSA. If 000b (buffer size = 4 KB), the lower 12 address bits points to data in the contiguous buffer while the upper 20 address bits point to the location of the buffer in system memory. The DMA transfer stops when the Host Controller detects “carry out” of the address from bit 11 to 12. The address “carry out bit” changes depending on the size of the buffer. This function is active when the DMA Enable in the Transfer Mode register is set to 1. Bits 004 001 --110 111 Buffer Size 4 KB 8 KB --256 KB 512 KB Carry Out Bit A11 A12 --A17 A18 Base + (04h-05h) 0000h Attribute: Size: RO, R/W 16 bits Bit Description 15 14:12 000b R/W Transfer Block Size (TBS): Specifies the size of each block, in Bytes, for data transfers for CMD17, CMD18, CMD24, CMD25, and CMD53. During data transfers, reads of these bits will return invalid data and writes will be ignored. Bits 0000h 0001h 11:0 000h R/W 0002h 0003h --01FFh 0200h 0400h 0800h (0FFFh Size No Data Transfer (Not supported) 1 Byte 2 Bytes 3 Bytes --511 Bytes 512 Bytes 1024 Bytes 2048 Bytes 4095 Bytes Datasheet 313 SDIO/MMC (D30:F0, F1, F2) 15.3.3 BLKCNT—Block Count Register I/O Offset: Default Value: Default and Access Base + (06h-07h) 0000h Attribute: Size: R/W 16 bits Bit Description Count (C): Contains the number of blocks to be transferred. During a transfer operation, read operations to this register will return invalid data and writes will be ignored. When a suspend command is received by the controller, this register will reflect the number of blocks yet to be transferred. 15:0 0000h R/W 15.3.4 CMDARG—Command Argument Register I/O Offset: Default Value: Default and Access 00000000h R/W Base + (08h-0Bh) 00000000h Attribute: Size: R/W 32 bits Bit Description Argument (A): Contains the command to be transmitted. Maps to bits 39:8 of the command format in the SD/MMC card specifications. 31:0 314 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.5 XFRMODE—Transfer Mode Register I/O Offset: Default Value: Default and Access 00h RO 0 RW Reserved CMC COMP ATA: Command Completion Signal Enable for CE-ATA Device 0 = Device will not send command completion signal 1 = Device will send command completion signal Multiple Block Select (MBS): Enables multiple block data transfers on the data bus. 0 = Single block transfers only 1 = Multi-block transfers allowed Data Direction (DATDIR): Defines the direction of data transfers. 0 = Write (Host to Client) 1 = Read (Client to Host) Reserved Auto CMD12 Enable (AC12EN): Multiple block transfers for memory require CMD12 be issued to stop the transaction. 2 0 R/W 0 = Do not automatically issue the CMD12 command after the last block transfer. 1 = Automatically issue the CMD12 command when the last block transfer is completed. Block Count Enable (BCE): This bit is only relevant for multi-block transfers. 0 = Disables the block counter 1 = Enables the block counter DMA Enable (DMAEN): DMA transfers may only be enabled if the DMA Support bit in the capabilities register is set. A DMA transfer begins with software writes to the upper bute of the DMA Address register 0 = Disable DMA transfers 1 = Enable DMA transfers Base + (0Ch-0Dh) 0000h Attribute: Size: R/O, R/W 16 bits Bit Description 15:7 6 5 0 R/W 4 0 R/W 0 RO 3 1 0 R/W 0 0 R/W Datasheet 315 SDIO/MMC (D30:F0, F1, F2) 15.3.6 XFRMODE—Transfer Mode Register I/O Offset: Default Value: Default and Access 00h RO 0 R/W Reserved Multiple Block Select (MBS): Enables multiple block data transfers on the data bus. 0 = Single block transfers only 1 = Multi-block transfers allowed Data Direction (DATDIR): Defines the direction of data transfers. 0 = Write (Host to Client) 1 = Read (Client to Host) Reserved Auto CMD12 Enable (AC12EN): Multiple block transfers for memory require CMD12 be issued to stop the transaction. 2 0 R/W 0 = Do not automatically issue the CMD12 command after the last block transfer. 1 = Automatically issue the CMD12 command when the last block transfer is completed. Block Count Enable (BCE): This bit is only relevant for multi-block transfers. 0 = Disables the block counter 1 = Enables the block counter DMA Enable (DMAEN): DMA transfers may only be enabled if the DMA Support bit in the capabilities register is set. A DMA transfer begins with software writes to the upper bute of the DMA Address register 0 = Disable DMA transfers 1 = Enable DMA transfers Base + (0Ch-0Dh) 0000h Attribute: Size: R/O, R/W 16 bits Bit Description 15:6 5 4 0 R/W 0 RO 3 1 0 R/W 0 0 R/W 316 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.7 CMD—Command Register I/O Offset: Default Value: Default and Access 00b RO 00h R/W Reserved Command Index (CMDIDX): Contain the command number (ex: CMD16, ACMD51, etc.) that is specified in bits 45:40 of the CommandFormat in the SD Memory Card Physical Layer and SDIO Card Specifications. Command Type (CT): 7:6 00b R/W 00b 01b 10b 11b = = = = Normal Suspend (CMD52 for writing “Bus Suspend” in CCCR) Resume Abort Base + (0Eh-0Fh) 0000h Attribute: Size: RO, R/W 16 bits Bit Description 15:14 13:8 Data Present Select (DPS): This bit is set to indicate that data is present and shall be transferred using SD_DAT. It is cleared for the following: 5 0 R/W • Commands using only CMD line (ex. CMD52). • Commands with no data transfer but using busy signal on DAT[0] (ex. CMD38) • Resume command Command Index Check Enable (CICE): This bit determines if the command and response index fields should be compared. 0 = Do not check the index field 1 = Compare the index fields of the command and response. If the indices do not match a Command Index Error is reported. Command CRC Check Enable (CCCE): Checks for errors in the CRC field in the response. 0 = Disable CRC field checking 1 = Check the CRC field for errors. If an error is detected, a Command CRC Error is reported. Reserved Response Length Select (RSPLENSEL) 1:0 00b R/W 00b 01b 10b 11b = = = = No Response Response length 136 Response length 48 Response length 48 (check busy after response) 4 0 R/W 3 0 R/W 2 0 R/W Datasheet 317 SDIO/MMC (D30:F0, F1, F2) 15.3.8 RESP—Response Register I/O Offset: Default Value: Base + (10h-1Fh) all zeros Attribute: Size: R/W 128 bits The Response Register holds the data content that was transmitted by the SDIO/MMC device to the host controller as part of its response to a command. Only specific portions of this 128-bit register are used at any one time depending on the type of response send from the client device. Default and Access 0s R/W Bit Description Command Response (RESP): Contains the content portion of a card’s response to commands issued from the SDIO/MMC host controller. 127:0 15.3.9 BUFDATA—Buffer Data Register I/O Offset: Default Value: Default and Access 00000000h R/W Base + (20h-23h) 00000000h Attribute: Size: R/W 32 bits Bit Description Buffer Data (BD): The Intel® SCH buffer data is accessed by this register. 31:0 15.3.10 PSTATE—Present State Register I/O Offset: Default Value: Base + (24h–27h) 00000000h Attribute: Size: RO, R/W, ROC 32 bits The PSTATE register indicates what SD_DAT[7:0] signal(s) are in use. Default and Access 00h RO 0 RO Reserved Command Level (CMDLVL): This bit reflects the state of the SDn_CMD signal. SD_DAT[3:0] Signal Level (D30LVL): The levels on these 4 bits mirror the levels of the corresponding SD_DAT bus signals: 23:20 0h RO Bit 23 22 21 20 Signal SD_DAT[3] SD_DAT[2] SD_DAT[1] SD_DAT[0] Bit Description 31:25 24 19 0 RO Write Protect (WP): This bit reflects the status of the SDn_WP signal used for memory cards. 0 = Write Enabled (SDn_WP = 0) 1 = Write Protected (SDn_WP = 1) 318 Datasheet SDIO/MMC (D30:F0, F1, F2) Bit Default and Access 0 RO Description Card Detect (CD): This bit reflects the inverted status of the SD_CD# signal. 0 = Card not detected (SD_ CD# = 1) 1 = Card detected (SD_CD# = 0) Card State Stable (CSS): This bit reflects the stability of the SD_CD# signal and can be used for testing. This state of this bit is not altered by the Software Reset register. 0 = SD_CD# is not stable 1 = SD_CD# is stable (either high or low) Card Inserted (CI): This bit indicates if a card has been inserted. A 0-to1 transition of this bit triggers a Card Insertion interrupt. Conversely, a 1-to-0 transition will trigger a Card Removal interrupt. This state of this bit is not altered by the Software Reset register. 18 17 0 RO 16 0 RO If a Card is removed while its power is on and its clock is oscillating, the host controller shall turn off the bus by clearing PWRCTL.BUSPWR and CLKCTL.CLKEN. The host controller should then clear SWRST.SRFA. The card detect is active regardless of the SD Bus Power. 0 = Reset/Debouncing/No Card 1 = Card Inserted 15:12 0h RO Reserved Buffer Read Enable (BRE): The status of this bit should be used for nonDMA reads. A 1-to-0 transition of this bit occurs when all the block data is read from the buffer. A 0-to-1 transition occurs when all the block data is ready in the buffer and generates a Buffer Read Ready interrupt. 0 = Read Disable. All blcok data has been read. 1 = Read Enable. Valid data exists in the host’s buffer. Buffer Write Enable (BUFWREN): The status of this bit should be used for non-DMA writes. This read-only flag indicates if space is available for write data. A 1-to-0 transition indicates all the block data has been written to the buffer. A 0-to-1 transition occurs when the top of block data can be written to the buffer and generates the Buffer Write Ready Interrupt. 0 = Write Disable 1 = Write Enable. Data may be written to the data buffer. Read Transfer Active (RTA) 0 = No data to transfer. The last data block has been received, or When all valid data blocks have been transferred to the system and no current block transfers are being sent as a result of the Stop At Block Gap Request set to 1. 1 = Transferring data. The end bit of a read command has been received, or the Continue Request bit of the BLKGAPCTL register was set. A 1-to-0 transition will cause a Transfer Complete interrupt to be generated. 11 0 ROC 10 0 ROC 9 0 ROC Datasheet 319 SDIO/MMC (D30:F0, F1, F2) Bit Default and Access Description Write Transfer Active (WTA) 0 = No valid write data exists in the host controller. This bit is cleared in either of the following cases: – After getting the CRC status of the last data block as specified by the transfer count – After getting a CRC status of any block where data transmission was stopped by a Stop At Block Gap 1 = Transferring data This bit is set in either of the following cases: – After the end bit of the write command. – When writing a 1 to Continue Request in the Block Gap Control register to restart a write transfer. Reserved DAT Line Active (DLA): Indicates if one of the SD_DAT lines is currently in use. 0 = SD_DATx is inactive 1 = SD_DATx is active DAT-Command Inhibit (DCI): This bit is set if either the DLA or RTA bits are set to 1. Clearing this bit sets NIS.TC. 0 = A command using the SD_DAT bus cannot be issued. 1 = A command using the SD_DAT bus can be issued. Command Inhibit (CI). 0 = Indicates SD_CMD is not in use and that the host controller may issue a command using the SD_CMD signal. 1 = The controller cannot issue a commend because of a command conflict error or because of a Command Not Issued By AutoCMD12 Error. 8 0 ROC 7:3 0h 0 ROC 2 1 0 ROC 0 0 ROC 320 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.11 HOSTCTL—Host Control Register I/O Offset: Default Value: Default and Access 0000b RO 0 R/W Reserved 8-bit MMC Support (MMC8): If set, (and bit 1 = 0) the Intel® SCH supports 8-bit MMC. When cleared the Intel® SCH does not support this feature High Speed Enabled (HSEN): High-speed mode will cause to the controller to drive SD_CMD and SD_DAT[7:0] at the rising edge of SD_CLK. Default mode is to output at the falling edge of SD_CLK for normal speed operation. 0 = Normal Speed Mode 1 = High Speed Mode 0 R/W Data Transfer Width (DTW): If SD8M is 0, this bit will determine the final width of the data transfers on SD_DAT[7:0]. 0 = 1-bit mode 1 = 4-bit mode LED Control (LEDCTL): This bit turns the external LED on or off. 0 = LED is off 1 = LED is on Base + 28h 00h Attribute: Size: RO, R/W 8 bits Bit Description 7:4 3 2 0 R/W 1 0 0 R/W 15.3.12 PWRCTL—Power Control Register I/O Offset: Default Value: Default and Access 0h RO 000b R/W 0 R/W Reserved SD Bus Voltage Select (VSEL): Only 111b (3.3 V) may be written to these bits. Other values will be ignored. SD Bus Power Enable (PWREN) 0 = The SD Bus is not powered 1 = The SD Bus is powered Base + (29h) 00h Attribute: Size: RO, R/W 8 bits Bit Description 7:4 3:1 0 Datasheet 321 SDIO/MMC (D30:F0, F1, F2) 15.3.13 BLKGAPCTL—Block Gap Control Register I/O Offset: Default Value: Default and Access 0h RO Reserved Interrupt At Block Gap: This bit is valid only in 4-bit mode of the SDIO card and selects a sample point in the interrupt cycle. Setting to 1 enables interrupt detection at the block gap for a multiple block transfer. Setting to 0 disables interrupt detection during a multiple block transfer. If the SD card cannot signal an interrupt during a multiple block transfer, this bit should be set to 0. When the Host Driver detects an SD card insertion, it shall set this bit according to the CCCR of the SDIO card. Read Wait Control (RWC): If the card supports read wait, set this bit to enable use of the read wait protocol to stop read data using the DAT[2] line. Otherwise the Intel® SCH stops SD Clock to hold read data. When software detects an card insertion, if the card does not support read wait, this bit shall never be set. If this bit is cleared, Suspend/Resume cannot be supported. Continue Request (CR): This bit is used to restart a transaction which was stopped using the SBC bit. To cancel stop at the block gap, clear SBC to 0 and set this bit to restart the transfer. Intel® SCH automatically clears this bit in either of the following cases: 1 0 R/W • Read transaction: PS.DLA changes from 0 to 1 as a read transaction restarts. • Write transaction: PS.WTA changes from 0 to 1 as the write transaction restarts. It is not necessary for software to clear this bit. If SR is set, any write to this bit is ignored. Stop Request (SR): This is used to stop executing a transaction at the next block gap for both DMA and non-DMA transfers. Until the Transfer Complete is set to 1, indicating a transfer completion software shall leave this bit set to 1. Clearing both this bit and CR shall not cause the transaction to restart. RWC is used to stop the read transaction at the block gap. Intel® SCH shall honor this bit for write transfers, but for read transfers it requires that the card support Read Wait. Software shall not set this bit during read transfers unless the card supports Read Wait and has set RWC. In the case of write transfers in which software writes data to the Buffer Data Port register, software shall set this bit after all block data is written. If set, software shall not write data to Buffer Data Port register. This bit affects PS.RTA, PS.WTA, PS.DLA and Command Inhibit (DAT) in the Present State register. Base + (2Ah) 00 Attribute: Size: RO, R/W 8 bits Bit Description 7:4 3 0 R/W 2 0 R/W 0 0 R/W 322 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.14 WAKECTL—Wake Control Register I/O Offset: Default Value: Default and Access 00h RO Reserved Card Removal Enable (CRME): FN_WUS (Wake Up Support) in CIS does not effect this bit. 0 = Wakeup events will not be triggered due to a card removal interrupt. 1 = Enables wakeup event when a Card Removed interrupt is detected (NINTSTS.CR). Card Insertion Enable (CINE): FN_WUS (Wake Up Support) in CIS does not effect this bit. 0 = Wakeup events will not be triggered due to a card insertion interrupt. 1 = Enables wakeup event when a Card Insertion interrupt is detected (NINTSTS.CIN). Card Interrupt Enable (CIE): When set, enables wakeup event by Card Interrupt assertion in the Normal Interrupt Status register. This bit can be set to 1 if FN_WUS (Wake Up Support) in CIS is set to 1. 0 = Wakeup events will not be triggered due to a card interrupt. 1 = Enables wakeup event with a Card Interrupt is detected (NINTSTS.CI). Base + 2Bh 00h Attribute: Size: RO, R/W 8 bits Bit Description 7:3 2 0 R/W 1 0 R/W 0 0 R/W Datasheet 323 SDIO/MMC (D30:F0, F1, F2) 15.3.15 CLKCTL—Clock Control Register I/O Offset: Default Value: Default and Access Base + (2Ch-2Dh) 00h Attribute: Size: RO, R/W 16 bits Bit Description Frequency Divisor (FD): This register is used to select the final frequency of SDCLK pin. The value of these bits determines a divisor to be applied to the Base Clock Frequency (found in the Capabilities register). Only the following settings are allowed: 80h 40h 20h 10h 08h 04h 02h 01h 00h divide by 256 divide by 128 divide by 64 divide by 32 divide by 16 divide by 8 divide by 4 divide by 2 Base clock (10 MHz – 63 MHz) 15:8 00h R/W When setting multiple bits, the most significant bit is used as the divisor. The two default divider values can be calculated by the frequency that is defined by the Base Clock Frequency For SD Clock in the Capabilities register. At the initialization of the controller, these bits will be set according to the Capabilities register. 7:3 0h RO 0 R/W Reserved Clock Enable (CLKEN) 0 = SD_CLK is disabled. The controller clears this bit if no card is detected. 1 = SD_CLK is enabled. The FD bits may not be changed. Internal Clock Stable (ICS): This bit is set to 1 when SD Clock is stable after writing to Internal Clock Enable in this register to 1. The SD Host Driver shall wait to set SD Clock Enable until this bit is set to 1. This is useful when using PLL for a clock oscillator that requires setup time. Internal Clock Enable (ICE): This bit is set to 0 when the Host Driver is not using the Host Controller or the Host Controller awaits a wakeup interrupt. The Host Controller should stop its internal clock to go very low power state. Still, registers shall be able to be read and written. Clock starts to oscillate when this bit is set to 1. When clock oscillation is stable, the Host Controller shall set in this register to 1. This bit shall not effect card detection. 2 1 0 RO 0 0 R/W 324 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.16 TOCTL—Timeout Control Register I/O Offset: Default Value: Default and Access 0h RO Reserved Data Timeout Counter Value (DTCV): This value determines the interval by which SD_DAT line timeouts are detected. Refer to the Data Timeout Error in the Error Interrupt Status register for information on factors that dictate timeout generation. Timeout clock frequency will be generated by dividing the base clock TMCLK value by this value. When setting this register, prevent inadvertent timeout events by clearing the Data Timeout Error Status Enable (in the Error Interrupt Status Enable register). 0h R/W Bit Code 1111b 1110b --0001b 0000b Description Reserved TMCLK × 227 --TMCLK × 214 TMCLK × 213 Base + (2Eh) 00h Attribute: Size: RO, R/W 8 bits Bit Description 7:4 3:0 At the initialization of the controller, these bits will be set according to the Capabilities register. Datasheet 325 SDIO/MMC (D30:F0, F1, F2) 15.3.17 SWRST—Software Reset Register I/O Offset: Default Value: Default and Access 0h RO Reserved Software Reset for SD_DAT: The following registers and bits are cleared by this bit: Register Buffer Data (BUFDATA) All Buffer Read Enable Buffer Write Enable Read Transfer Active Write Transfer Active DAT Line Active Command Inhibit (DAT) Continue Request Stop At Block Gap Request Buffer Read Ready Normal Interrupt Status (NINTSTS) Buffer Write Ready DMA Interrupt Block Gap Event 0 R/W 0 R/W Reset CMD (RC). When set, the following bits are cleared: PSTATE.CI, NINTSTS.CC Reset All (ALL). This bit resets the entire host controller except the card detection circuit. Which includes the DMA system address and Buffer Data Port. 1 = The SD controller shall reset itself. Bits Base + (2F) 00h Attribute: Size: RO, R/W 8 bits Bit Description 7:3 2 0 RWAC Present State (PSTATE) Block Gap Control (BLKGAPCTL) 1 0 326 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.18 NINTSTS—Normal Interrupt Status Register I/O Offset: Default Value: Default and Access Base + (30h-31h) 0000h Attribute: Size: RO, R/WC 16 bits Bit Description Error Interrupt (EI): This bit allows the software to efficiently test for an error by checking this bit before scanning all bits in the Error Interrupt Status (ERINTSTS) register. 0 = No bits in ERINTSTS are set 0 = At least one bit in ERINTSTS has been set 15 0 RO 14:9 00h RO Reserved Card Interrupt (CI): This bit is cleared by resetting the SD card interrupt factor. In 1-bit mode, the Host Controller shall detect the Card Interrupt without SD Clock to support wakeup. In 4-bit mode, the card interrupt signal is sampled during the interrupt cycle, so there are some sample delays between the interrupt signal from the SD card and the interrupt to the Host System. It is necessary to define how to handle this delay. 8 0 RO When this status has been set and the Host Driver needs to start this interrupt service, Card Interrupt Status Enable in the Normal Interrupt Status Enable register shall be set to 0 in order to clear the card interrupt statuses latched in the Host Controller and to stop driving the interrupt signal to the Host System. After completion of the card interrupt service (it should reset interrupt factors in the SD card and the interrupt signal may not be asserted), set Card Interrupt Status Enable to 1 and start sampling the interrupt signal again. Card Removed (CRM): This bit is cleared by writing a 1 to it. 0 = Card state stable or debouncing. 1 = Card Removed. Set when PSTATE.CI is cleared. When software clears this bit (by writing a 1 to it), the status of the PSTATE.CI bit should be confirmed to ensure no card detect interrupts are missed. Card Insertion (CIN): This bit is cleared by writing a 1 to it. 0 = Card state stable or debouncing 1 = Card Inserted. Set when PSTATE.CI is set. When software clears this bit (by writing a 1 to it), the status of the PSTATE.CI bit should be confirmed to ensure no card detect interrupts are missed. Buffer Read Ready (BRR): Set when PSTATE.BRE is set. Buffer Write Ready (BWR): Set when PSTATE.BWE is set. DMA Interrupt: This status is set if the Host Controller detects the Host DMA Buffer boundary during transfer. Refer to the Host DMA Buffer Boundary in the Block Size register. Other DMA interrupt factors may be added in the future. This interrupt shall not be generated after the Transfer Complete. 7 0 R/WC 6 0 R/WC 5 4 0 R/WC 0 R/WC 3 0 R/WC Datasheet 327 SDIO/MMC (D30:F0, F1, F2) Bit Default and Access Description Block Gap Event (BGE): Operation of this bit is enabled if BLKGAPCTL.SR is set. 2 0 R/WC • Read: This bit is set at the falling edge of the DAT Line Active Status, when the transaction is stopped at SD Bus timing. The Read Wait must be supported in order to use this function. • Write: Set at the falling edge of Write Transfer Active Status (After getting CRC status at SD Bus timing. Transfer Complete (TC): This bit is set when a read/write transfer is completed. • Read: This bit is set at the falling edge of Read Transfer Active Status. There are two cases in which this interrupt is generated. The first is when a data transfer is completed as specified by data length (After the last data has been read to the Host System). The second is when data has stopped at the block gap and completed the data transfer by setting the Stop At Block Gap Request in the Block Gap Control register (After valid data has been read to the Host System). Refer to Section 3.10.3 for more details on the sequence of events. • Write: This bit is set at the falling edge of the DAT Line Active Status. There are two cases in which this interrupt is generated. The first is when the last data is written to the SD card as specified by data length and the busy signal released. The second is when data transfers are stopped at the block gap by setting Stop At Block Gap Request in the Block Gap Control register and data transfers completed. (After valid data is written to the SD card and the busy signal released). Refer to Section 3.10.4 for more details on the sequence of events. The table below shows that Transfer Complete has higher priority than Data Timeout Error. If both bits are set to 1, the data transfer can be considered complete. TC 0 0 1 Timeout Error 0 1 Don't Care Meaning of the status Interrupted by another factor Timeout occur during transfer Data transfer complete 1 0 R/WC 0 0 R/WC Command Complete (CC): This bit is set when get the end bit of the command response. (Except Auto CMD12) Refer to PSTATE.CI. The table below shows that ERINTSTS.CTE has higher priority than this bit. If both bits are set, the response was not received correctly. CC 0 1 X CMD Timeout Error Meaning of the status 0 Interrupted by another factor 0 Response received 1 Response not received within 64 SDCLK cycles. 328 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.19 ERINTSTS—Error Interrupt Status Register I/O Offset: Default Value: Default and Access 00h RO 0 R/WC Reserved Auto CMD12 Error (AC12): Occurs when detecting that one of the bits in AC12ES has been set. This bit is set not only on errors on Auto CMD12 occur but also when Auto CMD12 is not executed due to the previous command error. Current Limit Error (CL): By setting PC.BP, Intel® SCH is requested to supply power to the SD Bus. If Intel® SCH supports the Current Limit function, it can be protected from an invalid card by stopping power supply to the card in which case this bit indicates a failure status. Reading 1 means the Host Controller is not supplying power to SD card due to some failure. Reading 0 means that the Host Controller is supplying power and no error has occurred. The Host Controller may require some sampling time to detect the current limit. If the Host Controller does not support this function, this bit shall always be set to 0. Data End Bit Error: Occurs either when detecting 0 at the end bit position of read data which uses the DAT line or at the end bit position of the CRC Status. Data CRC Error: Occurs when detecting CRC error when transferring read data which uses the DAT line or when detecting the Write CRC status having a value of other than 010. Data Timeout Error (DTE): Occurs when detecting one of following timeout conditions: 4 0 R/WC • Busy timeout for R1b,R5b type • Busy timeout after Write CRC status • Write CRC Status timeout • Read Data timeout. 3 2 0 R/WC 0 R/WC Command Index Error (CIE): Occurs if a command index error occurs in the command response. Command End Bit Error (CEBE): Occurs when the end bit of a command response is 0. Command CRC Error (CCE): Command CRC Error is generated in two cases. 1 0 R/WC • If a response is returned and CTE is cleared, this bit is set when detecting a CRC error in the command response. • If Intel® SCH drives SD_CMD to 1, but detects 0 on the next SD_CLK edge, Intel® SCH aborts the command (stops driving CMD line) and sets this bit. CTE shall also be set. Command Timeout Error (CTE): Occurs only if no response is returned within 64 SDCLKs from the end bit of the command. If Intel® SCH detects a CMD line conflict, in which case Command CRC Error shall also be set, this bit shall be set and the command will be aborted. Base + (32h-33h) 0000h Attribute: Size: RO, R/WC 16 bits Bit Description 15:9 8 7 0 R/WC 6 0 R/WC 0 R/WC 5 0 0 R/WC Datasheet 329 SDIO/MMC (D30:F0, F1, F2) 15.3.20 NINTEN—Normal Interrupt Enable Register I/O Offset: Default Value: Base + (34h-35h) 0000h Attribute: Size: RO, R/W 16 bits These bits enable or mask the different normal interrupts. Default and Access 0 RO 00h RO Reserved: Hardcoded to 0. Reserved Card Interrupt Status Enable (CISE): This bit should be cleared before servicing a Card Interrupt, and then enabled after all interrupt requests from the card are serviced and cleared. 0 = Card Interrupt reporting is masked 1 = Card Interrupt reporting is enabled Card Removal Status Enable (CRSE) Card Insertion Status Enable (CISE) Buffer Read Ready Status Enable (BRSE) Buffer Write Ready Status Enable (BWSE) DMA Interrupt Status Enable (DISE) Block Gap Event Status Enable (BGSE) Transfer Complete Status Enable (TCSE) Command Complete Status Enable (CCSE) Bit Description 15 14:9 8 0 R/W 7 6 5 4 3 2 1 0 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 330 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.21 ERINTEN—Error Interrupt Enable Register I/O Offset: Default Value: Default and Access 00h RO 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC Reserved Auto CMD12 Error Enable Current Limit Error Enable Data End Bit Error Enable Data CRC Error Enable Data Timeout Error Enable Command Index Error Enable Command End Bit Error Enable Command CRC Error Enable Command Timeout Error Enable Base + (36h-37h) 0000h Attribute: Size: RO, R/WC 16 bits Bit Description 15:9 8 7 6 5 4 3 2 1 0 Datasheet 331 SDIO/MMC (D30:F0, F1, F2) 15.3.22 NINTSIGEN—Normal Interrupt Signal Enable Register I/O Offset: Default Value: Base + (38h-39h) 0000h Attribute: Size: RO, R/WC 16 bits This register is used to select which normal interrupt status is indicated to the Host System as the interrupt. These status bits all share the same 1 bit interrupt line. Setting any of these bits to 1 enables Interrupt generation. Default and Access 00h RO 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W Reserved Card Interrupt Signal Enable Card Removal Signal Enable Card Insertion Signal Enable Buffer Read Ready Signal Enable Buffer Write Ready Signal Enable DMA Interrupt Signal Enable Block Gap Event Signal Enable Transfer Complete Signal Enable Command Complete Signal Enable Bit Description 15:9 8 7 6 5 4 3 2 1 0 332 Datasheet SDIO/MMC (D30:F0, F1, F2) 15.3.23 ERINTSIGEN—Error Interrupt Signal Enable Register I/O Offset: Default Value: Base + (3Ah-3Bh) 0000h Attribute: Size: RO, R/WC 16 bits This register is used to select which interrupt status is notified to the Host System as the Interrupt. These status bits all share the same 1-bit interrupt line. Setting any of these bits to 1 enables interrupt generation. Non-reserved bits in this register are cleared by writing a 1 to them. Default and Access 0h RO 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC 0 R/WC Reserved Auto CMD12 Error Signal Enable Current Limit Error Signal Enable Data End Bit Error Signal Enable Data CRC Error Signal Enable Data Timeout Error Signal Enable Command Index Error Signal Enable Command End Bit Error Signal Enable Command CRC Error Signal Enable Command Timeout Error Signal Enable Bit Description 15:9 8 7 6 5 4 3 2 1 0 Datasheet 333 SDIO/MMC (D30:F0, F1, F2) 15.3.24 AC12ERRSTS—Automatic CMD12 Error Status Register I/O Offset: Default Value: Default and Access 00h RO 0 RO 00b RO 0 RO 0 RO 0 RO 0 RO 0 RO Reserved Command Not Issued Error (NCIE): When set, indicates than a command (without SD_DAT being used) was not executed due to an Index Error, End Bit Error, CRC Error, or Timeout Error. Reserved Index Error (IE): Occurs if the Command Index Error occurs in response to a command. End Bit Error (EBE): Occurs when the end bit if a command response is 0. CRC Error (CRCE): Occurs in a CRC error is detected in the command response. Timeout Error (TE): If no response is returned within 64 SD_CLK’s from the command end bit, this will be set. If set, IE, EBE, and CRCE have no meaning. Not Executed (NE): Indicates that an error has prevented the Intel® SCH from issuing the AutoCMD12 to stop a multiple-block transfer. If set, TE, IE, EBE, and CRCE have no meaning. Base + (3Ch-3Dh) 0000h Attribute: Size: RO 16 bits Bit Description 15:8 7 6:5 4 3 2 1 0 15.3.25 CAP—Capabilities Register I/O Offset: Default Value: Default and Access 00h RO 0 RO 0 RO 1 RO 0 RO 1 RO Reserved Support for 1.8 V (S18) 0 = indicates 1.8 V is not supported. Support for 3.0 V (S30) 0 = indicates 3.0 V is not supported. Support for 3.3 V (S33) 1 = indicates that 3.3 V is supported. Suspend/Resume Support (SRS) 1 = Suspend and Resume are not supported 0 = Suspend and Resume are supported DMA Support (DMA) 1 = indicates that DMA transfers are supported. Base + (40h-43h) 00000060h Attribute: Size: RO 32 bits Bit Description 63:27 26 25 24 23 22 334 Datasheet SDIO/MMC (D30:F0, F1, F2) Bit Default and Access 1 RO 000b RO High-Speed Support (HS) Description 21 20:18 1 = indicates that high-speed operation is supported. Reserved Max Block Length (MBL): The maximum block length is fixed by these bits. Function D30:F0 D30:F1 D30:F2 10 00 00 Bits Max Block Size 2048 bytes 512 bytes 512 bytes 17:16 desc RO 15:14 00b RO Reserved Base Clock Frequency for SD_CLK (BCF): This value indicates the base (maximum) clock frequency for the SD Clock. Unit values are 1 MHz. 13:8 30h RO If the real frequency is 16.5MHz, the lager value shall be set 01 0001b (17 MHz) because the Host Driver use this value to calculate the clock divider value (Refer to the SDCLK Frequency Select in the Clock Control register.) and it shall not exceed upper limit of the SD Clock frequency. The supported clock range is 10 MHz to 63 MHz. If these bits are all 0, the Host System has to get information using another method. 7 1 RO 0 RO Timeout Clock Unit (TCU): This bit shows the unit of base clock frequency used to detect Data Timeout Error. 0 = kHz, 1 = MHz 6 Reserved Timeout Clock Frequency (TCF): This bit shows the base clock frequency used to detect Data Timeout Error. The Timeout Clock Unit defines the unit of this fields value. Timeout Clock Unit =0 [kHz] unit: 1 kHz to 63 kHz Timeout Clock Unit =1 [MHz] unit: 1 MHz to 63 MHz Not 0 1 kHz to 63 kHz or 1 MHz to 63 MHz 5:0 30h RO Datasheet 335 SDIO/MMC (D30:F0, F1, F2) 15.3.26 MCCAP—Maximum Current Capabilities Register I/O Offset: Default Value: Default and Access 00h RO 00h RO 00h RO Reserved Maximum Current for 1.8 V 000 - Get Information from other sources Maximum Current for 3.0 V 000 - Get Information from other sources Maximum Current for 3.3 V 7:0 01h RO This field reports the max current that the power supply can deliver to the SDIO card. 01 = 4 mA is the max current that the controller can deliver. However, The Intel® SCH does not report the actual max current, software should ignore the max current value reported in this field. Base + (48h-4Bh) Attribute: 00000000 00000000h Size: RO 32 bits Bit Description 63:24 23:16 15:8 15.3.27 SLTINTSTS—Slot Interrupt Status Register I/O Offset: Default Value: Default and Access 0000h RO 0 RO Reserved Slot 0 Interrupt: Logical OR of the Interrupt Signal and Wakeup Signal. Base + (FCh-FDh) 0000h Attribute: Size: RO 16 bits Bit Description 15:1 0 15.3.28 HCVER—Host Controller Version Register I/O Offset: Default Value: Default and Access 00h RO 00h RO Base + (FEh–FFh) 0000h Attribute: Size: RO 16 bits Bit Description 15:8 7:0 Vendor Version Number (VVN): 00h indicates the first version. Specification Version Number (SVN): 00h indicates support for specification version 1.0. §§ 336 Datasheet SDIO/MMC (D30:F0, F1, F2) (This page intentionally left blank.) Datasheet 337 SDIO/MMC (D30:F0, F1, F2) (This page intentionally left blank.) 338 Datasheet Parallel ATA (D31:F1) 16 16.1 Parallel ATA (D31:F1) Functional Overview The Intel® SCH PATA interface supports only the primary channel, with one master and one slave device. Any writes to the secondary channel are ignored, and reads will return all ones, except for bit 7, which returns a 0. The Parallel ATA (PATA) controller in the Intel® SCH supports three types of data transfers: 1. Programmed I/O (PIO): A protocol used to transfer data between the processor as the ATA device. PIO allows transfer rates up to 16 MB/s. 2. Multi-word DMA: DMA protocol that resembles the DMA on the ISA bus. Allows transfer rates of up to 16 MB/s. 3. Ultra-DMA: Source synchronous DMA protocol that allows transfer rates of up to 100 MB/s. Table 45. Supported PATA Standards and Modes PATA Standard Transfer Modes Supported PIO Modes 0, 1, 2 ATA-1 (ATA, IDE) ATA-2, ATA-3 (EIDE, Fast ATA) ATA/ATAPI-4 (Ultra DMA, Ultra ATA) ATA/ATAPI-5 (Ultra-DMA, Ultra ATA) ATA/ATAPI-6 (Ultra-DMA, Ultra ATA) Single-word DMA Modes 0, 1, 2 Multi-word DMA Mode 0 PIO Modes 3,4 Multi-word DMA Modes 1,2 Ultra DMA Modes 0,1, 2 (a.k.a. Ultra DMA/33) Ultra DMA Modes 3, 4 (a.k.a. Ultra DMA/66) Ultra-DMA Mode 5 (a.k.a. Ultra DMA/100) Transfer Rate (MB/s) 3.3, 5.2, 8.3 2.1, 4.2, 8.3 4.2 11.1, 16.6 13.3, 16.6 16.7, 25.0, 33.3 44.4, 66.7 100 (reads) 89 (writes) 16.1.1 Programmed I/O Transfers The Programmed I/O (PIO) transfer method uses the processor to move data between an I/O port and main memory through individual operations. A typical sequence follows: • The processor programs the I/O device with a command. • Data is transferred (either as a series of PIO operations to the data port or as a DMA operation) • The I/O device asserts an interrupt when all data has been transferred. • The processor reads status information from the device. Datasheet 339 Parallel ATA (D31:F1) 16.1.1.1 ATA Port Decode Table 46 specifies the registers that effect the Intel® SCH hardware definition. The Data Register must be accessed using 16-bit or 32-bit I/O instructions. All other registers must be accessed using 8-bit I/O instructions. These following registers are implemented in the device. Table 46. ATA Command Block Registers (PATA_DCS1#) I/O Offset 00h 01h 02h 03h 04h 05h 06h 07h Function (Read) Data Error Sector Count Sector Number Cylinder Low Cylinder High Drive Status Function (Write) Data Features Sector Count Sector Number Cylinder Low Cylinder High Head Command Table 47. ATA Control Block Registers (PATA_DCS3#) I/O Offset 00h 01h 02h 03h Function (Read) Reserved Reserved Alt Status Device control Function (Write) Forward to LPC - Not claimed by IDE The command and control blocks are accessible at fixed I/O addresses. These blocks are decoded when CMD.IOSE is set. An access to these addresses results in the assertion of the appropriate chip select (PATA_DCS1# / PATA_DCS3#) and the command strobes (PATA_DIOR#, PATA_DIOW#). There are two I/O ranges: the Command Block, which corresponds to the PATA_DCS1# chip select, and the Control Block, which corresponds to the PATA_DCS3# chip select. The Command Block is an 8-byte range, while the control block is a 4-byte range. • Command Block Offset: 01F0h for Primary, 0170h for Secondary • Control Block Offset: 03F4h for Primary, 0374h for Secondary The secondary range, while active, does not result in cycles on the interface. 340 Datasheet Parallel ATA (D31:F1) 16.1.1.2 16.1.1.2.1 PIO Cycle Timings PIO Timing Modes An ATA transaction consists of startup latency, cycle latency, and shutdown latency. • Startup latency provides the setup time for chip select and address pins with respect to the read and write strobes. • Cycle latency consists of the I/O strobe assertion length and recovery time. Recovery time is provided so that transactions may occur back to back on the interface without incurring additional startup and shutdown latency. • Shutdown latency is incurred after an outstanding transaction has completed and before another transaction can proceed (such as one to a different address). It provides hold time on the chip select and address pins with respect to the read and write strobes. Accesses to the data port are the only accesses where multiple cycle latency cycles may run under a single startup and shutdown latency. For non-data port and nonenhanced mode data port transactions, startup and shutdown latency are always incurred. The chip selects are assured to be deasserted for at least two ATA clocks after the deassertion of the I/O strobe for the last transaction and before the Startup latency of the next. 16.1.1.2.2 Wait States with PATA_IORDY If PATA_IORDY is deasserted when the initial sample point is reached, additional wait states are added. Since the rising edge of PATA_IORDY must be synchronized, at least two additional core clocks are added. 16.1.1.2.3 Write Posting The Intel® SCH absorbs I/O writes to the data port into a buffer when D0TIM.PPE is set. When the buffer is full, subsequent writes are held in wait-states. The buffer can accept writes of 16 bits, and will not accept data until it is completely empty. 16.1.1.2.4 Read Prefetch Read prefetch is enabled by setting bits in the PCI configuration register 40h: bit 2 for device 0 and bit 6 for device 1. A 32-bit buffer is provided per cable to pre-fetch from each data port. If pre-fetching is enabled, and the command is a “safe” read command, the sector will be pre-fetched. Pre-fetch is not initiated until the first data port read. Pre-fetches from the data port are scheduled as two back-to-back 16-bit reads on the interface. Words 255 and 256 of the sector are not pre-fetched to avoid fetching across a sector boundary. After the 256th word is read, pre-fetching resumes if a subsequent data port read occurs. If a write to byte 7 of the ATA command block occurs, the buffer is invalidated and pre-fetching is disabled. Datasheet 341 Parallel ATA (D31:F1) 16.1.1.3 16.1.1.3.1 Cycle Snooping Device Active Status The task file is shared between two devices on a single cable. Ownership is transferred between devices through a write to bit 4 of the Device/Head register (address 1F6h for primary, 176h for secondary). The Intel® SCH snoops this write so that it can run with the proper timings for that device. When cleared, the master or “device 0” owns the cable. When set, the slave or “device 1” owns the cable. The Intel® SCH only allows pre-fetching of 512-byte sectors, and certain devices. The Intel® SCH snoops writes to the command register. “Safe” read commands are defined in the table below. • 20h: Read Sector with Retry • 21h: Read Sector without Retry • C4h: Read Multiple Sectors 16.1.2 Multi-Word DMA Transfers In the multi-word DMA and Ultra DMA protocols, the Intel® SCH acts as a bus master to communicate with main memory, and transfers data to the device. The following terms are used for DMA transfers: • Read State: Data transfers from main memory to a device • Write State: Data transfers from a device to main memory. DMA transfers are performed as scatter-gather. Software builds a table of Physical Region Descriptors (PRDs) in memory that contains base memory addresses for the source or destination of data, and byte counts off that base address. Table 48 and Table 49 show the structure of PRD base address and descriptor information. The Intel® SCH fetches from this table and moves data between the device and memory location pointed to by the table. Each entry in the table is called a Physical Region Descriptor (PRD). Table 48. PRD Base Address Bit 31:0 Description Data Base Address (DBA): Indicates the 32-bit offset of the data block. NOTE: The memory region specified by the descriptor cannot cross a 64 KB boundary. Table 49. PRD Descriptor Information Bit 31 30:16 15:0 Description End of List (E): When set, indicates this is the last entry in the list. Intel® SCH stops processing entries at this point. Reserved Byte Count (BC): Indicates the length, in bytes, of the data block. Bit 0 of this structure must always be 0 to indicate an even number of bytes. Table 50 describes how to interpret the PATA Status Register bits after a DMA transfer has started. 342 Datasheet Parallel ATA (D31:F1) Table 50. Interrupt/Active Bit Interaction Int 0 1 Active 1 0 DMA transfer is in progress. The device generated an interrupt. The controller exhausted the PRD. Indicates the size of the PRD was equal to the device transfer size. The device generated an interrupt. The controller has not reached the end of the PRD. Indicates the size of the PRD was larger than the device transfer size. This is an error condition. The PRD's specified a smaller size than the device’s transfer size. Description 1 1 0 0 16.1.2.1 DMA Protocol To initiate a bus master transfer between memory and a PATA device, the following steps are required: 1. Software prepares a PRD table in system memory. The PRD table must be dwordaligned and must not cross a 64 KB boundary. 2. Software provides the starting address of the PRD Table by loading the PRD Table Pointer Register. The direction of the data transfer is specified by setting the Read/ Write Control bit. The interrupt bit and Error bit in the Status register are cleared. 3. Software issues the appropriate DMA transfer command to the disk device. 4. The bus master function is engaged by software writing a 1 to the Start bit in the Command Register. The first entry in the PRD table is fetched and loaded into two registers which are not visible by software, the Current Base and Current Count registers. These registers hold the current value of the address and byte count loaded from the PRD table. The value in these registers is only valid when there is an active command to an IDE device. 5. Once the PRD is loaded internally, the PATA device will receive a DMA acknowledge. 6. The controller transfers data to/from memory responding to DMA requests from the PATA device. The PATA device and the host controller may or may not throttle the transfer several times. When the last data transfer for a region has been completed on the IDE interface, the next descriptor is fetched from the table. The descriptor contents are loaded into the Current Base and Current Count registers. 7. At the end of the transfer, the PATA device signals an interrupt. 8. In response to the interrupt, software resets the Start/Stop bit in the command register. It then reads the controller status followed by the drive status to determine if the transfer completed successfully. The last PRD in a table has the End of List (EOL) bit set. The PCI bus master data transfers terminate when the physical region described by the last PRD in the table has been completely transferred. The active bit in the Status Register is reset and the DDRQ signal is masked. The buffer is flushed (when in the write state) or invalidated (when in the read state) when a terminal count condition exists; that is, the current region descriptor has the EOL bit set and that region has been exhausted. The buffer is also flushed (write state) or invalidated (read state) when the Interrupt bit in the Bus Master PATA Status register is set. Software that reads the status register and finds the Error bit reset, and either the Active bit reset or the Interrupt bit set, can be assured that all data destined for system memory has been transferred and that data is valid in system memory. Table 50 describes how to interpret the Interrupt and Active bits in the Status Register after a DMA transfer has started. Datasheet 343 Parallel ATA (D31:F1) 16.1.3 Synchronous (Ultra) DMA Transfers The Intel® SCH supports Ultra DMA/100/66/33 bus mastering protocol, providing support for a variety of transfer speeds with PATA devices. Ultra DMA mode 3 provides transfers up to 33 MB/s, Ultra DMA mode 4 provides transfers at up to 44 MB/s or 66 MB/s, and Ultra DMA mode 5 can achieve read transfer rates up to 100 MB/s and write transfer rates up to 88.9 MB/s. The Ultra DMA definition also incorporates a Cyclic Redundancy Checking (CRC-16) error checking protocol. 16.1.3.1 Operation Initial setup programming consists of enabling and performing the proper configuration of the Intel® SCH and the PATA device for Ultra DMA operation. For the Intel® SCH, this consists of enabling synchronous DMA mode and setting up appropriate Synchronous DMA timings. When ready to transfer data to or from an PATA device, the Bus Master PATA programming model is followed. Once programmed, the PATA device and the Intel® SCH controls the transfer of data by Ultra DMA protocol. The actual data transfer consists of three phases, a start-up phase, a data transfer phase, and a burst termination phase. The PATA device begins the start-up phase by asserting DMARQ signal. When ready to begin the transfer, the Intel® SCH asserts PATA_DMACK# signal. When PATA_DMACK# signal is asserted, the host controller drives CS0# and CS1# inactive, PATA_DA[2:0] low. For write cycles, the Intel® SCH deasserts STOP, waits for the PATA device to assert PATA_IORDY#, and then drives the first data word and STROBE signal. For read cycles, the Intel® SCH tri-states the PATA_DD lines, deasserts STOP, and asserts PATA_IORDY#. The PATA device then sends the first data word and STROBE. The data transfer phase continues the burst transfers with the data transmitter (Intel® SCH – writes, PATA device – reads) providing data and toggling STROBE. Data is transferred (latched by receiver) on each rising and falling edge of STROBE. The transmitter can pause the burst by holding STROBE high or low, resuming the burst by again toggling STROBE. The receiver can pause the burst by deasserting DMARDY# and resumes the burst by asserting DMARDY#. The Intel® SCH pauses a burst transaction to prevent an internal line buffer overflow or underflow condition, resuming once the condition has cleared. It may also pause a transaction if the current PRD byte count has expired, resuming once it has fetched the next PRD. The current burst can be terminated by either the transmitter or receiver. A burst termination consists of a Stop Request, Stop Acknowledge and transfer of CRC data. The Intel® SCH can stop a burst by asserting STOP, with the PATA device acknowledging by deasserting DMARQ. The PATA device stops a burst by deasserting DMARQ and the Intel® SCH acknowledges by asserting STOP. The transmitter then drives the STROBE signal to a high level. The Intel® SCH then drives the CRC value onto the DD lines and deassert DMACK#. The PATA device latches the CRC value on rising edge of DMACK#. The Intel® SCH terminates a burst transfer if it needs to service the opposite PATA channel, if a Programmed I/O (PIO) cycle is executed to the PATA channel currently running the burst, or upon transferring the last data from the final PRD. 344 Datasheet Parallel ATA (D31:F1) 16.1.3.2 Ultra DMA Timing The Cycle Time and Ready to Pause time for Ultra DMA modes are programmed by the D0TIM register. The Cycle Time represents the minimum pulse width of the data strobe (STROBE) signal. The Ready to Pause time represents the number of Base Clock periods that the Intel® SCH waits from deassertion of DMARDY# to the assertion of STOP when it desires to stop a burst read transaction. The internal Base Clock for Ultra DMA/100 (Mode 5) runs at 133 MHz, and the Cycle Time (CT) must be set for three Base Clocks. The Intel® SCH thus toggles the write strobe signal every 22.5 ns, transferring two bytes of data on each strobe edge. This means that the Intel® SCH performs Mode 5 write transfers at a maximum rate of 88.9 MB/s. For read transfers, the read strobe is driven by the PATA device, and the Intel® SCH supports reads at the maximum rate of 100 MB/s. 16.2 PCI Configuration Registers All of the PATA registers are in the core power well, and none of the registers can be locked. Any undefined registers in the PATA Register Address Map should be treated as Reserved. Table 51. PATA Register Address Map Offset 00h–03h 04h–05h 06h–07h 08h 09h–0Bh 0Ch 0Dh 20h–23h 2Ch–2Fh 3Ch–3Dh 60h–63h 80h–83h 84h–87h Mnemonic ID PCICMD PCISTS RID CC CLS MLT BMBAR SS INTR MC D0TIM D1TIM Register Name Identifiers Command Register Device Status Revision ID Class Codes Cache Line Size Master Latency Timer Bus Master Base Address Subsystem Identifiers Interrupt Information Miscellaneous Configuration Device 0 Timing Device 1 Timing Default 811A8086 0000h 0000h See Description 010180h 0000h 0000h 00000001h 00000000h See Description 00000000h 00000000h 00000000h Type RO RO, R/W RO RO RO RO RO RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W NOTE: Address locations that are not shown should be treated as Reserved. Datasheet 345 Parallel ATA (D31:F1) 16.2.1 ID—Identifiers Register Offset: Default Value: Default and Access 811Ah RO 8086h RO 00–03h 811A8086h Attribute: Size: RO 32 bits Bit Description 31:16 15:0 Device ID (DID): 811Ah indicates this is a PATA controller. Vendor ID (VID): 16-bit field which indicates the company vendor. 16.2.2 PCICMD—Command Register Offset: Default Value: Bit 15:11 Default and Access 00h RO 0 R/W 00h RO 0 R/W 0 0 R/W Reserved Interrupt Disable (ID) 0 = When cleared, IRQ14 may be asserted 1 = When set, IRQ14 is deasserted Reserved Bus Master Enable (BME): This bit controls the host controller’s ability to act as a master. Reserved I/O Space Enable (IOSE) 0 = Disable 1 = Enable. Access to the ATA ports and the DMA registers is enabled 04h–05h 0000h Attribute: Size: Description RO, R/W 16 bits 10 9:3 2 1 0 16.2.3 PCISTS—Device Status Register Offset: Default Value: Bit 15:4 Default and Access 00h RO 0 RO 000b RO Reserved Interrupt Status (IS): Reflects the state of interrupt at the input of the enable/disable circuit. This bit is a 1 when the interrupt is asserted. This bit is a 0 after the interrupt is cleared (independent of the state of the Interrupt Disable bit in the command register). Reserved 06h–07h 0000h Attribute: Size: Description RO 16 bits 3 2:0 346 Datasheet Parallel ATA (D31:F1) 16.2.4 RID—Revision ID Register Offset: Default Value: 08h see description Attribute: Size: RO, R/W 8 bits The value reported in this register comes from the RID register in the LPC bridge. Default and Access see description RO Bit Description 7:0 Revision ID: Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the value of the Revision ID Register. 16.2.5 CC—Class Code Register Offset: Default Value: Default and Access 01h RO 01h RO 80h RO 09h–0Bh 010180h Attribute: Size: RO 24 bits Bit Description Base Class Code (BCC): This field indicates that this is a mass storage device. Sub Class Code (SCC): This field indicates that this is a device. Programming Interface (PIP): 80h indicates this is a bus master. 23:16 15:8 7:0 16.2.6 CLS—Cache Line Size Register Offset: Default Value: Default and Access 0000h RO Reserved 0Ch 0000h Attribute: Size: RO 16 bits Bit Description 15:0 16.2.7 MLT—Master Latency Timer Register Offset: Default Value: Default and Access 0000h RO Reserved 0Dh 0000h Attribute: Size: RO 16 bits Bit Description 15:0 Datasheet 347 Parallel ATA (D31:F1) 16.2.8 BMBAR—Bus Master Base Address Register Offset: Default Value: 20h–23h 00000001h Attribute: Size: RO, R/W 32 bits This BAR is used to allocate I/O space for the SFF-8038i mode of operation (DMA). Bit 31:16 15:4 3:1 0 Default and Access 0000h RO 00h R/W 000b RO 1 RO Reserved Base Address (BA): This field is the base address of the I/O space (16, consecutive I/O locations). Reserved Resource Type Indicator (RTE): This bit indicates a request for I/O space. Description 16.2.9 SS—Sub System Identifiers Register Offset: Default Value: 2Ch–2Fh 00000000h Attribute: Size: RO, R/W 32 bits The value reported in this register comes from the value of the SS register in the LPC bridge. 16.2.10 INTR—Interrupt Information Register Offset: Default Value: Bit 15:8 3Ch–3Dh see description Attribute: Size: Description RO, R/W 16 bits Default and Access 00h RO 00h R/W Interrupt Pin (IPIN): Reserved Interrupt Line (ILINE): This field is a software written value to indicate which interrupt line (vector) the interrupt is connected to. No hardware action is taken on this register. 7:0 348 Datasheet Parallel ATA (D31:F1) 16.2.11 MC—Miscellaneous Configuration Register Offset: Default Value: 60h–63h 00000000h Attribute: Size: RO, R/W 32 bits This register provides global configuration parameters for the controller. Default and Access 0s RO 0 R/W 0 R/W Reserved Drive Bus to Ground (DBC) 0 = Pins are in their normal mode 1 = All PATA interface pins are driven to ground Tristate Bus (TB) 0 = Pins are in their normal mode 1 = All PATA interface pins are tri-stated. Base Clock Lower Half (BCLH): This bit determines the base clock to use when building counts. 0 = 100 MHz 1 = 133 MHz Bit Description 31:3 2 1 0 0 RW 16.2.12 D0TIM/D1TIM—Device 0/1 Timing Register Offset: Default Value: Bit Default and Access 0 R/W 0 R/W 0s RO D0TIM: 80h–83h D1TIM: 84h–87h 00000000h Attribute: Size: Description RO, R/W 32 bits Use Synchronous DMA (USD) 0 = Multi-word DMA modes are used for DMA transfers 1 = Synchronous DMA modes are used for DMA transfers Prefetch/Post Enable (PPE): When using PIO, this bit enables the prefetch/post buffer. Reserved 31 30 29:19 Datasheet 349 Parallel ATA (D31:F1) Bit Default and Access Description Ultra DMA Mode (UDM): This field indicates which timings to use when running synchronous DMA cycles to the device. 100 MHz timing: Intel® SCH Receiving Intel® SCH Driving Bits Mode tcyc trp tcyc 18:16 000b R/W 000 Mode 0 7 16 12 001 Mode 1 5 13 8 010 Mode 2 4 10 6 011 Mode 3 2 10 4 100 Mode 4 1 10 3 101 Mode 5 1 9 2 110–111 Reserved There are also fixed clock counts, regardless of DMA mode, that are used when starting and stopping transactions: MC.BC 00 01 10 11 tENV 3 4 4 4 tLI 0 0 0 0 tMLI 3 4 4 4 tSS 6 7 8 9 15:10 000000b RO Reserved Mutli-word DMA Mode (MDM): This field indicates which timings to use when running multi-word DMA cycles to the device. 9:8 00b R/W Bits 00 01 10 11 Reserved Mode Mode 0 Mode 1 Mode 2 100 MHz Clock stb 22 8 7 Reserved Rec 26 7 5 7:3 00000b PIO Mode (PM): This filled indicates which timings to use when running PIO cycles to the dataport. Bits 000b R/W 000 001 010 011 100 111 Mode Register Mode 0 Mode 1 Mode 2 Mode 3 Mode 4 Reserved Startup 7 7 5 3 3 3 Strobe 29 17 13 10 8 7 Recovery 24 37 21 11 7 3 100 MHz Timings 2:0 350 Datasheet Parallel ATA (D31:F1) 16.3 I/O Registers Intel® SCH uses 16 bytes of I/O space, allocated by BMBAR. Reading reserved bits returns an indeterminate, inconsistent value, and writes to reserved bits have no effect. Table 52. PATA Memory-Mapped I/O Register Address Map Offset 00h 02h 04h 10h 12h 14h Mnemonic PCMD PSTS PDTP SCMD SSTS SDTP Register Name Primary Command Primary Status Primary Data Table Pointer Secondary Command Secondary Status Secondary Data Table Pointer See Note Default 00h 00h See description Access RO, R/W RO, R/W, R/WC RO, R/W NOTE: The secondary registers are available, but provide no functionality. 16.3.1 PCMD—Primary Command Register Offset: Default Value: Default and Access 0000b RO Reserved Read/Write (RWC): This bit sets the direction of the bus master transfer: This bit must not be changed when the bus master function is active. 0 = Memory to device 1 = Device to memory Reserved Start/Stop Bus Master (START): This bit, when set, enables bus master operation of the controller. All state information is lost when this bit is cleared. Master mode operation cannot be paused. If this bit is reset while bus master operation is still active and the device has not yet finished its data transfer, the bus master command is said to be aborted. 00h 00h Attribute: Size: RO, R/W 8 bits Bit Description 7:4 3 0 R/W 2:1 00b RO 0 0 R/W Datasheet 351 Parallel ATA (D31:F1) 16.3.2 PSTS—Primary Status Register Offset: Default Value: Default and Access 0 RO 0 R/W 0 R/W 00b RO 0 R/WC 0 RO 0 RO Reserved Device 1 DMA Capable (D1DC): A scratchpad bit set by device dependent code to indicate that device 1 of this channel is capable of DMA transfers. This bit has no effect on hardware. Device 0 DMA Capable (D0DC): A scratchpad bit set by device dependent code to indicate that device 0 of this channel is capable of DMA transfers. This bit has no effect on hardware. Reserved Interrupt (I): This bit is set when IDEIRQ goes active. When set, all data transferred from the device is valid at its destination. If cleared while the interrupt is still active, this bit remains cleared until another assertion edge is detected on the interrupt line. Error (ERR): Intel® SCH will never set this bit. Active (ACT): This bit is set by the host when PCMD.START is set, and cleared by the host when the last transfer for a region is performed, where EOT for that region is set in the region descriptor, and when PCMD.START is cleared and the controller has returned to an idle condition. 02h 00h Attribute: Size: RO, R/W, R/WC 8 bits Bit Description 7 6 5 4:3 2 1 0 16.3.3 PDTP—Primary Descriptor Table Pointer Register Offset: Default Value: Default and Access See description R/W 00b RO 04h see description Attribute: Size: RO, R/W 32 bits Bit Description Descriptor Base Address (DBA): This field corresponds to A[31:2]. This table must not cross a 64 KB boundary in memory. When read, the current value of the pointer is returned. Reserved 31:2 1:0 §§ 352 Datasheet LPC Interface (D31:F0) 17 17.1 LPC Interface (D31:F0) Functional Overview The LPC controller implements a low pin count interface that supports the LPC 1.1 specification: • LSMI# can be connected to any of the SMI capable GPIO signals. • The EC's PME# should connect it to GPE#. • The LPC controller's SUS_STAT# signal is connected directly to the LPCPD# signal. The LPC controller does not implement DMA or bus mastering cycles. The LPC bridge function of the Intel® SCH resides in PCI Device 31:Function 0. This function contains many other functional units, such as Interrupt controllers, Timers, Power Management, System Management, GPIO, RTC, and LPC Configuration Registers. This section contains the PCI configuration registers for the primary LPC interface. Power Management details are found in a separate chapter, and other ACPI functions (RTC, SMBus, GPIO, Interrupt controllers, Timers, etc.) can be found in the ACPI chapter. 17.1.1 Memory Cycle Notes For cycles below 16M, the LPC Controller will perform standard LPC memory cycles. For cycles targeting firmware, firmware memory cycles are used. Only 8-bit transfers are performed. If a larger transfer appears, the LPC controller will break it into multiple 8-bit transfers until the request is satisfied. If the cycle is not claimed by any peripheral (and subsequently aborted), the LPC Controller will return a value of all 1s to the processor. 17.1.2 TPM 1.2 Support The LPC interface supports accessing TPM 1.2 devices by LPC TPM START encoding. Memory addresses within the range FED40000h to FED4BFFFh will be accepted by the LPC bridge and sent on LPC as TPM special cycles. No additional checking of the memory cycle is performed. 17.1.3 FWH Cycle Notes The Intel® SCH has been designed to accommodate both LPC and FWH interfaces which allows the FWH interface signals to be communicated over the same set of pins as LPC. The FWH interface is designed to use an LPC-compatible start cycle, with a reserved cycle type code. This ensures that all LPC devices present on the shared interface will ignore cycles destined for the FWH, without becoming “confused” by the different protocol. If a flash device connects to LPC interface, it must be compliant with FWH specification 1.0e. The first BIOS commands issued to the LPC bus use the FWH instruction set and will not execute properly unless a FWH-compatible flash device is used. If the LPC controller receives any SYNC returned from the device other than short (0101), long wait (0110), or ready (0000) when running a FWH cycle, indeterminate results may occur. A FWH device is not allowed to assert an Error SYNC. Datasheet 353 LPC Interface (D31:F0) 17.1.4 LPC Output Clocks The Intel® SCH provides three output clocks to drive external LPC devices that may require a PCI-like clock (25 MHz or 33 MHz). The LPC output clocks operate at 1/4th the frequency of H_CLKIN[P/N]. LPC_CLKOUT0 should be used to provide clocking to the FWH boot device. Because LPC_CLKOUT0 is the first clock to be used in the system, configuring its drive strength is done by a strapping option on the RESERVED1 pin. (Refer to Table 3.) The buffer strengths of LPC_CLKOUT1 and LPC_CLKOUT2 default to 2-loads per clock and can be reprogrammed by the CMC by using the SoftStrap utility. Note: By default, the LPC clocks are only active when LPC bus transfers occur. Because of this behavior, LPC clocks must be routed directly to the bus devices; they cannot go through a clock buffer or other circuit that could delay the signal going to the end device. 17.2 Note: . PCI Configuration Registers Address locations that are not shown should be treated as Reserved. LPC Interface PCI Register Address Map Offset 00h–01h 02h–03h 04h–05h 06h–07h 08h 09h–0Bh 0Eh 2Ch–2Fh 40h–43h 44h–47h 48h–4Bh 4Ch–4Fh 54h–57h 58h–5Bh 5Ch–5Fh 60h–67h 68h D4h–D7h D8h–DBh F0h–F3h Mnemonic VID DID PCICMD PCISTS RID CC HEADTYP SS SMBASE GPIOBASE PM1BASE GPEBASE LPCS ACPI_CTL MC PIRQ[x]_RT SIRQ_CTL BDE BIOS_CTL RCBA Register Name Vendor Identification Device Identification PCI Command PCI Status Revision Identification Class Codes Header Type Sub System Identifiers SMBus Base Address GPIO Base Address PM1_BLK Base Address GPE1_BLK Base Address LPC Clock Control ACPI Control Miscellaneous Control PIRQ[A–H] Routing Control Serial IRQ Control BIOS Decode Enable BIOS Control Root Complex Base Address Default 8086h 8119h 0003h 0000h See register description 060100h 80h 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h 80h 00h FF000000h 00000100h 00000000h RO RO RO RO RO RO RO R/WO RO. R/W R/W, RO RO/ R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W R/W, RO RO, R/W RO, R/W RO, R/W Type Table 53. 354 Datasheet LPC Interface (D31:F0) 17.2.1 VID—Vendor Identification Register Offset: Default Value: Default and Access 8086h RO 00h–01h 8086h Attribute: Size: RO 16 bit Bit Description 15:0 Vendor ID: This is a 16-bit value assigned to Intel. 17.2.2 DID—Device Identification Register Offset: Default Value: Default and Access 8119h RO 02h–03h See bit description Attribute: Size: RO 16 bit Bit Description Device ID: This is a 16-bit value assigned to the Intel® SCH LPC bridge. 15:0 17.2.3 PCICMD—PCI COMMAND Register Offset: Default Value: Default and Access 0 RO 1 RO 1 RO Reserved Memory Space Enable (MSE): Memory space cannot be disabled on LPC. I/O Space Enable (IOSE): I/O space cannot be disabled on LPC. 04h–05h 0003h Attribute: Size: RO 16 bit Bit Description 15:3 1 0 17.2.4 PCISTS—PCI Status Register Offset: Default Value: Default and Access 0000h RO Reserved 06–07h 0000h Attribute: Size: RO 16 bit Bit Description 15:0 Datasheet 355 LPC Interface (D31:F0) 17.2.5 RID—Revision Identification Register Offset: Default Value: Default and Access RO 08h See bit description Attribute: Size: RO 8 bits Bit Description Revision ID: Refer to the Intel® System Controller Hub (Intel® SCH) Specification Update for the value of the Revision ID Register. 7:0 17.2.6 CC—Class Codes Register Offset: Default Value: Default and Access 06h RO 01h RO 00h RO 09h–0Bh 060100h Attribute: Size: RO 24 bits Bit Description 23:16 15:8 7:0 Base Class Code (BCC): This field indicates the device is a bridge device. Sub-Class Code (SCC): This field indicates the device is a PCI to ISA bridge. Programming Interface (PI): The LPC bridge has no programming interface. 17.2.7 HEADTYP—Header Type Register Offset: Default Value: Default and Access 1 RO 00h RO 0Eh 80h Attribute: Size: RO 8 bits Bit Description Multi-Function Device (MFD): This bit is 1 to indicate a multi-function device. Header Type (HTYPE): Identifies the header layout is a generic device. 7 6:0 356 Datasheet LPC Interface (D31:F0) 17.2.8 SS—Sub System Identifiers Register Offset: Default Value: 2Ch–2Fh 00000000h Attribute: Size: R/WO 32 bits This register is initialized to logic 0 by the assertion of RESET#. This register can be written only once after RESET# deassertion. Default and Access 0000h R/WO 0000h R/WO Bit Description Subsystem ID (SSID): This is written by BIOS. No hardware action taken. Subsystem Vendor ID (SSVID): This is written by BIOS. No hardware action is taken. 31:16 15:00 17.3 17.3.1 ACPI Device Configuration SMBASE—SMBus Base Address Register Offset: Default Value: Default and Access 0b R/W 0s RO 0s R/W 0s RO Enable (EN) 1 = Decode of the I/O range pointed to by the SMBASE.BA field is enabled. Reserved Base Address (BA): This field provides the 64 bytes of I/O space for SMBus Reserved 40h–43h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31 30:16 15:6 5:0 Datasheet 357 LPC Interface (D31:F0) 17.3.2 GPIOBASE—GPIO Base Address Register Offset: Default Value: Default and Access 0 R/W 0s RO 0s R/W 0s RO Enable (EN) 1 = Decode of the I/O range pointed to by the GPIOBASE.BA is enabled. Reserved Base Address (BA): This field provides the 64 bytes of I/O space for GPIO. Reserved 44h–47h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31 30:16 15:6 5:0 17.3.3 PM1BASE—PM1_BLK Base Address Register Offset: Default Value: Default and Access 0 R/W 0s RO 0s R/W 0s RO Enable (EN) 1 = Decode of the I/O range pointed to by the PM1BASE.BA is enabled. Reserved Base Address (BA): This field provides the 16 bytes of I/O space for PM1_BLK. Reserved 48–4Bh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31 30:16 15:4 3:0 358 Datasheet LPC Interface (D31:F0) 17.3.4 GPE0BASE—GPE0_BLK Base Address Register Offset: Default Value: 4Ch–4Fh 00000000h Attribute: Size: RO, R/W 32 bits For processor C-state microcode to function correctly, GPE0BASE must be located 16 bytes after PM1BASE. System BIOS has the responsibility to ensure these address are placed correctly. Default and Access 0 R/W 0s RO 0s R/W 0s RO Enable (EN) 1 = Decode of the IO range pointed to by the GPE0BASE.BA is enabled. Reserved Base Address (BA): This field provides the 64 bytes of I/O space for PM1_BLK Reserved Bit Description 31 30:16 15:6 5:0 17.3.5 LPCS—LPC Clock Control Register Offset: Default Value: 54h–57h 00000000h Attribute: Size: RO, R/W 32 bits The LPC Clock 2 and 1 are controlled using the SoftStrap software. Default and Access 0s RO 1 R/W 1 R/W 0s RO Reserved Clock 2 Enable (EN) 1 = Enabled. 0 = Disabled. Clock 1 Enable (EN) 1 = Enabled. 0 = Disabled. Reserved Bit Description 31:19 18 17 16:0 Datasheet 359 LPC Interface (D31:F0) 17.3.6 ACPI_CTL—ACPI Control Register Offset: Default Value: Default and Access 0s RO Reserved SCI IRQ Select (SCIS): This field specifies on which IRQ SCI will rout to. If not using APIC, SCI must be routed to IRQ9–11, and that interrupt is not sharable with SERIRQ, but is shareable with other interrupts. If using APIC, SCI can be mapped to IRQ20–23, and can be shared with other interrupts. Bits 2:0 001b R/W 000 001 010 011 SCI Map IRQ9 IRQ10 IRQ11 SCI Disabled Bits 100 101 110 111 SCI Map IRQ20 IRQ21 IRQ22 IRQ23 58h–5Bh 00000001h Attribute: Size: RO, R/W 32 bits Bit Description 31:3 When the interrupt is mapped to APIC interrupts 9, 10 or 11, APIC must be programmed for active-high reception. When the interrupt is mapped to APIC interrupts 20 through 23, APIC must be programmed for activelow reception. 17.3.7 MC - Miscellaneous Control Register Offset: Default Value: Default and Access 0s RO Reserved 5Ch–5Fh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:0 360 Datasheet LPC Interface (D31:F0) 17.4 17.4.1 Interrupt Control PIRQ[n]_ROUT—PIRQ[A,B,C,D] Routing Control Register Offset: PIRQA – 60h, PIRQB – 61h PIRQC – 62h, PIRQD – 63h PIRQE – 64h, PIRQF – 65h PIRQG – 66h, PIRQH – 67h 80h Attribute: RO, R/W Default Value: Default and Access Size: 8 bits Bit Description Interrupt Routing Enable (IRQEN) 0 = The corresponding PIRQ is routed to one of the ISA-compatible interrupts specified in bits[3:0]. 1 = The PIRQ is not routed to the 8259. NOTE: BIOS must program this bit to 0 during POST for any of the PIRQs that are being used. The value of this bit may subsequently be changed by the OS when setting up for I/O APIC interrupt delivery mode. Reserved 7 1 R/W 6:4 000b RO 17.4.2 SIRQ_CTL—Serial IRQ Control Register Offset: Default Value: Default and Access 0 R/W 0s RO 68h 00h Attribute: Size: RO, R/W 8 bits Bit Description Mode (MD): This bit must be set to ensure that the first action of Intel® SCH is a start frame. 0 = Intel® SCH is in quiet mode 1 = Intel® SCH is in continuous mode Reserved 7 6:0 Datasheet 361 LPC Interface (D31:F0) 17.5 17.5.1 FWH Configuration Registers FWH_IDSEL—FWH ID Select Register Offset: Default Value: Default and Access 0h RO D0h–D3h 00112233h Attribute: Size: RO, R/W 32 bits Bit Description F8-FF IDSEL (IF8): IDSEL to use in FWH cycle for range enabled by BDE.EF8. The Address ranges are: FFF80000h – FFFFFFFFh, FFB80000h – FFBFFFFFh and 000E0000h – 000FFFFFh F0-F7 IDSEL (IF0): IDSEL to use in FWH cycle for range enabled by BDE.EF0. The Address ranges are: FFF00000h – FFF7FFFFh, FFB00000h – FFB7FFFFh E8-EF IDSEL (IE8): IDSEL to use in FWH cycle for range enabled by BDE.EE8. The Address ranges are: FFE80000h – FFEFFFFFh, FFA80000h – FFAFFFFFh E0-E7 IDSEL (IE0): IDSEL to use in FWH cycle for range enabled by BDE.EE0. The Address ranges are: FFE00000h – FFE7FFFFh, FFA00000h – FFA7FFFFh D8-DF IDSEL (ID8): IDSEL to use in FWH cycle for range enabled by BDE.ED8. The Address ranges are: FFD80000h – FFDFFFFFh, FF980000h – FF9FFFFFh D0-D7 IDSEL (ID0): IDSEL to use in FWH cycle for range enabled by BDE.ED0. The Address ranges are: FFD00000h – FFD7FFFFh, FF900000h – FF97FFFFh C8-CF IDSEL (IC8): IDSEL to use in FWH cycle for range enabled by BDE.EC8. The Address ranges are: FFC80000h – FFCFFFFFh, FF880000h – FF8FFFFFh C0-C7 IDSEL (IC0): IDSEL to use in FWH cycle for range enabled by BDE.EC0. The Address ranges are: FFC00000h – FFC7FFFFh, FF800000h – FF87FFFFh 31:28 27:24 0h R/W 23:20 1h R/W 19:16 1h R/W 15:12 2h R/W 11:8 2h R/W 7:4 3h R/W 3:0 3h R/W 362 Datasheet LPC Interface (D31:F0) 17.5.2 BDE—BIOS Decode Enable Offset: Default Value: Default and Access 0b RO D4h–D7h 7F000000h Attribute: Size: RO, R/W 32 bits Bit Description F8–FF Enable (EF8): Enables decoding of BIOS range FFF80000h – FFFFFFFFh and FFB80000h – FFBFFFFFh. 0 = Disable 1 = Enable F0–F8 Enable (EF0): Enables decoding of BIOS range FFF00000h – FFF7FFFFh and FFB00000h – FFB7FFFFh. 0 = Disable 1 = Enable E8–EF Enable (EE8): Enables decoding of BIOS range FFE80000h – FFEFFFFFh and FFA80000h – FFAFFFFFh. 0 = Disable 1 = Enable E0–E8 Enable (EE0): Enables decoding of BIOS range FFE00000h – FFE7FFFFh and FFA00000h – FFA7FFFFh. 0 = Disable 1 = Enable D8–DF Enable (ED8): Enables decoding of BIOS range FFD80000h – FFDFFFFFh and FF980000h – FF9FFFFFh. 0 = Disable, 1 = Enable D0–D7 Enable (ED0): Enables decoding of BIOS range FFD00000h – FFD7FFFFh and FF900000h – FF97FFFFh. 0 = Disable 1 = Enable C8–CF Enable (EC8): Enables decoding of BIOS range FFC80000h – FFCFFFFFh and FF880000h – FF8FFFFFh. 0 = Disable 1 = Enable C0–C7 Enable (EC0): Enables decoding of BIOS range FFC00000h – FFC7FFFFh and FF800000h – FF87FFFFh. 0 = Disable 1 = Enable 31 30 1b R/W 29 1b R/W 28 1b R/W 27 1b R/W 26 1b R/W 25 1b R/W 24 1b R/W 000000h RO 23:00 Reserved Datasheet 363 LPC Interface (D31:F0) 17.5.3 BIOS_CTL—BIOS Control Register Offset: Default Value: Default and Access 0 RO Reserved Prefetch Enable (PFE) 0 = Disable. 1 = Enable BIOS prefetching. An access to BIOS causes a 64-byte fetch of the line starting at that region. Subsequent accesses within that region result in data being returned from the prefetch buffer. NOTE: The prefetch buffer is invalidated when this bit is cleared, or a BIOS access occurs to a different line than what is currently in the buffer. 7:2 000000b RO Reserved Lock Enable (LE): When set, setting the WP bit will cause SMIs. When cleared, setting the WP bit will not cause SMIs. Once set, this bit can only be cleared by a RESET#. 0 = Setting the BIOSWE will not cause SMIs. 1 = Enables setting the BIOSWE bit to cause SMIs. Once set, this bit can only be cleared by a RESET# 0 R/W Write Protect (WP): When set, access to BIOS is enabled for both read and write cycles. When cleared, only read cycles are permitted to BIOS. When written from a 0 to a 1 and LE is also set, an SMI# is generated. This ensures that only SMM code can update BIOS. D8h–DBh 00000100h Attribute: Size: RO, R/W 32 bits Bit Description 31:9 8 1 R/W 1 0 R/WLO 0 17.6 17.6.1 Root Complex Register Block Configuration RCBA—Root Complex Base Address Register Offset: Default Value: Default and Access 0 R/W 0 RO 0 R/W F0h–F3h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description Base Address (BA): Base Address for the root complex register block decode range. This address is aligned on a 16 kB boundary. Reserved Enable (EN) 1 = Enables the range specified in RCBA.BA to be claimed as the RCRB. 31:14 13:1 0 §§ 364 Datasheet ACPI Functions 18 ACPI Functions ACPI (Advanced Configuration and Power Interface) is an open industry specification co-developed by Compaq*, Intel, Microsoft*, Phoenix*, and Toshiba*. It establishes industry-standard interfaces for OS-directed configuration and power management on laptops, desktops, and servers. The Intel® SCH includes several internal ACPI devices: • Two Timers — An 8254 Timer — Precision Event Timer • Real Time Clock • Various Interrupt Controllers — Two, 8259 Programmable Interrupt Controllers — An Advanced Programmable Interrupt Controller (IOxAPIC) — A Serial Interrupt Controller • SMBus Controller 18.1 18.1.1 8254 Timer Overview The 8254 Timer is clocked by a 14.31818-MHz clock and contains three counters which have fixed uses. • Counter 0: System Timer • Counter 1: Refresh Request • Counter 2: Speaker Tone 18.1.1.1 Counter 0, System Timer This counter functions as the system timer by controlling the state of IRQ0 and is typically programmed for Mode 3 operation. The counter produces a square wave with a period equal to the product of the counter period (838 ns) and the initial count value. The counter loads the initial count value one counter period after software writes the count value to the counter I/O address. The counter initially asserts IRQ0 and decrements the count value by two each counter period. The counter negates IRQ0 when the count value reaches 0. It then reloads the initial count value and again decrements the initial count value by two each counter period. The counter then asserts IRQ0 when the count value reaches 0, reloads the initial count value, and repeats the cycle, alternately asserting and negating IRQ0. 18.1.1.2 Counter 1, Refresh Request Signal This counter is typically programmed for Mode 2 operation and impacts the period of the REF_TOGGLE bit in Port 61. Programming the counter to anything other than Mode 2 will result in undefined behavior for the REF_TOGGLE bit. Datasheet 365 ACPI Functions 18.1.1.3 Counter 2, Speaker Tone This counter typically programmed for Mode 3 operation. 18.1.2 Timer Programming The counter/timers are programmed in the following fashion: 1. Write a control word to select a counter 2. Write an initial count for that counter. 3. Load the least and/or most significant bytes (as required by Control Word bits 5, 4) of the 16-bit counter. 4. Repeat with other counters Only two conventions need to be observed when programming the counters. First, for each counter, the control word must be written before the initial count is written. Second, the initial count must follow the count format specified in the control word (least significant byte only, most significant byte only, or least significant byte and then most significant byte). A new initial count may be written to a counter at any time without affecting the counter's programmed mode. Counting will be affected as described in the mode definitions. The new count must follow the programmed count format. If a counter is programmed to read/write 2-byte counts, the following precaution applies: A program must not transfer control between writing the first and second byte to another routine which also writes into that same counter. Otherwise, the counter will be loaded with an incorrect count. The Control Word Register at port 43h controls the operation of all three counters. Several commands are available: • Control Word Command: Specifies which counter to read or write, the operating mode, and the count format (binary or BCD). • Counter Latch Command: Latches the current count so that it can be read by the system. The countdown process continues. • Read Back Command: Reads the count value, programmed mode, the current state of the OUT pins, and the state of the Null Count Flag of the selected counter. Table 54. Counter Operating Modes Mode 0 1 2 Function Out signal on end of count (=0) Hardware retriggerable oneshot Rate generator (divide by n counter) Square wave output Description Output is 0. When count goes to 0, output goes to 1 and stays at 1 until counter is reprogrammed. Output is 0. When count goes to 0, output goes to 1 for one clock time. Output is 1. Output goes to 0 for one clock time, then back to 1 and counter is reloaded. Output is 1. Output goes to 0 when counter rolls over, and counter is reloaded. Output goes to 1 when counter rolls over, and counter is reloaded, etc. Output is 1. Output goes to 0 when count expires for one clock time. Output is 1. Output goes to 0 when count expires for one clock time. 3 4 5 Software triggered strobe Hardware triggered strobe 366 Datasheet ACPI Functions 18.1.3 Reading From the Interval Timer It is often desirable to read the value of a counter without disturbing the count in progress. There are three methods for reading the counters: a simple read operation, counter Latch Command, and the Read-Back Command. Each is explained below. With the simple read and counter latch command methods, the count must be read according to the programmed format; specifically, if the counter is programmed for 2-byte counts, two bytes must be read. The two bytes do not have to be read in sequence (one right after the other). Read, write, or programming operations for other counters can be inserted between them. 18.1.3.1 Simple Read The first method is to perform a simple read operation. The counter is selected through port 40h (counter 0), 41h (counter 1), or 42h (counter 2). Note: Performing a direct read from the counter will not return a determinate value, because the counting process is asynchronous to read operations. However, in the case of counter 2, the count can be stopped by writing to NSC.TC2E. 18.1.3.2 Counter Latch Command The Counter Latch Command, written to port 43h, latches the count of a specific counter at the time the command is received. This command is used to ensure that the count read from the counter is accurate, particularly when reading a 2-byte count. The count value is then read from each counter's Count Register as was programmed by the Control Register. The count is held in the latch until it is read or the counter is reprogrammed. The count is then unlatched. This allows reading the contents of the counters on the fly without affecting counting in progress. Multiple Counter Latch Commands may be used to latch more than one counter. Counter Latch Commands do not effect the programmed mode of the counter in any way. If a Counter is latched and then, some time later, latched again before the count is read, the second Counter Latch Command is ignored. The count read will be the count at the time the first Counter Latch Command was issued. 18.1.3.3 Read Back Command The Read Back Command, written to port 43h, latches the count value, programmed mode, and current states of the OUT pin and Null Count flag of the selected counter or counters. The value of the counter and its status may then be read by I/O access to the counter address. The Read Back Command may be used to latch multiple counter outputs at one time. This single command is functionally equivalent to several counter latch commands, one for each counter latched. Each counter's latched count is held until it is read or reprogrammed. Once read, a counter is unlatched. The other counters remain latched until they are read. If multiple count Read Back Commands are issued to the same counter without reading the count, all but the first are ignored. The Read Back Command may additionally be used to latch status information of selected counters. The status of a counter is accessed by a read from that counter's I/O port address. If multiple counter status latch operations are performed without reading the status, all but the first are ignored. Datasheet 367 ACPI Functions Both count and status of the selected counters may be latched simultaneously. This is functionally the same as issuing two consecutive, separate Read Back Commands. If multiple count and/or status Read Back Commands are issued to the same counters without any intervening reads, all but the first are ignored. If both count and status of a counter are latched, the first read operation from that counter will return the latched status, regardless of which was latched first. The next one or two reads, depending on whether the counter is programmed for one or two type counts, return the latched count. Subsequent reads return unlatched count. 18.1.4 I/O Registers All registers are powered by the core power well. Table 55. I/O Register Map Port 40h 41h 42h 43h 50h 51h 52h N Register Name/Function Counter 0 Interval Time Status Byte Format Counter 1 Interval Time Status Byte Format Counter 2 Interval Time Status Byte Format Timer Control Word Register Counter 0 Counter Access Port Register Counter 1 Counter Access Port Register Counter 2 Counter Access Port Register Default Value 0UUUUUUUb 0UUUUUUUb 0UUUUUUUb UUh UUh UUh UUh Type RO RO RO WO R/W R/W R/W 368 Datasheet ACPI Functions 18.1.4.1 Counter [0..2] Interval Timer Status Byte Format Register Offset/Port: Default Value: 40h, 41h, 42h 0UUUUUUUb Attribute: Size: RO 8 bits Each counter's status byte can be read following a Read Back Command. If latch status is chosen (bit 4=0, Read Back Command) as a read back option for a given counter, the next read from the counter's Counter Access Ports Register (40h for counter 0, 41h for counter 1, and 42h for counter 2) returns the status byte. Default and Access 0 RO Counter OUT Pin State: 0 = OUT pin of the counter is 0 1 = OUT pin of the counter is 1 Count Register Status: This bit indicates when the last count written to the Count Register (CR) has been loaded into the counting element (CE). The exact time this happens depends on the counter mode, but until the count is loaded into the counting element (CE), the count value will be incorrect. 0 = Count has been transferred from CR to CE and is available for reading 1 = Null Count. Count has not been transferred from CR to CE and is not yet available for reading Read/Write Selection Status: These reflect the read/write selection made through bits[5:4] of the control register. The binary codes returned during the status read match the codes used to program the counter read/ write selection. 00 = Counter Latch Command 01 = Read/Write Least Significant Byte (LSB) 10 = Read/Write Most Significant Byte (MSB) 11 = Read/Write LSB then MSB Mode Selection Status: These bits return the counter mode programming. The binary code returned matches the code used to program the counter mode, as listed under the bit function above. 3:1 UUU RO 000 = Out signal on end of count (=0) 001 = Hardware retriggerable one-shot x10 = Rate generator (divide by n counter) x11 = Square wave output 100 4 Software triggered strobe 101 5 Hardware triggered strobe 0 U RO Countdown Type Status: This bit reflects the current countdown type. 0 = Binary countdown 1 = Binary coded decimal (BCD) countdown Bit Description 7 6 U RO 5:4 UU RO Datasheet 369 ACPI Functions 18.1.4.2 TCW—Timer Control Word Register Offset/Port: Default Value: 43h UUh Attribute: Size: WO 8 bits This register is programmed prior to any counter being accessed to specify counter modes. Following reset, the control words for each register are undefined and each counter output is 0. Each timer must be programmed to bring it into a known state. Default and Access Bit Description Counter Select (CS): The Counter Selection bits select the counter that the control word acts upon as shown below. The Read Back Command is selected when bits[7:6] are both 1. 00 = Counter 0 select 01 = Counter 1 select 10 = Counter 2 select 11 = Read Back Command Read/Write Select RWS): These bits are the read/write control bits. The actual counter programming is done through the counter port (40h for counter 0, 41h for counter 1, and 42h for counter 2). 00 = Counter Latch Command 01 = Read/Write Least Significant Byte (LSB) 10 = Read/Write Most Significant Byte (MSB) 11 = Read/Write LSB then MSB Counter Mode Selection (CMS): These bits select one of six possible modes of operation for the selected counter. 000 = Out signal on end of count (=0) 7:6 UU WO 5:4 UU WO 3:1 UUU WO 001 = Hardware retriggerable one-shot x10 = Rate generator (divide by n counter) x11 = Square wave output 100 = Software triggered strobe 101 = Hardware triggered strobe Binary/BCD Countdown Select (BCS): 0 U WO 0 = Binary countdown is used. The largest possible binary count is 216 1 = Binary coded decimal (BCD) count is used. The largest possible BCD count is 104 There are two special commands that can be issued to the counters through this register, the Read Back Command and the Counter Latch Command. When these commands are chosen, several bits within this register are redefined. These register formats are described in the following sections. 370 Datasheet ACPI Functions 18.1.4.3 TCW—Timer Control Word Register (Read Back Command) The Read Back Command is used to determine the count value, programmed mode, and current states of the OUT pin and Null count flag of the selected counter or counters. Status and/or count may be latched in any or all of the counters by selecting the counter during the register write. The count and status remain latched until read, and further latch commands are ignored until the count is read. Both count and status of the selected counters may be latched simultaneously by setting both bit 5 and bit 4 to 0. If both are latched, the first read operation from that counter returns the latched status. The next one or two reads, (depending on whether the counter is programmed for 1- or 2-byte counts) return a latched count. Subsequent reads return an unlatched count. Default and Access Bit 7:6 5 New Description Read Back Command: Must be “11” to select the Read Back Command Latch Count of Selected Counters: 0 = Current count value of the selected counters will be latched 1 = Current count will not be latched Latch Status of Selected Counters: 0 = Status of the selected counters will be latched 1 = Status will not be latched Counter 2 Select (C2S): When set to 1, Counter 2 count and/or status will be latched. Counter 1 Select (C1S): When set to 1, Counter 1 count and/or status will be latched. Counter 0 Select (C0S): When set to 1, Counter 0 count and/or status will be latched. Reserved 4 3 2 1 0 Datasheet 371 ACPI Functions 18.1.4.4 TCW—Timer Control Word Register (Counter Latch Command) This latches the current count value and is used to ensure the count read from the counter is accurate. The count value is then read from each counter's count register through the Counter Ports Access Ports Register (40h for Counter 0, 41h for Counter 1, and 42h for Counter 2). The count must be read according to the programmed format, i.e., if the counter is programmed for 2-byte counts, two bytes must be read. It is not necessary to read the two bytes in sequence. That is, the two bytes do not have to be read one right after the other (read, write, or programming operations for other counters may be inserted between the reads). If a counter is latched once and then latched again before the count is read, the second Counter Latch Command is ignored. Default and Access Bit Description Counter Selection: These bits select the counter for latching. If “11” is written, then the write is interpreted as a read back command. 7:6 00 = Counter 0 01 = Counter 1 10 = Counter 2 Counter Latch Command: Write “00” to select the Counter Latch Command. Reserved. Must be 0. 5:4 3:0 18.1.4.5 Counter Access Ports Register Offset/Port: Default Value: Default and Access 50h, 51h, 52h UUh Attribute: Size: R/W 8 bits Bit Description Counter Port: Each counter port address is used to program the 16-bit Count Register. The order of programming, either LSB only, MSB only, or LSB then MSB, is defined with the Interval Counter Control Register at port 43h. The counter port is also used to read the current count from the Count Register, and return the status of the counter programming following a Read Back Command. 7:0 Undefined R/W 372 Datasheet ACPI Functions 18.2 High Precision Event Timer The High Precision Event Timer (HPET) function provides a set of timers that to be used by the operating system for timing events. One timer block is implemented, containing one counter and three timers. 18.2.1 18.2.1.1 Functional Overview Non-Periodic Mode—All timers This mode can be thought of as creating a one-shot. When a timer is set up for nonperiodic mode, it generates an interrupt when the value in the main counter matches the value in the timer’s comparator register. As timers 1 and 2 are 32-bit, they will generate another interrupt when the main counter wraps. T0CV cannot be programmed reliably by a single 64-bit write in a 32-bit environment, unless only the periodic rate is being changed. If T0CV needs to be reinitialized, the following algorithm is performed: 1. 2. 3. 4. Set Set Set Set T0CC.TVS the lower 32 bits of T0CV T0CC.TVS the upper 32 bits of T0CV Every timer is required to support the non-periodic mode of operation. 18.2.1.2 Periodic Mode—Timer 0 only When set up for periodic mode, when the main counter value matches the value in T0CV, an interrupt is generated (if enabled). Hardware then increases T0CV by the last value written to T0CV. During run-time, T0CV can be read to find out when the next periodic interrupt will be generated. Software is expected to remember the last value written to T0CV. Example: If the value written to T0CV is 00000123h, then • • • • • An interrupt will be generated when the main counter reaches 00000123h T0CV will then be adjusted to 00000246h Another interrupt will be generated when the main counter reaches 00000246h T0CV will then be adjusted to 00000369h When the incremented value is greater than the maximum value possible for TnCV, the value will wrap around through 0. For example, if the current value in a 32-bit timer is FFFF0000h and the last value written to this register is 20000, then after the next interrupt the value will change to 00010000h. If software wants to change the periodic rate, it writes a new value to T0CV. When the timer’s comparator matches, the new value is added to derive the next matching point. If software resets the main counter, the value in the comparator’s value register must also be reset by setting T0CC.TVS. To avoid race conditions, this should be done with the main counter halted. The following usage model is expected: 1. 2. 3. 4. 5. Software Software Software Software Software clears GC.EN to prevent any interrupts clears the main counter by writing a value of 00h to it sets T0CC.TVS writes the new value in T0CV sets GC.EN to enable interrupts. Datasheet 373 ACPI Functions 18.2.1.3 Interrupts If each timer has a unique interrupt and the timer has been configured for edgetriggered mode, then there are no specific steps required. If configured to leveltriggered mode, then its interrupt must be cleared by software by writing a 1 back to the bit position for the interrupt to be cleared. Interrupts associated with the various timers have several interrupt mapping options. Software should mask GC.LRE when reprogramming HPET interrupt routing to avoid spurious interrupts. 18.2.1.3.1 Mapping Option #1: Legacy Option (GC.LRE set) Setting the GC.LRE bit high forces the following mapping: Table 56. Legacy Timer Interrupt Mapping Timer 0 1 2 8259 Mapping IRQ0 IRQ8 T2C.IRQ APIC Mapping IRQ2 IRQ8 T2C.IRC Comment The 8254 timer will not cause any interrupts. RTC will not cause any interrupts. 18.2.1.3.2 Mapping Option #2: Standard Option (GC.LRE cleared) Each timer has its own routing control. The interrupts can be routed to various interrupts in the I/O APIC. TnC.IRC indicates which interrupts are valid options for routing. If a timer is set for edge-triggered mode, the timers should not be shared with any other interrupts. 18.2.2 Registers The HPET register space is memory mapped to a 1 KB block starting at address FED00000h. All registers are in the core well and reset by RESET#. Accesses that cross register boundaries result in undefined behavior. Offset/ Port 000h–007h 010h–017h 020h–027h 0F0h–0F7h 100h–107h 108h–10Fh 120h–127h 128h–12Fh 140h–147h 148h–14Fh Mnemonic GCID GCFG GIS MCV T0C T0CV T1C T1CV T2C T2CV Register General Capabilities and ID General Configuration General Interrupt Status Main Counter Value Timer 0 Configuration and Capabilities Timer 0 Comparator Value Timer 1 Configuration and Capabilities Timer 1 Comparator Value Timer 2 Configuration and Capabilities Timer 2 Comparator Value Default 0429B17F_8086A201h 0000000000000000h 0000000000000000h 0000000000000000h See Description 0000000000000000h See Description 0000000000000000h See Description 0000000000000000h Access RO RO, R/W RO, R/WC R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W 374 Datasheet ACPI Functions 18.2.2.1 GCID—General Capabilities and ID Register Offset/Port: Default Value: Default and Access 0429B17Fh RO 8086h RO 1 RO 0 RO 1 RO 02h RO 01h RO 000–007h Attribute: 0429B17F_8086A201h Size: RO 64 bits Bit Description Counter Tick Period (CTP): This field indicates a period of 69.841279 ns, (14.31818-MHz clock period). Vendor ID (VID): Value of 8086h indicates Intel Corporation. Legacy Rout Capable (LRC): This bit indicates support for Legacy Interrupt Rout. Reserved Counter Size (CS): This bit is set to indicate that the main counter is 64 bits wide. Number of Timers (NT): Indicates that 3 timers are supported. Revision ID (RID): Indicates that revision 1.0 of the specification is implemented. 63:32 31:16 15 14 13 12:8 7:0 18.2.2.2 GC—General Configuration Register Offset/Port: Default Value: Default and Access 0 RO Reserved Legacy Rout Enable (LRE): When set, interrupts will be routed as follows: 1 0 R/W • Timer 0 will be routed to IRQ0 in 8259 or IRQ2 in the I/O APIC • Timer 1 will be routed to IRQ8 in 8259 and I/O APIC • Timer 2 will be routed as per the routing in T2C When set, the TNC.IR will have no impact for timers 0 and 1. 0 R/W Overall Enable (EN): When set, the timers can generate interrupts. When cleared, the main counter will halt and no interrupts will be caused by any timer. For level-triggered interrupts, if an interrupt is pending when this bit is cleared, the GIS.Tx will not be cleared. 010–017h 00000000h Attribute: Size: RO, R/W 64 bits Bit Description 63:02 0 Datasheet 375 ACPI Functions 18.2.2.3 GIS—General Interrupt Status Register Offset/Port: Default Value: Default and Access 0 RO 0 R/WC 0 R/WC 0 R/WC Reserved Timer 2 Status (T2): Same functionality as T0, for timer 2. Timer 1 Status (T1): Same functionality as T0, for timer 1. Timer 0 Status (T0): In edge triggered mode, this bit always reads as 0. In level triggered mode, this bit is set when an interrupt is active. 020–027h 0s Attribute: Size: RO, R/WC 64 bits Bit Description 63:03 2 1 0 18.2.2.4 MCV—Main Counter Value Register Offset/Port: Default Value: Default and Access 0 R/W 0F0–0F7h 0s Attribute: Size: R/W 64 bits Bit Description Counter Value (CV): Reads return the current value of the counter. Writes load the new value to the counter. Timers 1 and 2 return 0 for the upper 32-bits of this register. 63:0 376 Datasheet ACPI Functions 18.2.2.5 T[0:2]CC—Timer N Configuration and Capabilities Register Offset/Port: Default Value: Default and Access see description RO 0 RO RO 0 RO 0 R/W 100h, 120h, 140h see description Attribute: Size: RO, R/W 64 bits Bit Description Interrupt Rout Capability (IRC): This field indicates I/OxAPIC interrupts the timer can use: • Timer 0,1: 00f00000h. Indicates support for IRQ20, 21, 22, 23 • Timer 2: 00f00800h. Indicates support for IRQ11, 20, 21, 22, and 23 Reserved FSB Interrupt Delivery (FID): Not supported FSB Enable (FE): Not supported, since FID is not supported. Interrupt Rout (IR): This field indicates the routing for the interrupt to the IOxAPIC. If the value is not supported by this particular timer, the value read back will not match what is written. If GC.LRE is set, then Timers 0 and 1 have a fixed routing, and this field has no effect. Timer 32-bit Mode (T32M): When set, this bit forces a 64-bit timer to behave as a 32-bit timer. For timer 0, this bit will be read/write and default to 0. For timers 1 and 2, this bit is read only 0. Reserved Timer Value Set (TVS): This bit will return 0 when read. Writes will only have an effect for Timer 0 if it is set to periodic mode. Writes will have no effect for Timers 1 and 2. Timer Size (TS): 1 = 64-bit, timers 1 and 2. 0 = 32-bit. Set for timer 0. Cleared for 63:32 31:16 15 14 13:9 8 0 RO/R/W 0 RO 0 RO/R/W 0/1 RO 0/1 RO 0 RO/R/W 0 R/W 7 6 5 4 Periodic Interrupt Capable (PIC): When set, hardware supports a periodic mode for this timer’s interrupt. This bit is set for timer 0, and cleared for timers 1 and 2. Timer Type (TYP): If PIC is set, this bit is read/write, and can be used to enable the timer to generate a periodic interrupt. This bit is R/W for timer 0, and RO for timers 1 and 2. Interrupt Enable (IE): When set, enables the timer to cause an interrupt when it times out. When cleared, the timer count and generates status bits, but will not cause an interrupt. Timer Interrupt Type (IT): When cleared, interrupt is edge triggered. When set, interrupt is level triggered and will be held active until it is cleared by writing 1 to GIS.Tn. If another interrupt occurs before the interrupt is cleared, the interrupt remains active. Reserved 3 2 1 0 R/W 0 RO 0 Datasheet 377 ACPI Functions 18.2.2.6 T[0:2]CV—Timer N Comparator Value Register Offset/Port: Default Value: 108h, 128h, 148h 1s Attribute: Size: RO, R/W 64 bits Reads to this register return the current value of the comparator. The default value for each timer is all 1s for the bits that are implemented. Timer 0 is 64-bits wide. Timers 1 and 2 are 32-bits wide. Bit Description Timer Compare Value — R/W. Reads to this register return the current value of the comparator Timers 0, 1, or 2 are configured to non-periodic mode: Writes to this register load the value against which the main counter should be compared for this timer. • When the main counter equals the value last written to this register, the corresponding interrupt can be generated (if so enabled). • The value in this register does not change based on the interrupt being generated. Timer 0 is configured to periodic mode: 63:0 • When the main counter equals the value last written to this register, the corresponding interrupt can be generated (if so enabled). • After the main counter equals the value in this register, the value in this register is increased by the value last written to the register. As each periodic interrupt occurs, the value in this register will increment. When the incremented value is greater than the maximum value possible for this register (FFFFFFFFh for a 32-bit timer or FFFFFFFFFFFFFFFFh for a 64-bit timer), the value will wrap around through 0. For example, if the current value in a 32-bit timer is FFFF0000h and the last value written to this register is 20000, then after the next interrupt the value will change to 00010000h Default value for each timer is all 1s for the bits that are implemented. For example, a 32-bit timer has a default value of 00000000FFFFFFFFh. A 64-bit timer has a default value of FFFFFFFFFFFFFFFFh. 378 Datasheet ACPI Functions 18.3 18.3.1 8259 Interrupt Controller Overview The ISA-compatible interrupt controller (8259) incorporates the functionality of two 8259 interrupt controllers: a master and a slave. The following table shows how the cores are connected: Table 57. Master 8259 Input Mapping 8259 Input 0 1 2 3 4 5 6 7 Connected Pin/Function Internal Timer/Counter 0 output or Multimedia Timer #0 IRQ1 through SERIRQ Slave Controller INTR output IRQ3 through SERIRQ, PIRQx IRQ4 through SERIRQ, PIRQx IRQ5 through SERIRQ, PIRQx IRQ6 through SERIRQ, PIRQx IRQ7 through SERIRQ, PIRQx Table 58. Slave 8259 Input Mapping 8259 Input 0 1 2 3 4 5 6 7 Connected Pin/Function Inverted IRQ8# from internal RTC or HPET IRQ9 through SERIRQ, SCI, or PIRQx IRQ10 through SERIRQ, SCI, or PIRQx IRQ11 through SERIRQ, SCI, or PIRQx IRQ12 through SERIRQ, SCI, or PIRQx PIRQx IDEIRQ, SERIRQ, PIRQx PIRQx The slave controller is cascaded onto the master controller through master controller interrupt input 2. Interrupts can individually be programmed to be edge or level, except for IRQ0, IRQ2, IRQ8#. Active-low interrupt sources, such as the PIRQ#s, are internally inverted before being sent to the 8259. In the following descriptions of the 8259s, the interrupt levels are in reference to the signals at the internal interface of the 8259s, after the required inversions have occurred. Therefore, the term “high” indicates “active”, which means “low” on an originating PIRQ#. Datasheet 379 ACPI Functions 18.3.2 18.3.2.1 Interrupt Handling Generating The 8259 interrupt sequence involves three bits, from the IRR, ISR, and IMR, for each interrupt level. These bits are used to determine the interrupt vector returned, and status of any other pending interrupts. These bits are defined as follows: • Interrupt Request Register (IRR): Set on a low to high transition of the interrupt line in edge mode, and by an active high level in level mode. • Interrupt Service Register (ISR): Set, and the corresponding IRR bit cleared, when an interrupt acknowledge cycle is seen, and the vector returned is for that interrupt. • Interrupt Mask Register (IMR): Determines whether an interrupt is masked. Masked interrupts will not generate INTR. 18.3.2.2 Acknowledging The CPU generates an interrupt acknowledge cycle which is translated into an Interrupt Acknowledge Special Cycle to the Intel® SCH. The 8259 translates this cycle into two internal INTA# pulses expected by the 8259 cores. The 8259 uses the first internal INTA# pulse to freeze the state of the interrupts for priority resolution. On the second INTA# pulse, the master or slave will sends the interrupt vector to the processor with the acknowledged interrupt code. This code is based upon bits [7:3] of the corresponding ICW2 register, combined with three bits representing the interrupt within that controller. Table 59. Content of Interrupt Vector Byte Master,Slave Interrupt IRQ7,15 IRQ6,14 IRQ5,13 IRQ4,12 IRQ3,11 IRQ2,10 IRQ1,9 IRQ0,8 ICW2[7:3] Bits [7:3] Bits [2:0] 111 110 101 100 011 010 001 000 380 Datasheet ACPI Functions 18.3.2.3 Hardware/Software Interrupt Sequence 1. One or more of the Interrupt Request lines (IRQs) are raised high in edge mode, or seen high in level mode, setting the corresponding IRR bit. 2. The 8259 sends INTR active (high) to the CPU if an asserted interrupt is not masked. 3. The CPU acknowledges the INTR and responds with an interrupt acknowledge cycle. 4. Upon observing the special cycle the Intel® SCH converts it into the two cycles that the internal 8259 pair can respond to. Each cycle appears as an interrupt acknowledge pulse on the internal INTA# pin of the cascaded interrupt controllers. 5. Upon receiving the first internally generated INTA# pulse, the highest priority ISR bit is set and the corresponding IRR bit is reset. On the trailing edge of the first pulse, a slave identification code is broadcast internally by the master 8259 to the slave 8259. The slave controller uses these bits to determine if it must respond with an interrupt vector during the second INTA# pulse. 6. Upon receiving the second internally generated INTA# pulse, the 8259 returns the interrupt vector. If no interrupt request is present, the 8259 will return vector 7 from the master controller. 7. This completes the interrupt cycle. In AEOI mode the ISR bit is reset at the end of the second INTA# pulse. Otherwise, the ISR bit remains set until an appropriate EOI command is issued at the end of the interrupt subroutine. 18.3.3 Initialization Command Words (ICW) Before operation can begin, each 8259 must be initialized. In the Intel® SCH this is a four byte sequence to ICW1, ICW2, ICW3, and ICW4. The address for each 8259 initialization command word is a fixed location in the I/O memory space: 20h for the master controller, and A0h for the slave controller. 18.3.3.1 ICW1 A write to the master or slave controller base address with data bit 4 equal to 1 is interpreted as a write to ICW1. Upon sensing this write, Intel® SCH 8259 expects three more byte writes to 21h for the master controller, or A1h for the slave controller to complete the ICW sequence. 1. A write to ICW1 starts the initialization sequence during which the following automatically occur: a. b. c. d. e. Following initialization, an interrupt request (IRQ) input must make a low-tohigh transition to generate an interrupt The Interrupt Mask Register is cleared IRQ7 input is assigned priority 7 The slave mode address is set to 7 Special Mask Mode is cleared and Status Read is set to IRR. 18.3.3.2 ICW2 The second write in the sequence, ICW2, is programmed to provide bits [7:3] of the interrupt vector that will be released during an interrupt acknowledge. A different base is selected for each interrupt controller. Datasheet 381 ACPI Functions 18.3.3.3 ICW3 The third write in the sequence, ICW3, has a different meaning for each controller. • For the master controller, ICW3 is used to indicate which IRQ input line is used to cascade the slave controller. Within the Intel® SCH, IRQ2 is used. Therefore, bit 2 of ICW3 on the master controller is set to a 1, and the other bits are set to 0s. • For the slave controller, ICW3 is the slave identification code used during an interrupt acknowledge cycle. On interrupt acknowledge cycles, the master controller broadcasts a code to the slave controller if the cascaded interrupt won arbitration on the master controller. The slave controller compares this identification code to the value stored in its ICW3, and if it matches, the slave controller assumes responsibility for broadcasting the interrupt vector. 18.3.3.4 ICW4 The final write in the sequence, ICW4, must be programmed both controllers. At the very least, bit 0 must be set to a 1 to indicate that the controllers are operating in an Intel Architecture-based system. 18.3.4 Operation Command Words (OCW) These command words reprogram the Interrupt Controller to operate in various interrupt modes. • OCW1 masks and unmasks interrupt lines • OCW2 controls the rotation of interrupt priorities when in rotating priority mode, and controls the EOI function • OCW3 is sets up ISR/IRR reads, enables/disables the Special Mask Mode SMM, and enables/ disables polled interrupt mode. 18.3.5 18.3.5.1 Modes of Operation Fully Nested Mode In this mode, interrupt requests are ordered in priority from 0 through 7, with 0 being the highest. When an interrupt is acknowledged, the highest priority request is determined and its vector placed on the bus. Additionally, the ISR for the interrupt is set. This ISR bit remains set until: the CPU issues an EOI command immediately before returning from the service routine; or if in AEOI mode, on the trailing edge of the second INTA#. While the ISR bit is set, all further interrupts of the same or lower priority are inhibited, while higher levels will generate another interrupt. Interrupt priorities can be changed in the rotating priority mode. 18.3.5.2 Special Fully Nested Mode This mode will be used in the case of a system where cascading is used, and the priority has to be conserved within each slave. In this case, the special fully nested mode is programmed to the master controller. This mode is similar to the fully nested mode with the following exceptions: • When an interrupt request from a certain slave is in service, this slave is not locked out from the master's priority logic and further interrupt requests from higher priority interrupts within the slave will be recognized by the master and will initiate interrupts to the processor. In the normal nested mode, a slave is masked out when its request is in service. • When exiting the Interrupt Service routine, software has to check whether the interrupt serviced was the only one from that slave. This is done by sending a NonSpecific EOI command to the slave and then reading its ISR. If it is 0, a nonspecific EOI can also be sent to the master. 382 Datasheet ACPI Functions 18.3.5.3 Automatic Rotation Mode (Equal Priority Devices) In some applications, there are a number of interrupting devices of equal priority. Automatic rotation mode provides for a sequential 8-way rotation. In this mode, a device receives the lowest priority after being serviced. In the worst case, a device requesting an interrupt will have to wait until each of seven other devices are serviced at most once. There are two ways to accomplish automatic rotation using OCW2; the Rotation on Non-Specific EOI Command (R=1, SL=0, EOI=1) and the Rotate in Automatic EOI Mode which is set by (R=1, SL=0, EOI=0). 18.3.5.4 Specific Rotation Mode (Specific Priority) Software can change interrupt priorities by programming the bottom priority. For example, if IRQ5 is programmed as the bottom priority device, then IRQ6 will be the highest priority device. The Set Priority Command is issued in OCW2 to accomplish this, where: R=1, SL=1, and LO-L2 is the binary priority level code of the bottom priority device. In this mode, internal status is updated by software control during OCW2. However, it is independent of the EOI command. Priority changes can be executed during an EOI command by using the Rotate on Specific EOI Command in OCW2 (R=1, SL=1, EOI=1 and LO-L2=IRQ level to receive bottom priority. 18.3.5.5 Poll Mode Poll Mode can be used to conserve space in the interrupt vector table. Multiple interrupts that can be serviced by one interrupt service routine—do not need separate vectors if the service routine uses the poll command. Polled Mode can also be used to expand the number of interrupts. The polling interrupt service routine can call the appropriate service routine, instead of providing the interrupt vectors in the vector table. In this mode, the INTR output is not used and the microprocessor internal Interrupt Enable flip-flop is reset, disabling its interrupt input. Service to devices is achieved by software using a Poll Command. The Poll command is issued by setting P=1 in OCW3. The 8259 treats its next I/O read as an interrupt acknowledge, sets the appropriate ISR bit if there is a request, and reads the priority level. Interrupts are frozen from the OCW3 write to the I/O read. The byte returned during the I/O read will contain a 1 in bit 7 if there is an interrupt, and the binary code of the highest priority level in bits 2:0. 18.3.5.6 Edge and Level Triggered Mode In ISA systems this mode is programmed using bit 3 in ICW1, which sets level or edge for the entire controller. In the Intel® SCH, this bit is disabled and a new register for edge and level triggered mode selection, per interrupt input, is included. This is the Edge/Level control Registers ELCR1 and ELCR2. If an ELCR bit is 0, an interrupt request will be recognized by a low to high transition on the corresponding IRQ input. The IRQ input can remain high without generating another interrupt. If an ELCR bit is 1, an interrupt request will be recognized by a high level on the corresponding IRQ input and there is no need for an edge detection. The interrupt request must be removed before the EOI command is issued to prevent a second interrupt from occurring. In both the edge and level triggered modes, the IRQ inputs must remain active until after the falling edge of the first internal INTA#. If the IRQ input goes inactive before this time, a default IRQ7 vector will be returned. Datasheet 383 ACPI Functions 18.3.6 18.3.6.1 End of Interrupt (EOI) Normal EOI In Normal EOI, software writes an EOI command before leaving the interrupt service routine to mark the interrupt as completed. There are two forms of EOI commands: Specific and Non- Specific. When a Non-Specific EOI command is issued, the 8259 will clear the highest ISR bit of those that are set to 1. A non-specific EOI is the normal mode of operation of the 8259 within the Intel® SCH, as the interrupt being serviced currently is the interrupt entered with the interrupt acknowledge. When the 8259 is operated in modes which preserve the fully nested structure, software can determine which ISR bit to clear by issuing a Specific EOI. An ISR bit that is masked will not be cleared by a Non-Specific EOI if the 8259 is in the Special Mask Mode. An EOI command must be issued for both the master and slave controller. 18.3.6.2 Automatic EOI In this mode, the 8259 will automatically perform a Non-Specific EOI operation at the trailing edge of the last interrupt acknowledge pulse. From a system standpoint, this mode should be used only when a nested multi-level interrupt structure is not required within a single 8259. The AEOI mode can only be used in the master controller. 18.3.7 18.3.7.1 Masking Interrupts Masking on an Individual Interrupt Request Each interrupt request can be masked individually by the Interrupt Mask Register (IMR). This register is programmed through OCW1. Each bit in the IMR masks one interrupt channel. Masking IRQ2 on the master controller will mask all requests for service from the slave controller. 18.3.7.2 Special Mask Mode Some applications may require an interrupt service routine to dynamically alter the system priority structure during its execution under software control. For example, the routine may wish to inhibit lower priority requests for a portion of its execution but enable some of them for another portion. The Special Mask Mode enables all interrupts not masked by a bit set in the Mask Register. Normally, when an interrupt service routine acknowledges an interrupt without issuing an EOI to clear the ISR bit, the interrupt controller inhibits all lower priority requests. In the Special Mask Mode, any interrupts may be selectively enabled by loading the Mask Register with the appropriate pattern. The special Mask Mode is set by OCW3.SSMM and OCW3.SMM set, and cleared when OCW3.SSMM and OCW3.SMM are cleared. 384 Datasheet ACPI Functions 18.3.8 Steering of PCI Interrupts The Intel® SCH can be programmed to allow PIRQ[A:H]# to be internally routed to interrupts 3-7, 9-12, 14 or 15, through the PARC, PBRC, PCRC, PDRC, PERC, PFRC, PGRC, and PHRC registers in the chipset configuration section. One or more PIRQx# lines can be routed to the same IRQx input. The PIRQx# lines are defined as active low, level sensitive. When PIRQx# is routed to specified IRQ line, software must change the corresponding ELCR1 or ELCR2 register to level sensitive mode. The Intel® SCH will internally invert the PIRQx# line to send an active high level to the 8259. When a PCI interrupt is routed onto the 8259, the selected IRQ can no longer be used by an ISA device. 18.3.9 I/O Registers The interrupt controller registers are located at 20h and 21h for the master controller (IRQ0–7), and at A0h and A1h for the slave controller (IRQ8–13). These registers have multiple functions, depending upon the data written to them. Table 60 provides a description of the different register possibilities for each address. Table 60. 8259 I/O Register Mapping Port MICW1 20h MOCW2 MOCW3 MICW2 21h MICW3 MICW4 MOCW1 SICW1 A0h SOCW2 SOCW3 SICW2 A1h SICW3 SICW4 SOCW1 4D0h 4D1h ELCR1 E:CR2 Register Name/Function Master Init. Cmd Word 1 Master Op Ctrl Word 2 Master Op Ctrl Word 3 Master Init. Cmd Word 2 Master Init. Cmd Word 3 Master Init. Cmd Word 4 Master Op Ctrl Word 1 Slave Init. Cmd Word 1 Slave Op Ctrl Word 2 Slave Op Ctrl Word 3 Slave Init. Cmd Word 2 Slave Init. Cmd Word 3 Slave Init. Cmd Word 4 Slave Op Ctrl Word 1 Master Edge/Level Triggered Slave Edge/Level Triggered A5h, A9h, ADh, B1h, B5h, B9h, BDh A4h, A8h, ACh, B0h, B4h, B8h, BCh 25h, 29h, 2Dh, 31h, 35h, 39h, 3Dh 24h, 28h, 2Ch, 30h, 34h, 38h, 3Ch Aliases Datasheet 385 ACPI Functions 18.3.9.1 MICW1/SICW1—Master/Slave Initialization Command Word 1 Register Offset/Port: Default Value: Master: 20h Slave: A0h UUh Attribute: Size: WO 8 bits Initialization Command Word 1 starts the interrupt controller initialization sequence, during which the following occurs: • The Interrupt Mask register is cleared • IRQ7 input is assigned priority 7 • The slave mode address is set to 7 • Special Mask Mode is cleared and Status Read is set to IRR. Once this write occurs, the controller expects writes to ICW2, ICW3, and ICW4 to complete the initialization sequence. Default and Access Undefined WO Undefined WO Undefined WO Undefined WO Undefined WO Undefined WO Bit Description These bits are MCS-85 specific, and not needed. Should be programmed to “000”. ICW/OCW Select: This bit must be a 1 to select ICW1 and enable the ICW2, ICW3, and ICW4 sequence. Edge/Level Bank Select (LTIM): Disabled. Replaced by ELCR1 and ELCR2. ADI: Ignored for the Intel® SCH. Should be programmed to 0. Single or Cascade (SNGL): Must be programmed to a 0 to indicate two controllers operating in cascade mode. wICW4 Write Required (IC4): This bit must be programmed to a 1 to indicate that ICW4 needs to be programmed. 7:5 4 3 2 1 0 386 Datasheet ACPI Functions 18.3.9.2 MICW2/SICW2—Master/Slave Initialization Command Word 2 Register Offset/Port: Default Value: Master: 21h Slave: A1h UUh Attribute: Size: WO 8 bits MICW2 and SICW2 are used to initialize the master or slave interrupt controller with the five most significant bits of the interrupt vector address. The value programmed for bits[7:3] is used by the CPU to define the base address in the interrupt vector table for the interrupt routines associated with each IRQ on the controller. Typical ISA values are 08h for the MICW2 and 70h for the SICW2. Default and Access Undefined WO Bit Description Interrupt Vector Base Address: Bits [7:3] define the base address in the interrupt vector table for the interrupt routines associated with each interrupt request level input. Interrupt Request Level: When writing ICW2, these bits should all be 0. During an interrupt acknowledge cycle, these bits are programmed by the interrupt controller with the interrupt to be serviced. This is combined with bits 7:3 to form the interrupt vector driven onto the data bus during the second INTA# cycle. The code is a 3-bit binary code: Code 000 Master Interrupt IRQ0 IRQ1 IRQ2 IRQ3 IRQ4 IRQ5 IRQ6 IRQ7 Slave Interrupt IRQ8 IRQ9 IRQ10 IRQ11 IRQ12 IRQ13 IRQ14 IRQ15 7:3 2:0 Undefined WO 001 010 011 100 101 110 111 Datasheet 387 ACPI Functions 18.3.9.3 MICW3—Master Initialization Command Word 3 Register Offset/Port: Default Value: Default and Access Undefined WO Undefined WO Undefined WO 21h UUh Attribute: Size: WO 8 bits Bit Description 7:3 These bits must be programmed to 0. Cascaded Controller Connection (CCC): This bit must always be programmed to a 1 to indicate the slave controller for interrupts 8-15 is cascaded on IRQ2. These bits must be programmed to 0. 2 1:0 18.3.9.4 SICW3—Slave Initialization Command Word 3 Register Offset/Port: Default Value: Default and Access X WO 0 WO Reserved. Must be 0. Slave Identification Code: This field must be programmed to 02h to match the code broadcast by the master controller during the INTA# sequence. A1h 00h Attribute: Size: WO 8 bits Bit Description 7:3 2:0 388 Datasheet ACPI Functions 18.3.9.5 MICW4/SICW4—Master/Slave Initialization Command Word 4 Register Offset/Port: Default Value: Default and Access 0 WO 0 WO 0 WO 0 WO 0 WO Reserved. Must be 0. Special Fully Nested Mode (SFNM): Should normally be disabled by writing a 0 to this bit. If SFNM=1, the special fully nested mode is programmed. Buffered Mode (BUF): Must be cleared for non-buffered mode. Writing 1 will result in undefined behavior. Master/Slave in Buffered Mode (MSBM): Not used. Should always be programmed to 0. Automatic End of Interrupt (AEOI): This bit should normally be programmed to 0. This is the normal end of interrupt. If this bit is 1, the automatic end of interrupt mode is programmed. AEOI is discussed in Section 18.3.6.2. Microprocessor Mode (MM): This bit must be written to 1 to indicate that the controller is operating in an Intel Architecture-based system. Writing 0 will result in undefined behavior. Master: 21h Slave: A1h 00h Attribute: Size: WO 8 bits Bit Description 7:5 4 3 2 1 0 0 WO 18.3.9.6 MOCW1/SOCW1—Master/Slave Operational Control Word 1 (Interrupt Mask) Register Offset/Port: Default Value: Default and Access Master: 21h Slave: A1h 00h Attribute: Size: R/W 8 bits Bit Description Interrupt Request Mask (IRM): When a 1 is written to any bit in this register, the corresponding IRQ line is masked. When a 0 is written to any bit in this register, the corresponding IRQ mask bit is cleared, and interrupt requests will again be accepted by the controller. Masking IRQ2 on the master controller will also mask the interrupt requests from the slave controller. 7:0 00h R/W Datasheet 389 ACPI Functions 18.3.9.7 MOCW2/MOCW2—Master/Slave Operational Control Word 2 Register Offset/Port: Default Value: Master: 20h Slave: A0h 001UUUUUb Attribute: Size: WO 8 bits Following a part reset or ICW initialization, the controller enters the fully nested mode of operation. Non-specific EOI without rotation is the default. Both rotation mode and specific EOI mode are disabled following initialization. Default and Access Bit Description Rotate and EOI Codes: R, SL, EOI - These three bits control the Rotate and End of Interrupt modes and combinations of the two. A chart of these combinations is listed above under the bit definition. 000 = Rotate in Auto EOI Mode (Clear) 001 = Non-specific EOI command 7:5 001 WO 010 = No Operation 011 = *Specific EOI Command 100 = Rotate in Auto EOI Mode (Set) 101 = Rotate on Non-Specific EOI Command 110 = *Set Priority Command 111 = *Rotate on Specific EOI Command *L0 – L2 Are Used 4:3 Undefined WO OCW2 Select: When selecting OCW2, bits 4:3 = “00” Interrupt Level Select (L2, L1, L0): L2, L1, and L0 determine the interrupt level acted upon when the SL bit is active. A simple binary code, outlined above, selects the channel for the command to act upon. When the SL bit is inactive, these bits do not have a defined function; programming L2, L1 and L0 to 0 is sufficient in this case. Code 000 Interrupt Level IRQ0/8 IRQ1/9 IRQ2/10 IRQ3/11 IRQ4/12 IRQ5/13 IRQ6/14 IRQ7/15 2:0 Undefined WO 001 010 011 100 101 110 111 390 Datasheet ACPI Functions 18.3.9.8 MOCW3/SOCW3—Master/Slave Operational Control Word 3 Register Offset/Port: Default Value: Bit Default and Access 0 RO 0 WO Reserved. Must be 0. Special Mask Mode (SMM): If this bit is set, the Special Mask Mode can be used by an interrupt service routine to dynamically alter the system priority structure while the routine is executing, through selective enabling/ disabling of the other channel's mask bits. Bit 6, the ESMM bit, must be set for this bit to have any meaning. Enable Special Mask Mode (ESMM) 0 = SMM bit becomes a “don't care” 1 = SMM bit is enabled to set or reset the Special Mask Mode OCW3 Select (O3S): When selecting OCW3, bits 4:3 = “01”. Poll Mode Command (PMC): When cleared, poll command is not issued. When set, the next I/O read to the interrupt controller is treated as an interrupt acknowledge cycle. An encoded byte is driven onto the data bus, representing the highest priority level requesting service. Register Read Command (RRC): These bits provide control for reading the ISR and Interrupt IRR. When bit 1=0, bit 0 will not effect the register read selection. Following ICW initialization, the default OCW3 port address read will be “read IRR”. To retain the current selection (read ISR or read IRR), always write a 0 to bit 1 when programming this register. The selected register can be read repeatedly without reprogramming OCW3. To select a new status register, OCW3 must be reprogrammed prior to attempting the read. 00 = No Action 01 = No Action 10 = Read IRQ Register 11 = Read IS Register Master: 20h Slave: A0h 001XXX10b Attribute: Size: Description RO, WO 8 bits 7 6 5 1 WO X WO X WO 4:3 2 1:0 10 WO 18.3.9.9 ELCR1—Master Edge/Level Control Register Offset/Port: Default Value: Bit Default and Access 0 R/W 0 RO 4D0h 00h Attribute: Size: Description RO, R/W 8 bits 7:3 2:0 Edge Level Control (ECL[7:3]): In edge mode, (bit cleared), the interrupt is recognized by a low to high transition. In level mode (bit set), the interrupt is recognized by a high level. Reserved. The cascade channel, IRQ2, heart beat timer (IRQ0), and keyboard controller (IRQ1), cannot be put into level mode. Datasheet 391 ACPI Functions 18.3.9.10 ELCR2—Slave Edge/Level Control Register Offset/Port: Default Value: Bit Default and Access 0 R/W 0 RO 0 R/W 0 RO 4D1h 00h Attribute: Size: Description RO, R/W 8 bits 7 Edge Level Control (ECL[15:14]): In edge mode, (bit cleared), the interrupt is recognized by a low to high transition. In level mode (bit set), the interrupt is recognized by a high level. Bit 7 applies to IRQ15, and bit 6 to IRQ14. Reserved Edge Level Control (ECL[12:9]: In edge mode, (bit cleared), the interrupt is recognized by a low to high transition. In level mode (bit set), the interrupt is recognized by a high level. Bit 4 applies to IRQ12, bit 3 to IRQ11, bit 2 to IRQ10, and bit 1 to IRQ9. Reserved 5 4 0 18.4 18.4.1 Advanced Peripheral Interrupt Controller (IOxAPIC) Functional Overview Delivery of interrupts with the IOxAPIC is done by writing to a fixed set of memory locations in CPU(s). The following sequence is used: • When the Intel® SCH detects an interrupt event (active edge for edge-triggered mode or a change for level-triggered mode), it sets or resets the internal IRR bit associated with that interrupt. • The Intel® SCH delivers the message by performing a write cycle to the appropriate address with the appropriate data. When either an edge-triggered or level-triggered interrupt is detected, the “Assert Message” is sent by the IOxAPIC controller. In the case of a level-triggered interrupt, however, if the interrupt is still active after the EOI, then another “Assert Message” is sent to indicate that the interrupt is still active. 18.4.2 Unsupported Modes These delivery modes are not supported for the following reasons: • NMI/INIT: This cannot be delivered while the CPU is in the Stop Grant state. In addition, this is a break event for power management • SMI: There is no way to block the delivery of the SMI#, except through BIOS • Virtual Wire Mode B: The Intel® SCH does not support the INTR of the 8259 routed to the I/OxAPIC pin 0. 392 Datasheet ACPI Functions 18.4.2.1 EOI (End Of Interrupt) An EOI is performed as a PCI Express EOI message. The data of the EOI message is the vector. This value is compared with all the vectors inside the IOxAPIC, and any match causes RTE[x].RIRR to be cleared. 18.4.2.2 Interrupt Message Format The Intel® SCH writes the message to the backbone as a 32-bit memory write cycle. It uses the following formats the Address and Data: Table 61. Interrupt Delivery Address Value Bit 31:20 19:12 11:4 3 2 1:0 FEEh Destination ID: RTE[x].DID Extended Destination ID: RTE[x].EDID Redirection Hint: If RTE[x].DLM = “Lowest Priority” (001), this bit will be set. Otherwise, this bit will be cleared. Destination Mode: RTE[x].DSM 00 Description Table 62. Interrupt Delivery Data Value Bit 31:16 15 Description 0000h Trigger Mode: RTE[x].TM Delivery Status: 1 = Assert, 0 = deassert. Only Assert messages are sent. This bit is always set to 1 00 Destination Mode: RTE[x].DSM Delivery Mode: RTE[x].DLM Vector: RTE[x].VCT 14 13:12 11 10:8 7:0 18.4.3 PCI Express Interrupts When external devices through PCI Express generate an interrupt, they will send the message defined in the PCI Express specification for generating INTA# – INTD#. These will be translated internal assertions/deassertions of INTA# – INTD#. Datasheet 393 ACPI Functions 18.4.4 Routing of Internal Device Interrupts The internal devices on the Intel® SCH drive PCI interrupts. These interrupts can be routed internally to any of PIRQA# – PIRQH#. This is done utilizing the “Device X Interrupt Pin” and “Device X Interrupt Route” registers located in chipset configuration space. See Section 6.2. For each device, the “Device X Interrupt Pin” register exists which tells the functions which interrupt to report in their PCI header space, in the “Interrupt Pin” register, for the operating system. Additionally, the “Device X Interrupt Route” register tells the interrupt controller, in conjunction with the “Device X Interrupt Pin” register, which of the internal PIRQA# – PIRQH# to drive the devices interrupt onto. This requires the interrupt controller to know which function each device is connected to. 18.4.5 Memory Registers The APIC is accessed through an indirect addressing scheme. These registers are mapped into memory space starting at address FEC00000h. The registers are shown below. Table 63. APIC Memory-Mapped Register Locations Address FEC00000h FEC00010h FEC00040h Symbol IDX WDW EOI Index Register Window Register EOI Register Register 18.4.5.1 Address FEC00000h: IDX—Index Register This 8-bit register selects which indirect register appears in the window register to be manipulated by software. Software will program this register to select the desired APIC internal register. The registers listed below can be accessed through the IDX register. When accessing these registers, accesses must be done as DWs, otherwise unspecified behavior will result. Software should not attempt to write to reserved registers. Some reserved registers may return non-zero values when read. Table 64. IDX Register Values Offset 00h 01h 10h–11h 12h–13h 3Eh–3Fh Symbol ID VS RTE0 RTE1 RTE23 Identification Version Redirection Table 0 Redirection Table 1 Redirection Table 23 Register Default 0000000h 0000000h 0000000h 0000000h 0000000h Access RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W 394 Datasheet ACPI Functions 18.4.5.2 ID—Identification Register Offset: Default Value: Default and Access 0 RO 0h R/W 0 RO 0 R/W 0 R/W 0 RO Reserved APIC Identification (AID): Software must program this value prior to using the controller. Reserved Scratchpad Reserved. Writes to this bit have no effect. Reserved 00h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:28 27:24 23:16 15 14 13:0 18.4.5.3 VS—Version Register Offset: Default Value: Default and Access 00h RO 17h RO 0 RO 0 RO 20h RO Reserved Maximum Redirection Entries (MRE): This is the entry number (0 being the lowest entry) of the highest entry in the redirection table. In Intel® SCH this field is hardwired to 17h to indicate 24 interrupts. Pin Assertion Register Supported (PRQ): This bit Indicates that the IOxAPIC does not implement the Pin Assertion Register. Reserved Version (VS): This field identifies the implementation version as IOxAPIC. 01h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:24 23:16 15 14:8 7:0 Datasheet 395 ACPI Functions 18.4.5.4 RTE[0-23]—Redirection Table Entry Register Offset: Default Value: 10h–3Fh see table below Attribute: Size: RO, R/W 64 bits There are a total of 24 Redirection Table Entry registers, each at a different 8-bit offset address, starting at 10h. Bit Default and Access X R/W X R/W 0 RO 1 R/W X R/W X R/W X R/W X RO X R/W Description 63:56 55:48 47:17 16 15 Destination ID (DID): Destination ID of the local APIC. Extended Destination ID (EDID): Extended destination ID of the local APIC. Reserved Mask (MSK): When set, interrupts are not delivered nor held pending. When cleared, and edge or level on this interrupt results in the delivery of the interrupt. Trigger Mode (TM): When cleared, the interrupt is edge sensitive. When set, the interrupt is level sensitive. Remote IRR (RIRR): This is used for level triggered interrupts its meaning is undefined for edge triggered interrupts. This bit is set when IOxAPIC sends the level interrupt message to the CPU. This bit is cleared when an EOI message is received that matches the VCT field. This bit is never set for SMI, NMI, INIT, or ExtINT delivery modes. Polarity (POL): This specifies the polarity of each interrupt input. When cleared, the signal is active high. When set, the signal is active low. Delivery Status (DS): This field contains the current status of the delivery of this interrupt. When set, an interrupt is pending and not yet delivered. When cleared, there is no activity for this entry Destination Mode (DSM): This field is used by the local Apic to determine whether it is the destination of the message. Delivery Mode (DLM): This field specifies how the APICs listed in the destination field should act upon reception of this signal. Certain Delivery Modes will only operate as intended when used in conjunction with a specific trigger mode. These encodings are as follows: Value 000 Name/Notes Fixed Lowest Priority SMI/not supported Reserved NMI/not supported INIT/not supported Reserved ExtINT 14 13 12 11 10:8 X R/W 001 010 011 100 101 110 111 10:0 X R/W Vector (VCT): This field contains the interrupt vector for this interrupt. Values range between 1-h and FEh. 396 Datasheet ACPI Functions 18.4.5.5 Address FEC00010h: WDW—Window Register This 32-bit register specifies the data to be read or written to the register pointed to by the IDX register. This register can be accessed only in DW quantities. 18.4.5.6 Address FEC00040h: EOI—EOI Register When a write is issued to this register, the IOxAPIC will check the lower 8 bits written to this register, and compare it with the vector field for each entry in the I/O Redirection Table. When a match is found, RTE.RIRR for that entry will be cleared. If multiple entries have the same vector, each of those entries will have RTE.RIRR cleared. Only bits 7:0 are used. Bits 31:8 are ignored. 18.5 18.5.1 Serial Interrupt Overview The interrupt controller supports a serial IRQ scheme. The signal used to transmit this information is shared between the interrupt controller and all peripherals that support serial interrupts. The signal line, SERIRQ, is synchronous to LPC clock, and follows the sustained tri-state protocol that is used by LPC signals. The serial IRQ protocol defines this sustained tri-state signaling in the following fashion: • S - Sample Phase: Signal driven low • R - Recovery Phase: Signal driven high • T - Turn-around Phase: Signal released The interrupt controller supports 21 serial interrupts. These represent the 15 ISA interrupts (IRQ0- 1, 3-15), the four PCI interrupts, and the control signals SMI# and IOCHK#. Serial interrupt information is transferred using three types of frames: • Start Frame: SERIRQ line driven low by the interrupt controller to indicate the start of IRQ transmission • Data Frames: IRQ information transmitted by peripherals. The interrupt controller supports 21 data frames. • Stop Frame: SERIRQ line driven low by the interrupt controller to indicate end of transmission and next mode of operation. 18.5.2 Start Frame The serial IRQ protocol has two modes of operation which effect the start frame: • Continuous Mode: The interrupt controller is solely responsible for generating the start frame • Quiet Mode: Peripheral initiates the start frame, and the interrupt controller completes it. These modes are entered through the length of the stop frame. See section 13.5.4 for information on how this is done. Continuous mode must be entered first, to start the first frame. This start frame width is determined by the SCNT.SFPW field in D31:F0 configuration space. This is a polling mode. In Quiet mode, the SERIRQ line remains inactive and pulled up between the Stop and Start Frame until a peripheral drives SERIRQ low. The interrupt controller senses the line low and drives it low for the remainder of the Start Frame. Since the first LPC clock of the start frame was driven by the peripheral, the interrupt controller drives SERIRQ low for 1 LPC clock less than in continuous mode. This mode of operation allows for lower power operation. Datasheet 397 ACPI Functions 18.5.3 Data Frames Once the Start frame has been initiated, the SERIRQ peripherals start counting frames based on the rising edge of SERIRQ. Each of the IRQ/DATA frames has exactly 3 phases of one clock each: • Sample Phase: During this phase, a device drives SERIRQ low if its corresponding interrupt signal is low. If its corresponding interrupt is high, then the SERIRQ devices tri-state SERIRQ. SERIRQ remains high due to pull-up resistors. • Recovery Phase: During this phase, a device drives SERIRQ high if it was driven low during the Sample Phase. If it was not driven during the sample phase, it remains tri-stated in this phase. • Turn-around Phase: The device tri-states SERIRQ. 18.5.4 Stop Frame After the data frames, a Stop Frame will be driven by the interrupt controller. SERIRQ will be driven low for 2 or 3 LPC clocks. The number of clocks is determined by the SCNT.MD field in D31:F0 configuration space. The number of clocks determines the next mode: Table 65. Serial Interrupt Mode Selection Stop Frame Width 2 LPC clocks 3 LPC clocks Next Mode Quiet Mode: Any SERIRQ device initiates a Start Frame Continuous Mode: Only the interrupt controller initiates a Start Frame 18.5.5 Unsupported Serial Interrupts There are four interrupts on the serial stream which are not supported by the serial interrupt controller of the Intel® SCH. These interrupts are generated internally, and are not sharable with other devices within the system. These interrupts are: • IRQ0: Heartbeat interrupt generated off of the internal 8254, counter 0. • IRQ8#: RTC interrupt can only be generated internally. • IRQ13: This interrupt is not supported by the Intel® SCH. • IRQ14: PATA interrupt can only be generated from the external P-Device. The interrupt controller will ignore the state of these interrupts in the stream. 398 Datasheet ACPI Functions 18.5.6 Data Frame Format Table 66 shows the format of the data frames. The decoded INT[A:D]# values are ANDed with the corresponding PCI Express input signals (PIRQ[A:D]#). This way, the interrupt can be shared. The other interrupts decoded through SERIRQ are also ANDed with the corresponding internal interrupts. For example, if IRQ10 is set to be used as the SCI, then it is ANDed with the decoded value for IRQ10 from the SERIRQ stream. Table 66. Data Frame Format Data Frame # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Interrupt Clocks Past Start Frame 2 5 8 11 14 17 20 23 26 29 32 35 38 41 44 47 50 53 56 59 62 Same as ISA IOCHCK# going active. Before port 60h latch Ignored Ignored Ignored. IRQ8# can only be generated internally Comment Ignored. IRQ0 can only be generated through the internal 8524 Before port 60h latch Causes SMI# if low. Will set bit 15 in the SMI_STS register IRQ0 IRQ1 SMI# IRQ3 IRQ4 IRQ5 IRQ6 IRQ7 IRQ8 IRQ9 IRQ10 IRQ11 IRQ12 IRQ13 IRQ14 IRQ15 IOCHCK# PCI INTA# PCI INTB# PCI INTC# PCI INTD# Datasheet 399 ACPI Functions 18.6 18.6.1 Real Time Clock Overview The Real Time Clock (RTC) module provides a battery backed-up date and time keeping device. Three interrupt features are available: time of day alarm with once a second to once a month range, periodic rates of 122 ms to 500 ms, and end of update cycle notification. Seconds, minutes, hours, days, day of week, month, and year are counted. The hour is represented in twelve or twenty-four hour format, and data can be represented in BCD or binary format. The design is meant to be functionally compatible with the Motorola MS146818B. The time keeping comes from a 32.768-kHz oscillating source, which is divided to achieve an update every second. The lower 14 bytes on the lower RAM block have very specific functions. The first ten are for time and date information. The next four (0Ah to 0Dh) are registers, which configure and report RTC functions. A host-initiated write takes precedence over a hardware update in the event of a collision. 18.6.2 Update Cycles An update cycle occurs once a second, if B.SET bit is not asserted and the divide chain is properly configured. During this procedure, the stored time and date will be incremented, overflow will be checked, a matching alarm condition will be checked, and the time and date will be rewritten to the RAM locations. The update cycle will start at least 488 μs after A.UIP is asserted, and the entire cycle will not take more than 1984 μs to complete. The time and date RAM locations (0-9) will be disconnected from the external bus during this time. 18.6.3 Interrupts The RTC interrupt is internally routed within the Intel® SCH to interrupt vector 8. This interrupt is not it shared with any other interrupt. IRQ8# from the SERIRQ stream is ignored. The HPET can also be mapped to IRQ8#; in this case, the RTC interrupt is blocked. 18.6.4 Lockable RAM Ranges The RTC’s battery-backed RAM supports two 8-byte ranges that can be locked through the PCI config space. If the locking bit is set, the corresponding range in the RAM will not be readable or writeable. A write cycle to those locations has no effect. A read cycle to those locations will not return the location’s actual value (undefined). Once a range is locked, the range can be unlocked only by a warm reset, which will invoke the BIOS and allow it to relock the RAM range. 18.6.5 Month and Year Alarms Month and year alarms are not supported in the Intel® SCH. 400 Datasheet ACPI Functions 18.6.6 I/O Registers The RTC internal registers and RAM are organized as two banks of 128 bytes each, called the standard and extended banks. The first 14 bytes of the standard bank contain the RTC time and date information along with four registers, A–D, that are used for configuration of the RTC. The extended bank contains a full 128 bytes of battery backed SRAM. All data movement between the host CPU and the RTC is done through registers mapped to the standard I/O space. Table 67. RTC I/O Registers I/O Locations 70h and 74h 71h and 75h 72h and 76h 73h and 77h Function Real-Time Clock (Standard RAM) Index Register Real-Time Clock (Standard RAM) Target Register Extended RAM Index Register (if enabled) Extended RAM Target Register (if enabled) NOTES: 1. I/O locations 70h and 71h are the standard ISA location for the real-time clock. Locations 72h and 73h are for accessing the extended RAM. The extended RAM bank is also accessed using an indexed scheme. I/O address 72h is used as the address pointer and I/O address 73h is used as the data register. Index addresses above 127h are not valid. 2. Software must preserve the value of bit 7 at I/O addresses 70h and 74h. When writing to this address, software must first read the value, and then write the same value for bit 7 during the sequential address write. Note: Port 70h is not directly readable. The only way to read this register is through Alt Access mode. Although RTC Index bits 6:0 are readable from port 74h, bit 7 will always return 0. If the NMI# enable is not changed during normal operation, software can alternatively read this bit once and then retain the value for all subsequent writes to port 70h. 18.6.7 Indexed Registers The RTC contains two sets of indexed registers that are accessed using the two separate Index and Target registers (70/71h or 72/73h), as shown in Table 68. Table 68. RTC (Standard) RAM Bank Index 00h 01h 02h 03h 04h 05h 06h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh 0Eh–7Fh Seconds Seconds Alarm Minutes Minutes Alarm Hours Hours Alarm Day of Week Day of Month Month Year Register A Register B Register C Register D 114 Bytes of User RAM Name Datasheet 401 ACPI Functions 18.6.7.1 RTC_REGA—Register A Offset: Default Value: 0A UUh Attribute: Size: R/W 8 bit This register is used for general configuration of the RTC functions. None of the bits are affected by RESET# or any other Intel® SCH reset signal. Default and Access Undefined R/W Bit Description Update In Progress (UIP): This bit may be monitored as a status flag. 7 0 = The update cycle will not start for at least 488 µs. The time, calendar, and alarm information in RAM is always available when the UIP bit is 0. 1 = The update is soon to occur or is in progress. Division Chain Select (DV[2:0]): These three bits control the divider chain. The division chain itself is reset by RSMRST# to all 0s and it can also be cleared to 0s by firmware through programming of DV. The periodic event (setting of RTCIS.PF and the associated interrupt) can be based on the time as measured from RSMRST# deassertion until a divider reset (DV=’11x’ to ‘010’) is performed by firmware. 6:4 Undefined R/W DV2 corresponds to bit 6. 010 = Normal Operation 11X = Divider Reset 101 = Bypass 15 stages (test mode only) 100 = Bypass 10 stages (test mode only) 011 = Bypass 5 stages (test mode only) 001 = Invalid 000 = Invalid Rate Select (RS[3:0]): Selects one of 13 taps of the 15 stage divider chain. The selected tap can generate a periodic interrupt if the PIE bit is set in Register B. Otherwise this tap will set the PF flag of Register C. If the periodic interrupt is not to be used, these bits should all be set to 0. RS3 corresponds to bit 3. 3:0 Undefined R/W 0000 0001 0010 0011 0100 0101 0110 0111 = = = = = = = = Interrupt never toggles 3.90625 ms 7.8125 ms 122.070 µs 244.141 µs 488.281 µs 976.5625 µs 1.953125 ms 1000 = 3.90625 ms 1001 = 7.8125 ms 1010 = 15.625 ms 1011 = 31.25 ms 1100 = 62.5 ms 1101 = 125 ms 1110 = 250 ms 1111= 500 ms 402 Datasheet ACPI Functions 18.6.7.2 RTC_REGB—Register B, General Configuration (LPC I/F—D31:F0) Offset: Default Value: 0Bh U0U00UUU Attribute: Size: R/W 8 bit This register resides in the Resume well. Bits are reset by RSMRST#. Default and Access Bit Description Update Cycle Inhibit (SET): Enables/Inhibits the update cycles. This bit is not affected by RSMRST# nor any other reset signal. 7 Undefined R/W 0 = Update cycle occurs normally once each second. 1 = A current update cycle will abort and subsequent update cycles will not occur until SET is returned to 0. When set is 1, the BIOS may initialize time and calendar bytes safely. NOTE: This bit should be set then cleared early in BIOS POST after each powerup. Periodic Interrupt Enable (PIE): This bit is cleared by RSMRST#, but not on any other reset. 0 = Disable. 1 = Enable. Allows an interrupt to occur with a time base set with the RS bits of register A. Alarm Interrupt Enable (AIE): This bit is cleared by RTCRST#, but not on any other reset. 6 0 R/W 5 Undefined R/W 0 = Disable. 1 = Enable. Allows an interrupt to occur when the AF is set by an alarm match from the update cycle. An alarm can occur once a second, once an hour, once a day, or once a month. Update-Ended Interrupt Enable (UIE): This bit is cleared by RSMRST#, but not on any other reset. 0 = Disable. 1 = Enable. Allows an interrupt to occur when the update cycle ends. Square Wave Enable (SQWE): This bit serves no function in the Intel® SCH. It is left in this register bank to provide compatibility with the Motorola 146818B. The Intel® SCH has no SQW pin. This bit is cleared by RSMRST#, but not on any other reset. Data Mode (DM). This bit specifies either binary or BCD data representation. This bit is not affected by RSMRST# nor any other reset signal. 0 = BCD 1 = Binary Hour Format (HOURFORM): This bit indicates the hour byte format. This bit is not affected by RSMRST# nor any other reset signal. 0 = 12-hour mode. In twelve-hour mode, the seventh bit represents a.m. as 0 and p.m. as 1. 1 = 24-hour mode. 4 0 R/W 3 0 R/W 2 Undefined R/W 1 Undefined R/W Datasheet 403 ACPI Functions Bit Default and Access Description Daylight Savings Enable (DSE): This bit triggers two special hour updates per year. The days for the hour adjustment are those specified in United States federal law as of 1987, which is different than previous years. This bit is not affected by RSMRST# nor any other reset signal. 0 Undefined R/W 0 = Daylight Savings Time updates do not occur. 1 = a) Update on the first Sunday in April, where time increments from 1:59:59 a.m. to 3:00:00 a.m. b) Update on the last Sunday in October when the time first reaches 1:59:59 a.m. it is changed to 1:00:00 a.m. The time must increment normally for at least two update cycles (seconds) previous to these conditions for the time change to occur properly. 18.6.7.3 RTC_REGC—Register C (Flag Register) Offset: Default Value: 0Ch 00U00000 Attribute: Size: RO 8 bit Writes to Register C have no effect. Default and Access 0 RO Bit Description Interrupt Request Flag (IRQF): IRQF = (PF * PIE) + (AF * AIE) + (UF *UFE). This bit also causes the RTC Interrupt to be asserted. This bit is cleared upon RSMRST# or a read of Register C. Periodic Interrupt Flag (PF): This bit is cleared upon RSMRST# or a read of Register C. 7 6 0 RO 0 = If no taps are specified through the RS bits in Register A, this flag will not be set. 1 = Periodic interrupt Flag will be 1 when the tap specified by the RS bits of register A is 1. Alarm Flag (AF): 0 = This bit is cleared upon RTCRST# or a read of Register C. 1 = Alarm Flag will be set after all Alarm values match the current time. Update-Ended Flag (UF): 0 = The bit is cleared upon RSMRST# or a read of Register C. 1 = Set immediately following an update cycle for each second. Reserved. 5 Undefined RO 0 RO 0h RO 4 3:0 404 Datasheet ACPI Functions 18.6.7.4 RTC_REGD—Register D (Flag Register) Offset: Default Value: Default and Access 1 R/W 0 R/W 0Dh 10UUUUUU Attribute: Size: R/W 8 bit Bit Description Valid RAM and Time Bit (VRT): 7 0 = This bit should always be written as a 0 for write cycle, however it will return a 1 for read cycles. 1 = This bit is hardwired to 1 in the RTC power well. Reserved. This bit always returns a 0 and should be set to 0 for write cycles. Date Alarm: These bits store the date of month alarm value. If set to 000000b, then a don’t care state is assumed. The host must configure the date alarm for these bits to do anything, yet they can be written at any time. If the date alarm is not enabled, these bits will return 0s to mimic the functionality of the Motorola 146818B. These bits are not affected by any reset assertion. 6 5:0 Undefined R/W 18.7 18.7.1 18.7.1.1 General Purpose I/O Functional Description Power Wells GPIO[6:0], GPIO[9:8], and SLPIOVR# are in the core well. GPIOSUS[3:0] are in the resume well. 18.7.1.2 SMI# and SCI Routing If GPGPE.EN[n] is set, and the GPIO is configured as an input, the GPE bit GPE0S.GPIO will be set. If GPSMI.EN[n] is set, and the GPIO is configured as an input, the SMI bit SMIS.GPIO will be set. 18.7.1.3 Triggering A GPIO (whether in the core well or resume well) can cause an wake event and SMI/ SCI on either its rising edge, its falling edge, or both. These are controlled through the CGTPE and CGTNE registers for the core well GPIOs, and RGTPE and RGTNE for the resume well GPIOs. If the bit corresponding to the GPIO is set, the transition will cause a wake event/SMI/SCI, and the corresponding bit in the trigger status register (CGTS for core well GPIOs, RGTS for resume well GPIOs). The event can be cleared by writing a 1 to the status bit position. Datasheet 405 ACPI Functions 18.7.2 I/O Registers The control for the general purpose I/O signals is handled through an independent 64-byte I/O space. The base offset for this space is selected by the GPIOBASE register in D31:F0 config space. Table 69. GPIO I/O Register Map Offset 00h–03h 04h–07h 08h–0Bh 0Ch–0Fh 10h–13h 14h–17h 18h–1Bh 1Ch–1Fh 20h–23h 24h–27h 28h–2Bh 2Ch–2Fh 30h–33h 34h–37h 38h–3Bh 3Ch–3Fh Mnemonic CGEN CGIO CGLV CGTPE CGTNE CGGPE CGSMI CGTS RGEN RGIO RGLV RGTPE RGTNE RGGPE RGSMI RGTS Name Core Well GPIO Enable Core Well GPIO Input/Output Select Core Well GPIO Level for Input or Output Core Well GPIO Trigger Positive Edge Enable Core Well GPIO Trigger Negative Edge Enable Core Well GPIO GPE Enable Core Well GPIO SMI Enable Core Well GPIO Trigger Status Resume Well GPIO Enable Resume Well GPIO Input/Output Select Resume Well GPIO Level for Input or Output Resume Well GPIO Trigger Positive Edge Enable Resume Well GPIO Trigger Negative Edge Enable Resume Well GPIO GPE Enable Resume Well GPIO SMI Enable Resume Well GPIO Trigger Status Default 000003FFh 000003FFh 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h 0000000Fh 0000000Fh 00000000h 00000000h 00000000h 00000000h 00000000h 00000000h Access RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W RO, R/W If a bit is allocated for a GPIO that doesn’t exist, unless otherwise indicated, the bit will always read as 0 and values written to that bit will have no effect. All core well bits are reset by the standard conditions that assert RESET#, and all suspend well bits are reset by the standard conditions that clear internal suspend registers. 406 Datasheet ACPI Functions 18.7.2.1 CGEN—Core Well GPIO Enable Register Offset: Default Value: Default and Access 0s RO 1 R/W Reserved GPIO 9 Enable (GP9EN) 9 0 = Neither GPIO9 or EXTTS1# functionality is usable. 1 = GPIO9 will behave as a GPIO9 and allows EXTTS1# input to pass to the thermal management controller when CGIO[9] is set for input. GPIO 8 Enable (GP8EN) 0 = GPIO8 will behave as PROCHOT# output 1 = GPIO8 will behave as a GPIO Reserved. GPIO7 is configured by the CMC as SLPIOVR# Reserved. All unmultiplexed GPIOs are enabled by default. 00–03h 000003FFh Attribute: Size: RO, R/W 32 bits Bit Description 31:10 8 1 R/W 1 RO 7Fh RO 7 6:0 18.7.2.2 CGIO—Core Well GPIO Input/Output Select Register Offset: Default Value: Default and Access 0s RO Reserved Input/Output (I/O) 1 = the GPIO signal (if enabled) is programmed as an input. 0 = the GPIO signal is programmed as an output. 9:0 3FFh R/W If the pin is multiplexed, and not enabled, writes to these bits have no effect. NOTE: Do not write a “0” to bit 7, it may affect the SLPIOVR# configuration done by the CMC. NOTE: Bit 9 must be set in order for GPIO[9] to function as EXTTS1# input. 04–07h 000003FFh Attribute: Size: RO, R/W 32 bits Bit Description 31:10 Datasheet 407 ACPI Functions 18.7.2.3 CGLVL—Core Well GPIO Level for Input or Output Register Offset: Default Value: Default and Access 0s RO Reserved Level (LVL): If the GPIO is programmed to be an output (CGIO.IO[n] = 0), then this bit is used by software to drive a value on the pin. 1 = high, 0 = low. If the GPIO is programmed as an input, then this bit reflects the state of the input signal (1 = high, 0 = low.) and writes will have no effect. The value of this bit has no meaning if the GPIO is disabled (CGEN.EN[n] = 0). 08–0Bh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:10 9:0 0s R/W 18.7.2.4 CGTPE—Core Well GPIO Trigger Positive Edge Enable Register Offset: Default Value: Default and Access 0s RO Reserved Trigger Enable (TE) 1 = corresponding GPIO, if enabled as input using GIO.IO[n], will case an SMI#/SCI when a 0-to-1 transition occurs. 0 = GPIO is not enabled to trigger an SMI#/SCI on a 0-to-1 transition. This bit has no meaning if CGIO.IO[n] is cleared (i.e., programmed for output) 0C–0Fh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:10 9:0 0s R/W 408 Datasheet ACPI Functions 18.7.2.5 CGTNE—Core Well GPIO Trigger Negative Edge Enable Register Offset: Default Value: Default and Access 0s RO Reserved Trigger Enable (TE) 1 = corresponding GPIO, if enabled as input using CGIO.IO[n], will case an SMI#/SCI when a 1-to-0 transition occurs. 0 = GPIO is not enabled to trigger an SMI#/SCI on a 1-to-0 transition. This bit has no meaning if CGIO.IO[n] is cleared (i.e., programmed for output) 10–13h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:10 9:0 0s R/W 18.7.2.6 CGGPE—Core Well GPIO GPE Enable Register Offset: Default Value: Default and Access 0s RO 0s R/W Reserved Enable (EN): When set, when CGTS.TS[n] is set, the ACPI GPE0E.GPIO bit will be set. 14–17h 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:10 9:0 18.7.2.7 CGSMI—Core Well GPIO SMI Enable Register Offset: Default Value: Default and Access 0s RO 0s R/W Reserved Enable (EN): When set, when CGTS.TS[n] is set, the ACPI SMIE.GPIO bit will be set. 18–1Bh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:10 9:0 Datasheet 409 ACPI Functions 18.7.2.8 CGTS—Core Well GPIO Trigger Status Register Offset: Default Value: Default and Access 0s RO Reserved Trigger Status (TS) 1 = the corresponding CGPIO, if enabled as input using CGIO.IO[n], triggered an SMI#/SCI. This will be set if a 0-to-1 transition occurred and CGTPE.TE[n] was set, or a 1-to-0 transition occurred and CGTNE.TE[n] was set. If both CGTPE.TE[n] and CGTNE.TE[n] are set, then this bit will be set on both a 0-to-1 and a 1-to-0 transition. This bit will not be set if the Core well GPIO[n] is configured as an output. 1C–1Fh 00000000h Attribute: Size: RO, R/W 32 bits Bit Description 31:10 9:0 0s R/WC 18.7.3 Resume Well GPIO I/O Registers The resume-well I/O registers starting at offsets 20h through 3Ch follow the same format as their core-well counter parts detailed above. The only difference is that these registers live in the resume well and are not reset during removal of the core power supply. Notable differences between the core well registers and the resume well versions are described below: 18.7.3.1 RGEN—Resume Well GPIO Enable Register Offset: Default Value: Default and Access 0s RO 1 R/W 111b RO Reserved Resume Well GPIO 3 Enable (RGP3EN) 0 = GPIO3 will behave as USBCC input 1 = GPIO3 will behave as a GPIO Reserved. All unmultiplexed resume well GPIOs are enabled by default. 20–23h 0000000Fh Attribute: Size: RO, R/W 32 bits Bit Description 31:4 3 2:0 410 Datasheet ACPI Functions 18.8 18.8.1 SMBus Controller Overview The Intel® SCH provides an SMBus 1.0-compliant host controller. The host controller provides a mechanism for the CPU to initiate communications with SMB peripherals (slaves). The host controller is used to send commands to other SMB devices. It runs off of the backbone clock, with a minimum SMBCLK frequency the backbone clock divided by 4 (i.e., SMBCLK, at a minimum, is 4 backbone clocks). The frequency to use for SMBCLK is chosen by programming HCLK.DIV. To ensure proper data capture, the minimum value to be programmed into this register is 9h (for 33-MHz backbone), or 7h (for 25-MHz clock), resulting in a frequency roughly equivalent to 1 MHz. Software then sets up the host controller with an address, command, and for writes, data, and then tells the controller to start. When the controller has finished transmitting data on writes, or receiving data on reads, it will generate an SMI# or interrupt, if enabled. The host controller supports eight command protocols of the SMB interface (see the SMBus Specification): Quick Command, Send Byte, Receive Byte, Write Byte/Word, Read Byte/Word, Process call, Block Read, Block Write and Block write-block read process call. The host controller requires the various data and command fields be setup for the type of command to be sent. When software sets HCTL.ST, the host controller will perform the requested transaction and generate an interrupt or SMI# (if enabled) when finished. Once started, the values of the HCTL, HCMD, TSA, HD0, and HD1 should not be changed or read until HSTS.INTR has been set. The host controller will update all registers while completing the new command. 18.8.2 Bus Arbitration Several masters may attempt to get on the bus at the same time by driving SMBDATA low to signal a start condition. When the Intel® SCH releases SMBDATA, and samples it low, then some other master is driving the bus and Intel® SCH must stop transferring data. If the Intel® SCH loses arbitration, it sets HSTS.BE, and if enabled, generates an interrupt or SMI#. The CPU is responsible for restarting the transaction. 18.8.3 Bus Timings The SMBus runs at between 10–100 kHz. The Intel® SCH SMBus will run off of the backbone clock. Table 70. SMBus Timings Timing tLOW tHIGH tSU:DAT tHD:DAT tHD:STA tSU:STA tSU:STO tBUF Min AC 4.7 µs 4.0 µs 250 ns 0 ns 4.0 µs 4.7 µs 4.0 µs 4.7 µs Clock low period Clock high period Data setup to rising SMBCLK Data hold from falling SMBCLK Repeat Start Condition generated from rising SMBCLK First clock fall from start condition Last clock rising edge to last data rising edge (stop condition) Time between consecutive transactions Spec Name Datasheet 411 ACPI Functions The Min AC column indicates the minimum times required by the SMBus specification. The Intel® SCH tolerates these timings. When the Intel® SCH is sending address, command, or data bytes, it will drive data relative to the clock it is also driving. It will not start toggling the clock until the start or stop condition meets proper setup and hold. The Intel® SCH will also ensure minimum time between SMBus transactions as a master. 18.8.3.1 Clock Stretching Devices may stretch the low time of the clock. When the Intel® SCH attempts to release the clock (allowing the clock to go high), the clock will remain low for an extended period of time. The Intel® SCH monitors SMBCLK after it releases the bus to determine whether to enable the counter for the high time of the clock. While the bus is still low, the high time counter must not be enabled. The low period of the clock can be stretched by an SMBus master if it is not ready to send or receive data. 18.8.3.2 Bus Time Out If there is an error in the transaction, such that a device does not signal an acknowledge, or holds the clock lower than the allowed time-out time, the transaction will time out. The Intel® SCH will discard the cycle, and set HSTS.DE. The time out minimum is 25 ms. The time-out counter inside the Intel® SCH will start when the first bit of data is transferred by Intel® SCH. 18.8.4 SMI# The system can be set up to generate SMI# by setting HCTL.SE. 18.8.5 Table 71. I/O Registers SMBus I/O Register Map Address 00h 01h 02h–03h 04h 05h 06h 07h 20h–3Fh Mnemonic HCTL HSTS HCLK TSA HCMD HD0 HD1 HBD Register Name Host Control Host Status Host Clock Divider Transmit Slave Address Host Command Host Data 0 Host Data 1 Host Block Data Default 00h 00h 0000h 00h 00h 00h 00h 00h Access RO, R/W R/W R/W R/W R/W R/W R/W R/W 412 Datasheet ACPI Functions 18.8.5.1 HCTL—Host Control Register Offset: Default Value: Default and Access 0 R/W 0 RO 0 R/W 0 R/W 0 RO 00h 00h Attribute: Size: RO, R/W 8 bits Bit Description SMI Enable (SE): Enable generation of an SMI# upon completion of the command. Reserved Alert Enable (AE): Software sets this bit to enable an interrupt/SMI# due to SMBALERT#. Start/Stop (ST): Initiates the command described in the CMD field. This bit always reads zero. HSTS.BSY identifies when the Intel® SCH has finished the command. If this bit is cleared prior to the command completing, the transaction will be stopped, and HSTS.CS will be cleared. Reserved Command (CMD): Indicates the command that the Intel® SCH is to perform. If enabled, the Intel® SCH will generate an interrupt or SMI# when the command has completed. If a reserved command is issued, the Intel® SCH will set HSTS.DE and perform no command, and will not operate until HSTS.DE is cleared. 7 6 5 4 3 Bits 000 001 010 2:0 R/W Command Description Quick: Uses TSA. Byte: Uses TSA and CMD registers. TSA.R determines the direction. Byte Data: Uses TSA, CMD, and HD0 registers. TSA.R determines the direction. If a read, HD0 will contain the read data. Word Data: Uses TSA, CMD, HD0, and HD1 registers. TSA.R determines the direction. If a read, HD0 and HD1 contain the read data. Process Call: Uses TSA, HCMD, HD0, and HD1 registers. TSA.R determines the direction. Upon completion, HD0 and HD1 contain the read data. Block: Uses TSA, CMD, HD0, and HBD registers. For writes, the count is stored in HD0 and indicates how many bytes of data will be transferred. For reads, the count is received and stored in HD0. TSA.R determines the direction. For writes, data is retrieved from the first n (where n is equal to the specified count) addresses of HBD. For reads, the data is stored in HBD. Reserved 011 100 101 110 111 Datasheet 413 ACPI Functions 18.8.5.2 HSTS—Host Status Register Offset: Default Value: Default and Access 0h RO 0 RO 0 R/WC 0 R/WC 0 R/WC Reserved Busy (BSY): When set, indicates that the Intel® SCH is running a command. No SMB registers should be accessed while this bit is set. Bus Error (BE): When set, indicates a transaction collision. Device Error (DE): When set, this indicates one of the following errors: Invalid Command Field, an unclaimed cycle, or a time-out error. Completion Status (CS): When BSY is cleared, if this bit is set, the command completed successfully. If cleared, the command did not complete successfully. 01h 00h Attribute: Size: RO, R/W 8 bits Bit Description 7:4 3 2 1 0 18.8.5.3 HCLK—Host Clock Divider Register Offset: Default Value: Default and Access 02h 0000h Attribute: Size: R/W 8 bits Bit Description Divider (DIV): This controls how many backbone clocks should be counted for the generation of SMBCLK. Recommended values are listed below: SM Bus Frequency Backbone Frequency 33 MHz 1 kHz 10 kHz 50 kHz 100 kHz 400 kHz 1 MHz 208Eh 0342h 00A7h 0054h 0015h 0009h 25 MHz 186Ah 0271h 007Dh 003Fh 0010h 0007h 15:0 00h R/W 414 Datasheet ACPI Functions 18.8.5.4 TSA—Transmit Slave Address Register Offset: Default Value: Default and Access 0 R/W 0 R/W 04h 00h Attribute: Size: R/W 8 bits Bit Description 7:1 Address (AD): 7-bit address of the targeted slave. Read (R): Direction of the host transfer. 0 = write 1 = read 0 18.8.5.5 HCMD—Host Command Register Offset: Default Value: 05h 00h Attribute: Size: R/W 8 bits This field is transmitted in the command field of the SMB protocol during the execution of any command. Default and Access 00h R/W Command (CMD) Bit Description 7:0 18.8.5.6 HD0—Host Data 0 Register Offset: Default Value: 06h 00h Attribute: Size: R/W 8 bits This field is transmitted in the DATA0 field of an SMBus cycle. For block writes, this register reflects the number of bytes to transfer. This register should be programmed to a value between 1h (1 bytes) and 20h (32 bytes) for block counts. A count of 00h or above 20h will result in no transfer and will set HSTS.F. Default and Access 00h R/W DATA 0 Bit Description 7:0 Datasheet 415 ACPI Functions 18.8.5.7 HD1—Host Data 1 Register Offset: Default Value: 07h 00h Attribute: Size: R/W 8 bits This field is transmitted in the DATA1 field of an SMBus cycle. Default and Access 00h R/W DATA 1 Bit Description 7:0 18.8.5.8 HBD—Host Data Block Register Offset: Default Value: Default and Access 0 R/W 20h–3Fh 00h Attribute: Size: 4R/W 256 bits Bit Description Data (D): This contains block data to be sent on a block write command, or received block data, on a block read command. Any data received over 32-bytes will be lost. 255:0 §§ 416 Datasheet Absolute Maximums and Operating Conditions 19 19.1 Absolute Maximums and Operating Conditions Absolute Maximums Table 72 lists the Intel® SCH maximum environmental stress ratings. Functional operating parameters at the absolute maximum and minimum is neither implied nor ensured. The voltage on a specific pin shall be denoted as “V” followed by the subscripted name of that pin. For example: • VTT refers to the voltage applied to the VTT signal (In the case of power supply signal names, the second V is not repeated in the subscripted portion.) • VH_SWING would refer to the voltage level of the H_SWING signal. Caution: At conditions outside functional operation limits, but within absolute maximum and minimum ratings, neither functionality nor long-term reliability can be expected. If a device is returned to conditions within functional operation limits after having been subjected to conditions outside these limits, but within the absolute maximum and minimum ratings, the device may be functional, but with its lifetime degraded depending on exposure to conditions exceeding the functional operation condition limits. If the component is exposed to conditions exceeding absolute maximum and minimum ratings, neither functionality nor long-term reliability can be expected. Moreover, if a device is subjected to these conditions for any length of time then, when returned to conditions within the functional operating condition limits, it will either not function, or its reliability will be severely degraded. Although the device contains protective circuitry to resist damage from electro-static discharge, precautions should always be taken to avoid high static voltages or electric fields. Intel® SCH Absolute Maximum Ratings (Sheet 1 of 2) Parameter Tdie Tstorage (short-term) Tstorage (sustained exposure) Voltage on any 3.3-V Pin with respect to Ground Voltage on any 5-V Tolerant Pin with respect to Ground (VCC5REF = 5 V) 1.05-V Supply Voltage with respect to VSS VCC, VTT, VCCSUSBYP, VCCSUSUSBBYP VCCAHPLL, VCCDHPLL, VCCLVDS, VCCSDVO, VCCPCIE, VCCAPCIEPLL, VCCADPLLA, VCCADPLLB, VCC15, VCC15, VCC15USB, VCC15USBSUSBYP, VCCAUSBPLL, VCC15SUS, VCCRTCBYP, VCCHDA4 Description/ Signal Names Die Temperature under bias1 Storage Temperature 2, 3,5 Table 72. Min 0 -45 -10 -0.5 -0.5 -0.5 Max 90 75 45 VCC33 + 0.5 VCC5REF + 0.5 2.1 Unit ºC ºC V V V Storage Temperature2, 3,5 1.5 V Supply Voltage with respect to VSS -0.5 2.1 V Datasheet 417 Absolute Maximums and Operating Conditions Table 72. Intel® SCH Absolute Maximum Ratings (Sheet 2 of 2) Parameter 1.8 V Supply Voltage with respect to VSS 3.3 V Supply Voltage with respect to VSS 5.0 V Supply Voltage with respect to VSS NOTES: 1. 2. 3. Functionality is not ensured for parts that exceed Tdie temperature above 90ºC. Tdie is measured at top center of the package. Full performance may be affected if the on-die thermal sensor is enabled. Possible damage to the Intel® SCH may occur if the Intel® SCH storage temperature exceeds 75ºC. Intel does not ensure functionality for parts that have exceeded temperatures above 75ºC due to specification violation. Storage temperature is applicable to storage conditions only. In this scenario, the device must not receive a clock, and no pins can be connected to a voltage bias. Storage within these limits will not effect the long-term reliability of the device. This rating applies to the silicon and does not include any tray or packaging. VCCHDA is configurable for 1.5-V or 3.3-V operation. Use the appropriate Maximum Limits for the selected configuration. In addition to this storage temperature specification, compliance to the latest IPC/JEDEC J-STD-033B.1 joint industry standard is required for all Surface Mount Devices (SMDs). This document governs handling, packing, shipping and use of moisture/reflow sensitive SMDs. Description/ Signal Names VCCSM VCCAPCIEBG, VCC33, VCC33, VCCP33USBSUS, VCCAUSBBGSUS, VCC33SUS, VCC33RTC, VCCHDA VCC5REF, VCC5REFSUS Min -0.3 Max 2.3 Unit V -0.5 4.6 V -0.5 5.5 V 4. 5. Table 73. Intel® SCH Maximum Power Consumption Power Plane Symbol Maximum Power Consumption S0 See Table 76 NOTES: 1. 2. This specification applies for worst case scenario per rail. In this context, a cumulative use of these values will represent a non realistic application. These power numbers should not be used for average battery shelf life projections since these are absolute worst case numbers. Unit Notes S3 50m S4/S5 100u W 1, 2 418 Datasheet DC Characteristics 20 20.1 DC Characteristics Signal Groups The signal description includes the type of buffer used for the particular signal. Table 74. Intel® SCH Buffer Types Buffer Type AGTL+ CMOS, CMOS Open Drain CMOS_HDA CMOS1.8 CMOS3.3, CMOS3.3 Open Drain CMOS3.3-5 USB Description Assisted Gunning Transceiver Logic Plus. Open Drain interface signals that require termination. Refer to the AGTL+ I/O Specification for complete details. 1.05-V CMOS buffer CMOS buffers for Intel HD Audio interface that can be configured for either 1.5-V or 3.3-V operation. 1.8-V CMOS buffer. These buffers can be configured as Stub Series Termination Logic (SSTL1.8) 3.3-V CMOS buffer 3.3-V CMOS buffer, 5-V tolerant Compliant with USB1.1 and USB2.0 specifications. PCI Express interface signals. These signals are compatible with PCI Express 1.0a Signaling Environment AC Specifications and are AC coupled. The buffers are not 3.3-V tolerant. Differential voltage specification = (|D+ - D-|) * 2 = 1.2 Vmax. Single-ended maximum = 1.5 V. Single-ended minimum = 0 V. Serial-DVO differential output buffers. These signals are AC coupled. Low Voltage Differential Signal buffers. These signals should drive across a 100-Ohm resistor at the receiver when driving. Analog reference or output. Can be used as a threshold voltage or for buffer compensation. PCIE SDVO LVDS Analog Datasheet 419 DC Characteristics Table 75. s Intel® SCH Signal Group Definitions Signals H_ADS#, H_ADSTB[1:0]#, H_DBSY#, H_DEFER#, H_DRDY#, H_DSTBN[3:0]#, H_DSTBP[3:0]#, H_BPRI#, H_CPURST#, H_TRDY#, H_RS[2:0]#, H_DPWR# H_A[31:3]#, H_BNR#, H_BREQ0#, H_D[63:0]#, H_DINV[3:0]#, H_HIT#, H_HITM#, H_REQ[4:0]#, H_LOCK#, H_THRMTRIP#, H_CPUSLP#, H_PBE#, H_INTR, H_NMI, H_SMI#, TDI, TMS, TRST#, H_STPCLK#, H_DPSLP#, H_DPRSTP#, H_CPUPWRGD, BSEL2, CFG[1:0], TCK H_INIT#, TDO HDA_RST#, HDA_SYNC, HDA_SDO, HDA_SDI[1:0], HDA_DOCKEN#, HDA_DOCKRST# SM_DQ[63:0], SM_DQS[7:0], SM_MA[14:0], SM_BS[2:0], SM_RAS#, SM_CAS#, SM_WE#, SM_RCVENIN#, SM_RCVENOUT#, SM_CS[1:0]#, SM_CKE[1:0] LPC_AD[3:0], LPC_FRAME#, LPC_SERIRQ, LPC_CLKRUN# SD2_DATA[7:0], SD[0:2]_CMD, SD[0:2]_WP, SD[0:2]_CD#, SD[0:2]_LED, INTVRMEN, SPKR, SMI#, EXTTS, THRM#, RESET#, PWROK, RSMRST#, RTCRST#, SUSCLK, WAKE#, STPCPU#, DPRSLPVR, SLPMODE, RSTWARN, SLPRDY#, RSTRDY#, L_VDDEN, L_BKLTEN, L_BKLTCTL, USB_OC[7:0]#, GPIO[9:8], SLPIOVR#, GPIO[6:0], GPIOSUS[3:0] CLKREQ#, GPE#, L_DDC_CLK, L_DDC_DATA, L_CTLA_CLK, L_CTLB_CLK, SDVO_CTRLCLK, SDVO_CTRLDATA, SMB_DATA, SMB_ALERT# PATA_DD[15:0], PATA_DA[2:0], PATA_DIOR#, PATA_DIOW#, PATA_DDACK#, PATA_DCS3#, PATA_DCS1#, PATA_DDREQ, PATA_IORDY, PATA_IDEIRQ PCIE_PETp[2:1], PCIE_PETn[2:1], PCIE_PERp[2:1], PCIE_PERn[2:1] SDVOB_RED+, SDVOB_RED-, SDVOB_GREEN+, SDVOB_GREEN-, SDVOB_BLUE+, SDVOB_BLUE-, SDVOB_CLK+, SDVOB_CLKSDVOB_INT+, SDVOB_INT-, SDVO_TVCLKIN+, SDVO_TVCLKIN-, SDVO_STALL+, SDVO_STALLLA_DATAP[3:0], LA_DATAN[3:0], LA_CLKP, LA_CLKN USB_DP[7:0], USB_DN[7:0] H_RCOMPO, H_SWING, H_GVREF, H_CGVREF, PCIE_ICOMPO, SM_VREF, SM_RCOMPO, PCIE_ICOMPI, RTC_X1, RTC_X2, USB_RBIASP, USB_RBIASN H_CLKINP, H_CLKINN, PCIE_CLKINP, PCIE_CLKINN, USB_CLK48, SMB_CLK, LPC_CLKOUT[1:0], DA_REFCLKINP, DA_REFCLKINN, DB_REFCLKINPSCC, DB_REFCLKINNSCC, HDA_CLK, SUSCLK, SD[2:0]_CLK, SM_CK[1:0], SM_CK[1:0]#, CLK14, RTC_X1, RTC_X2 2 Notes Signal Group AGTL+ CMOS 1 CMOS Open Drain CMOS_HDA CMOS1.8 CMOS3.3 CMOSS3.3 Open Drain CMOS3.3-5 PCIE SDVO LVDS USB Analog, Reference Clocks NOTES: 1. These are 1.05-V buffers powered by VTT (except BSEL and TCK which are powered by VCC). 2. The Intel HD Audio interface signals can operate in either 1.5-V or 3.3-V ranges. 3.3 V operation is the default. The HDA interface can be configured to use the low voltage range by setting the Low Voltage Mode Enable bit of the HDCTL PCI configuration register (D27:F0, offset 40h, bit 0). 420 Datasheet DC Characteristics 20.2 Table 76. Power and Current Characteristics Thermal Design Power Symbol TDP Parameter Thermal Design Power (under nominal voltages) Range 1.6 – 2.5 Unit W Notes 1 NOTES: 1. This specification is the Thermal Design Power and is the estimated maximum possible expected power generated in a component by a realistic application. It is based on extrapolations in both hardware and software technology over the life of the component. It does not represent the expected power generated by a power virus. Studies by Intel indicate that no application will cause thermally significant power dissipation exceeding this specification, although it is possible to concoct higher power synthetic workloads that write but never read. Under realistic read/write conditions, this higher power workload can only be transient and is accounted in the AC (max) specification. Table 77. DC Current Characteristics (Sheet 1 of 2) Symbol IVTT IVCC_105 IVCC_15 IVCCPCIE IVCCLVDS IVCCSDVO IVCCPCIEBG IVCC33 IVCCHPLL IVCCADPLLA,B IVCCUSB15 IVCCUSBSUS IVCCUSBSUSBG IVCCUSBPLL IVCCSUS33 IVCC33RTC IVCC5REF IVCC5REFSUS Parameter 1.05-V VTT Supply Current 1.05-V Core Supply Current 1.5-V Core Supply Current 1.5-V PCI Express Supply Current 1.5-V LVDS Supply Current 1.5-V SDVO Supply Current 3.3-V PCI Express Band Gap 3.3-V HV CMOS Supply Current 1.5-V Host PLL Supply Current 1.5-V Display PLLA and PLLB Supply Current 1.5-V USB Core Current 3.3-V USB Suspend Current 3.3-V USB Suspend Bandgap Current 1.5-V USB PLL Current 3.3-V Suspend Current 3.3-V Real Time Clock 5-V Reference Current 5-V Suspend Current Signal Names VTT VCC VCC15 VCCPCIE, VCCPCIEPLL VCCLVDS VCCSDVO VCCPCIEBG VCC33 VCCAHPLL, VCCDHPLL VCCADPLLA, VCCADPLLB VCCUSBCORE VCC33USBSUS VCC33USBBGSUS VCCAUSBPLL VCC33SUS VCC33RTC VCC5REF VCC5REFSUS Max1,2 739 1800 1990 10 250 62 73 5 100 15 42 48 48 322 32 5 11 5 6 3 1 Unit mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA mA µA mA mA 6,7 Notes 3 4,5,12 Datasheet 421 DC Characteristics Table 77. DC Current Characteristics (Sheet 2 of 2) Symbol DDR2 Interface8,9 DDR2 System Memory: IVCCSM (1.8-V, 533 MTs) (1.5-V, 533 MTs) ISUS_VCCSM DDR2 System Memory Interface (1.8-V) Standby Supply Current DDR2 System Memory Interface Reference Voltage (0.90 V) Supply Current DDR2 System Memory Interface Reference Voltage (0.90 V) Standby Supply Current DDR2 System Memory Interface Resister Compensation Voltage (1.8 V) Supply Current DDR2 System Memory Interface Resister Compensation Voltage (1.8 V) Standby Supply Current VCCSM VCCSM 568 473 ~5 1255 10 mA 10, 11 mA Parameter Signal Names Max1,2 Unit Notes ISMVREF µA ISUS_SMVREF 10 µA 10 ITTRC VCCSM 20 mA ISUS_TTRC VCCSM 15 µA 10 NOTES: 1. This note has been removed. 2. ICCMAX is determined on a per-interface basis, and all cannot happen simultaneously. 3. Can vary from CPU. This estimate does not include sense Amps, as they are on a separate rail, or processor-specific signals. 4. Estimate is only for max current coming through the chipset’s supply balls. 5. Includes maximum leakage. 6. Rail includes PLL current. 7. ICCMAX number includes max current for all signal names listed in the table. 8. Determined with 2x Intel® SCH DDR2 buffer strength settings into a 50 Ohms to ½ VCCSM (DDR/DDR2) test load. 9. Specified at the measurement point into a timing and voltage compliance test load as shown in Transmitter compliance eye diagram of PCI Express specification and measured over any 250 consecutive TX Ul's. Specified at the measurement point and measured over any 250 consecutive ULS. The test load shown in receiver compliance eye diagram of PCI Express specification. Should be used as the RX device when taking measurements 10. Standby refers to system memory in Self Refresh during S3 (STR). 11. The lower value is specified between 0ºC and 50ºC. The higher value is specified between 50ºC and 90ºC. 12. The lower value is for all SKUs. The higher value is for US15X SKU with 266 MHz graphics core frequency enabled. 422 Datasheet DC Characteristics 20.3 General DC Characteristics The voltage on a specific pin shall be denoted as “V” followed by the subscripted name of that pin. For example: • VTT refers to the voltage applied to the VTT signal. (In the case of power supply signal names, the second V is not repeated in the subscripted portion.) • VH_SWING would refer to the voltage level of the H_SWING signal Table 78. Operating Condition Power Supply and Reference DC Characteristics (Sheet 1 of 2) Parameter Min Nom Max Unit Notes Signal Name Power Supply Voltages VCC VTT VCC15 VCCPCIE VCCSDVO VCCLVDS VCC15USB VCCAHPLL VCCDHPLL VCCAPCIEPLL VCCADPLLA VCCADPLLB VCCAUSBPLL VCCSM VCC33 VCCPCIEBG VCCHDA VCC33SUS VCCP33USBSUS VCCAUSBBGSUS VCC5REF VCC5REFSUS VCC33RTC 1.05 V Intel® SCH Core Supply Voltage 1.05 V Host AGTL+ Termination Voltage 0.9975 0.9975 1.05 1.05 1.1025 1.1025 V V 1.5 V Supply Voltage 1.425 1.50 1.575 V Various 1.5 V PLL Supply Voltages 1.425 1.5 1.575 V 1 1.8 V DDR2 I/O Supply Voltage 1.5 V DDR2 I/O Supply Voltage 3.3 V Power Supply Voltage 1.5/3.3 V Supply for Intel High Definition Audio 3.3 V Suspend-Well Power Supplies 5 V Reference Voltages Real Time Clock Voltage 1.7 1.425 3.135 1.425 3.135 3.135 1.8 1.5 3.3 1.5 3.3 3.3 1.9 1.575 3.465 1.575 3.465 3.465 V V V V 4.75 2.0 5.0 3.3 5.25 3.6 V V Reference Signals H_SWING H_GVREF Host Compensation Reference Voltage Host AGTL+ Reference Voltage 0.3125 x VTT – 1% 2/3 x VTT – 1% 0.3125 x VTT 2/3 x VTT 0.3125 x VTT + 1% 2/3 x VTT + 1% V V Datasheet 423 DC Characteristics Table 78. Operating Condition Power Supply and Reference DC Characteristics (Sheet 2 of 2) Parameter Host CMOS Reference Voltage DDR2 Reference Voltage Min 0.49 x VTT 0.49 x VCCSM Nom 0.50 x VTT Max 0.51 x VTT Unit Notes V Signal Name H_CGVREF SM_VREF H_RCOMPO SM_RCOMPO PCIE_ICOMPO PCIE_ICOMPI USB_RBIASP USB_RBIASN 0.50 x VCCSM 0.51 x VCCSM Table 79. Symbol AGTL+ VIL VIH VOL VOH IOL ILEAK CIN Active Signal DC Characteristics (Sheet 1 of 3) Parameter Min Nom Max Unit Notes Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Output Low Current Input Leakage Current Input Capacitance 2/ 3 –0.1 VTT + 0.1 — VTT – 0.1 — — 2 0.0 VTT — — — — — 2 /3 VTT – 0.1 VTT + 0.1 V V V V mA µA pF 1 2 1/ 3 VTT + 0.1 VTT VTTMAX ÷ (1.5 Rttmin) 20 3.5 CMOS, CMOS Open Drain VIL VIH VOL VOH ILEAK CIN CMOS_HDA VIL VIL, LVM VIH VIH, LVM VOL VOH ILEAK CIN CMOS1.8 Input Low Voltage Input Low Voltage (LVM) Input High Voltage Input High Voltage (LVM) Output Low Voltage Output High Voltage Input Leakage Current Input Capacitance –0.1 -0.1 ½ VCCHDA + 0.7 0.6 VCCHDA — 0.9 VCCHDA — 2 0.0 0.0 VCCHDA VCCHDA — — — — ½ VCCHDA – 0.7 0.4 VCCHDA VCCHDA + 0.1 VCCHDA + 0.1 0.1 VCCHDA — 20 3.5 V V V V V V µA pF Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input Leakage Current Input Capacitance –0.1 ½ VTT + 0.1 — 0.9 x VTT — 1 — — — — — — ½ VTT – 0.1 VTT + 0.1 0.1 x VTT VTT 20 3.5 V V V V µA pF 4 4 4 4 2, 3 424 Datasheet DC Characteristics Table 79. Symbol VIL VIH VOL VOH IOL ILEAK CIN Active Signal DC Characteristics (Sheet 2 of 3) Parameter Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Output Low Current Input Leakage Current Input Capacitance Min — VSM_VREF + 0.250 — VSM_VREF + 0.250 — — 2.0 Nom — — — — — — — Max VSM_VREF – 0.250 — VSM_VREF – 0.250 — 0.3 1.4 3.4 Unit V V V V mA µA pF 5 Notes CMOS3.3, CMOS3.3 Open Drain VIL VIH VOL VOH IOL IOH ILEAK CIN CMOS3.3–5 VIL VIH VOL VOH ILEAK CIN USB Refer to the Universal Serial Bus (USB) Base Specification, Rev. 2.0. PCIE VTX-DIFF P-P VTX_CM-ACp ZTX-DIFF-DC VRX-DIFF p-p VRX_CM-ACp SDVO VTX-DIFF P-P Differential Peak to Peak Output Voltage 0.4 — 0.6 V 6 Differential Peak to Peak Output Voltage AC Peak Common Mode Output Voltage DC Differential TX Impedance Differential Input Peak to Peak Voltage AC peak Common Mode Input Voltage 0.4 — 80 0.175 — — — 100 — — 0.6 20 120 1.2 150 V mV Ω V mV 6 6 6 Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input Leakage Current Input Capacitance –0.1 ½ VCC33 + 0.7 — 0.9 VCC33 — 1 0.0 VCC33 — — — — ½ VCC33 – 0.7 VCC33 + 0.1 0.1 VCC33 — 20 3.5 V V V V µA pF Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Output Low Current Output High Current Input Leakage Current Input Capacitance –0.1 ½ VCC33 + 0.7 — 0.9 VCC33 — — — 1 0.0 VCC33 — — — — — — ½ VCC33 – 0.7 VCC33 + 0.1 0.1 VCC33 — 1.5 -0.5mA 20 3.5 V V V V mA mA µA pF 3 3 3 Datasheet 425 DC Characteristics Table 79. Symbol VTX_CM-ACp ZTX-DIFF-DC VRX-DIFF p-p VRX_CM-ACp LVDS VOD ΔVOD VOS ΔVOS IOs IOZ Active Signal DC Characteristics (Sheet 3 of 3) Parameter AC Peak Common Mode Output Voltage DC Differential TX Impedance Differential Input Peak to Peak Voltage AC peak Common Mode Input Voltage Min — 80 0.175 — Nom — 100 — — Max 20 120 1.2 150 Unit mV Ω V mV 6 Notes 6 Differential Output Voltage Change in VOD between Complementary Output States Offset Voltage Change in VOS between Complementary Output States Output Short Circuit Current Output Tristate Current 250 0.8 — — — — 350 — 1.25 — -3.5 ±1 450 50 1.375 50 -10 ±10 mV mV V Differential Clocks VSWING VCROSS VCROSS_VAR VIH VIL Input swing Crossing point VCROSS Variance Maximum input voltage Minimum input voltage 300 300 — — -0.3 — — — — — — 550 140 1.15 — mV mV mV V V 7, 8 7, 9, 10, 11 7, 9, 10, 12 7, 9, 13 7, 9, 14 RTC_X1, RTC_X2 VIL VIH CIN Input Low Voltage Input High Voltage Input Capacitance -0.5 0.4 — — 3.5 0.1 1.2 V V pF NOTES: 1. Rttmin = 50 Ohm 2. VOL < VPAD < VTT 3. For CMOS Open Drain signals defined in Table 79, VOH, VOL, and ILEAK DC specifications are not applicable due to the pull-up/pull-down resister that is required on the board. 4. BSEL2, CFG[1:0] and TCK signals reference VCC, not VTT. 5. At VCCSM = 1.7 V. 6. Specified at the measurement point into a timing and voltage compliance test load as shown in Transmitter compliance eye diagram of PCI Express specification and measured over any 250 consecutive TX Uls. Specified at the measurement point and measured over any 250 consecutive ULS. The test load shown in receiver compliance eye diagram of PCI Express specification. Should be used as the RX device when taking measurements. 7. Applicable to the following signals: H_CLKINN/P, PCIE_CLKINN/P, DB_DREFCLKIN[N,P]SCC, DA_DREFCLKINN/P 426 Datasheet DC Characteristics 8. 9. 10. 11. 12. 13. 14. s Measurement taken from differential waveform. Measurement taken from single ended waveform. VCROSS is defined as the voltage where Clock = Clock#. Only applies to the differential rising edge (that is, Clock rising and Clock# falling) The total variation of all VCROSS measurements in any particular system. This is a subset of VCROSSMIN /VCROSSmax (VCROSS absolute) allowed. The intent is to limit VCROSS induced modulation by setting VCROSS_VAR to be smaller than VCROSS absolute. The max voltage including overshoot. The min voltage including undershoot. Table 80. PLL Noise Rejection Specifications PLL VCCAHPLL VCCDHPLL VCCAPCIE Noise Rejection Specification 34 dB(A) attenuation of power supply noise in 1-MHz (f1) to 66MHz (f2) range,
319537-003US 价格&库存

很抱歉,暂时无法提供与“319537-003US”相匹配的价格&库存,您可以联系我们找货

免费人工找货