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