RS-232 Mouse Driver
MS-DOS INSTALLABLE DEVICE DRIVER EOUATES.
RECORDS.
AND STRUCTURES
) e v
is
ion
A. 01 01 - 12/ 02/85
S'"
RS-232
MOUSE DRIVER EXAMPLE
..
.
.........................................................................
,On INIT entry,
polnts
to CONFIG.SYS
; c
0
mm and 11 n e
(1 e.
a 11 aft I rOE V ICE • ) .
.Initillizatidn Rlquest
Header
;structure definition
~b~~1t~0~~.Request
Heider
;Command code.
;Returned statuI
;RIserved for MS-DOS
,Unit
count
;Offset
of ending address.
:
~;
R
m
p
~
1
n
~ ~
r e
(~~ ~
9
u :
~ ~
)
~
' , .
;DrilJe code
(not
ulld)
EOU
0
EOU NOT fALSE
EOU TRUE
; STRUCTURES
REO_HEADER
STRUC
RH LENGTH
DB
RH-UNIT CODE
DB
RH-CMD COOE
DB
RH-STATUS
ow
Rt-CRESERVED
DO
RH-UNIT CNT
DB
RH-END OF F
OW
RH-E ND-SEG
OW
RI-CBPB-
DD
RtCDR IV
DB
REO_HEADER
ENDS
RH_CMO__ LINE
EOU DWORD PTR RH_BPB
FALSE
TRUE
DEBUG
.••••••• * •••••••••• * ••••
Il
* ••••• * ••••••••••••• * •••••• * •••••••••••••
Il • • • • • •
; •
CHANGE
LOG
•
.••••••••••••••••• *••
* •••••••••••••••••••
* •••••••••
*. * •••• *. * •••••
* ••••••
; RECORDS
ATTR RECORD
DEV:l.
IOCTL 1.
IBM I.
X:1.
OCREM:I.
Y:6.
SPEC 1. CLK.1.
NUL.1.
STD01.
STDl:1
DEV.
for character device.
0
for block device.
~ i~~T:
i
t
f
1
~ l~~T~.~ ~~a~~1
i
~ r~o~ ~~G~
r;
~~",at
.
:X • Not
used.
;OCREM -
~l~:e c~~,;,:,~~~~. d~lJgeb~~~eo~~~l~~e~a:nd
.
removable media.
;V •
Not
used
.SPEC.l
if
INT 29H f u t
conlo1e
I/O 11 inltalled.
;CLK •
1
if
device
11
a clock device.
;NUL.l
if
delJice
11
a nul device.
;STDO. 1
if
device
11 the StandArd Output
device
;STDI •
1
if
device
is
the Stlndard Input devlcl.
STATUS
RECORD ERROR 1,
Z·S.
BUSY 1. DONE 1.
ERR_TYPE
~ ~
1
~
e
~ ~ ~ ~
e
~
n
~ ~
} u;
~ ~
:
~:
s t
~ ~
1
~
n
~ ~
y
~
:
~
1
~ ~
p
~ ~
r
~ ~
n ;
~ ~
-
~~ ~
1
~
e:
t
~ ~
S I
~
n
~ ~
_
~ ~ ~
interface,
such
&I
the MOUSE SYSTEMS mouse
The driver
15
inltalled
I I
an MS-DOS device driver It boot
tlme
:The command line DEVICE-EXAMPLE.SVS
[In]
Ihould be ent.red in the
;CONfIG SVS file
1n the
root
directorr of
the boot
drive
If
the optional
:~r:e~~~tt~UT~:~ll{nt~:~~~s~n~~ugO~1.n ~~et~~m~·~10~~leCo~h~o~~i~~~b:~lil
;present
in the command line,
the driver will
It~emPt
to install
the mouse
;on that
COM port
number.
The driver checks
to make sure
the port
11
present
; and
w
111 11 1
U
e an err
0
r me
I
I a
9
e i f . no n - e
l C
i l ten t
po r t
numb I r
11
1
pIC
1
fie d .
SUBTTL EQUATES.
RECORDS.
AND DATA STRUCTURES
PAGE
.••••••••••••••••••••••••••••••••••••••••• * ••••••••••••••••••••••••••••••
................................
"'
"'."'
"'
.
•• ". ' " •.•••••••.•••.•.•.
~~~~ r~ ~,,~~~. ~~
r
~. ~r~~~r~~~;
.•.•••.•.•.•••..••.•••
• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • 11 • • • • • • • • • • • • • •
* •••••••••••••
* •••••••••
.286c
.LFCOND
PAGE 59
I
132
TITLE RS-232 MOUSE DRIVER
SUBTTL PREFACE
........................................................................
...............................................................
"'
.
: :. "' ••••••••••••• * •••••••••• * •••
~~~~~ ~ ~r ~~~
•••••••••••••••••..•••••••••••
1
?
?
?
11
?
17?
7171111171171111
?
1
1111
111
1
11?11?11
11
0000
0001
0002
0003
0005
0000
OOOE
0010
0012
0016
0017
• 0012
• 0000
--0001
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.3
44
4S
46
47
48
49
50
51
52
S3
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Q3
462
Driver Writer's Guide
Need help?
Do you have a question about the Vectra and is the answer not in the manual?
Questions and answers