2 * Copyright 2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
6 * Clemens Zeidler (haiku@Clemens-Zeidler.de)
11 #include <KernelExport.h>
13 #include <touchpad_settings.h>
15 #include "movement_maker.h"
16 #include "packet_buffer.h"
24 struct packet_buffer
* ring_buffer
;
26 uint8 buffer
[PS2_PACKET_ALPS
];
30 TouchpadMovement movementMaker
;
32 touchpad_settings settings
;
36 status_t
probe_alps(ps2_dev
*dev
);
38 status_t
alps_open(const char *name
, uint32 flags
, void **_cookie
);
39 status_t
alps_close(void *_cookie
);
40 status_t
alps_freecookie(void *_cookie
);
41 status_t
alps_ioctl(void *_cookie
, uint32 op
, void *buffer
, size_t length
);
43 int32
alps_handle_int(ps2_dev
*dev
);
44 void alps_disconnect(ps2_dev
*dev
);
46 extern device_hooks gALPSDeviceHooks
;