openfirm.h revision 1.1
11.1Stsubai/*	$NetBSD: openfirm.h,v 1.1 1998/05/15 10:16:00 tsubai 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.1Stsubai__dead void OF_exit __P((void)) __attribute__((noreturn));
411.1Stsubaiint OF_finddevice __P((char *name));
421.1Stsubaiint OF_instance_to_package __P((int ihandle));
431.1Stsubaiint OF_getprop __P((int handle, char *prop, void *buf, int buflen));
441.1Stsubai#ifdef	__notyet__
451.1Stsubaiint OF_setprop __P((int handle, char *prop, void *buf, int len));
461.1Stsubai#endif
471.1Stsubaiint OF_open __P((char *dname));
481.1Stsubaivoid OF_close __P((int handle));
491.1Stsubaiint OF_write __P((int handle, void *addr, int len));
501.1Stsubaiint OF_read __P((int handle, void *addr, int len));
511.1Stsubaiint OF_seek __P((int handle, u_quad_t pos));
521.1Stsubaivoid *OF_claim __P((void *virt, u_int size, u_int align));
531.1Stsubaivoid OF_release __P((void *virt, u_int size));
541.1Stsubaiint OF_milliseconds __P((void));
551.1Stsubaivoid OF_chain __P((void *addr, u_int size, void (*entry)(), void *parm, u_int parmlen));
561.1Stsubai
57