xref: /haiku/src/add-ons/kernel/drivers/input/ps2_hid/ps2_hid.c (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
1 /*
2  * Copyright 2005-2009 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 
12 #include <KernelExport.h>
13 #include <Drivers.h>
14 
15 #include "PS2.h"
16 
17 #define TRACE(x) dprintf x
18 
19 
20 int32 api_version = B_CUR_DRIVER_API_VERSION;
21 
22 ps2_module_info *gPs2 = NULL;
23 
24 
25 status_t
26 init_hardware(void)
27 {
28 	TRACE(("ps2_hid: init_hardware\n"));
29 	return B_OK;
30 }
31 
32 
33 const char **
34 publish_devices(void)
35 {
36 	TRACE(("ps2_hid: publish_devices\n"));
37 	return NULL;
38 }
39 
40 
41 device_hooks *
42 find_device(const char *name)
43 {
44 	TRACE(("ps2_hid: find_device\n"));
45 	return NULL;
46 }
47 
48 
49 status_t
50 init_driver(void)
51 {
52 	TRACE(("ps2_hid: init_driver\n"));
53 	return get_module(B_PS2_MODULE_NAME, (module_info **)&gPs2);
54 }
55 
56 
57 void
58 uninit_driver(void)
59 {
60 	TRACE(("ps2_hid: uninit_driver\n"));
61 	put_module(B_PS2_MODULE_NAME);
62 }
63