xref: /illumos-gate/usr/src/uts/i86pc/io/ppm.conf (revision 2df1fe9ca32bb227b9158c67f5c00b54c20b10fd)
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#
225cff7825Smh27603# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
235cff7825Smh27603# Use is subject to license terms.
245cff7825Smh27603#
255cff7825Smh27603#pragma ident	"%Z%%M%	%I%	%E% SMI"
265cff7825Smh27603#
275cff7825Smh27603
285cff7825Smh27603name="ppm" parent="pseudo" instance=0;
295cff7825Smh27603
305cff7825Smh27603#
315cff7825Smh27603# ppm configuration format
325cff7825Smh27603#
335cff7825Smh27603# "ppm-domains" - in form of "domain_xxx" where "xxx" string highlights
345cff7825Smh27603# the nature of the domain;
355cff7825Smh27603#
365cff7825Smh27603# "domain_xxx-model" - PM model: CPU
37*2df1fe9cSrandyf# "domain_xxx-model" - PM model: SX
385cff7825Smh27603#
395cff7825Smh27603# "domain_xxx-propname" - a property name that is exported by device in
405cff7825Smh27603# a domain.  Currently, it is used by PCI_PROP model to identify devices
415cff7825Smh27603# that are to have their clocks stopped when all power-manageable devices
425cff7825Smh27603# in the domain are at D3 power level.
435cff7825Smh27603#
445cff7825Smh27603# "domain-xxx-devices" - a list of prom path match patterns to match devices
455cff7825Smh27603# that fall into "domain_xxx", where wildcard '*' is allowed by observing
465cff7825Smh27603# the following expectations:
475cff7825Smh27603#	. a single wildcard with exact match up to (but exclude) the wildcard
485cff7825Smh27603#	  which then terminates the match pattern;
495cff7825Smh27603#	. a single wildcard that does not terminate a match pattern must
505cff7825Smh27603#	  match driver name (followed by '@');
515cff7825Smh27603#	. with two wildcard occurences, the first is to match driver name,
525cff7825Smh27603#	  the second function id, as well as the last character of the match
535cff7825Smh27603#	  pattern.
545cff7825Smh27603#
555cff7825Smh27603# "domain-xxx-ctrl" - blank space separated definitions in the form of
565cff7825Smh27603# keyword=definition [keyword=definition...]
575cff7825Smh27603#    The keywords are as follows, where 'method' must come before mask as it
585cff7825Smh27603#       tells how to store 'mask' and 'val'.  Missing 'val' defaults to 0.
595cff7825Smh27603#
605cff7825Smh27603#    which keywords apply depends on cmd.  There are two sets as shown below.
615cff7825Smh27603#    Here is the first:
62*2df1fe9cSrandyf#	cmd=[ENTER_S3 | ENTER_S4]
635cff7825Smh27603# 	path=<prompath>	- control device's prom pathname (includes minor)
645cff7825Smh27603# 	method=[KIO|I2CKIO]	This selects a method which may be
655cff7825Smh27603#		an ioctl that sets a single value or an i2c ioctl that
665cff7825Smh27603#		takes a value and a mask to access gpio register
675cff7825Smh27603#	iord=<integer> - value of ioctl command for reading
685cff7825Smh27603#	iowr=<integer> - value of ioctl command for writing
695cff7825Smh27603# 	val=<integer>	- a single integer value, generally the value to which
705cff7825Smh27603#			  the relevant bits of a register will be set
715cff7825Smh27603#	mask=<integer>	- which bits of val are relevant (if method is I2CKIO)
725cff7825Smh27603#
73*2df1fe9cSrandyfppm-domains="domain_cpu" , "domain_estar";
745cff7825Smh27603
75*2df1fe9cSrandyf#
76*2df1fe9cSrandyf# CPU domain
77*2df1fe9cSrandyf#
785cff7825Smh27603domain_cpu-devices="/cpus/cpu@*";
795cff7825Smh27603domain_cpu-model="CPU";
80*2df1fe9cSrandyf
81*2df1fe9cSrandyf#
82*2df1fe9cSrandyf# Estar domain
83*2df1fe9cSrandyf#   0x4101 is APPMIOC_ENTER_S3	(('A' << 8) | 1)
84*2df1fe9cSrandyf#   0x4102 is APPMIOC_EXIT_S3	(('A' << 8) | 2)
85*2df1fe9cSrandyf#
86*2df1fe9cSrandyfdomain_estar-devices="/";
87*2df1fe9cSrandyfdomain_estar-model="SX";
88*2df1fe9cSrandyfdomain_estar-control=
89*2df1fe9cSrandyf    "cmd=ENTER_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4101",
90*2df1fe9cSrandyf    "cmd=EXIT_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4102";
91*2df1fe9cSrandyf
92*2df1fe9cSrandyf#
93*2df1fe9cSrandyf# S3-enable whitelist
94*2df1fe9cSrandyf#
95*2df1fe9cSrandyfS3-support-enable =
96*2df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
97*2df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
98*2df1fe9cSrandyf
99*2df1fe9cSrandyfS3-support-disable =
100*2df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
101*2df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
102*2df1fe9cSrandyf
103*2df1fe9cSrandyfS3-autoenable =
104*2df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
105*2df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
106*2df1fe9cSrandyf
107*2df1fe9cSrandyfS3-autodisable =
108*2df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
109*2df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
110*2df1fe9cSrandyf
111*2df1fe9cSrandyfautopm-enable =
112*2df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 40 Workstation",
113*2df1fe9cSrandyf    "Sun Microsystems", "Sun Ultra 20 Workstation";
114*2df1fe9cSrandyf
115*2df1fe9cSrandyfautopm-disable =
116*2df1fe9cSrandyf    "Sun Microsystems", "Sun Blade x8400 Server Module",
117*2df1fe9cSrandyf    "Sun Microsystems", "Sun Fire*";
118