1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 1999, 2001-2002 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #pragma ident "%Z%%M% %I% %E% SMI" 28 29 #include <sys/param.h> 30 #include <sys/systm.h> 31 #include <sys/sunddi.h> 32 33 #include <sys/platform_module.h> 34 #include <sys/errno.h> 35 36 void 37 startup_platform(void) 38 { 39 } 40 41 int 42 set_platform_tsb_spares() 43 { 44 return (0); 45 } 46 47 void 48 set_platform_defaults(void) 49 { 50 } 51 52 void 53 load_platform_drivers(void) 54 { 55 if (i_ddi_attach_hw_nodes("power") != DDI_SUCCESS) 56 cmn_err(CE_WARN, "Failed to install \"power\" driver."); 57 } 58 59 /*ARGSUSED*/ 60 int 61 plat_cpu_poweron(struct cpu *cp) 62 { 63 return (ENOTSUP); /* not supported on this platform */ 64 } 65 66 /*ARGSUSED*/ 67 int 68 plat_cpu_poweroff(struct cpu *cp) 69 { 70 return (ENOTSUP); /* not supported on this platform */ 71 } 72 73 /*ARGSUSED*/ 74 void 75 plat_freelist_process(int mnode) 76 { 77 } 78 79 /* 80 * No platform drivers on this platform 81 */ 82 char *platform_module_list[] = { 83 (char *)0 84 }; 85 86 /*ARGSUSED*/ 87 void 88 plat_tod_fault(enum tod_fault_type tod_bad) 89 { 90 } 91