S3C: Backported openmoko's touchscreen filters
[linux-2.6/mini2440.git] / drivers / input / touchscreen / ts_filter_mean.h
blob44c506c99c0fc611cd1cb26bbccd82be9a65a1c2
1 #ifndef __TS_FILTER_MEAN_H__
2 #define __TS_FILTER_MEAN_H__
4 #include "ts_filter.h"
6 /*
7 * Touchscreen filter.
9 * mean
11 * (c) 2008 Andy Green <andy@openmoko.com>
14 struct ts_filter_mean_configuration {
15 int bits_filter_length;
16 int averaging_threshold;
18 int extent;
21 struct ts_filter_mean {
22 struct ts_filter tsf;
23 struct ts_filter_mean_configuration *config;
25 int reported[MAX_TS_FILTER_COORDS];
26 int lowpass[MAX_TS_FILTER_COORDS];
27 int *fifo[MAX_TS_FILTER_COORDS];
28 int fhead[MAX_TS_FILTER_COORDS];
29 int ftail[MAX_TS_FILTER_COORDS];
32 extern struct ts_filter_api ts_filter_mean_api;
34 #endif