]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/common/gfx_fb_stub.c
Merge llvm-project release/17.x llvmorg-17.0.1-25-g098e653a5bed
[FreeBSD/FreeBSD.git] / stand / common / gfx_fb_stub.c
1 /*-
2  * Copyright 2021 Toomas Soome <tsoome@freebsd.org>
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24  * SUCH DAMAGE.
25  */
26
27 #include <sys/cdefs.h>
28 /*
29  * Generic gfx stubs.
30  */
31
32 #include <sys/types.h>
33 #include <pnglite.h>
34 #include "bootstrap.h"
35 #include "gfx_fb.h"
36
37 font_list_t fonts = STAILQ_HEAD_INITIALIZER(fonts);
38 teken_gfx_t gfx_state = { 0 };
39
40 void
41 gfx_fb_setpixel(uint32_t x __unused, uint32_t y __unused)
42 {
43 }
44
45 void
46 gfx_fb_drawrect(uint32_t x1 __unused, uint32_t y1 __unused,
47     uint32_t x2 __unused, uint32_t y2 __unused, uint32_t fill __unused)
48 {
49 }
50
51 void
52 gfx_term_drawrect(uint32_t x1 __unused, uint32_t y1 __unused,
53     uint32_t x2 __unused, uint32_t y2 __unused)
54 {
55 }
56
57 void
58 gfx_fb_line(uint32_t x0 __unused, uint32_t y0 __unused,
59     uint32_t x1 __unused, uint32_t y1 __unused, uint32_t w __unused)
60 {
61 }
62
63 void
64 gfx_fb_bezier(uint32_t x0 __unused, uint32_t y0 __unused,
65     uint32_t x1 __unused, uint32_t y1 __unused, uint32_t x2 __unused,
66     uint32_t y2 __unused, uint32_t w __unused)
67 {
68 }
69
70 int
71 gfx_fb_putimage(png_t *png __unused, uint32_t ux1 __unused,
72     uint32_t uy1 __unused, uint32_t ux2 __unused, uint32_t uy2 __unused,
73     uint32_t flags __unused)
74 {
75         return (1);
76 }