Home | History | Annotate | Line # | Download | only in include
      1 /*	$NetBSD: ofisa_machdep.h,v 1.3 2012/10/27 17:17:39 chs Exp $	*/
      2 
      3 /*
      4  * Copyright 1998
      5  * Digital Equipment Corporation. All rights reserved.
      6  *
      7  * This software is furnished under license and may be used and
      8  * copied only in accordance with the following terms and conditions.
      9  * Subject to these conditions, you may download, copy, install,
     10  * use, modify and distribute this software in source and/or binary
     11  * form. No title or ownership is transferred hereby.
     12  *
     13  * 1) Any source code used, modified or distributed must reproduce
     14  *    and retain this copyright notice and list of conditions as
     15  *    they appear in the source file.
     16  *
     17  * 2) No right is granted to use any trade name, trademark, or logo of
     18  *    Digital Equipment Corporation. Neither the "Digital Equipment
     19  *    Corporation" name nor any trademark or logo of Digital Equipment
     20  *    Corporation may be used to endorse or promote products derived
     21  *    from this software without the prior written permission of
     22  *    Digital Equipment Corporation.
     23  *
     24  * 3) This software is provided "AS-IS" and any express or implied
     25  *    warranties, including but not limited to, any implied warranties
     26  *    of merchantability, fitness for a particular purpose, or
     27  *    non-infringement are disclaimed. In no event shall DIGITAL be
     28  *    liable for any damages whatsoever, and in particular, DIGITAL
     29  *    shall not be liable for special, indirect, consequential, or
     30  *    incidental damages or damages for lost profits, loss of
     31  *    revenue or loss of use, whether such damages arise in contract,
     32  *    negligence, tort, under statute, in equity, at law or otherwise,
     33  *    even if advised of the possibility of such damage.
     34  */
     35 
     36 int	ofisa_get_isabus_data(int, struct isabus_attach_args *);
     37 int	ofisa_ignore_child(int pphandle, int cphandle);
     38 
     39 #if defined(_KERNEL_OPT)
     40 #include "opt_compat_old_ofw.h"
     41 #endif
     42 
     43 #ifdef COMPAT_OLD_OFW
     44 
     45 #define	_OFISA_MD_MATCH
     46 int	ofisa_md_match(device_t, cfdata_t, void *);
     47 
     48 #define	_COM_OFISA_MD_MATCH
     49 #define	_COM_OFISA_MD_INTR_FIXUP
     50 int	com_ofisa_md_match(device_t, cfdata_t, void *);
     51 int	com_ofisa_md_intr_fixup(device_t, device_t, void *,
     52 	    struct ofisa_intr_desc *, int, int);
     53 
     54 #define	_CS_OFISA_MD_MATCH
     55 #define	_CS_OFISA_MD_REG_FIXUP
     56 #define	_CS_OFISA_MD_INTR_FIXUP
     57 #define	_CS_OFISA_MD_DMA_FIXUP
     58 #define	_CS_OFISA_MD_MEDIA_FIXUP
     59 int	cs_ofisa_md_match(device_t, cfdata_t, void *);
     60 int	cs_ofisa_md_reg_fixup(device_t, device_t, void *,
     61 	    struct ofisa_reg_desc *, int, int);
     62 int	cs_ofisa_md_intr_fixup(device_t, device_t, void *,
     63 	    struct ofisa_intr_desc *, int, int);
     64 int	cs_ofisa_md_dma_fixup(device_t, device_t, void *,
     65 	    struct ofisa_dma_desc *, int, int);
     66 int	*cs_ofisa_md_media_fixup(device_t, device_t, void *,
     67 	    int *, int *, int *);
     68 
     69 #define	_LPT_OFISA_MD_MATCH
     70 #define	_LPT_OFISA_MD_INTR_FIXUP
     71 int	lpt_ofisa_md_match(device_t, cfdata_t, void *);
     72 int	lpt_ofisa_md_intr_fixup(device_t, device_t, void *,
     73 	    struct ofisa_intr_desc *, int, int);
     74 
     75 #define	_WDC_OFISA_MD_MATCH
     76 #define	_WDC_OFISA_MD_INTR_FIXUP
     77 int	wdc_ofisa_md_match(device_t, cfdata_t, void *);
     78 int	wdc_ofisa_md_intr_fixup(device_t, device_t, void *,
     79 	    struct ofisa_intr_desc *, int, int);
     80 
     81 #endif /* COMPAT_OLD_OFW */
     82 
     83 /* The following aren't dependent on old OpenFirmware. */
     84 #define	_CS_OFISA_MD_CFGFLAGS_FIXUP
     85 int	cs_ofisa_md_cfgflags_fixup(device_t, device_t, void *);
     86