diff options
author | randyf <none@none> | 2007-10-20 16:00:42 -0700 |
---|---|---|
committer | randyf <none@none> | 2007-10-20 16:00:42 -0700 |
commit | 2df1fe9ca32bb227b9158c67f5c00b54c20b10fd (patch) | |
tree | 358c576f885c00d42a760d9e35e5b66e77209fe2 /usr/src/uts/intel/os | |
parent | 10b3fbf593a6678eec9b50a01903ef4eb73111e4 (diff) | |
download | illumos-gate-2df1fe9ca32bb227b9158c67f5c00b54c20b10fd.tar.gz |
PSARC/2005/469 X86 Energy Star compliance
PSARC/2006/632 PSMI extension for state save and restore
6330209 nge needs to support DDI_SUSPEND/DDI_RESUME
6381827 Suspend to RAM on x86
6393154 audio810 needs to support DDI_SUSPEND/DDI_RESUME
6397047 fd, fdc needs to support Suspend/Resume
6401974 cannot enter S3 with ohci PME enable set on Tyan 2865 with Sun or Tyan 2.01 BIOS
6422613 memscrubber doesn't re-acquire lock before CALLB_CPR_EXIT
6455736 ata/dadk/cmdk should support DDI_SUSPEND/DDI_RESUME
6511370 CPR on SPARC regression
6586018 TODOP Macros in i86pc/sys/machclock.h not in sun4u/sun4v equivilent (Sparc only)
6610124 It takes more than 3 minutes after printing "pci_pre_resume nv_sata:0"
6617143 powerd/pmconfig emits a different default message for an existing on or off action.
--HG--
rename : usr/src/cmd/power/power.conf => usr/src/cmd/power/power.conf.sparc
Diffstat (limited to 'usr/src/uts/intel/os')
-rw-r--r-- | usr/src/uts/intel/os/cpr_intel.c | 75 | ||||
-rw-r--r-- | usr/src/uts/intel/os/name_to_major | 2 |
2 files changed, 77 insertions, 0 deletions
diff --git a/usr/src/uts/intel/os/cpr_intel.c b/usr/src/uts/intel/os/cpr_intel.c new file mode 100644 index 0000000000..b34041386b --- /dev/null +++ b/usr/src/uts/intel/os/cpr_intel.c @@ -0,0 +1,75 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + +/* + * cpr functions for supported sparc platforms + */ +#include <sys/types.h> +#include <sys/systm.h> +#include <sys/cpr.h> +#include <sys/kmem.h> +#include <sys/errno.h> + +/* + * setup the original and new sets of property names/values + * Not relevant to S3, which is all we support for now. + */ +/*ARGSUSED*/ +int +cpr_default_setup(int alloc) +{ + return (0); +} + +void +cpr_send_notice(void) +{ + static char cstr[] = "\014" "\033[1P" "\033[18;21H"; + + prom_printf(cstr); + prom_printf("Saving System State. Please Wait... "); +} + +void +cpr_spinning_bar(void) +{ + static char *spin_strings[] = { "|\b", "/\b", "-\b", "\\\b" }; + static int idx; + + prom_printf(spin_strings[idx]); + if (++idx == 4) + idx = 0; +} + +void +cpr_resume_notice(void) +{ + static char cstr[] = "\014" "\033[1P" "\033[18;21H"; + + prom_printf(cstr); + prom_printf("Restoring System State. Please Wait... "); +} diff --git a/usr/src/uts/intel/os/name_to_major b/usr/src/uts/intel/os/name_to_major index 9d983ec052..28810d57b0 100644 --- a/usr/src/uts/intel/os/name_to_major +++ b/usr/src/uts/intel/os/name_to_major @@ -127,6 +127,8 @@ evtchn 197 xdb 199 domcaps 200 balloon 201 +acpippm 202 +srn 203 did 239 lx_ptm 240 lx_systrace 241 |