Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
alps.c File Reference
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/input/mt.h>
#include <linux/serio.h>
#include <linux/libps2.h>
#include "psmouse.h"
#include "alps.h"

Go to the source code of this file.

Macros

#define ALPS_V3_X_MAX   2000
 
#define ALPS_V3_Y_MAX   1400
 
#define ALPS_BITMAP_X_BITS   15
 
#define ALPS_BITMAP_Y_BITS   11
 
#define ALPS_CMD_NIBBLE_10   0x01f2
 
#define ALPS_DUALPOINT   0x02 /* touchpad has trackstick */
 
#define ALPS_PASS   0x04 /* device has a pass-through port */
 
#define ALPS_WHEEL   0x08 /* hardware wheel present */
 
#define ALPS_FW_BK_1   0x10 /* front & back buttons present */
 
#define ALPS_FW_BK_2   0x20 /* front & back buttons present */
 
#define ALPS_FOUR_BUTTONS   0x40 /* 4 direction button present */
 
#define ALPS_PS2_INTERLEAVED
 

Functions

int alps_init (struct psmouse *psmouse)
 
int alps_detect (struct psmouse *psmouse, bool set_properties)
 

Macro Definition Documentation

#define ALPS_BITMAP_X_BITS   15

Definition at line 33 of file alps.c.

#define ALPS_BITMAP_Y_BITS   11

Definition at line 34 of file alps.c.

#define ALPS_CMD_NIBBLE_10   0x01f2

Definition at line 36 of file alps.c.

#define ALPS_DUALPOINT   0x02 /* touchpad has trackstick */

Definition at line 77 of file alps.c.

#define ALPS_FOUR_BUTTONS   0x40 /* 4 direction button present */

Definition at line 83 of file alps.c.

#define ALPS_FW_BK_1   0x10 /* front & back buttons present */

Definition at line 81 of file alps.c.

#define ALPS_FW_BK_2   0x20 /* front & back buttons present */

Definition at line 82 of file alps.c.

#define ALPS_PASS   0x04 /* device has a pass-through port */

Definition at line 78 of file alps.c.

#define ALPS_PS2_INTERLEAVED
Value:
0x80 /* 3-byte PS/2 packet interleaved with
6-byte ALPS packet */

Definition at line 84 of file alps.c.

#define ALPS_V3_X_MAX   2000

Definition at line 30 of file alps.c.

#define ALPS_V3_Y_MAX   1400

Definition at line 31 of file alps.c.

#define ALPS_WHEEL   0x08 /* hardware wheel present */

Definition at line 80 of file alps.c.

Function Documentation

int alps_detect ( struct psmouse psmouse,
bool  set_properties 
)

Definition at line 1692 of file alps.c.

int alps_init ( struct psmouse psmouse)

Definition at line 1566 of file alps.c.