Home | History | Annotate | Line # | Download | only in include
ofisa_machdep.h revision 1.1.2.1
      1  1.1.2.1  nathanw /*	$NetBSD: ofisa_machdep.h,v 1.1.2.1 2001/06/21 19:18:58 nathanw Exp $	*/
      2      1.1  reinoud 
      3      1.1  reinoud /*
      4      1.1  reinoud  * Copyright 1998
      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.1  reinoud int	ofisa_get_isabus_data(int, struct isabus_attach_args *);
     37      1.1  reinoud int	ofisa_ignore_child(int pphandle, int cphandle);
     38      1.1  reinoud 
     39  1.1.2.1  nathanw #if defined(_KERNEL_OPT)
     40      1.1  reinoud #include "opt_compat_old_ofw.h"
     41      1.1  reinoud #endif
     42      1.1  reinoud 
     43      1.1  reinoud #ifdef COMPAT_OLD_OFW
     44      1.1  reinoud 
     45      1.1  reinoud #define	_OFISA_MD_MATCH
     46      1.1  reinoud int	ofisa_md_match(struct device *, struct cfdata *, void *);
     47      1.1  reinoud 
     48      1.1  reinoud #define	_COM_OFISA_MD_MATCH
     49      1.1  reinoud #define	_COM_OFISA_MD_INTR_FIXUP
     50      1.1  reinoud int	com_ofisa_md_match(struct device *, struct cfdata *, void *);
     51      1.1  reinoud int	com_ofisa_md_intr_fixup(struct device *, struct device*, void *,
     52      1.1  reinoud 	    struct ofisa_intr_desc *, int, int);
     53      1.1  reinoud 
     54      1.1  reinoud #define	_CS_OFISA_MD_MATCH
     55      1.1  reinoud #define	_CS_OFISA_MD_REG_FIXUP
     56      1.1  reinoud #define	_CS_OFISA_MD_INTR_FIXUP
     57      1.1  reinoud #define	_CS_OFISA_MD_DMA_FIXUP
     58      1.1  reinoud #define	_CS_OFISA_MD_MEDIA_FIXUP
     59      1.1  reinoud int	cs_ofisa_md_match(struct device *, struct cfdata *, void *);
     60      1.1  reinoud int	cs_ofisa_md_reg_fixup(struct device *, struct device *, void *,
     61      1.1  reinoud 	    struct ofisa_reg_desc *, int, int);
     62      1.1  reinoud int	cs_ofisa_md_intr_fixup(struct device *, struct device *, void *,
     63      1.1  reinoud 	    struct ofisa_intr_desc *, int, int);
     64      1.1  reinoud int	cs_ofisa_md_dma_fixup(struct device *, struct device *, void *,
     65      1.1  reinoud 	    struct ofisa_dma_desc *, int, int);
     66      1.1  reinoud int	*cs_ofisa_md_media_fixup(struct device *, struct device *, void *,
     67      1.1  reinoud 	    int *, int *, int *);
     68      1.1  reinoud 
     69      1.1  reinoud #define	_LPT_OFISA_MD_MATCH
     70      1.1  reinoud #define	_LPT_OFISA_MD_INTR_FIXUP
     71      1.1  reinoud int	lpt_ofisa_md_match(struct device *, struct cfdata *, void *);
     72      1.1  reinoud int	lpt_ofisa_md_intr_fixup(struct device *, struct device*, void *,
     73      1.1  reinoud 	    struct ofisa_intr_desc *, int, int);
     74      1.1  reinoud 
     75      1.1  reinoud #define	_WDC_OFISA_MD_MATCH
     76      1.1  reinoud #define	_WDC_OFISA_MD_INTR_FIXUP
     77      1.1  reinoud int	wdc_ofisa_md_match(struct device *, struct cfdata *, void *);
     78      1.1  reinoud int	wdc_ofisa_md_intr_fixup(struct device *, struct device*, void *,
     79      1.1  reinoud 	    struct ofisa_intr_desc *, int, int);
     80      1.1  reinoud 
     81      1.1  reinoud #endif /* COMPAT_OLD_OFW */
     82      1.1  reinoud 
     83      1.1  reinoud /* The following aren't dependent on old OpenFirmware. */
     84      1.1  reinoud #define	_CS_OFISA_MD_CFGFLAGS_FIXUP
     85      1.1  reinoud int	cs_ofisa_md_cfgflags_fixup(struct device *, struct device *,
     86      1.1  reinoud 	    void *);
     87