---
name: "read_zsreg"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/read_zsreg"
---

# read\_zsreg(9)

Read a register from a Z85230

## NAME

read\_zsreg - Read a register from a Z85230

## SYNOPSIS

**u8 read\_zsreg(struct z8530\_channel \*** *c***, u8** *reg***);**

## ARGUMENTS

*c*

Z8530 channel to read from (2 per chip)

*reg*

Register to read FIXME: Use a spinlock.

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

## AUTHOR

**Alan Cox** \<alan@lxorguk.ukuu.org.uk\>

Author.

## COPYRIGHT
