openfirm.h (86557) | openfirm.h (105397) |
---|---|
1/* $NetBSD: openfirm.h,v 1.1 1998/05/15 10:16:00 tsubai Exp $ */ 2 3/* 4 * Copyright (C) 1995, 1996 Wolfgang Solfrank. 5 * Copyright (C) 1995, 1996 TooLs GmbH. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 40 unchanged lines hidden (view full) --- 49 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 50 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 51 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 52 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 53 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 54 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 55 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 56 * | 1/* $NetBSD: openfirm.h,v 1.1 1998/05/15 10:16:00 tsubai Exp $ */ 2 3/* 4 * Copyright (C) 1995, 1996 Wolfgang Solfrank. 5 * Copyright (C) 1995, 1996 TooLs GmbH. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 40 unchanged lines hidden (view full) --- 49 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 50 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 51 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 52 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 53 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 54 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 55 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 56 * |
57 * $FreeBSD: head/sys/dev/ofw/openfirm.h 86557 2001-11-18 20:38:44Z tmm $ | 57 * $FreeBSD: head/sys/dev/ofw/openfirm.h 105397 2002-10-18 15:21:09Z tmm $ |
58 */ 59 60#ifndef _OPENFIRM_H_ 61#define _OPENFIRM_H_ 62 63/* 64 * Prototypes for Openfirmware Interface Routines 65 */ 66 | 58 */ 59 60#ifndef _OPENFIRM_H_ 61#define _OPENFIRM_H_ 62 63/* 64 * Prototypes for Openfirmware Interface Routines 65 */ 66 |
67typedef unsigned long cell_t; 68 69typedef unsigned int ihandle_t; 70typedef unsigned int phandle_t; 71 72#ifdef _KERNEL |
|
67#include <sys/cdefs.h> 68#include <sys/types.h> 69#include <sys/malloc.h> 70 71MALLOC_DECLARE(M_OFWPROP); 72 | 73#include <sys/cdefs.h> 74#include <sys/types.h> 75#include <sys/malloc.h> 76 77MALLOC_DECLARE(M_OFWPROP); 78 |
73typedef unsigned long cell_t; 74 75typedef unsigned int ihandle_t; 76typedef unsigned int phandle_t; 77 | |
78/* 79 * Stuff that is used by the OpenFirmware code. 80 */ 81void set_openfirm_callback(int (*)(void *)); 82int openfirmware(void *); 83 84/* 85 * This isn't actually an OpenFirmware function, but it seemed like the right --- 46 unchanged lines hidden (view full) --- 132/* OF_interpret */ 133void *OF_set_callback(void *); 134void OF_set_symbol_lookup(void *, void *); 135#endif 136 137/* Time function */ 138int OF_milliseconds(void); 139 | 79/* 80 * Stuff that is used by the OpenFirmware code. 81 */ 82void set_openfirm_callback(int (*)(void *)); 83int openfirmware(void *); 84 85/* 86 * This isn't actually an OpenFirmware function, but it seemed like the right --- 46 unchanged lines hidden (view full) --- 133/* OF_interpret */ 134void *OF_set_callback(void *); 135void OF_set_symbol_lookup(void *, void *); 136#endif 137 138/* Time function */ 139int OF_milliseconds(void); 140 |
141#endif /* _KERNEL */ |
|
140#endif /* _OPENFIRM_H_ */ | 142#endif /* _OPENFIRM_H_ */ |