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/tc/ioasicvar.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: ioasicvar.h,v 1.15 2003/09/26 16:00:12 mycroft Exp $   */
    2 
    3 /*
    4  * Copyright (c) 1995 Carnegie-Mellon University.
    5  * All rights reserved.
    6  *
    7  * Author: Chris G. Demetriou
    8  *
    9  * Permission to use, copy, modify and distribute this software and
   10  * its documentation is hereby granted, provided that both the copyright
   11  * notice and this permission notice appear in all copies of the
   12  * software, derivative works or modified versions, and any portions
   13  * thereof, and that both notices appear in supporting documentation.
   14  *
   15  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
   16  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
   17  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   18  *
   19  * Carnegie Mellon requests users of this software to return to
   20  *
   21  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   22  *  School of Computer Science
   23  *  Carnegie Mellon University
   24  *  Pittsburgh PA 15213-3890
   25  *
   26  * any improvements or extensions that they make and grant Carnegie the
   27  * rights to redistribute these changes.
   28  */
   29 
   30 #ifndef _DEV_TC_IOASICVAR_H_
   31 #define _DEV_TC_IOASICVAR_H_
   32 
   33 struct ioasic_dev {
   34         char            *iad_modname;
   35         tc_offset_t     iad_offset;
   36         void            *iad_cookie;
   37         u_int32_t       iad_intrbits;
   38 };
   39 
   40 struct ioasicdev_attach_args {
   41         char    iada_modname[TC_ROM_LLEN+1];
   42         tc_offset_t iada_offset;
   43         tc_addr_t iada_addr;
   44         void    *iada_cookie;
   45 };
   46 
   47 /* Device locators. */
   48 #include "locators.h"
   49 #define ioasiccf_offset cf_loc[IOASICCF_OFFSET]         /* offset */
   50 
   51 #define IOASIC_OFFSET_UNKNOWN   IOASICCF_OFFSET_DEFAULT
   52 
   53 struct ioasic_softc {
   54         struct  device sc_dv;
   55         bus_space_tag_t sc_bst;
   56         bus_space_handle_t sc_bsh;
   57         bus_dma_tag_t sc_dmat;
   58 
   59         tc_addr_t sc_base;              /* XXX offset XXX */
   60 };
   61 
   62 extern struct cfdriver ioasic_cd;
   63 
   64 /*
   65  * XXX Some drivers need direct access to IOASIC registers.
   66  */
   67 extern tc_addr_t ioasic_base;
   68 
   69 const struct evcnt *ioasic_intr_evcnt __P((struct device *, void *));
   70 void    ioasic_intr_establish __P((struct device *, void *,
   71             int, int (*)(void *), void *));
   72 void    ioasic_intr_disestablish __P((struct device *, void *));
   73 int     ioasic_submatch __P((struct cfdata *, struct ioasicdev_attach_args *));
   74 void    ioasic_attach_devs __P((struct ioasic_softc *,
   75             struct ioasic_dev *, int));
   76 
   77 #endif /* _DEV_TC_IOASICVAR_ */

Cache object: f9211478a53722a05755059034cfc7e8


[ 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.