The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/ofisa/ofisavar.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: ofisavar.h,v 1.4 1999/03/19 03:30:35 cgd 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 #ifndef _DEV_OFISA_OFISAVAR_H_
   37 #define _DEV_OFISA_OFISAVAR_H_
   38 
   39 struct ofisa_attach_args {
   40         struct ofbus_attach_args oba;   /* common */
   41 
   42         bus_space_tag_t iot;            /* i/o space tag */
   43         bus_space_tag_t memt;           /* mem space tag */
   44         bus_dma_tag_t   dmat;           /* DMA tag */
   45         isa_chipset_tag_t ic;           /* chipset tag (for intr, etc.) */
   46 };
   47 
   48 struct ofisa_reg_desc {
   49         int             type;           /* type.  XXX aliasing modifiers? */
   50         bus_addr_t      addr;           /* base address. */
   51         bus_size_t      len;            /* length. */
   52 };
   53 
   54 #define OFISA_REG_TYPE_MEM      0       /* memory space */
   55 #define OFISA_REG_TYPE_IO       1       /* I/O space */
   56 
   57 struct ofisa_intr_desc {
   58         int             share;          /* sharing type: IST_*. */
   59         int             irq;            /* IRQ. */
   60 };
   61 
   62 struct ofisa_dma_desc {
   63         int             drq;            /* DMA request */
   64         int             mode;           /* DMA mode */
   65         int             width;          /* DMA width */
   66         int             countwidth;     /* DMA count width */
   67         int             busmaster;      /* boolean; is a busmaster */
   68 };
   69 
   70 #define OFISA_DMA_MODE_COMPAT   0       /* compatibility mode */
   71 #define OFISA_DMA_MODE_A        1       /* DMA A mode */
   72 #define OFISA_DMA_MODE_B        2       /* DMA B mode */
   73 #define OFISA_DMA_MODE_F        3       /* DMA F mode */
   74 #define OFISA_DMA_MODE_C        4       /* DMA C mode */
   75 
   76 /*
   77  * Machine-dependent function/macro definitions.
   78  *
   79  * Machine-dependent code must implement at least:
   80  *
   81  *      int     ofisa_get_isabus_data(int phandle,
   82  *                  struct isabus_attach_args *iba);
   83  *
   84  *      int     ofisa_ignore_child(int pphandle, int cphandle);
   85  *
   86  * Individual ofisa attachments may want addition functions or
   87  * macros from this (or other) headers.  See those attachments'
   88  * files for more details.
   89  */
   90 #include <machine/ofisa_machdep.h>
   91 
   92 int     ofisa_reg_count __P((int));
   93 int     ofisa_reg_get __P((int, struct ofisa_reg_desc *, int));
   94 void    ofisa_reg_print __P((struct ofisa_reg_desc *, int));
   95 int     ofisa_intr_count __P((int));
   96 int     ofisa_intr_get __P((int, struct ofisa_intr_desc *, int));
   97 void    ofisa_intr_print __P((struct ofisa_intr_desc *, int));
   98 int     ofisa_dma_count __P((int));
   99 int     ofisa_dma_get __P((int, struct ofisa_dma_desc *, int));
  100 void    ofisa_dma_print __P((struct ofisa_dma_desc *, int));
  101 
  102 #endif /* _DEV_OFISA_OFISAVAR_H_ */

Cache object: 98b5d658b5aba739d8793a24fda54f1d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.