1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25 26name="ppm" parent="pseudo" instance=0; 27 28# 29# ppm configuration format 30# 31# "ppm-domains" - in form of "domain_xxx" where "xxx" string highlights 32# the nature of the domain; 33# 34# "domain_xxx-model" - PM model: CPU 35# "domain_xxx-model" - PM model: SX 36# 37# "domain_xxx-propname" - a property name that is exported by device in 38# a domain. Currently, it is used by PCI_PROP model to identify devices 39# that are to have their clocks stopped when all power-manageable devices 40# in the domain are at D3 power level. 41# 42# "domain-xxx-devices" - a list of prom path match patterns to match devices 43# that fall into "domain_xxx", where wildcard '*' is allowed by observing 44# the following expectations: 45# . a single wildcard with exact match up to (but exclude) the wildcard 46# which then terminates the match pattern; 47# . a single wildcard that does not terminate a match pattern must 48# match driver name (followed by '@'); 49# . with two wildcard occurences, the first is to match driver name, 50# the second function id, as well as the last character of the match 51# pattern. 52# 53# "domain-xxx-ctrl" - blank space separated definitions in the form of 54# keyword=definition [keyword=definition...] 55# The keywords are as follows, where 'method' must come before mask as it 56# tells how to store 'mask' and 'val'. Missing 'val' defaults to 0. 57# 58# which keywords apply depends on cmd. There are two sets as shown below. 59# Here is the first: 60# cmd=[ENTER_S3 | ENTER_S4] 61# path=<prompath> - control device's prom pathname (includes minor) 62# method=[KIO|I2CKIO] This selects a method which may be 63# an ioctl that sets a single value or an i2c ioctl that 64# takes a value and a mask to access gpio register 65# iord=<integer> - value of ioctl command for reading 66# iowr=<integer> - value of ioctl command for writing 67# val=<integer> - a single integer value, generally the value to which 68# the relevant bits of a register will be set 69# mask=<integer> - which bits of val are relevant (if method is I2CKIO) 70# 71ppm-domains="domain_cpu" , "domain_estar"; 72 73# 74# CPU domain 75# 76domain_cpu-devices="/cpus/cpu@*"; 77domain_cpu-model="CPU"; 78 79# 80# Estar domain 81# 0x4101 is APPMIOC_ENTER_S3 (('A' << 8) | 1) 82# 0x4102 is APPMIOC_EXIT_S3 (('A' << 8) | 2) 83# 84domain_estar-devices="/"; 85domain_estar-model="SX"; 86domain_estar-control= 87 "cmd=ENTER_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4101", 88 "cmd=EXIT_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4102"; 89 90# 91# S3-enable whitelist 92# 93S3-support-enable = 94 "TOSHIBA", "TECRA M8", 95 "TOSHIBA", "TECRA M9", 96 "TOSHIBA", "TECRA M10", 97 "TOSHIBA", "TECRA A9", 98 "TOSHIBA", "Satellite A205", 99 "TOSHIBA", "PORTEGE R500", 100 "TOSHIBA", "PORTEGE R600", 101 "LENOVO", "64608VU", 102 "LENOVO", "889703U", 103 "Sony Corporation", "VGN-CR490N", 104 "Dell Inc.", "Latitude X1 ", 105 "Dell Inc.", "Latitude D630 ", 106 "Dell Inc.", "Precision M4300 ", 107 "Sun Microsystems", "Ultra 24", 108 "Sun Microsystems", "Ultra 27", 109 "Sun Microsystems", "Sun Ultra 40 Workstation", 110 "Sun Microsystems", "Sun Ultra 20 Workstation"; 111 112S3-support-disable = 113 "Sun Microsystems", "Sun Blade x8400 Server Module", 114 "Sun Microsystems", "Sun Fire*"; 115 116S3-autoenable = 117 "TOSHIBA", "TECRA M8", 118 "TOSHIBA", "TECRA M9", 119 "TOSHIBA", "TECRA M10", 120 "TOSHIBA", "TECRA A9", 121 "TOSHIBA", "Satellite A205", 122 "TOSHIBA", "PORTEGE R500", 123 "TOSHIBA", "PORTEGE R600", 124 "LENOVO", "64608VU", 125 "LENOVO", "889703U", 126 "Sony Corporation", "VGN-CR490N", 127 "Dell Inc.", "Latitude X1 ", 128 "Dell Inc.", "Latitude D630 ", 129 "Dell Inc.", "Precision M4300 ", 130 "Sun Microsystems", "Ultra 24", 131 "Sun Microsystems", "Ultra 27", 132 "Sun Microsystems", "Sun Ultra 40 Workstation", 133 "Sun Microsystems", "Sun Ultra 20 Workstation"; 134 135S3-autodisable = 136 "Sun Microsystems", "Sun Blade x8400 Server Module", 137 "Sun Microsystems", "Sun Fire*"; 138 139autopm-enable = 140 "TOSHIBA", "TECRA M8", 141 "TOSHIBA", "TECRA M9", 142 "TOSHIBA", "TECRA M10", 143 "TOSHIBA", "TECRA A9", 144 "TOSHIBA", "Satellite A205", 145 "TOSHIBA", "PORTEGE R500", 146 "TOSHIBA", "PORTEGE R600", 147 "LENOVO", "64608VU", 148 "LENOVO", "889703U", 149 "Sony Corporation", "VGN-CR490N", 150 "Dell Inc.", "Latitude X1 ", 151 "Dell Inc.", "Latitude D630 ", 152 "Dell Inc.", "Precision M4300 ", 153 "Sun Microsystems", "Ultra 24", 154 "Sun Microsystems", "Ultra 27", 155 "Sun Microsystems", "Sun Ultra 40 Workstation", 156 "Sun Microsystems", "Sun Ultra 20 Workstation"; 157 158autopm-disable = 159 "Sun Microsystems", "Sun Blade x8400 Server Module", 160 "Sun Microsystems", "Sun Fire*"; 161