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/arm/xscale/ixp425/ixp425var.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: ixp425var.h,v 1.10 2006/04/10 03:36:03 simonb Exp $ */
    2 
    3 /*
    4  * Copyright (c) 2003
    5  *      Ichiro FUKUHARA <ichiro@ichiro.org>.
    6  * All rights reserved.
    7  *
    8  * Redistribution and use in source and binary forms, with or without
    9  * modification, are permitted provided that the following conditions
   10  * are met:
   11  * 1. Redistributions of source code must retain the above copyright
   12  *    notice, this list of conditions and the following disclaimer.
   13  * 2. Redistributions in binary form must reproduce the above copyright
   14  *    notice, this list of conditions and the following disclaimer in the
   15  *    documentation and/or other materials provided with the distribution.
   16  * 3. All advertising materials mentioning features or use of this software
   17  *    must display the following acknowledgement:
   18  *      This product includes software developed by Ichiro FUKUHARA.
   19  * 4. The name of the company nor the name of the author may be used to
   20  *    endorse or promote products derived from this software without specific
   21  *    prior written permission.
   22  *
   23  * THIS SOFTWARE IS PROVIDED BY ICHIRO FUKUHARA ``AS IS'' AND ANY EXPRESS OR
   24  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   25  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   26  * IN NO EVENT SHALL ICHIRO FUKUHARA OR THE VOICES IN HIS HEAD BE LIABLE FOR
   27  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   33  * SUCH DAMAGE.
   34  *
   35  * $FreeBSD: releng/7.4/sys/arm/xscale/ixp425/ixp425var.h 170109 2007-05-29 18:10:42Z jhay $
   36  *
   37  */
   38 
   39 #ifndef _IXP425VAR_H_
   40 #define _IXP425VAR_H_
   41 
   42 #include <sys/conf.h>
   43 #include <sys/queue.h>
   44 
   45 #include <machine/bus.h>
   46 
   47 #include <dev/pci/pcivar.h>
   48 #include <sys/rman.h>
   49 
   50 struct ixp425_softc {
   51         device_t sc_dev;
   52         bus_space_tag_t sc_iot;
   53         bus_space_handle_t sc_gpio_ioh;
   54         bus_space_handle_t sc_exp_ioh;
   55 
   56         u_int32_t sc_intrmask;
   57 
   58         struct rman sc_irq_rman;
   59         struct rman sc_mem_rman;
   60         bus_dma_tag_t sc_dmat;
   61 };
   62 
   63 struct ixppcib_softc {
   64         device_t                sc_dev;
   65         
   66         u_int                   sc_bus;
   67         
   68         struct resource         *sc_csr;
   69         struct resource         *sc_mem;
   70         
   71         struct rman             sc_io_rman;
   72         struct rman             sc_mem_rman;
   73         struct rman             sc_irq_rman;
   74         
   75         struct bus_space        sc_pci_memt;
   76         struct bus_space        sc_pci_iot;
   77         bus_dma_tag_t           sc_dmat;
   78 };
   79 
   80 #define EXP_BUS_WRITE_4(sc, reg, data) \
   81         bus_space_write_4(sc->sc_iot, sc->sc_exp_ioh, reg, data)
   82 #define EXP_BUS_READ_4(sc, reg) \
   83         bus_space_read_4(sc->sc_iot, sc->sc_exp_ioh, reg)
   84 
   85 #define GPIO_CONF_WRITE_4(sc, reg, data)        \
   86         bus_space_write_4(sc->sc_iot, sc->sc_gpio_ioh, reg, data)
   87 #define GPIO_CONF_READ_4(sc, reg) \
   88         bus_space_read_4(sc->sc_iot, sc->sc_gpio_ioh, reg)
   89 
   90 extern struct bus_space ixp425_bs_tag;
   91 extern struct bus_space ixp425_a4x_bs_tag;
   92 
   93 void    ixp425_io_bs_init(bus_space_tag_t, void *);
   94 void    ixp425_mem_bs_init(bus_space_tag_t, void *);
   95 
   96 uint32_t ixp425_sdram_size(void);
   97 
   98 int     ixp425_md_route_interrupt(device_t, device_t, int);
   99 void    ixp425_md_attach(device_t);
  100 
  101 int     getvbase(uint32_t, uint32_t, uint32_t *);
  102 
  103 struct ixp425_ivar {
  104         uint32_t        addr;
  105         int             irq;
  106 };
  107 #define IXP425_IVAR(d)  ((struct ixp425_ivar *) device_get_ivars(d))
  108 
  109 enum {
  110         IXP425_IVAR_ADDR,               /* base physical address */
  111         IXP425_IVAR_IRQ                 /* irq/gpio pin assignment */
  112 };
  113 
  114 #endif /* _IXP425VAR_H_ */

Cache object: a511ab089314e768490174a965fd79e9


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