1/* 2 * Copyright (c) 2010, 2011 Genetec Corporation. All rights reserved. 3 * Written by Hiroyuki Bessho for Genetec Corporation. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 14 * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 16 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORPORATION 18 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 * POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#ifndef _ARM_MPCORE_MPCOREVAR_H 28#define _ARM_MPCORE_MPCOREVAR_H 29 30 31#include "bus_space_a2x.h" 32#include "bus_space_a4x.h" 33 34 35extern struct bus_space mpcore_bs_tag; 36extern struct bus_space mpcore_a2x_bs_tag; 37extern struct arm32_bus_dma_tag mpcore_bus_dma_tag; 38 39struct axi_attach_args { 40 const char *aa_name; 41 bus_space_tag_t aa_iot; 42 bus_space_tag_t aa_iot_a2x; 43 bus_space_tag_t aa_iot_a4x; 44 bus_dma_tag_t aa_dmat; 45 bus_addr_t aa_addr; 46 bus_size_t aa_size; 47 int aa_irq; 48 int aa_irqbase; 49}; 50 51 52struct pmr_attach_args { 53 const char *pa_name; 54 bus_space_tag_t pa_iot; 55 bus_space_handle_t pa_ioh; 56 int pa_irq; 57}; 58 59 60#endif /* _ARM_MPCORE_MPCOREVAR_H */ 61