xref: /illumos-gate/usr/src/uts/i86pc/io/ppm.conf (revision cfb2f55f)
15cff7825Smh#
25cff7825Smh# CDDL HEADER START
35cff7825Smh#
45cff7825Smh# The contents of this file are subject to the terms of the
55cff7825Smh# Common Development and Distribution License (the "License").
65cff7825Smh# You may not use this file except in compliance with the License.
75cff7825Smh#
85cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95cff7825Smh# or http://www.opensolaris.org/os/licensing.
105cff7825Smh# See the License for the specific language governing permissions
115cff7825Smh# and limitations under the License.
125cff7825Smh#
135cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each
145cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155cff7825Smh# If applicable, add the following below this CDDL HEADER, with the
165cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying
175cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner]
185cff7825Smh#
195cff7825Smh# CDDL HEADER END
205cff7825Smh#
215cff7825Smh#
22*cfb2f55fSBick Torrejon# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
235cff7825Smh# Use is subject to license terms.
245cff7825Smh#
255cff7825Smh
265cff7825Smhname="ppm" parent="pseudo" instance=0;
275cff7825Smh
285cff7825Smh#
295cff7825Smh# ppm configuration format
305cff7825Smh#
315cff7825Smh# "ppm-domains" - in form of "domain_xxx" where "xxx" string highlights
325cff7825Smh# the nature of the domain;
335cff7825Smh#
345cff7825Smh# "domain_xxx-model" - PM model: CPU
352df1fe9cSrandyf# "domain_xxx-model" - PM model: SX
365cff7825Smh#
375cff7825Smh# "domain_xxx-propname" - a property name that is exported by device in
385cff7825Smh# a domain.  Currently, it is used by PCI_PROP model to identify devices
395cff7825Smh# that are to have their clocks stopped when all power-manageable devices
405cff7825Smh# in the domain are at D3 power level.
415cff7825Smh#
425cff7825Smh# "domain-xxx-devices" - a list of prom path match patterns to match devices
435cff7825Smh# that fall into "domain_xxx", where wildcard '*' is allowed by observing
445cff7825Smh# the following expectations:
455cff7825Smh#	. a single wildcard with exact match up to (but exclude) the wildcard
465cff7825Smh#	  which then terminates the match pattern;
475cff7825Smh#	. a single wildcard that does not terminate a match pattern must
485cff7825Smh#	  match driver name (followed by '@');
495cff7825Smh#	. with two wildcard occurences, the first is to match driver name,
505cff7825Smh#	  the second function id, as well as the last character of the match
515cff7825Smh#	  pattern.
525cff7825Smh#
535cff7825Smh# "domain-xxx-ctrl" - blank space separated definitions in the form of
545cff7825Smh# keyword=definition [keyword=definition...]
555cff7825Smh#    The keywords are as follows, where 'method' must come before mask as it
565cff7825Smh#       tells how to store 'mask' and 'val'.  Missing 'val' defaults to 0.
575cff7825Smh#
585cff7825Smh#    which keywords apply depends on cmd.  There are two sets as shown below.
595cff7825Smh#    Here is the first:
602df1fe9cSrandyf#	cmd=[ENTER_S3 | ENTER_S4]
615cff7825Smh# 	path=<prompath>	- control device's prom pathname (includes minor)
625cff7825Smh# 	method=[KIO|I2CKIO]	This selects a method which may be
635cff7825Smh#		an ioctl that sets a single value or an i2c ioctl that
645cff7825Smh#		takes a value and a mask to access gpio register
655cff7825Smh#	iord=<integer> - value of ioctl command for reading
665cff7825Smh#	iowr=<integer> - value of ioctl command for writing
675cff7825Smh# 	val=<integer>	- a single integer value, generally the value to which
685cff7825Smh#			  the relevant bits of a register will be set
695cff7825Smh#	mask=<integer>	- which bits of val are relevant (if method is I2CKIO)
705cff7825Smh#
712df1fe9cSrandyfppm-domains="domain_cpu" , "domain_estar";
725cff7825Smh
732df1fe9cSrandyf#
742df1fe9cSrandyf# CPU domain
75b72d5b75SMichael Corcoran# A special rule exists on x86 to catch all CPU devices by using "/" as the
76b72d5b75SMichael Corcoran# device path.
772df1fe9cSrandyf#
78b72d5b75SMichael Corcorandomain_cpu-devices="/";
795cff7825Smhdomain_cpu-model="CPU";
802df1fe9cSrandyf
812df1fe9cSrandyf#
822df1fe9cSrandyf# Estar domain
832df1fe9cSrandyf#   0x4101 is APPMIOC_ENTER_S3	(('A' << 8) | 1)
842df1fe9cSrandyf#   0x4102 is APPMIOC_EXIT_S3	(('A' << 8) | 2)
852df1fe9cSrandyf#
862df1fe9cSrandyfdomain_estar-devices="/";
872df1fe9cSrandyfdomain_estar-model="SX";
882df1fe9cSrandyfdomain_estar-control=
892df1fe9cSrandyf    "cmd=ENTER_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4101",
902df1fe9cSrandyf    "cmd=EXIT_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4102";
912df1fe9cSrandyf
922df1fe9cSrandyf#
932df1fe9cSrandyf# S3-enable whitelist
942df1fe9cSrandyf#
952df1fe9cSrandyfS3-support-enable =
964596d7e9SGuoli Shu    "TOSHIBA", "TECRA M8",
974596d7e9SGuoli Shu    "TOSHIBA", "TECRA M9",
984596d7e9SGuoli Shu    "TOSHIBA", "TECRA M10",
994596d7e9SGuoli Shu    "TOSHIBA", "TECRA A9",
1004596d7e9SGuoli Shu    "TOSHIBA", "Satellite A205",
1014596d7e9SGuoli Shu    "TOSHIBA", "PORTEGE R500",
102d269770fSGuoli Shu    "TOSHIBA", "PORTEGE R600",
103*cfb2f55fSBick Torrejon    "TOSHIBA", "TOSHIBA NB205",
104*cfb2f55fSBick Torrejon    "TOSHIBA", "TOSHIBA NB200",
1054596d7e9SGuoli Shu    "LENOVO", "64608VU",
1064596d7e9SGuoli Shu    "LENOVO", "889703U",
1074596d7e9SGuoli Shu    "Sony Corporation", "VGN-CR490N",
108d269770fSGuoli Shu    "Dell Inc.", "Latitude X1                     ",
109d269770fSGuoli Shu    "Dell Inc.", "Latitude D630                   ",
1104596d7e9SGuoli Shu    "Dell Inc.", "Precision M4300                 ",
1114596d7e9SGuoli Shu    "Sun Microsystems", "Ultra 24",
1122df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
1132df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
1142df1fe9cSrandyf
1152df1fe9cSrandyfS3-support-disable =
1162df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
1172df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
1182df1fe9cSrandyf
1192df1fe9cSrandyfS3-autoenable =
1204596d7e9SGuoli Shu    "TOSHIBA", "TECRA M8",
1214596d7e9SGuoli Shu    "TOSHIBA", "TECRA M9",
1224596d7e9SGuoli Shu    "TOSHIBA", "TECRA M10",
1234596d7e9SGuoli Shu    "TOSHIBA", "TECRA A9",
1244596d7e9SGuoli Shu    "TOSHIBA", "Satellite A205",
1254596d7e9SGuoli Shu    "TOSHIBA", "PORTEGE R500",
126d269770fSGuoli Shu    "TOSHIBA", "PORTEGE R600",
1274596d7e9SGuoli Shu    "LENOVO", "64608VU",
1284596d7e9SGuoli Shu    "LENOVO", "889703U",
1294596d7e9SGuoli Shu    "Sony Corporation", "VGN-CR490N",
130d269770fSGuoli Shu    "Dell Inc.", "Latitude X1                     ",
131d269770fSGuoli Shu    "Dell Inc.", "Latitude D630                   ",
1324596d7e9SGuoli Shu    "Dell Inc.", "Precision M4300                 ",
1334596d7e9SGuoli Shu    "Sun Microsystems", "Ultra 24",
1342df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
1352df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
1362df1fe9cSrandyf
1372df1fe9cSrandyfS3-autodisable =
1382df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
1392df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
1402df1fe9cSrandyf
1412df1fe9cSrandyfautopm-enable =
1424596d7e9SGuoli Shu    "TOSHIBA", "TECRA M8",
1434596d7e9SGuoli Shu    "TOSHIBA", "TECRA M9",
1444596d7e9SGuoli Shu    "TOSHIBA", "TECRA M10",
1454596d7e9SGuoli Shu    "TOSHIBA", "TECRA A9",
1464596d7e9SGuoli Shu    "TOSHIBA", "Satellite A205",
1474596d7e9SGuoli Shu    "TOSHIBA", "PORTEGE R500",
148d269770fSGuoli Shu    "TOSHIBA", "PORTEGE R600",
1494596d7e9SGuoli Shu    "LENOVO", "64608VU",
1504596d7e9SGuoli Shu    "LENOVO", "889703U",
1514596d7e9SGuoli Shu    "Sony Corporation", "VGN-CR490N",
152d269770fSGuoli Shu    "Dell Inc.", "Latitude X1                     ",
153d269770fSGuoli Shu    "Dell Inc.", "Latitude D630                   ",
1544596d7e9SGuoli Shu    "Dell Inc.", "Precision M4300                 ",
1554596d7e9SGuoli Shu    "Sun Microsystems", "Ultra 24",
1562df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
1572df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
1582df1fe9cSrandyf
1592df1fe9cSrandyfautopm-disable =
1602df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
1612df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
162