aupscvar.h revision 1.2.12.2 1 1.2.12.2 yamt /* $NetBSD: aupscvar.h,v 1.2.12.2 2006/06/21 14:53:28 yamt Exp $ */
2 1.2.12.2 yamt
3 1.2.12.2 yamt /*-
4 1.2.12.2 yamt * Copyright (c) 2006 Shigeyuki Fukushima.
5 1.2.12.2 yamt * All rights reserved.
6 1.2.12.2 yamt *
7 1.2.12.2 yamt * Written by Shigeyuki Fukushima.
8 1.2.12.2 yamt *
9 1.2.12.2 yamt * Redistribution and use in source and binary forms, with or without
10 1.2.12.2 yamt * modification, are permitted provided that the following conditions
11 1.2.12.2 yamt * are met:
12 1.2.12.2 yamt * 1. Redistributions of source code must retain the above copyright
13 1.2.12.2 yamt * notice, this list of conditions and the following disclaimer.
14 1.2.12.2 yamt * 2. Redistributions in binary form must reproduce the above
15 1.2.12.2 yamt * copyright notice, this list of conditions and the following
16 1.2.12.2 yamt * disclaimer in the documentation and/or other materials provided
17 1.2.12.2 yamt * with the distribution.
18 1.2.12.2 yamt * 3. The name of the author may not be used to endorse or promote
19 1.2.12.2 yamt * products derived from this software without specific prior
20 1.2.12.2 yamt * written permission.
21 1.2.12.2 yamt *
22 1.2.12.2 yamt * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
23 1.2.12.2 yamt * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24 1.2.12.2 yamt * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 1.2.12.2 yamt * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
26 1.2.12.2 yamt * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 1.2.12.2 yamt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
28 1.2.12.2 yamt * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 1.2.12.2 yamt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30 1.2.12.2 yamt * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
31 1.2.12.2 yamt * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 1.2.12.2 yamt * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 1.2.12.2 yamt */
34 1.2.12.2 yamt
35 1.2.12.2 yamt #ifndef _MIPS_ALCHEMY_DEV_AUPSCVAR_H_
36 1.2.12.2 yamt #define _MIPS_ALCHEMY_DEV_AUPSCVAR_H_
37 1.2.12.2 yamt
38 1.2.12.2 yamt struct aupsc_controller {
39 1.2.12.2 yamt bus_space_tag_t psc_bust; /* Bus space tag */
40 1.2.12.2 yamt bus_space_handle_t psc_bush; /* Bus space handle */
41 1.2.12.2 yamt int * psc_sel; /* current protocol selection */
42 1.2.12.2 yamt void (*psc_enable)(void *, int);
43 1.2.12.2 yamt void (*psc_disable)(void *);
44 1.2.12.2 yamt void (*psc_suspend)(void *);
45 1.2.12.2 yamt };
46 1.2.12.2 yamt
47 1.2.12.2 yamt struct aupsc_attach_args {
48 1.2.12.2 yamt const char * aupsc_name;
49 1.2.12.2 yamt struct aupsc_controller aupsc_ctrl;
50 1.2.12.2 yamt };
51 1.2.12.2 yamt
52 1.2.12.2 yamt struct aupsc_protocol_device {
53 1.2.12.2 yamt struct device sc_dev;
54 1.2.12.2 yamt struct aupsc_controller sc_ctrl;
55 1.2.12.2 yamt };
56 1.2.12.2 yamt
57 1.2.12.2 yamt #endif /* _MIPS_ALCHEMY_DEV_AUPSCVAR_H_ */
58