Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
udl_drv.h File Reference
#include <linux/usb.h>

Go to the source code of this file.

Data Structures

struct  urb_node
 
struct  urb_list
 
struct  udl_device
 
struct  udl_gem_object
 
struct  udl_framebuffer
 

Macros

#define DRIVER_NAME   "udl"
 
#define DRIVER_DESC   "DisplayLink"
 
#define DRIVER_DATE   "20120220"
 
#define DRIVER_MAJOR   0
 
#define DRIVER_MINOR   0
 
#define DRIVER_PATCHLEVEL   1
 
#define to_udl_bo(x)   container_of(x, struct udl_gem_object, base)
 
#define to_udl_fb(x)   container_of(x, struct udl_framebuffer, base)
 
#define CMD_WRITE_RAW8   "\xAF\x60"
 
#define CMD_WRITE_RL8   "\xAF\x61"
 
#define CMD_WRITE_COPY8   "\xAF\x62"
 
#define CMD_WRITE_RLX8   "\xAF\x63"
 
#define CMD_WRITE_RAW16   "\xAF\x68"
 
#define CMD_WRITE_RL16   "\xAF\x69"
 
#define CMD_WRITE_COPY16   "\xAF\x6A"
 
#define CMD_WRITE_RLX16   "\xAF\x6B"
 

Functions

int udl_modeset_init (struct drm_device *dev)
 
void udl_modeset_cleanup (struct drm_device *dev)
 
int udl_connector_init (struct drm_device *dev, struct drm_encoder *encoder)
 
struct drm_encoderudl_encoder_init (struct drm_device *dev)
 
struct urbudl_get_urb (struct drm_device *dev)
 
int udl_submit_urb (struct drm_device *dev, struct urb *urb, size_t len)
 
void udl_urb_completion (struct urb *urb)
 
int udl_driver_load (struct drm_device *dev, unsigned long flags)
 
int udl_driver_unload (struct drm_device *dev)
 
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_framebufferudl_fb_user_fb_create (struct drm_device *dev, struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd)
 
int udl_render_hline (struct drm_device *dev, int bpp, struct urb **urb_ptr, const char *front, char **urb_buf_ptr, u32 byte_offset, u32 device_byte_offset, u32 byte_width, int *ident_ptr, int *sent_ptr)
 
int udl_dumb_create (struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args)
 
int udl_gem_mmap (struct drm_file *file_priv, struct drm_device *dev, uint32_t handle, uint64_t *offset)
 
int udl_dumb_destroy (struct drm_file *file_priv, struct drm_device *dev, uint32_t handle)
 
int udl_gem_init_object (struct drm_gem_object *obj)
 
void udl_gem_free_object (struct drm_gem_object *gem_obj)
 
struct udl_gem_objectudl_gem_alloc_object (struct drm_device *dev, size_t size)
 
struct drm_gem_object * udl_gem_prime_import (struct drm_device *dev, struct dma_buf *dma_buf)
 
int udl_gem_vmap (struct udl_gem_object *obj)
 
void udl_gem_vunmap (struct udl_gem_object *obj)
 
int udl_drm_gem_mmap (struct file *filp, struct vm_area_struct *vma)
 
int udl_gem_fault (struct vm_area_struct *vma, struct vm_fault *vmf)
 
int udl_handle_damage (struct udl_framebuffer *fb, int x, int y, int width, int height)
 
int udl_drop_usb (struct drm_device *dev)
 

Macro Definition Documentation

#define CMD_WRITE_COPY16   "\xAF\x6A"

16 bit copy command.

Definition at line 142 of file udl_drv.h.

#define CMD_WRITE_COPY8   "\xAF\x62"

8 bit copy command.

Definition at line 137 of file udl_drv.h.

#define CMD_WRITE_RAW16   "\xAF\x68"

16 bit raw write command.

Definition at line 140 of file udl_drv.h.

#define CMD_WRITE_RAW8   "\xAF\x60"

8 bit raw write command.

Definition at line 135 of file udl_drv.h.

#define CMD_WRITE_RL16   "\xAF\x69"

16 bit run length command.

Definition at line 141 of file udl_drv.h.

#define CMD_WRITE_RL8   "\xAF\x61"

8 bit run length command.

Definition at line 136 of file udl_drv.h.

#define CMD_WRITE_RLX16   "\xAF\x6B"

16 bit extended run length command.

Definition at line 143 of file udl_drv.h.

#define CMD_WRITE_RLX8   "\xAF\x63"

8 bit extended run length command.

Definition at line 138 of file udl_drv.h.

#define DRIVER_DATE   "20120220"

