^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * StrongARM 1100 LCD Controller Frame Buffer Device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright (C) 1999 Eric A. Thomas
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Based on acornfb.c Copyright (C) Russell King.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * This file is subject to the terms and conditions of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * License. See the file COPYING in the main directory of this archive
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef _VIDEO_SA1100FB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define _VIDEO_SA1100FB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/fb.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define RGB_4 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define RGB_8 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define RGB_16 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define NR_RGB 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) /* These are the bitfields for each display depth that we support. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct sa1100fb_rgb {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) struct fb_bitfield red;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) struct fb_bitfield green;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) struct fb_bitfield blue;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct fb_bitfield transp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /* This structure describes the machine which we are running on. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) struct sa1100fb_mach_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) u_long pixclock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) u_short xres;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) u_short yres;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) u_char bpp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) u_char hsync_len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) u_char left_margin;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) u_char right_margin;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) u_char vsync_len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) u_char upper_margin;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) u_char lower_margin;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) u_char sync;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) u_int cmap_greyscale:1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) cmap_inverse:1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) cmap_static:1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) unused:29;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) u_int lccr0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) u_int lccr3;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) /* Overrides for the default RGB maps */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) const struct sa1100fb_rgb *rgb[NR_RGB];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) void (*backlight_power)(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) void (*lcd_power)(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) void (*set_visual)(u32);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #endif