marvellvar.h revision 1.1.2.2 1 1.1.2.2 uebayasi /* $NetBSD: marvellvar.h,v 1.1.2.2 2010/04/30 14:43:28 uebayasi Exp $ */
2 1.1.2.2 uebayasi /*
3 1.1.2.2 uebayasi * Copyright (c) 2009 KIYOHARA Takashi
4 1.1.2.2 uebayasi * All rights reserved.
5 1.1.2.2 uebayasi *
6 1.1.2.2 uebayasi * Redistribution and use in source and binary forms, with or without
7 1.1.2.2 uebayasi * modification, are permitted provided that the following conditions
8 1.1.2.2 uebayasi * are met:
9 1.1.2.2 uebayasi * 1. Redistributions of source code must retain the above copyright
10 1.1.2.2 uebayasi * notice, this list of conditions and the following disclaimer.
11 1.1.2.2 uebayasi * 2. Redistributions in binary form must reproduce the above copyright
12 1.1.2.2 uebayasi * notice, this list of conditions and the following disclaimer in the
13 1.1.2.2 uebayasi * documentation and/or other materials provided with the distribution.
14 1.1.2.2 uebayasi *
15 1.1.2.2 uebayasi * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 1.1.2.2 uebayasi * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 1.1.2.2 uebayasi * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 1.1.2.2 uebayasi * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19 1.1.2.2 uebayasi * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 1.1.2.2 uebayasi * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 1.1.2.2 uebayasi * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 1.1.2.2 uebayasi * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 1.1.2.2 uebayasi * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
24 1.1.2.2 uebayasi * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 1.1.2.2 uebayasi * POSSIBILITY OF SUCH DAMAGE.
26 1.1.2.2 uebayasi */
27 1.1.2.2 uebayasi
28 1.1.2.2 uebayasi #ifndef _DEV_MARVELL_MARVELLVAR_H_
29 1.1.2.2 uebayasi #define _DEV_MARVELL_MARVELLVAR_H_
30 1.1.2.2 uebayasi
31 1.1.2.2 uebayasi enum marvell_tags {
32 1.1.2.2 uebayasi MARVELL_TAG_SDRAM_CS0,
33 1.1.2.2 uebayasi MARVELL_TAG_SDRAM_CS1,
34 1.1.2.2 uebayasi MARVELL_TAG_SDRAM_CS2,
35 1.1.2.2 uebayasi MARVELL_TAG_SDRAM_CS3,
36 1.1.2.2 uebayasi
37 1.1.2.2 uebayasi MARVELL_TAG_UNDEFINED = -1,
38 1.1.2.2 uebayasi };
39 1.1.2.2 uebayasi
40 1.1.2.2 uebayasi
41 1.1.2.2 uebayasi #include <sys/bus.h>
42 1.1.2.2 uebayasi
43 1.1.2.2 uebayasi struct marvell_attach_args {
44 1.1.2.2 uebayasi const char *mva_name;
45 1.1.2.2 uebayasi int mva_model;
46 1.1.2.2 uebayasi int mva_revision;
47 1.1.2.2 uebayasi bus_space_tag_t mva_iot;
48 1.1.2.2 uebayasi bus_space_handle_t mva_ioh;
49 1.1.2.2 uebayasi int mva_unit;
50 1.1.2.2 uebayasi bus_size_t mva_addr;
51 1.1.2.2 uebayasi bus_size_t mva_offset;
52 1.1.2.2 uebayasi bus_size_t mva_size;
53 1.1.2.2 uebayasi bus_dma_tag_t mva_dmat;
54 1.1.2.2 uebayasi int mva_irq;
55 1.1.2.2 uebayasi };
56 1.1.2.2 uebayasi
57 1.1.2.2 uebayasi void *marvell_intr_establish(int, int, int (*)(void *), void *);
58 1.1.2.2 uebayasi int marvell_winparams_by_tag(device_t, int, int *, int *, uint64_t *,
59 1.1.2.2 uebayasi uint32_t *);
60 1.1.2.2 uebayasi
61 1.1.2.2 uebayasi #endif /* _DEV_MARVELL_MARVELLVAR_H_ */
62