Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
i2c
mcs.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2009 - 2010 Samsung Electronics Co.Ltd
3
* Author: Joonyoung Shim <
[email protected]
>
4
* Author: HeungJun Kim <
[email protected]
>
5
*
6
* This program is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation; either version 2 of the License, or (at your
9
* option) any later version.
10
*
11
*/
12
13
#ifndef __LINUX_MCS_H
14
#define __LINUX_MCS_H
15
16
#define MCS_KEY_MAP(v, c) ((((v) & 0xff) << 16) | ((c) & 0xffff))
17
#define MCS_KEY_VAL(v) (((v) >> 16) & 0xff)
18
#define MCS_KEY_CODE(v) ((v) & 0xffff)
19
20
struct
mcs_platform_data
{
21
void
(*
poweron
)(
bool
);
22
void
(*
cfg_pin
)(
void
);
23
24
/* touchscreen */
25
unsigned
int
x_size
;
26
unsigned
int
y_size
;
27
28
/* touchkey */
29
const
u32
*
keymap
;
30
unsigned
int
keymap_size
;
31
unsigned
int
key_maxval
;
32
bool
no_autorepeat
;
33
};
34
35
#endif
/* __LINUX_MCS_H */
Generated on Thu Jan 10 2013 14:51:32 for Linux Kernel by
1.8.2