'\" t
.\"     Title: read_zsreg
.\"    Author: 
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\"      Date: September 2017
.\"    Manual: Internal Functions
.\"    Source: Kernel Hackers Manual 4.12.13
.\"  Language: English
.\"
.TH "READ_ZSREG" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "Internal Functions"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
read_zsreg \- Read a register from a Z85230
.SH "SYNOPSIS"
.HP \w'u8\ read_zsreg('u
.BI "u8 read_zsreg(struct\ z8530_channel\ *\ " "c" ", u8\ " "reg" ");"
.SH "ARGUMENTS"
.PP
\fIstruct z8530_channel * c\fR
.RS 4
Z8530 channel to read from (2 per chip)
.RE
.PP
\fIu8 reg\fR
.RS 4
Register to read FIXME: Use a spinlock\&.
.sp
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
.RE
.SH "AUTHOR"
.PP
\fBAlan Cox\fR <\&alan@lxorguk.ukuu.org.uk\&>
.RS 4
Author.
.RE
.SH "COPYRIGHT"
.br
