#include <linux/module.h>
#include <linux/slab.h>
#include <linux/fb.h>
#include <linux/dma-buf.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include "udl_drv.h"
#include <drm/drm_fb_helper.h>
Go to the source code of this file.
|
| module_param (fb_bpp, int, S_IWUSR|S_IRUSR|S_IWGRP|S_IRGRP) |
|
| module_param (fb_defio, int, S_IWUSR|S_IRUSR|S_IWGRP|S_IRGRP) |
|
int | udl_handle_damage (struct udl_framebuffer *fb, int x, int y, int width, int height) |
|
int | udl_fbdev_init (struct drm_device *dev) |
|
void | udl_fbdev_cleanup (struct drm_device *dev) |
|
void | udl_fbdev_unplug (struct drm_device *dev) |
|
struct drm_framebuffer * | udl_fb_user_fb_create (struct drm_device *dev, struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd) |
|
#define DLO_GB16 |
( |
|
grn, |
|
|
|
blu |
|
) |
| (uint8_t)(((((grn) & 0x1C) << 3) | ((blu) >> 3)) & 0xFF) |
Return green/blue component of a 16 bpp colour number.
Definition at line 56 of file udl_fb.c.
#define DLO_RG16 |
( |
|
red, |
|
|
|
grn |
|
) |
| (uint8_t)((((red) & 0xF8) | ((grn) >> 5)) & 0xFF) |
Return red/green component of a 16 bpp colour number.
Definition at line 53 of file udl_fb.c.
#define DLO_RGB8 |
( |
|
red, |
|
|
|
grn, |
|
|
|
blu |
|
) |
| ((((red) << 5) | (((grn) & 3) << 3) | ((blu) & 7)) & 0xFF) |
Return 8 bpp colour number from red, green and blue components.
Definition at line 59 of file udl_fb.c.
#define DLO_RGB_GETBLU |
( |
|
col | ) |
(uint8_t)(((col) >> 16) & 0xFF) |
Read the blue component (0..255) of a 32 bpp colour.
Definition at line 50 of file udl_fb.c.
#define DLO_RGB_GETGRN |
( |
|
col | ) |
(uint8_t)(((col) >> 8) & 0xFF) |
Read the green component (0..255) of a 32 bpp colour.
Definition at line 47 of file udl_fb.c.
#define DLO_RGB_GETRED |
( |
|
col | ) |
(uint8_t)((col) & 0xFF) |
Read the red component (0..255) of a 32 bpp colour.
Definition at line 44 of file udl_fb.c.