Read a register from a z85230
u8 read_zsreg(struct z8530_channel * c, u8 reg);
c
Z8530 channel to read from (2 per chip)
reg
Register to read
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
Alan Cox <[email protected]>
Author.