.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "READ_ZSREG" "" "06 October 2005" "" ""
.SH NAME
read_zsreg \- Read a register from a Z85230
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
u8 read_zsreg (struct z8530_channel * \fIc\fB, u8 \fIreg\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIc\fB\fR
Z8530 channel to read from (2 per chip)
.TP
\fB\fIreg\fB\fR
Register to read
.SH "FIXME"
.PP
Use a spinlock.
.PP
Most of the Z8530 registers are indexed off the control registers.
A read is done by writing to the control register and reading the
register back. The caller must hold the lock