1 | /*++
|
---|
2 |
|
---|
3 | Copyright (c) 1989, 1990, 1991, 1992, 1993 Microsoft Corporation
|
---|
4 |
|
---|
5 | Module Name:
|
---|
6 |
|
---|
7 | i8042cfg.h
|
---|
8 |
|
---|
9 | Abstract:
|
---|
10 |
|
---|
11 | These are the machine-dependent configuration constants that are used in
|
---|
12 | the Intel 8042 port driver.
|
---|
13 |
|
---|
14 | Revision History:
|
---|
15 |
|
---|
16 | --*/
|
---|
17 |
|
---|
18 | #ifndef _I8042CFG_
|
---|
19 | #define _I8042CFG_
|
---|
20 |
|
---|
21 | //
|
---|
22 | // Define the interrupt-related configuration constants.
|
---|
23 | //
|
---|
24 |
|
---|
25 | #define I8042_INTERFACE_TYPE Isa
|
---|
26 | #define I8042_INTERRUPT_MODE Latched
|
---|
27 | #define I8042_INTERRUPT_SHARE FALSE
|
---|
28 | #define I8042_FLOATING_SAVE FALSE
|
---|
29 |
|
---|
30 | //
|
---|
31 | // Define the default allowable retry and polling iterations.
|
---|
32 | //
|
---|
33 |
|
---|
34 | #define I8042_RESEND_DEFAULT 3
|
---|
35 | #define I8042_POLLING_DEFAULT 12000
|
---|
36 | #define I8042_POLLING_MAXIMUM 12000
|
---|
37 |
|
---|
38 | //
|
---|
39 | // Define the keyboard-specific configuration parameters.
|
---|
40 | //
|
---|
41 |
|
---|
42 | #define KEYBOARD_VECTOR 1
|
---|
43 | #define KEYBOARD_IRQL KEYBOARD_VECTOR
|
---|
44 |
|
---|
45 | //
|
---|
46 | // Define the mouse-specific configuration parameters.
|
---|
47 | //
|
---|
48 |
|
---|
49 | #define MOUSE_VECTOR 12
|
---|
50 | #define MOUSE_IRQL MOUSE_VECTOR
|
---|
51 |
|
---|
52 | //
|
---|
53 | // Define the base port offsets for the i8042 controller command/status and
|
---|
54 | // data registers.
|
---|
55 | //
|
---|
56 |
|
---|
57 | #define I8042_PHYSICAL_BASE 0x60
|
---|
58 | #define I8042_DATA_REGISTER_OFFSET 0
|
---|
59 | #define I8042_COMMAND_REGISTER_OFFSET 4
|
---|
60 | #define I8042_STATUS_REGISTER_OFFSET 4
|
---|
61 | #define I8042_REGISTER_LENGTH 1
|
---|
62 | #define I8042_REGISTER_SHARE FALSE
|
---|
63 | #define I8042_PORT_TYPE CM_RESOURCE_PORT_IO
|
---|
64 |
|
---|
65 | #endif // _I8042CFG_
|
---|