1 /*
2 * Useful info describing the parallel port device.
3 *
4 * Copyright (C) 2001 Alessandro Rubini and Jonathan Corbet
5 * Copyright (C) 2001 O'Reilly & Associates
6 *
7 * The source code in this file can be freely used, adapted,
8 * and redistributed in source or binary form, so long as an
9 * acknowledgment appears in derived source files. The citation
10 * should list that the code comes from the book "Linux Device
11 * Drivers" by Alessandro Rubini and Jonathan Corbet, published
12 * by O'Reilly & Associates. No warranty is attached;
13 * we cannot take responsibility for errors or fitness for use.
14 *
15 */
16
17 /*
18 * Register offsets
19 */
20 #define SP_DATA 0x00
21 #define SP_STATUS 0x01
22 #define SP_CONTROL 0x02
23 #define SP_NPORTS 3
24
25 /*
26 * Status register bits.
27 */
28 #define SP_SR_BUSY 0x80
29 #define SP_SR_ACK 0x40
30 #define SP_SR_PAPER 0x20
31 #define SP_SR_ONLINE 0x10
32 #define SP_SR_ERR 0x08
33
34 /*
35 * Control register.
36 */
37 #define SP_CR_IRQ 0x10
38 #define SP_CR_SELECT 0x08
39 #define SP_CR_INIT 0x04
40 #define SP_CR_AUTOLF 0x02
41 #define SP_CR_STROBE 0x01
42
43 /*
44 * Minimum space before waking up a writer.
45 */
46 #define SP_MIN_SPACE PAGE_SIZE/2
47
|
This page was automatically generated by the
LXR engine.
|