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__FBSDID("$FreeBSD$");
29
30/*
31 * U-Boot-specific gfx stubs.
32 */
33
34#include <sys/types.h>
35#include <pnglite.h>
36#include "bootstrap.h"
37#include "gfx_fb.h"
38
39font_list_t fonts = STAILQ_HEAD_INITIALIZER(fonts);
40teken_gfx_t gfx_state = { 0 };
41
42void
43gfx_fb_setpixel(uint32_t x __unused, uint32_t y __unused)
44{
45}
46
47void
48gfx_fb_drawrect(uint32_t x1 __unused, uint32_t y1 __unused,
49    uint32_t x2 __unused, uint32_t y2 __unused, uint32_t fill __unused)
50{
51}
52
53void
54gfx_term_drawrect(uint32_t x1 __unused, uint32_t y1 __unused,
55    uint32_t x2 __unused, uint32_t y2 __unused)
56{
57}
58
59void
60gfx_fb_line(uint32_t x0 __unused, uint32_t y0 __unused,
61    uint32_t x1 __unused, uint32_t y1 __unused, uint32_t w __unused)
62{
63}
64
65void
66gfx_fb_bezier(uint32_t x0 __unused, uint32_t y0 __unused,
67    uint32_t x1 __unused, uint32_t y1 __unused, uint32_t x2 __unused,
68    uint32_t y2 __unused, uint32_t w __unused)
69{
70}
71
72int
73gfx_fb_putimage(png_t *png __unused, uint32_t ux1 __unused,
74    uint32_t uy1 __unused, uint32_t ux2 __unused, uint32_t uy2 __unused,
75    uint32_t flags __unused)
76{
77	return (1);
78}
79