From 2c6802e80f2bc7be660981b183fe89ecd72061ce Mon Sep 17 00:00:00 2001 From: aiju Date: Fri, 15 Apr 2011 21:01:29 +0200 Subject: added io/seg utility --- sys/man/1/io | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 sys/man/1/io (limited to 'sys/man/1/io') 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) -- cgit v1.2.3