import less(1)
[unleashed/tickless.git] / usr / src / psm / promif / ieee1275 / common / prom_version.c
blobe2209dec65a2b4fa579ca54e1b5b5ae0a20bbdba
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
23 * Copyright (c) 1991-1994, by Sun Microsystems, Inc.
24 * All rights reserved.
27 #pragma ident "%Z%%M% %I% %E% SMI"
29 #include <sys/promif.h>
30 #include <sys/promimpl.h>
32 int
33 prom_getversion(void)
37 * For compatibility with older client programs, if there is no
38 * ROMVEC, we simply return a very large number here.
40 return (obp_romvec_version);
43 int
44 prom_is_openprom(void)
47 * Returns true, if openboot or open firmware interface exists.
49 return (1);
52 int
53 prom_is_p1275(void)
56 * Returns true, if IEEE 1275 interface exists.
58 return (1);
62 * Certain standalones need to get the revision of a certain
63 * version of the firmware to be able to figure out how to
64 * correct for certain errors in certain versions of the PROM.
66 * The caller has to know what to do with the cookie returned
67 * from prom_mon_id(). c.f. uts/sun4c/io/autoconf.c:impl_fix_props().
70 void *
71 prom_mon_id(void)
73 return (NULL); /* For compatibilty, none exists in 1275 */