xref: /onnv-gate/usr/src/uts/sun4v/montoya/os/montoya.c (revision 1946:354ebeacf1f8)
1*1946Sks34972 /*
2*1946Sks34972  * CDDL HEADER START
3*1946Sks34972  *
4*1946Sks34972  * The contents of this file are subject to the terms of the
5*1946Sks34972  * Common Development and Distribution License (the "License").
6*1946Sks34972  * You may not use this file except in compliance with the License.
7*1946Sks34972  *
8*1946Sks34972  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1946Sks34972  * or http://www.opensolaris.org/os/licensing.
10*1946Sks34972  * See the License for the specific language governing permissions
11*1946Sks34972  * and limitations under the License.
12*1946Sks34972  *
13*1946Sks34972  * When distributing Covered Code, include this CDDL HEADER in each
14*1946Sks34972  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1946Sks34972  * If applicable, add the following below this CDDL HEADER, with the
16*1946Sks34972  * fields enclosed by brackets "[]" replaced with your own identifying
17*1946Sks34972  * information: Portions Copyright [yyyy] [name of copyright owner]
18*1946Sks34972  *
19*1946Sks34972  * CDDL HEADER END
20*1946Sks34972  */
21*1946Sks34972 
22*1946Sks34972 /*
23*1946Sks34972  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*1946Sks34972  * Use is subject to license terms.
25*1946Sks34972  */
26*1946Sks34972 
27*1946Sks34972 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28*1946Sks34972 
29*1946Sks34972 #include <sys/param.h>
30*1946Sks34972 #include <sys/systm.h>
31*1946Sks34972 #include <sys/sysmacros.h>
32*1946Sks34972 #include <sys/sunddi.h>
33*1946Sks34972 #include <sys/esunddi.h>
34*1946Sks34972 #include <sys/sunndi.h>
35*1946Sks34972 #include <sys/platform_module.h>
36*1946Sks34972 #include <sys/errno.h>
37*1946Sks34972 #include <sys/utsname.h>
38*1946Sks34972 #include <sys/modctl.h>
39*1946Sks34972 #include <sys/systeminfo.h>
40*1946Sks34972 #include <sys/promif.h>
41*1946Sks34972 #include <sys/bootconf.h>
42*1946Sks34972 
43*1946Sks34972 
44*1946Sks34972 
45*1946Sks34972 /*
46*1946Sks34972  * Platform power management drivers list - empty by default
47*1946Sks34972  */
48*1946Sks34972 char *platform_module_list[] = {
49*1946Sks34972 	(char *)0
50*1946Sks34972 };
51*1946Sks34972 
52*1946Sks34972 
53*1946Sks34972 /*ARGSUSED*/
54*1946Sks34972 void
plat_tod_fault(enum tod_fault_type tod_bad)55*1946Sks34972 plat_tod_fault(enum tod_fault_type tod_bad)
56*1946Sks34972 {
57*1946Sks34972 }
58*1946Sks34972 
59*1946Sks34972 void
load_platform_drivers(void)60*1946Sks34972 load_platform_drivers(void)
61*1946Sks34972 {
62*1946Sks34972 }
63*1946Sks34972 
64*1946Sks34972 /*
65*1946Sks34972  * This routine provides a workaround for a bug in the SB chip which
66*1946Sks34972  * can cause data corruption. Will be invoked from the IDE HBA driver for
67*1946Sks34972  * Acer SouthBridge at the time of IDE bus reset.
68*1946Sks34972  */
69*1946Sks34972 /*ARGSUSED*/
70*1946Sks34972 int
plat_ide_chipreset(dev_info_t * dip,int chno)71*1946Sks34972 plat_ide_chipreset(dev_info_t *dip, int chno)
72*1946Sks34972 {
73*1946Sks34972 	return	(DDI_SUCCESS);
74*1946Sks34972 }
75