xref: /netbsd-src/sys/arch/arm/sunxi/sunxi_display.h (revision d24a660346c17567f3f6b0f4457b0a2547e53b80)
1*d24a6603Sbouyer /*	$NetBSD: sunxi_display.h,v 1.3 2018/06/01 17:18:44 bouyer Exp $	*/
2a4d537b2Sbouyer 
3a4d537b2Sbouyer /*-
4a4d537b2Sbouyer  * Copyright (c) 2018 The NetBSD Foundation, Inc.
5a4d537b2Sbouyer  * All rights reserved.
6a4d537b2Sbouyer  *
7a4d537b2Sbouyer  * This code is derived from software contributed to The NetBSD Foundation
8a4d537b2Sbouyer  * by Manuel Bouyer.
9a4d537b2Sbouyer  *
10a4d537b2Sbouyer  * Redistribution and use in source and binary forms, with or without
11a4d537b2Sbouyer  * modification, are permitted provided that the following conditions
12a4d537b2Sbouyer  * are met:
13a4d537b2Sbouyer  * 1. Redistributions of source code must retain the above copyright
14a4d537b2Sbouyer  *    notice, this list of conditions and the following disclaimer.
15a4d537b2Sbouyer  * 2. Redistributions in binary form must reproduce the above copyright
16a4d537b2Sbouyer  *    notice, this list of conditions and the following disclaimer in the
17a4d537b2Sbouyer  *    documentation and/or other materials provided with the distribution.
18a4d537b2Sbouyer  *
19a4d537b2Sbouyer  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20a4d537b2Sbouyer  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21a4d537b2Sbouyer  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22a4d537b2Sbouyer  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23a4d537b2Sbouyer  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24a4d537b2Sbouyer  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25a4d537b2Sbouyer  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26a4d537b2Sbouyer  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27a4d537b2Sbouyer  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28a4d537b2Sbouyer  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29a4d537b2Sbouyer  * POSSIBILITY OF SUCH DAMAGE.
30a4d537b2Sbouyer  */
31a4d537b2Sbouyer 
32a4d537b2Sbouyer 
33a4d537b2Sbouyer #define SUNXI_PORT_INPUT	0
34a4d537b2Sbouyer #define SUNXI_PORT_OUTPUT	1
35a4d537b2Sbouyer 
36a4d537b2Sbouyer struct videomode;
37a4d537b2Sbouyer int sunxi_debe_pipeline(int, bool);
38a4d537b2Sbouyer void sunxi_tcon1_set_videomode(device_t, const struct videomode *);
39a4d537b2Sbouyer void sunxi_debe_set_videomode(device_t, const struct videomode *);
40d62e50cbSbouyer bool sunxi_tcon_is_console(device_t, const char *);
41*d24a6603Sbouyer 
42*d24a6603Sbouyer void sunxi_tcon_doreset(void);
43*d24a6603Sbouyer void sunxi_hdmi_doreset(void);
44