diff options
author | aiju <devnull@localhost> | 2011-04-15 21:01:29 +0200 |
---|---|---|
committer | aiju <devnull@localhost> | 2011-04-15 21:01:29 +0200 |
commit | 2c6802e80f2bc7be660981b183fe89ecd72061ce (patch) | |
tree | bf95f457935e7fbbc3899e9b9c8a395fe3849e04 /sys/man | |
parent | 68d6b0808bbd57a91abf2a5ac4571e4372a8d3fc (diff) |
added io/seg utility
Diffstat (limited to 'sys/man')
-rw-r--r-- | sys/man/1/io | 44 | ||||
-rw-r--r-- | sys/man/1/seg | 51 |
2 files changed, 95 insertions, 0 deletions
diff --git a/sys/man/1/io b/sys/man/1/io new file mode 100644 index 000000000..e96a60be0 --- /dev/null +++ b/sys/man/1/io @@ -0,0 +1,44 @@ +.TH IO 1 +.SH NAME +io \- access PC I/O registers +.SH SYNOPSIS +.B io +[ +.B -WLMrw +] +.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). +.SH SOURCE +.B /sys/src/cmd/io.c +.SH SEE ALSO +.IR seg (1) diff --git a/sys/man/1/seg b/sys/man/1/seg new file mode 100644 index 000000000..3fd87f2e2 --- /dev/null +++ b/sys/man/1/seg @@ -0,0 +1,51 @@ +.TH SEG 1 +.SH NAME +seg \- access a named segment +.SH SYNOPSIS +.B seg +[ +.B -WLrw +] +.I segment +.I segment-size +.I offset +[ +.I value +] +.SH DESCRIPTION +.B seg +accesses a named segment as provided by e.g. certain drivers. +The operation to be performed is selected with +.B -r +and +.B -w +for reading and 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 +.IR segment-size , +.IR offset +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. +.SH SOURCE +.B /sys/src/cmd/seg.c +.SH SEE ALSO +.IR io (1) +.SH BUGS +No check of the +.I segment-size +and +.I offset +parameters is performed whatsoever. +Odd values may cause the front to fall off. |