2 * Copyright 2009-2010, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
6 * Clemens Zeidler (haiku@Clemens-Zeidler.de)
13 #include <keyboard_mouse_driver.h>
15 #include "ps2_trackpoint.h"
18 const char* kTrackpointPath
[4] = {
19 "input/mouse/ps2/ibm_trackpoint_0",
20 "input/mouse/ps2/ibm_trackpoint_1",
21 "input/mouse/ps2/ibm_trackpoint_2",
22 "input/mouse/ps2/ibm_trackpoint_3"
27 probe_trackpoint(ps2_dev
* dev
)
31 TRACE("TRACKPOINT: probe\n");
32 ps2_dev_command(dev
, 0xE1, NULL
, 0, val
, 2);
35 TRACE("TRACKPOINT: not found\n");
38 dev
->name
= kTrackpointPath
[dev
->idx
];
40 TRACE("TRACKPOINT: version 0x%x found\n", val
[1]);