s3c24xx_ts.c File Reference

Samsung Samsung S3C24xx on-chip ADC and touch-screen interface driver. More...

#include <ddi.h>
#include <libarch/ddi.h>
#include <devmap.h>
#include <io/console.h>
#include <vfs/vfs.h>
#include <ipc/mouse.h>
#include <async.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sysinfo.h>
#include <errno.h>
#include <inttypes.h>
#include "s3c24xx_ts.h"

Go to the source code of this file.

Defines

#define NAME   "s3c24ser"
#define NAMESPACE   "hid_in"

Functions

static int lin_map_range (int v, int i0, int i1, int o0, int o1)
 Map integer from one range to another range in a linear fashion.
int main (int argc, char *argv[])
 Main entry point.
static void s3c24xx_ts_connection (ipc_callid_t iid, ipc_call_t *icall)
 Handle mouse client connection.
static void s3c24xx_ts_convert_samples (int smp0, int smp1, int *x, int *y)
 Convert sampled data to screen coordinates.
static void s3c24xx_ts_eoc (s3c24xx_ts_t *ts)
 Handle end-of-conversion interrupt.
static int s3c24xx_ts_init (s3c24xx_ts_t *ts)
 Initialize S3C24xx touchscreen interface.
static void s3c24xx_ts_irq_handler (ipc_callid_t iid, ipc_call_t *call)
 Handle touchscreen interrupt.
static void s3c24xx_ts_pen_down (s3c24xx_ts_t *ts)
 Handle pen-down interrupt.
static void s3c24xx_ts_pen_up (s3c24xx_ts_t *ts)
 Handle pen-up interrupt.
static void s3c24xx_ts_wait_for_int_mode (s3c24xx_ts_t *ts, ts_updn_t updn)
 Switch interface to wait for interrupt mode.

Variables

static s3c24xx_ts_tts
 S3C24xx touchscreen instance structure.
static irq_cmd_t ts_irq_cmds []
static irq_code_t ts_irq_code


Detailed Description

Samsung Samsung S3C24xx on-chip ADC and touch-screen interface driver.

This interface is present on the Samsung S3C24xx CPU (on the gta02 platform).

Definition in file s3c24xx_ts.c.


Generated on Thu Jun 2 07:45:55 2011 for HelenOS/USB by  doxygen 1.4.7