/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_OBPDEFS_H
#define _SYS_OBPDEFS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
typedef int ihandle_t;
typedef int phandle_t;
/*
* Device type matching
*/
/*
* Property Defines
*/
/*
* OBP status values defines
*/
/*
* Max size of a path component and a property name (not value)
* These are standard definitions.
*/
/*
* NB: Max pathname length is a platform-dependent parameter.
* Also note that this parameter is used to define the crpconfig
* structure in cpr.h. The cprconfig structure is currently
* consumed by other consolidations. Care should be take before
* changing this parameter value.
*/
/*
* Every OBP node must have a `/' followed by at least 2 chars,
* so we can deduce the maxdepth of any OBP tree to be
* OBP_MAXPATHNAME/3. This is a good first swag.
*/
/*
* OBP Module mailbox messages for MP's
*
* 00..7F : power-on self test
*
* 80..8F : active in boot prom (at the "ok" prompt)
*
* 90..EF : idle in boot prom
*
* F0 : active in application
*
* F1..FA : reserved for future use
*
* FB : One processor exited to the PROM via op_exit(),
* call to prom_stopcpu() requested.
*
* FC : One processor entered the PROM via op_enter(),
* call to prom_idlecpu() requested.
*
* FD : One processor hit a BREAKPOINT,
* call to prom_idlecpu() requested.
*
* FE : One processor got a WATCHDOG RESET
* call to prom_stopcpu() requested.
*
* FF : This processor not available.
*
*/
((s) <= OBP_MB_IDLE_HIGH))
/*
* The possible values for "*romp->v_insource" and "*romp->v_outsink" are
* listed below. These may be extended in the future. Your program should
* cope with this gracefully (e.g. by continuing to vector through the ROM
* I/O routines if these are set in a way you don't understand).
*/
/*
* Structure set up by the boot command to pass arguments to the booted
* program.
*/
struct bootparam {
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_OBPDEFS_H */