1Z8530_INIT(9) Public Functions Provided Z8530_INIT(9)
2
3
4
6 z8530_init - Initialise a Z8530 device
7
9 int z8530_init(struct z8530_dev * dev);
10
12 dev
13 Z8530 device to initialise.
14
16 Configure up a Z8530/Z85C30 or Z85230 chip. We check the device is
17 present, identify the type and then program it to hopefully keep quite
18 and behave. This matters a lot, a Z8530 in the wrong state will
19 sometimes get into stupid modes generating 10Khz interrupt streams and
20 the like.
21
22 We set the interrupt handler up to discard any events, in case we get
23 them during reset or setp.
24
25 Return 0 for success, or a negative value indicating the problem in
26 errno form.
27
29 Alan Cox <alan@lxorguk.ukuu.org.uk>
30 Author.
31
33Kernel Hackers Manual 2.6. November 2011 Z8530_INIT(9)