xref: /illumos-gate/usr/src/uts/i86pc/io/ppm.conf (revision cfb2f55f669ce83d8f5f03df87dbaeb6fb133f64)
15cff7825Smh27603#
25cff7825Smh27603# CDDL HEADER START
35cff7825Smh27603#
45cff7825Smh27603# The contents of this file are subject to the terms of the
55cff7825Smh27603# Common Development and Distribution License (the "License").
65cff7825Smh27603# You may not use this file except in compliance with the License.
75cff7825Smh27603#
85cff7825Smh27603# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95cff7825Smh27603# or http://www.opensolaris.org/os/licensing.
105cff7825Smh27603# See the License for the specific language governing permissions
115cff7825Smh27603# and limitations under the License.
125cff7825Smh27603#
135cff7825Smh27603# When distributing Covered Code, include this CDDL HEADER in each
145cff7825Smh27603# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155cff7825Smh27603# If applicable, add the following below this CDDL HEADER, with the
165cff7825Smh27603# fields enclosed by brackets "[]" replaced with your own identifying
175cff7825Smh27603# information: Portions Copyright [yyyy] [name of copyright owner]
185cff7825Smh27603#
195cff7825Smh27603# CDDL HEADER END
205cff7825Smh27603#
215cff7825Smh27603#
22*cfb2f55fSBick Torrejon# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
235cff7825Smh27603# Use is subject to license terms.
245cff7825Smh27603#
255cff7825Smh27603
265cff7825Smh27603name="ppm" parent="pseudo" instance=0;
275cff7825Smh27603
285cff7825Smh27603#
295cff7825Smh27603# ppm configuration format
305cff7825Smh27603#
315cff7825Smh27603# "ppm-domains" - in form of "domain_xxx" where "xxx" string highlights
325cff7825Smh27603# the nature of the domain;
335cff7825Smh27603#
345cff7825Smh27603# "domain_xxx-model" - PM model: CPU
352df1fe9cSrandyf# "domain_xxx-model" - PM model: SX
365cff7825Smh27603#
375cff7825Smh27603# "domain_xxx-propname" - a property name that is exported by device in
385cff7825Smh27603# a domain.  Currently, it is used by PCI_PROP model to identify devices
395cff7825Smh27603# that are to have their clocks stopped when all power-manageable devices
405cff7825Smh27603# in the domain are at D3 power level.
415cff7825Smh27603#
425cff7825Smh27603# "domain-xxx-devices" - a list of prom path match patterns to match devices
435cff7825Smh27603# that fall into "domain_xxx", where wildcard '*' is allowed by observing
445cff7825Smh27603# the following expectations:
455cff7825Smh27603#	. a single wildcard with exact match up to (but exclude) the wildcard
465cff7825Smh27603#	  which then terminates the match pattern;
475cff7825Smh27603#	. a single wildcard that does not terminate a match pattern must
485cff7825Smh27603#	  match driver name (followed by '@');
495cff7825Smh27603#	. with two wildcard occurences, the first is to match driver name,
505cff7825Smh27603#	  the second function id, as well as the last character of the match
515cff7825Smh27603#	  pattern.
525cff7825Smh27603#
535cff7825Smh27603# "domain-xxx-ctrl" - blank space separated definitions in the form of
545cff7825Smh27603# keyword=definition [keyword=definition...]
555cff7825Smh27603#    The keywords are as follows, where 'method' must come before mask as it
565cff7825Smh27603#       tells how to store 'mask' and 'val'.  Missing 'val' defaults to 0.
575cff7825Smh27603#
585cff7825Smh27603#    which keywords apply depends on cmd.  There are two sets as shown below.
595cff7825Smh27603#    Here is the first:
602df1fe9cSrandyf#	cmd=[ENTER_S3 | ENTER_S4]
615cff7825Smh27603# 	path=<prompath>	- control device's prom pathname (includes minor)
625cff7825Smh27603# 	method=[KIO|I2CKIO]	This selects a method which may be
635cff7825Smh27603#		an ioctl that sets a single value or an i2c ioctl that
645cff7825Smh27603#		takes a value and a mask to access gpio register
655cff7825Smh27603#	iord=<integer> - value of ioctl command for reading
665cff7825Smh27603#	iowr=<integer> - value of ioctl command for writing
675cff7825Smh27603# 	val=<integer>	- a single integer value, generally the value to which
685cff7825Smh27603#			  the relevant bits of a register will be set
695cff7825Smh27603#	mask=<integer>	- which bits of val are relevant (if method is I2CKIO)
705cff7825Smh27603#
712df1fe9cSrandyfppm-domains="domain_cpu" , "domain_estar";
725cff7825Smh27603
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="/";
795cff7825Smh27603domain_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                     ",
1094596d7e9SGuoli 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                     ",
1314596d7e9SGuoli 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                     ",
1534596d7e9SGuoli 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