xref: /titanic_50/usr/src/uts/sun4u/javelin/os/javelin.c (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
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 1998, 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 #include <sys/modctl.h>
33 
34 #include <sys/platform_module.h>
35 #include <sys/errno.h>
36 
37 void
38 startup_platform(void)
39 {
40 }
41 
42 int
43 set_platform_tsb_spares()
44 {
45 	return (0);
46 }
47 
48 void
49 set_platform_defaults(void)
50 {
51 }
52 
53 void
54 load_platform_drivers(void)
55 {
56 	if (i_ddi_attach_hw_nodes("envctrltwo") != DDI_SUCCESS) {
57 		cmn_err(CE_WARN, "Envctrltwo failed to load\n");
58 	}
59 }
60 
61 /*ARGSUSED*/
62 int
63 plat_cpu_poweron(struct cpu *cp)
64 {
65 	return (ENOTSUP);	/* not supported on this platform */
66 }
67 
68 /*ARGSUSED*/
69 int
70 plat_cpu_poweroff(struct cpu *cp)
71 {
72 	return (ENOTSUP);	/* not supported on this platform */
73 }
74 
75 /*ARGSUSED*/
76 void
77 plat_freelist_process(int mnode)
78 {
79 }
80 
81 /*
82  * No platform drivers on this platform
83  */
84 char *platform_module_list[] = {
85 	(char *)0
86 };
87 
88 /*ARGSUSED*/
89 void
90 plat_tod_fault(enum tod_fault_type tod_bad)
91 {
92 }
93