Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pxa930_trkball.c File Reference
#include <linux/init.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <mach/hardware.h>
#include <linux/platform_data/mouse-pxa930_trkball.h>

Go to the source code of this file.

Data Structures

struct  pxa930_trkball
 

Macros

#define TBCR   (0x000C)
 
#define TBCNTR   (0x0010)
 
#define TBSBC   (0x0014)
 
#define TBCR_TBRST   (1 << 1)
 
#define TBCR_TBSB   (1 << 10)
 
#define TBCR_Y_FLT(n)   (((n) & 0xf) << 6)
 
#define TBCR_X_FLT(n)   (((n) & 0xf) << 2)
 
#define TBCNTR_YM(n)   (((n) >> 24) & 0xff)
 
#define TBCNTR_YP(n)   (((n) >> 16) & 0xff)
 
#define TBCNTR_XM(n)   (((n) >> 8) & 0xff)
 
#define TBCNTR_XP(n)   ((n) & 0xff)
 
#define TBSBC_TBSBC   (0x1)
 

Functions

 module_platform_driver (pxa930_trkball_driver)
 
 MODULE_AUTHOR ("Yong Yao <[email protected]>")
 
 MODULE_DESCRIPTION ("PXA930 Trackball Mouse Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define TBCNTR   (0x0010)

Definition at line 27 of file pxa930_trkball.c.

#define TBCNTR_XM (   n)    (((n) >> 8) & 0xff)

Definition at line 38 of file pxa930_trkball.c.

#define TBCNTR_XP (   n)    ((n) & 0xff)

Definition at line 39 of file pxa930_trkball.c.

#define TBCNTR_YM (   n)    (((n) >> 24) & 0xff)

Definition at line 36 of file pxa930_trkball.c.

#define TBCNTR_YP (   n)    (((n) >> 16) & 0xff)

Definition at line 37 of file pxa930_trkball.c.

#define TBCR   (0x000C)

Definition at line 26 of file pxa930_trkball.c.

#define TBCR_TBRST   (1 << 1)

Definition at line 30 of file pxa930_trkball.c.

#define TBCR_TBSB   (1 << 10)

Definition at line 31 of file pxa930_trkball.c.

#define TBCR_X_FLT (   n)    (((n) & 0xf) << 2)

Definition at line 34 of file pxa930_trkball.c.

#define TBCR_Y_FLT (   n)    (((n) & 0xf) << 6)

Definition at line 33 of file pxa930_trkball.c.

#define TBSBC   (0x0014)

Definition at line 28 of file pxa930_trkball.c.

#define TBSBC_TBSBC   (0x1)

Definition at line 41 of file pxa930_trkball.c.

Function Documentation

MODULE_AUTHOR ( "Yong Yao <[email protected]>"  )
MODULE_DESCRIPTION ( "PXA930 Trackball Mouse Driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( pxa930_trkball_driver  )