FreeBSD kernel usb device Code
|
#include <sys/types.h>
#include <sys/queue.h>
Go to the source code of this file.
Data Structures | |
struct | udl_buffer |
struct | udl_cmd_buf |
struct | udl_softc |
struct | udl_mode |
Macros | |
#define | UDL_CMD_MAX_FRAMES 64 /* units */ |
#define | UDL_CMD_MAX_DATA_SIZE 512 /* bytes */ |
#define | UDL_CMD_MAX_HEAD_SIZE 16 /* bytes */ |
#define | UDL_CMD_MAX_PIXEL_COUNT ((UDL_CMD_MAX_DATA_SIZE - UDL_CMD_MAX_HEAD_SIZE) / 2) |
#define | UDL_CMD_MAX_BUFFERS (3 * UDL_CMD_MAX_FRAMES) |
#define | UDL_FONT_HEIGHT 16 /* pixels */ |
#define | UDL_MAX_MODES 25 /* units */ |
#define | DLALL 0x0000 |
#define | DL125 0x0000 /* max 1280x1024, 1440x900 */ |
#define | DL120 0x0001 /* max 1280x1024, 1440x1050 */ |
#define | DL160 0x0002 /* max 1600x1200, 1680x1050 */ |
#define | DL165 0x0003 /* max 1600x1200, 1920x1080 */ |
#define | DL195 0x0004 /* max 1920x1200, 2048x1152 */ |
#define | DLMAX 0x0004 |
#define | DLUNK 0x00ff /* unknown */ |
#define | UDL_LOCK(sc) mtx_lock(&(sc)->sc_mtx) |
#define | UDL_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) |
#define | UDL_CTRL_CMD_READ_EDID 0x02 |
#define | UDL_CTRL_CMD_WRITE_1 0x03 |
#define | UDL_CTRL_CMD_READ_1 0x04 |
#define | UDL_CTRL_CMD_POLL 0x06 |
#define | UDL_CTRL_CMD_SET_KEY 0x12 |
#define | UDL_BULK_SOC 0xaf /* start of command token */ |
#define | UDL_BULK_CMD_REG_WRITE_1 0x20 /* write 1 byte to register */ |
#define | UDL_BULK_CMD_EOC 0xa0 /* end of command stack */ |
#define | UDL_BULK_CMD_DECOMP 0xe0 /* send decompression table */ |
#define | UDL_BULK_CMD_FB_BASE 0x60 |
#define | UDL_BULK_CMD_FB_WORD 0x08 |
#define | UDL_BULK_CMD_FB_COMP 0x10 |
#define | UDL_BULK_CMD_FB_WRITE (UDL_BULK_CMD_FB_BASE | 0x00) |
#define | UDL_BULK_CMD_FB_COPY (UDL_BULK_CMD_FB_BASE | 0x02) |
#define | UDL_REG_ADDR_START16 0x20 |
#define | UDL_REG_ADDR_STRIDE16 0x23 |
#define | UDL_REG_ADDR_START8 0x26 |
#define | UDL_REG_ADDR_STRIDE8 0x29 |
#define | UDL_REG_SCREEN 0x1f |
#define | UDL_REG_SCREEN_ON 0x00 |
#define | UDL_REG_SCREEN_OFF 0x01 |
#define | UDL_REG_SYNC 0xff |
#define | UDL_MODE_SIZE 29 |
Enumerations | |
enum | { UDL_BULK_WRITE_0 , UDL_BULK_WRITE_1 , UDL_N_TRANSFER } |
Functions | |
MALLOC_DECLARE (M_USB_DL) | |
TAILQ_HEAD (udl_buffer_head, udl_buffer) | |
TAILQ_HEAD (udl_cmd_head, udl_cmd_buf) | |
#define UDL_BULK_CMD_DECOMP 0xe0 /* send decompression table */ |
#define UDL_BULK_CMD_FB_COPY (UDL_BULK_CMD_FB_BASE | 0x02) |
#define UDL_BULK_CMD_FB_WRITE (UDL_BULK_CMD_FB_BASE | 0x00) |
#define UDL_BULK_CMD_REG_WRITE_1 0x20 /* write 1 byte to register */ |
#define UDL_CMD_MAX_BUFFERS (3 * UDL_CMD_MAX_FRAMES) |
#define UDL_CMD_MAX_PIXEL_COUNT ((UDL_CMD_MAX_DATA_SIZE - UDL_CMD_MAX_HEAD_SIZE) / 2) |
anonymous enum |
MALLOC_DECLARE | ( | M_USB_DL | ) |
TAILQ_HEAD | ( | udl_buffer_head | , |
udl_buffer | |||
) |
TAILQ_HEAD | ( | udl_cmd_head | , |
udl_cmd_buf | |||
) |
|
static |
Definition at line 284 of file udl.h.
Referenced by udl_attach(), udl_get_fb_height(), udl_get_fb_hz(), udl_get_fb_size(), udl_get_fb_width(), udl_init_resolution(), and udl_lookup_mode().
|
static |
Definition at line 315 of file udl.h.
Referenced by udl_init_chip().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |