1*eae45507Sjmcneill /* $NetBSD: vchiq_netbsd.h,v 1.3 2019/12/31 01:00:23 jmcneill Exp $ */
2a9fe1cd4Sjmcneill 
3a9fe1cd4Sjmcneill /*-
4a9fe1cd4Sjmcneill  * Copyright (c) 2013 The NetBSD Foundation, Inc.
5a9fe1cd4Sjmcneill  * All rights reserved.
6a9fe1cd4Sjmcneill  *
7a9fe1cd4Sjmcneill  * This code is derived from software contributed to The NetBSD Foundation
8a9fe1cd4Sjmcneill  * by Jared D. McNeill
9a9fe1cd4Sjmcneill  *
10a9fe1cd4Sjmcneill  * Redistribution and use in source and binary forms, with or without
11a9fe1cd4Sjmcneill  * modification, are permitted provided that the following conditions
12a9fe1cd4Sjmcneill  * are met:
13a9fe1cd4Sjmcneill  * 1. Redistributions of source code must retain the above copyright
14a9fe1cd4Sjmcneill  *    notice, this list of conditions and the following disclaimer.
15a9fe1cd4Sjmcneill  * 2. Redistributions in binary form must reproduce the above copyright
16a9fe1cd4Sjmcneill  *    notice, this list of conditions and the following disclaimer in the
17a9fe1cd4Sjmcneill  *    documentation and/or other materials provided with the distribution.
18a9fe1cd4Sjmcneill  *
19a9fe1cd4Sjmcneill  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20a9fe1cd4Sjmcneill  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21a9fe1cd4Sjmcneill  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22a9fe1cd4Sjmcneill  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23a9fe1cd4Sjmcneill  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24a9fe1cd4Sjmcneill  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25a9fe1cd4Sjmcneill  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26a9fe1cd4Sjmcneill  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27a9fe1cd4Sjmcneill  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28a9fe1cd4Sjmcneill  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29a9fe1cd4Sjmcneill  * POSSIBILITY OF SUCH DAMAGE.
30a9fe1cd4Sjmcneill  */
31a9fe1cd4Sjmcneill 
32a9fe1cd4Sjmcneill #ifndef _VCHIQ_NETBSD_H
33a9fe1cd4Sjmcneill #define _VCHIQ_NETBSD_H
34a9fe1cd4Sjmcneill 
35*eae45507Sjmcneill struct vchiq_softc {
36*eae45507Sjmcneill 	device_t sc_dev;
37*eae45507Sjmcneill 	device_t sc_audiodev;
38*eae45507Sjmcneill 
39*eae45507Sjmcneill 	bus_space_tag_t sc_iot;
40*eae45507Sjmcneill 	bus_space_handle_t sc_ioh;
41*eae45507Sjmcneill 	void *sc_ih;
42*eae45507Sjmcneill };
43*eae45507Sjmcneill 
44a9fe1cd4Sjmcneill struct vchiq_attach_args {
45a9fe1cd4Sjmcneill 	const char	*vaa_name;
46a9fe1cd4Sjmcneill };
47a9fe1cd4Sjmcneill 
48*eae45507Sjmcneill int	vchiq_intr(void *);
49*eae45507Sjmcneill int	vchiq_print(void *, const char *);
50*eae45507Sjmcneill void	vchiq_set_softc(struct vchiq_softc *);
51b67550e2Sskrll void	vchiq_platform_attach(bus_dma_tag_t tag);
52b67550e2Sskrll 
53a9fe1cd4Sjmcneill #endif /* !_VCHIQ_NETBSD_H */
54