xref: /titanic_51/usr/src/uts/i86pc/io/ppm.conf (revision f6485eec0b33b15e863ae352c5279913ed8e6d29)
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 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#pragma ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28name="ppm" parent="pseudo" instance=0;
29
30#
31# ppm configuration format
32#
33# "ppm-domains" - in form of "domain_xxx" where "xxx" string highlights
34# the nature of the domain;
35#
36# "domain_xxx-model" - PM model: CPU
37# "domain_xxx-model" - PM model: SX
38#
39# "domain_xxx-propname" - a property name that is exported by device in
40# a domain.  Currently, it is used by PCI_PROP model to identify devices
41# that are to have their clocks stopped when all power-manageable devices
42# in the domain are at D3 power level.
43#
44# "domain-xxx-devices" - a list of prom path match patterns to match devices
45# that fall into "domain_xxx", where wildcard '*' is allowed by observing
46# the following expectations:
47#	. a single wildcard with exact match up to (but exclude) the wildcard
48#	  which then terminates the match pattern;
49#	. a single wildcard that does not terminate a match pattern must
50#	  match driver name (followed by '@');
51#	. with two wildcard occurences, the first is to match driver name,
52#	  the second function id, as well as the last character of the match
53#	  pattern.
54#
55# "domain-xxx-ctrl" - blank space separated definitions in the form of
56# keyword=definition [keyword=definition...]
57#    The keywords are as follows, where 'method' must come before mask as it
58#       tells how to store 'mask' and 'val'.  Missing 'val' defaults to 0.
59#
60#    which keywords apply depends on cmd.  There are two sets as shown below.
61#    Here is the first:
62#	cmd=[ENTER_S3 | ENTER_S4]
63# 	path=<prompath>	- control device's prom pathname (includes minor)
64# 	method=[KIO|I2CKIO]	This selects a method which may be
65#		an ioctl that sets a single value or an i2c ioctl that
66#		takes a value and a mask to access gpio register
67#	iord=<integer> - value of ioctl command for reading
68#	iowr=<integer> - value of ioctl command for writing
69# 	val=<integer>	- a single integer value, generally the value to which
70#			  the relevant bits of a register will be set
71#	mask=<integer>	- which bits of val are relevant (if method is I2CKIO)
72#
73ppm-domains="domain_cpu" , "domain_estar";
74
75#
76# CPU domain
77#
78domain_cpu-devices="/cpus/cpu@*";
79domain_cpu-model="CPU";
80
81#
82# Estar domain
83#   0x4101 is APPMIOC_ENTER_S3	(('A' << 8) | 1)
84#   0x4102 is APPMIOC_EXIT_S3	(('A' << 8) | 2)
85#
86domain_estar-devices="/";
87domain_estar-model="SX";
88domain_estar-control=
89    "cmd=ENTER_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4101",
90    "cmd=EXIT_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4102";
91
92#
93# S3-enable whitelist
94#
95S3-support-enable =
96    "Sun Microsystems", "Sun Ultra 40 Workstation",
97    "Sun Microsystems", "Sun Ultra 20 Workstation";
98
99S3-support-disable =
100    "Sun Microsystems", "Sun Blade x8400 Server Module",
101    "Sun Microsystems", "Sun Fire*";
102
103S3-autoenable =
104    "Sun Microsystems", "Sun Ultra 40 Workstation",
105    "Sun Microsystems", "Sun Ultra 20 Workstation";
106
107S3-autodisable =
108    "Sun Microsystems", "Sun Blade x8400 Server Module",
109    "Sun Microsystems", "Sun Fire*";
110
111autopm-enable =
112    "Sun Microsystems", "Sun Ultra 40 Workstation",
113    "Sun Microsystems", "Sun Ultra 20 Workstation";
114
115autopm-disable =
116    "Sun Microsystems", "Sun Blade x8400 Server Module",
117    "Sun Microsystems", "Sun Fire*";
118