xref: /illumos-gate/usr/src/uts/i86pc/io/ppm.conf (revision d269770fc6aef962688d49c277210768c50b3b77)
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#
224596d7e9SGuoli Shu# Copyright 2008 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
752df1fe9cSrandyf#
765cff7825Smh27603domain_cpu-devices="/cpus/cpu@*";
775cff7825Smh27603domain_cpu-model="CPU";
782df1fe9cSrandyf
792df1fe9cSrandyf#
802df1fe9cSrandyf# Estar domain
812df1fe9cSrandyf#   0x4101 is APPMIOC_ENTER_S3	(('A' << 8) | 1)
822df1fe9cSrandyf#   0x4102 is APPMIOC_EXIT_S3	(('A' << 8) | 2)
832df1fe9cSrandyf#
842df1fe9cSrandyfdomain_estar-devices="/";
852df1fe9cSrandyfdomain_estar-model="SX";
862df1fe9cSrandyfdomain_estar-control=
872df1fe9cSrandyf    "cmd=ENTER_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4101",
882df1fe9cSrandyf    "cmd=EXIT_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4102";
892df1fe9cSrandyf
902df1fe9cSrandyf#
912df1fe9cSrandyf# S3-enable whitelist
922df1fe9cSrandyf#
932df1fe9cSrandyfS3-support-enable =
944596d7e9SGuoli Shu    "TOSHIBA", "TECRA M8",
954596d7e9SGuoli Shu    "TOSHIBA", "TECRA M9",
964596d7e9SGuoli Shu    "TOSHIBA", "TECRA M10",
974596d7e9SGuoli Shu    "TOSHIBA", "TECRA A9",
984596d7e9SGuoli Shu    "TOSHIBA", "Satellite A205",
994596d7e9SGuoli Shu    "TOSHIBA", "PORTEGE R500",
100*d269770fSGuoli Shu    "TOSHIBA", "PORTEGE R600",
1014596d7e9SGuoli Shu    "LENOVO", "64608VU",
1024596d7e9SGuoli Shu    "LENOVO", "889703U",
1034596d7e9SGuoli Shu    "Sony Corporation", "VGN-CR490N",
104*d269770fSGuoli Shu    "Dell Inc.", "Latitude X1                     ",
1054596d7e9SGuoli Shu    "Dell Inc.", "Latitude D630                   ",
1064596d7e9SGuoli Shu    "Dell Inc.", "Precision M4300                 ",
1074596d7e9SGuoli Shu    "Sun Microsystems", "Ultra 24",
1082df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
1092df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
1102df1fe9cSrandyf
1112df1fe9cSrandyfS3-support-disable =
1122df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
1132df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
1142df1fe9cSrandyf
1152df1fe9cSrandyfS3-autoenable =
1164596d7e9SGuoli Shu    "TOSHIBA", "TECRA M8",
1174596d7e9SGuoli Shu    "TOSHIBA", "TECRA M9",
1184596d7e9SGuoli Shu    "TOSHIBA", "TECRA M10",
1194596d7e9SGuoli Shu    "TOSHIBA", "TECRA A9",
1204596d7e9SGuoli Shu    "TOSHIBA", "Satellite A205",
1214596d7e9SGuoli Shu    "TOSHIBA", "PORTEGE R500",
122*d269770fSGuoli Shu    "TOSHIBA", "PORTEGE R600",
1234596d7e9SGuoli Shu    "LENOVO", "64608VU",
1244596d7e9SGuoli Shu    "LENOVO", "889703U",
1254596d7e9SGuoli Shu    "Sony Corporation", "VGN-CR490N",
126*d269770fSGuoli Shu    "Dell Inc.", "Latitude X1                     ",
1274596d7e9SGuoli Shu    "Dell Inc.", "Latitude D630                   ",
1284596d7e9SGuoli Shu    "Dell Inc.", "Precision M4300                 ",
1294596d7e9SGuoli Shu    "Sun Microsystems", "Ultra 24",
1302df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
1312df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
1322df1fe9cSrandyf
1332df1fe9cSrandyfS3-autodisable =
1342df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
1352df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
1362df1fe9cSrandyf
1372df1fe9cSrandyfautopm-enable =
1384596d7e9SGuoli Shu    "TOSHIBA", "TECRA M8",
1394596d7e9SGuoli Shu    "TOSHIBA", "TECRA M9",
1404596d7e9SGuoli Shu    "TOSHIBA", "TECRA M10",
1414596d7e9SGuoli Shu    "TOSHIBA", "TECRA A9",
1424596d7e9SGuoli Shu    "TOSHIBA", "Satellite A205",
1434596d7e9SGuoli Shu    "TOSHIBA", "PORTEGE R500",
144*d269770fSGuoli Shu    "TOSHIBA", "PORTEGE R600",
1454596d7e9SGuoli Shu    "LENOVO", "64608VU",
1464596d7e9SGuoli Shu    "LENOVO", "889703U",
1474596d7e9SGuoli Shu    "Sony Corporation", "VGN-CR490N",
148*d269770fSGuoli Shu    "Dell Inc.", "Latitude X1                     ",
1494596d7e9SGuoli Shu    "Dell Inc.", "Latitude D630                   ",
1504596d7e9SGuoli Shu    "Dell Inc.", "Precision M4300                 ",
1514596d7e9SGuoli Shu    "Sun Microsystems", "Ultra 24",
1522df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
1532df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
1542df1fe9cSrandyf
1552df1fe9cSrandyfautopm-disable =
1562df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
1572df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
158