#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/usb.h>
#include <linux/uaccess.h>
#include <linux/mm.h>
#include <linux/fb.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include "edid.h"
Go to the source code of this file.
|
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| |
| #define | check_warn(status, fmt, args...) ({ if (status < 0) pr_warn(fmt, ##args); }) |
| |
| #define | check_warn_return(status, fmt, args...) ({ if (status < 0) { pr_warn(fmt, ##args); return status; } }) |
| |
| #define | check_warn_goto_error(status, fmt, args...) ({ if (status < 0) { pr_warn(fmt, ##args); goto error; } }) |
| |
| #define | all_bits_set(x, bits) (((x) & (bits)) == (bits)) |
| |
| #define | USB_VENDOR_REQUEST_WRITE_REGISTER 0xA0 |
| |
| #define | USB_VENDOR_REQUEST_READ_REGISTER 0xA1 |
| |
| #define | UFX_IOCTL_RETURN_EDID (0xAD) |
| |
| #define | UFX_IOCTL_REPORT_DAMAGE (0xAA) |
| |
| #define | BULK_SIZE (512) |
| |
| #define | MAX_TRANSFER (PAGE_SIZE*16 - BULK_SIZE) |
| |
| #define | WRITES_IN_FLIGHT (4) |
| |
| #define | GET_URB_TIMEOUT (HZ) |
| |
| #define | FREE_URB_TIMEOUT (HZ*2) |
| |
| #define | BPP 2 |
| |
| #define | UFX_DEFIO_WRITE_DELAY 5 /* fb_deferred_io.delay in jiffies */ |
| |
| #define | UFX_DEFIO_WRITE_DISABLE (HZ*60) /* "disable" with long delay */ |
| |
| #define FREE_URB_TIMEOUT (HZ*2) |
| #define GET_URB_TIMEOUT (HZ) |
| #define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
| #define UFX_DEFIO_WRITE_DISABLE (HZ*60) /* "disable" with long delay */ |
| #define UFX_IOCTL_REPORT_DAMAGE (0xAA) |
| #define UFX_IOCTL_RETURN_EDID (0xAD) |
| #define USB_VENDOR_REQUEST_READ_REGISTER 0xA1 |
| #define USB_VENDOR_REQUEST_WRITE_REGISTER 0xA0 |
| #define WRITES_IN_FLIGHT (4) |
| MODULE_DESCRIPTION |
( |
"SMSC UFX kernel framebuffer driver" |
| ) |
|
| MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
id_table |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
fb_defio |
, |
|
|
"Enable fb_defio mmap support" |
|
|
) |
| |
| module_usb_driver |
( |
ufx_driver |
| ) |
|