epsocvar.h revision 1.1.4.2 1 1.1.4.2 skrll /* $NetBSD: epsocvar.h,v 1.1.4.2 2005/01/17 19:29:12 skrll Exp $ */
2 1.1.4.2 skrll /*
3 1.1.4.2 skrll * Copyright (c) 2004 Jesse Off
4 1.1.4.2 skrll * All rights reserved.
5 1.1.4.2 skrll *
6 1.1.4.2 skrll * Redistribution and use in source and binary forms, with or without
7 1.1.4.2 skrll * modification, are permitted provided that the following conditions
8 1.1.4.2 skrll * are met:
9 1.1.4.2 skrll * 1. Redistributions of source code must retain the above copyright
10 1.1.4.2 skrll * notice, this list of conditions and the following disclaimer.
11 1.1.4.2 skrll * 2. Redistributions in binary form must reproduce the above copyright
12 1.1.4.2 skrll * notice, this list of conditions and the following disclaimer in the
13 1.1.4.2 skrll * documentation and/or other materials provided with the distribution.
14 1.1.4.2 skrll * 3. All advertising materials mentioning features or use of this software
15 1.1.4.2 skrll * must display the following acknowledgement:
16 1.1.4.2 skrll * This product includes software developed by Ichiro FUKUHARA.
17 1.1.4.2 skrll * 4. The name of the company nor the name of the author may be used to
18 1.1.4.2 skrll * endorse or promote products derived from this software without specific
19 1.1.4.2 skrll * prior written permission.
20 1.1.4.2 skrll *
21 1.1.4.2 skrll * THIS SOFTWARE IS PROVIDED BY ICHIRO FUKUHARA ``AS IS'' AND ANY EXPRESS OR
22 1.1.4.2 skrll * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 1.1.4.2 skrll * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 1.1.4.2 skrll * IN NO EVENT SHALL ICHIRO FUKUHARA OR THE VOICES IN HIS HEAD BE LIABLE FOR
25 1.1.4.2 skrll * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 1.1.4.2 skrll * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 1.1.4.2 skrll * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 1.1.4.2 skrll * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 1.1.4.2 skrll * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 1.1.4.2 skrll * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 1.1.4.2 skrll * SUCH DAMAGE.
32 1.1.4.2 skrll */
33 1.1.4.2 skrll
34 1.1.4.2 skrll #ifndef _EPSOCVAR_H_
35 1.1.4.2 skrll #define _EPSOCVAR_H_
36 1.1.4.2 skrll
37 1.1.4.2 skrll #include <sys/conf.h>
38 1.1.4.2 skrll #include <sys/device.h>
39 1.1.4.2 skrll #include <sys/queue.h>
40 1.1.4.2 skrll
41 1.1.4.2 skrll #include <machine/bus.h>
42 1.1.4.2 skrll
43 1.1.4.2 skrll struct epsoc_attach_args {
44 1.1.4.2 skrll bus_space_tag_t sa_iot; /* Bus tag */
45 1.1.4.2 skrll bus_dma_tag_t sa_dmat;
46 1.1.4.2 skrll bus_addr_t sa_addr; /* i/o address */
47 1.1.4.2 skrll bus_size_t sa_size;
48 1.1.4.2 skrll int sa_intr;
49 1.1.4.2 skrll u_int32_t sa_hclk;
50 1.1.4.2 skrll u_int32_t sa_pclk;
51 1.1.4.2 skrll };
52 1.1.4.2 skrll
53 1.1.4.2 skrll struct epsoc_softc {
54 1.1.4.2 skrll struct device sc_dev;
55 1.1.4.2 skrll u_int32_t sc_fclk;
56 1.1.4.2 skrll u_int32_t sc_hclk;
57 1.1.4.2 skrll u_int32_t sc_pclk;
58 1.1.4.2 skrll bus_space_tag_t sc_iot;
59 1.1.4.2 skrll bus_space_handle_t sc_ioh;
60 1.1.4.2 skrll bus_dma_tag_t sc_dmat;
61 1.1.4.2 skrll };
62 1.1.4.2 skrll
63 1.1.4.2 skrll extern struct epsoc_softc *epsoc_sc;
64 1.1.4.2 skrll
65 1.1.4.2 skrll #endif /* _EPSOCVAR_H_ */
66