openfirm.h revision 1.3
11.3Saymeric/*	$NetBSD: openfirm.h,v 1.3 2003/12/26 13:43:29 aymeric Exp $	*/
21.1Stsubai
31.1Stsubai/*
41.1Stsubai * Copyright (C) 1995, 1996 Wolfgang Solfrank.
51.1Stsubai * Copyright (C) 1995, 1996 TooLs GmbH.
61.1Stsubai * All rights reserved.
71.1Stsubai *
81.1Stsubai * Redistribution and use in source and binary forms, with or without
91.1Stsubai * modification, are permitted provided that the following conditions
101.1Stsubai * are met:
111.1Stsubai * 1. Redistributions of source code must retain the above copyright
121.1Stsubai *    notice, this list of conditions and the following disclaimer.
131.1Stsubai * 2. Redistributions in binary form must reproduce the above copyright
141.1Stsubai *    notice, this list of conditions and the following disclaimer in the
151.1Stsubai *    documentation and/or other materials provided with the distribution.
161.1Stsubai * 3. All advertising materials mentioning features or use of this software
171.1Stsubai *    must display the following acknowledgement:
181.1Stsubai *	This product includes software developed by TooLs GmbH.
191.1Stsubai * 4. The name of TooLs GmbH may not be used to endorse or promote products
201.1Stsubai *    derived from this software without specific prior written permission.
211.1Stsubai *
221.1Stsubai * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
231.1Stsubai * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
241.1Stsubai * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
251.1Stsubai * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
261.1Stsubai * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
271.1Stsubai * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
281.1Stsubai * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
291.1Stsubai * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
301.1Stsubai * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
311.1Stsubai * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
321.1Stsubai */
331.1Stsubai/*
341.1Stsubai * Prototypes for Openfirmware Interface Routines
351.1Stsubai */
361.1Stsubai
371.1Stsubai#include <sys/cdefs.h>
381.1Stsubai#include <sys/types.h>
391.1Stsubai
401.3Saymeric#include "boot.h"
411.3Saymeric
421.3Saymeric__dead void OF_exit(void) __attribute__((noreturn));
431.3Saymericint OF_finddevice(char *);
441.3Saymericint OF_instance_to_package(int);
451.3Saymericint OF_getprop(int, char *, void *, int);
461.1Stsubai#ifdef	__notyet__
471.3Saymericint OF_setprop(int, char *, void *, int);
481.1Stsubai#endif
491.3Saymericint OF_open(char *);
501.3Saymericvoid OF_close(int);
511.3Saymericint OF_write(int, void *, int);
521.3Saymericint OF_read(int, void *, int);
531.3Saymericint OF_seek(int, u_quad_t);
541.3Saymericvoid *OF_claim(void *, u_int, u_int);
551.3Saymericvoid OF_release(void *, u_int);
561.3Saymericint OF_milliseconds(void);
571.3Saymericvoid OF_chain(void *, u_int, boot_entry_t, void *, u_int);
581.3Saymericint OF_call_method(char *, int, int, int, ...);
59