Home | History | Annotate | Line # | Download | only in include
ofw.h revision 1.3.22.1
      1  1.3.22.1      tls /*	$NetBSD: ofw.h,v 1.3.22.1 2014/08/20 00:02:46 tls Exp $	*/
      2       1.1  reinoud 
      3       1.1  reinoud /*
      4       1.1  reinoud  * Copyright 1997
      5       1.1  reinoud  * Digital Equipment Corporation. All rights reserved.
      6       1.1  reinoud  *
      7       1.1  reinoud  * This software is furnished under license and may be used and
      8       1.1  reinoud  * copied only in accordance with the following terms and conditions.
      9       1.1  reinoud  * Subject to these conditions, you may download, copy, install,
     10       1.1  reinoud  * use, modify and distribute this software in source and/or binary
     11       1.1  reinoud  * form. No title or ownership is transferred hereby.
     12       1.1  reinoud  *
     13       1.1  reinoud  * 1) Any source code used, modified or distributed must reproduce
     14       1.1  reinoud  *    and retain this copyright notice and list of conditions as
     15       1.1  reinoud  *    they appear in the source file.
     16       1.1  reinoud  *
     17       1.1  reinoud  * 2) No right is granted to use any trade name, trademark, or logo of
     18       1.1  reinoud  *    Digital Equipment Corporation. Neither the "Digital Equipment
     19       1.1  reinoud  *    Corporation" name nor any trademark or logo of Digital Equipment
     20       1.1  reinoud  *    Corporation may be used to endorse or promote products derived
     21       1.1  reinoud  *    from this software without the prior written permission of
     22       1.1  reinoud  *    Digital Equipment Corporation.
     23       1.1  reinoud  *
     24       1.1  reinoud  * 3) This software is provided "AS-IS" and any express or implied
     25       1.1  reinoud  *    warranties, including but not limited to, any implied warranties
     26       1.1  reinoud  *    of merchantability, fitness for a particular purpose, or
     27       1.1  reinoud  *    non-infringement are disclaimed. In no event shall DIGITAL be
     28       1.1  reinoud  *    liable for any damages whatsoever, and in particular, DIGITAL
     29       1.1  reinoud  *    shall not be liable for special, indirect, consequential, or
     30       1.1  reinoud  *    incidental damages or damages for lost profits, loss of
     31       1.1  reinoud  *    revenue or loss of use, whether such damages arise in contract,
     32       1.1  reinoud  *    negligence, tort, under statute, in equity, at law or otherwise,
     33       1.1  reinoud  *    even if advised of the possibility of such damage.
     34       1.1  reinoud  */
     35       1.1  reinoud 
     36  1.3.22.1      tls #ifndef _ARM_OFW_H_
     37  1.3.22.1      tls #define _ARM_OFW_H_
     38       1.1  reinoud 
     39       1.1  reinoud 
     40       1.1  reinoud /* Virtual address range reserved for OFW. */
     41       1.1  reinoud /* Maybe this should be elsewhere? -JJK */
     42       1.1  reinoud #define	OFW_VIRT_BASE	0xF7000000
     43       1.1  reinoud #define	OFW_VIRT_SIZE	0x01000000
     44       1.1  reinoud 
     45       1.1  reinoud 
     46       1.1  reinoud /* OFW client services handle. */
     47       1.1  reinoud typedef int (*ofw_handle_t)(void *);
     48       1.1  reinoud 
     49       1.1  reinoud 
     50       1.1  reinoud /* Implemented in <ofw/ofw.c> */
     51       1.3      dsl void ofw_init(ofw_handle_t);
     52       1.3      dsl void ofw_boot(int, char *);
     53       1.3      dsl void ofw_getbootinfo(char **, char **);
     54       1.3      dsl void ofw_configmem(void);
     55       1.3      dsl void ofw_configisa(vm_offset_t *, vm_offset_t *);
     56       1.3      dsl void ofw_configisadma(vm_offset_t *);
     57       1.3      dsl int  ofw_isadmarangeintersect(vm_offset_t, vm_offset_t,
     58       1.3      dsl 				   vm_offset_t *, vm_offset_t *);
     59       1.3      dsl vm_offset_t ofw_gettranslation(vm_offset_t);
     60       1.3      dsl vm_offset_t ofw_map(vm_offset_t, vm_size_t, int);
     61       1.3      dsl vm_offset_t ofw_getcleaninfo(void);
     62       1.1  reinoud 
     63       1.1  reinoud #ifdef	OFWGENCFG
     64       1.1  reinoud /* Implemented in <ofw/ofwgencfg_machdep.c> */
     65       1.1  reinoud extern int ofw_handleticks;
     66       1.3      dsl extern void cpu_reboot(int, char *);
     67       1.3      dsl extern void ofrootfound(void);
     68       1.1  reinoud #endif
     69       1.1  reinoud 
     70  1.3.22.1      tls #endif /* !_ARM_OFW_H_ */
     71