2011-04-15 19:01:29 +00:00
|
|
|
.TH IO 1
|
|
|
|
.SH NAME
|
|
|
|
io \- access PC I/O registers
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B io
|
|
|
|
[
|
2014-11-09 23:35:07 +00:00
|
|
|
.B -WLMErw
|
2011-04-15 19:01:29 +00:00
|
|
|
]
|
|
|
|
.I address
|
|
|
|
[
|
|
|
|
.I value
|
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.I io
|
|
|
|
accesses PC I/O space.
|
|
|
|
The operation to be performed is selected with
|
|
|
|
.B -r
|
|
|
|
or
|
|
|
|
.B -w
|
|
|
|
for reading or writing, respectively.
|
|
|
|
The default operation size is a byte.
|
|
|
|
C style notation for integers (e.g.
|
|
|
|
.B 0x42
|
|
|
|
or
|
|
|
|
.BR 023 )
|
|
|
|
is accepted for the
|
|
|
|
.I address
|
|
|
|
and
|
|
|
|
.I value
|
|
|
|
parameters.
|
|
|
|
.PP
|
|
|
|
.TP
|
|
|
|
.B -W
|
|
|
|
Perform a word (16 bit) operation.
|
|
|
|
.TP
|
|
|
|
.B -L
|
|
|
|
Perform a long / double word (32 bit) operation.
|
|
|
|
.TP
|
|
|
|
.B -M
|
|
|
|
Access a 64 bit wide machine specific register (MSR).
|
2014-11-09 23:35:07 +00:00
|
|
|
.TP
|
|
|
|
.B -E
|
|
|
|
Access embedded controller space.
|
2011-04-15 19:01:29 +00:00
|
|
|
.SH SOURCE
|
|
|
|
.B /sys/src/cmd/io.c
|
|
|
|
.SH SEE ALSO
|
2014-11-09 23:35:07 +00:00
|
|
|
.IR seg (1),
|
|
|
|
.IR arch (3)
|
2015-02-20 19:28:56 +00:00
|
|
|
.SH HISTORY
|
|
|
|
.I Io
|
|
|
|
first appeared in 9front (April, 2011).
|