xref: /haiku/src/add-ons/kernel/drivers/input/ps2_hid/ps2_hid.c (revision d3d8b26997fac34a84981e6d2b649521de2cc45a)
1 /*
2  * Copyright 2005 Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * PS/2 hid device driver
6  *
7  * Authors (in chronological order):
8  *		Marcus Overhagen (marcus@overhagen.de)
9  */
10 
11 #include <KernelExport.h>
12 #include <Drivers.h>
13 #include "../../../bus_managers/ps2/PS2.h"
14 
15 #define TRACE(x) dprintf x
16 
17 int32 api_version = B_CUR_DRIVER_API_VERSION;
18 
19 ps2_module_info *gPs2 = NULL;
20 
21 status_t
22 init_hardware(void)
23 {
24 	TRACE(("ps2_hid: init_hardware\n"));
25 	return B_OK;
26 }
27 
28 
29 const char **
30 publish_devices(void)
31 {
32 	TRACE(("ps2_hid: publish_devices\n"));
33 	return NULL;
34 }
35 
36 
37 device_hooks *
38 find_device(const char *name)
39 {
40 	TRACE(("ps2_hid: find_device\n"));
41 	return NULL;
42 }
43 
44 
45 status_t
46 init_driver(void)
47 {
48 	TRACE(("ps2_hid: init_driver\n"));
49 	return get_module(B_PS2_MODULE_NAME, (module_info **)&gPs2);
50 }
51 
52 
53 void
54 uninit_driver(void)
55 {
56 	TRACE(("ps2_hid: uninit_driver\n"));
57 	put_module(B_PS2_MODULE_NAME);
58 }
59