ppm.conf revision 2df1fe9ca32bb227b9158c67f5c00b54c20b10fd
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# CDDL HEADER START
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# The contents of this file are subject to the terms of the
5cff782560a1c3cf913ba5574a5123a299f3315emh# Common Development and Distribution License (the "License").
5cff782560a1c3cf913ba5574a5123a299f3315emh# You may not use this file except in compliance with the License.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5cff782560a1c3cf913ba5574a5123a299f3315emh# or http://www.opensolaris.org/os/licensing.
5cff782560a1c3cf913ba5574a5123a299f3315emh# See the License for the specific language governing permissions
5cff782560a1c3cf913ba5574a5123a299f3315emh# and limitations under the License.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# When distributing Covered Code, include this CDDL HEADER in each
5cff782560a1c3cf913ba5574a5123a299f3315emh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5cff782560a1c3cf913ba5574a5123a299f3315emh# If applicable, add the following below this CDDL HEADER, with the
5cff782560a1c3cf913ba5574a5123a299f3315emh# fields enclosed by brackets "[]" replaced with your own identifying
5cff782560a1c3cf913ba5574a5123a299f3315emh# information: Portions Copyright [yyyy] [name of copyright owner]
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# CDDL HEADER END
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5cff782560a1c3cf913ba5574a5123a299f3315emh# Use is subject to license terms.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh#pragma ident "%Z%%M% %I% %E% SMI"
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emhname="ppm" parent="pseudo" instance=0;
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# ppm configuration format
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# "ppm-domains" - in form of "domain_xxx" where "xxx" string highlights
5cff782560a1c3cf913ba5574a5123a299f3315emh# the nature of the domain;
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# "domain_xxx-model" - PM model: CPU
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# "domain_xxx-model" - PM model: SX
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# "domain_xxx-propname" - a property name that is exported by device in
5cff782560a1c3cf913ba5574a5123a299f3315emh# a domain. Currently, it is used by PCI_PROP model to identify devices
5cff782560a1c3cf913ba5574a5123a299f3315emh# that are to have their clocks stopped when all power-manageable devices
5cff782560a1c3cf913ba5574a5123a299f3315emh# in the domain are at D3 power level.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# "domain-xxx-devices" - a list of prom path match patterns to match devices
5cff782560a1c3cf913ba5574a5123a299f3315emh# that fall into "domain_xxx", where wildcard '*' is allowed by observing
5cff782560a1c3cf913ba5574a5123a299f3315emh# the following expectations:
5cff782560a1c3cf913ba5574a5123a299f3315emh# . a single wildcard with exact match up to (but exclude) the wildcard
5cff782560a1c3cf913ba5574a5123a299f3315emh# which then terminates the match pattern;
5cff782560a1c3cf913ba5574a5123a299f3315emh# . a single wildcard that does not terminate a match pattern must
5cff782560a1c3cf913ba5574a5123a299f3315emh# match driver name (followed by '@');
5cff782560a1c3cf913ba5574a5123a299f3315emh# . with two wildcard occurences, the first is to match driver name,
5cff782560a1c3cf913ba5574a5123a299f3315emh# the second function id, as well as the last character of the match
5cff782560a1c3cf913ba5574a5123a299f3315emh# pattern.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# "domain-xxx-ctrl" - blank space separated definitions in the form of
5cff782560a1c3cf913ba5574a5123a299f3315emh# keyword=definition [keyword=definition...]
5cff782560a1c3cf913ba5574a5123a299f3315emh# The keywords are as follows, where 'method' must come before mask as it
5cff782560a1c3cf913ba5574a5123a299f3315emh# tells how to store 'mask' and 'val'. Missing 'val' defaults to 0.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# which keywords apply depends on cmd. There are two sets as shown below.
5cff782560a1c3cf913ba5574a5123a299f3315emh# Here is the first:
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# cmd=[ENTER_S3 | ENTER_S4]
5cff782560a1c3cf913ba5574a5123a299f3315emh# path=<prompath> - control device's prom pathname (includes minor)
5cff782560a1c3cf913ba5574a5123a299f3315emh# method=[KIO|I2CKIO] This selects a method which may be
5cff782560a1c3cf913ba5574a5123a299f3315emh# an ioctl that sets a single value or an i2c ioctl that
5cff782560a1c3cf913ba5574a5123a299f3315emh# takes a value and a mask to access gpio register
5cff782560a1c3cf913ba5574a5123a299f3315emh# iord=<integer> - value of ioctl command for reading
5cff782560a1c3cf913ba5574a5123a299f3315emh# iowr=<integer> - value of ioctl command for writing
5cff782560a1c3cf913ba5574a5123a299f3315emh# val=<integer> - a single integer value, generally the value to which
5cff782560a1c3cf913ba5574a5123a299f3315emh# the relevant bits of a register will be set
5cff782560a1c3cf913ba5574a5123a299f3315emh# mask=<integer> - which bits of val are relevant (if method is I2CKIO)
5cff782560a1c3cf913ba5574a5123a299f3315emh#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfppm-domains="domain_cpu" , "domain_estar";
5cff782560a1c3cf913ba5574a5123a299f3315emh
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# CPU domain
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
5cff782560a1c3cf913ba5574a5123a299f3315emhdomain_cpu-devices="/cpus/cpu@*";
5cff782560a1c3cf913ba5574a5123a299f3315emhdomain_cpu-model="CPU";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Estar domain
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# 0x4101 is APPMIOC_ENTER_S3 (('A' << 8) | 1)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# 0x4102 is APPMIOC_EXIT_S3 (('A' << 8) | 2)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfdomain_estar-devices="/";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfdomain_estar-model="SX";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfdomain_estar-control=
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "cmd=ENTER_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4101",
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "cmd=EXIT_S3 path=/pseudo/acpippm@0:acpi-ppm method=KIO iowr=0x4102";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# S3-enable whitelist
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfS3-support-enable =
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Ultra 40 Workstation",
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Ultra 20 Workstation";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfS3-support-disable =
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Blade x8400 Server Module",
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Fire*";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfS3-autoenable =
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Ultra 40 Workstation",
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Ultra 20 Workstation";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfS3-autodisable =
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Blade x8400 Server Module",
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Fire*";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfautopm-enable =
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Ultra 40 Workstation",
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Ultra 20 Workstation";
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfautopm-disable =
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Blade x8400 Server Module",
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf "Sun Microsystems", "Sun Fire*";