Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
smscufx.c File Reference
#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.

Data Structures

struct  dloarea
 
struct  urb_node
 
struct  urb_list
 
struct  ufx_data
 
struct  pll_values
 

Macros

#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 */
 

Functions

 MODULE_DEVICE_TABLE (usb, id_table)
 
 module_usb_driver (ufx_driver)
 
 module_param (console, bool, S_IWUSR|S_IRUSR|S_IWGRP|S_IRGRP)
 
 MODULE_PARM_DESC (console,"Allow fbcon to be used on this display")
 
 module_param (fb_defio, bool, S_IWUSR|S_IRUSR|S_IWGRP|S_IRGRP)
 
 MODULE_PARM_DESC (fb_defio,"Enable fb_defio mmap support")
 
 MODULE_AUTHOR ("Steve Glendinning <[email protected]>")
 
 MODULE_DESCRIPTION ("SMSC UFX kernel framebuffer driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define all_bits_set (   x,
  bits 
)    (((x) & (bits)) == (bits))

Definition at line 46 of file smscufx.c.

#define BPP   2

Definition at line 69 of file smscufx.c.

#define BULK_SIZE   (512)

Definition at line 62 of file smscufx.c.

#define check_warn (   status,
  fmt,
  args... 
)    ({ if (status < 0) pr_warn(fmt, ##args); })

Definition at line 37 of file smscufx.c.

#define check_warn_goto_error (   status,
  fmt,
  args... 
)    ({ if (status < 0) { pr_warn(fmt, ##args); goto error; } })

Definition at line 43 of file smscufx.c.

#define check_warn_return (   status,
  fmt,
  args... 
)    ({ if (status < 0) { pr_warn(fmt, ##args); return status; } })

Definition at line 40 of file smscufx.c.

#define FREE_URB_TIMEOUT   (HZ*2)

Definition at line 67 of file smscufx.c.

#define GET_URB_TIMEOUT   (HZ)

Definition at line 66 of file smscufx.c.

#define MAX_TRANSFER   (PAGE_SIZE*16 - BULK_SIZE)

Definition at line 63 of file smscufx.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 23 of file smscufx.c.

#define UFX_DEFIO_WRITE_DELAY   5 /* fb_deferred_io.delay in jiffies */

Definition at line 71 of file smscufx.c.

#define UFX_DEFIO_WRITE_DISABLE   (HZ*60) /* "disable" with long delay */

Definition at line 72 of file smscufx.c.

#define UFX_IOCTL_REPORT_DAMAGE   (0xAA)

Definition at line 59 of file smscufx.c.

#define UFX_IOCTL_RETURN_EDID   (0xAD)

Definition at line 58 of file smscufx.c.

#define USB_VENDOR_REQUEST_READ_REGISTER   0xA1

Definition at line 49 of file smscufx.c.

#define USB_VENDOR_REQUEST_WRITE_REGISTER   0xA0

Definition at line 48 of file smscufx.c.

#define WRITES_IN_FLIGHT   (4)

Definition at line 64 of file smscufx.c.

Function Documentation

MODULE_AUTHOR ( "Steve Glendinning <[email protected]>"  )
MODULE_DESCRIPTION ( "SMSC UFX kernel framebuffer driver )
MODULE_DEVICE_TABLE ( usb  ,
id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( console  ,
bool  ,
S_IWUSR|S_IRUSR|S_IWGRP S_IRGRP 
)
module_param ( fb_defio  ,
bool  ,
S_IWUSR|S_IRUSR|S_IWGRP S_IRGRP 
)
MODULE_PARM_DESC ( console  ,
"Allow fbcon to be used on this display  
)
MODULE_PARM_DESC ( fb_defio  ,
"Enable fb_defio mmap support  
)
module_usb_driver ( ufx_driver  )