/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * simplefb.h - Simple Framebuffer Device * * Copyright (C) 2013 David Herrmann <[email protected]> */ #ifndef __PLATFORM_DATA_SIMPLEFB_H__ #define __PLATFORM_DATA_SIMPLEFB_H__ #include <drm/drm_fourcc.h> #include <linux/fb.h> #include <linux/types.h> /* format array, use it to initialize a "struct simplefb_format" array */ #define SIMPLEFB_FORMATS … /* * Data-Format for Simple-Framebuffers * @name: unique 0-terminated name that can be used to identify the mode * @red,green,blue: Offsets and sizes of the single RGB parts * @transp: Offset and size of the alpha bits. length=0 means no alpha * @fourcc: 32bit DRM four-CC code (see drm_fourcc.h) */ struct simplefb_format { … }; /* * Simple-Framebuffer description * If the arch-boot code creates simple-framebuffers without DT support, it * can pass the width, height, stride and format via this platform-data object. * The framebuffer location must be given as IORESOURCE_MEM resource. * @format must be a format as described in "struct simplefb_format" above. */ struct simplefb_platform_data { … }; #endif /* __PLATFORM_DATA_SIMPLEFB_H__ */