root/lm-sensors/trunk/prog/dump/isaset.8

Revision 5962, 2.4 KB (checked in by khali, 10 months ago)

isaset: Add support for word (16-bit) and long (32-bit) writes

Sometimes the hardware expects 16-bit or 32-bit writes rather than byte
writes. Add support to isaset so that the user can ask for such writes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1.TH ISASET 8 "April 2011"
2.SH "NAME"
3isaset \- set ISA registers
4
5.SH SYNOPSIS
6.B isaset
7.RB [ -y ]
8.RB [ -W | -L ]
9.I addrreg
10.I datareg
11.I address
12.I value
13.RI [ mask ]
14#for I2C-like access
15.br
16.B isaset
17.B -f
18.RB [ -y ]
19.RB [ -W | -L ]
20.I address
21.I value
22.RI [ mask ]
23#for flat address space
24
25.SH DESCRIPTION
26isaset is a small helper program to set registers visible through the ISA
27bus.
28
29.SH OPTIONS
30.TP
31.B -f
32Enable flat address space mode.
33.TP
34.B -y
35Disable interactive mode. By default, isaset will wait for a confirmation
36from the user before messing with the ISA bus. When this flag is used, it
37will perform the operation directly. This is mainly meant to be used in
38scripts.
39.TP
40.B -W
41Perform a 16-bit write.
42.TP
43.B -L
44Perform a 32-bit write.
45
46.SH OPTIONS (I2C-like access mode)
47Four options must be provided to isaset. \fIaddrreg\fR contains the
48ISA address of the address register for the chip to probe; \fIdatareg\fR
49contains the address of the data register. Both addresses are integers between
500x0000 and 0x3FFF. Usually, if the chip's base address is 0x0nn0, the
51address register is at 0x0nn5 and the data register is at 0x0nn6. The most
52common base address for hardware monitoring chips is 0x0290.
53For Super-I/O chips, address register is typically at 0x2E with data
54register at 0x2F.
55The \fIaddress\fR and \fIvalue\fR parameters are two integers between
560x00 and 0xFF. isaset will write value \fIvalue\fR to address \fIaddress\fR.
57An optional \fImask\fR can be provided as a fifth parameter, preserving
58unmasked bits at the written location.
59
60.SH OPTIONS (flat address space mode)
61In flat mode, two parameters must
62be provided. \fIaddress\fR contains the ISA address of the register to
63write to; it is an integer between 0x0000 and 0xFFFF. Basically, it is
64the sum of the chip's base address and the chip register's address. isaset
65will write value \fIvalue\fR at this address.
66An optional \fImask\fR can be provided as a third parameter, preserving
67unmasked bits at the written location.
68
69.SH WARNING
70Poking around in ISA data space is extremely dangerous.
71Running isaset with random parameters can cause system
72crashes, data loss, and worse!  Be extremely careful when using
73this program.
74
75.SH SEE ALSO
76i2cset(8), isadump(8)
77
78.SH AUTHOR
79Mark D. Studebaker, and the lm_sensors group
80(http://www.lm-sensors.org/)
81.PP
82This manual page was shamelessly ripped from the i2cset and isadump manual
83pages by Jean Delvare.
Note: See TracBrowser for help on using the browser.