Definition at line 21 of file udl_drv.h.

#define DRIVER_DESC   "DisplayLink"

Definition at line 20 of file udl_drv.h.

#define DRIVER_MAJOR   0

Definition at line 23 of file udl_drv.h.

#define DRIVER_MINOR   0

Definition at line 24 of file udl_drv.h.

#define DRIVER_NAME   "udl"

Definition at line 19 of file udl_drv.h.

#define DRIVER_PATCHLEVEL   1

Definition at line 25 of file udl_drv.h.

#define to_udl_bo (   x)    container_of(x, struct udl_gem_object, base)

Definition at line 72 of file udl_drv.h.

#define to_udl_fb (   x)    container_of(x, struct udl_framebuffer, base)

Definition at line 80 of file udl_drv.h.

Function Documentation

int udl_connector_init ( struct drm_device dev,
struct drm_encoder encoder 
)

Definition at line 127 of file udl_connector.c.

int udl_driver_load ( struct drm_device dev,
unsigned long  flags 
)

Definition at line 283 of file udl_main.c.

int udl_driver_unload ( struct drm_device dev)

Definition at line 324 of file udl_main.c.

int udl_drm_gem_mmap ( struct file filp,
struct vm_area_struct vma 
)

Definition at line 75 of file udl_gem.c.

int udl_drop_usb ( struct drm_device dev)

Definition at line 318 of file udl_main.c.

int udl_dumb_create ( struct drm_file *  file_priv,
struct drm_device dev,
struct drm_mode_create_dumb args 
)

Definition at line 59 of file udl_gem.c.

int udl_dumb_destroy ( struct drm_file *  file_priv,
struct drm_device dev,
uint32_t  handle 
)

Definition at line 69 of file udl_gem.c.

struct drm_encoder* udl_encoder_init ( struct drm_device dev)
read

Definition at line 68 of file udl_encoder.c.

struct drm_framebuffer* udl_fb_user_fb_create ( struct drm_device dev,
struct drm_file *  file,
struct drm_mode_fb_cmd2 mode_cmd 
)
read

Definition at line 617 of file udl_fb.c.

void udl_fbdev_cleanup ( struct drm_device dev)

Definition at line 590 of file udl_fb.c.

int udl_fbdev_init ( struct drm_device dev)

Definition at line 563 of file udl_fb.c.

void udl_fbdev_unplug ( struct drm_device dev)

Definition at line 601 of file udl_fb.c.

struct udl_gem_object* udl_gem_alloc_object ( struct drm_device dev,
size_t  size 
)
read

Definition at line 14 of file udl_gem.c.

int udl_gem_fault ( struct vm_area_struct vma,
struct vm_fault *  vmf 
)

Definition at line 89 of file udl_gem.c.

void udl_gem_free_object ( struct drm_gem_object *  gem_obj)

Definition at line 213 of file udl_gem.c.

int udl_gem_init_object ( struct drm_gem_object *  obj)

Definition at line 117 of file udl_gem.c.

int udl_gem_mmap ( struct drm_file *  file_priv,
struct drm_device dev,
uint32_t  handle,
uint64_t offset 
)

Definition at line 232 of file udl_gem.c.

struct drm_gem_object* udl_gem_prime_import ( struct drm_device dev,
struct dma_buf dma_buf 
)
read

Definition at line 293 of file udl_gem.c.

int udl_gem_vmap ( struct udl_gem_object obj)

Definition at line 178 of file udl_gem.c.

void udl_gem_vunmap ( struct udl_gem_object obj)

Definition at line 200 of file udl_gem.c.

struct urb* udl_get_urb ( struct drm_device dev)
read

Definition at line 232 of file udl_main.c.

int udl_handle_damage ( struct udl_framebuffer fb,
int  x,
int  y,
int  width,
int  height 
)

Definition at line 143 of file udl_fb.c.

void udl_modeset_cleanup ( struct drm_device dev)

Definition at line 440 of file udl_modeset.c.

int udl_modeset_init ( struct drm_device dev)

Definition at line 413 of file udl_modeset.c.

int udl_render_hline ( struct drm_device dev,
int  bpp,
struct urb **  urb_ptr,
const char front,
char **  urb_buf_ptr,
u32  byte_offset,
u32  device_byte_offset,
u32  byte_width,
int ident_ptr,
int sent_ptr 
)

Definition at line 214 of file udl_transfer.c.

int udl_submit_urb ( struct drm_device dev,
struct urb urb,
size_t  len 
)

Definition at line 266 of file udl_main.c.

void udl_urb_completion ( struct urb urb)

Definition at line 101 of file udl_main.c.