Rev 5031 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5031 | Rev 5044 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | ; standard driver stuff; version of driver model = 5 |
|
1 | format MS COFF |
2 | format PE DLL native 0.05 |
Line 2... | Line 3... | ||
2 | 3 | ||
Line 3... | Line -... | ||
3 | DEBUG equ 1 |
- | |
4 | - | ||
5 | include '../../../proc32.inc' |
- | |
6 | include '../../../imports.inc' |
- | |
7 | - | ||
8 | struc IOCTL |
- | |
9 | { .handle dd ? |
- | |
10 | .io_code dd ? |
- | |
11 | .input dd ? |
- | |
12 | .inp_size dd ? |
- | |
13 | .output dd ? |
- | |
14 | .out_size dd ? |
- | |
15 | } |
- | |
16 | - | ||
17 | virtual at 0 |
- | |
18 | IOCTL IOCTL |
- | |
19 | end virtual |
- | |
20 | - | ||
21 | public START |
- | |
22 | public version |
- | |
23 | - | ||
24 | DRV_ENTRY equ 1 |
- | |
25 | DRV_EXIT equ -1 |
4 | DEBUG equ 1 |
26 | 5 | ||
27 | MT_3B equ 0 |
6 | MT_3B equ 0 |
Line 28... | Line 7... | ||
28 | MT_3BScroll equ 3 |
7 | MT_3BScroll equ 3 |
Line 29... | Line 8... | ||
29 | MT_5BScroll equ 4 |
8 | MT_5BScroll equ 4 |
- | 9 | ||
- | 10 | PS2_DRV_VER equ 1 |
|
- | 11 | ||
- | 12 | section '.flat' code readable writable executable |
|
- | 13 | data fixups |
|
- | 14 | end data |
|
Line -... | Line 15... | ||
- | 15 | include '../../../struct.inc' |
|
30 | 16 | include '../../../macros.inc' |
|
Line 31... | Line 17... | ||
31 | PS2_DRV_VER equ 1 |
17 | include '../../../proc32.inc' |
32 | 18 | include '../../../peimport.inc' |
|
33 | section '.flat' code readable align 16 |
19 | |
34 | 20 | ||
Line 89... | Line 75... | ||
89 | mov bl, 0x60 ; write command byte |
75 | mov bl, 0x60 ; write command byte |
90 | call kbd_cmd |
76 | call kbd_cmd |
91 | pop eax |
77 | pop eax |
92 | call kbd_write |
78 | call kbd_write |
Line 93... | Line 79... | ||
93 | 79 | ||
94 | stdcall AttachIntHandler, 12, irq_handler, 0 |
80 | invoke AttachIntHandler, 12, irq_handler, 0 |
95 | stdcall RegService, my_service, service_proc |
81 | invoke RegService, my_service, service_proc |
Line 96... | Line 82... | ||
96 | ret |
82 | ret |
97 | 83 | ||
98 | .fin: |
84 | .fin: |
99 | popf |
85 | popf |
100 | ;stdcall DetachIntHandler, 12, irq_handler |
86 | ;invoke DetachIntHandler, 12, irq_handler |
101 | mov bl, 0xA7 ; disable mouse interface |
87 | mov bl, 0xA7 ; disable mouse interface |
102 | call kbd_cmd |
88 | call kbd_cmd |
103 | .nothing: |
89 | .nothing: |
Line 256... | Line 242... | ||
256 | ret |
242 | ret |
Line 257... | Line 243... | ||
257 | 243 | ||
258 | include 'ps2m_iofuncs.inc' |
244 | include 'ps2m_iofuncs.inc' |
Line 259... | Line -... | ||
259 | include 'ps2m_irqh.inc' |
- | |
260 | - | ||
261 | section '.data' data readable writable align 16 |
- | |
262 | 245 | include 'ps2m_irqh.inc' |
|
Line 263... | Line 246... | ||
263 | version dd 0x00050005 |
246 | |
264 | my_service db 'ps2mouse',0 |
247 | my_service db 'ps2mouse',0 |
265 | 248 |