Lines Matching +full:int +full:- +full:fwd +full:- +full:mask

1 /* SPDX-License-Identifier: GPL-2.0 */
7 /* --- register definitions ------------------------------- */
9 #define ECONTROL(p) ((p)->base_hi + 0x2)
10 #define CONFIGB(p) ((p)->base_hi + 0x1)
11 #define CONFIGA(p) ((p)->base_hi + 0x0)
12 #define FIFO(p) ((p)->base_hi + 0x0)
13 #define EPPDATA(p) ((p)->base + 0x4)
14 #define EPPADDR(p) ((p)->base + 0x3)
15 #define CONTROL(p) ((p)->base + 0x2)
16 #define STATUS(p) ((p)->base + 0x1)
17 #define DATA(p) ((p)->base + 0x0)
27 int ecr;
33 int fifo_depth;
36 int pword;
39 int readIntrThreshold;
40 int writeIntrThreshold;
87 /* here's hoping that reading these ports won't side-effect anything underneath */ in dump_parport_state()
92 const struct parport_pc_private *priv = p->physport->private_data; in dump_parport_state()
93 int i; in dump_parport_state()
103 dcr = i ? priv->ctr : inb (CONTROL (p)); in dump_parport_state()
108 printk ("fwd"); in dump_parport_state()
111 if (!(dcr & 0x08)) printk (",N-SELECT-IN"); in dump_parport_state()
112 if (dcr & 0x04) printk (",N-INIT"); in dump_parport_state()
113 if (!(dcr & 0x02)) printk (",N-AUTOFD"); in dump_parport_state()
114 if (!(dcr & 0x01)) printk (",N-STROBE"); in dump_parport_state()
118 if (dsr & 0x40) printk (",N-ACK"); in dump_parport_state()
121 if (dsr & 0x08) printk (",N-FAULT"); in dump_parport_state()
132 unsigned char mask, in __parport_pc_frob_control() argument
135 struct parport_pc_private *priv = p->physport->private_data; in __parport_pc_frob_control()
136 unsigned char ctr = priv->ctr; in __parport_pc_frob_control()
139 "__parport_pc_frob_control(%02x,%02x): %02x -> %02x\n", in __parport_pc_frob_control()
140 mask, val, ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); in __parport_pc_frob_control()
142 ctr = (ctr & ~mask) ^ val; in __parport_pc_frob_control()
143 ctr &= priv->ctr_writable; /* only write writable bits. */ in __parport_pc_frob_control()
145 priv->ctr = ctr; /* Update soft copy */ in __parport_pc_frob_control()
170 p->name, p->cad->name); in parport_pc_write_control()
183 const struct parport_pc_private *priv = p->physport->private_data; in parport_pc_read_control()
184 return priv->ctr & rm; /* Use soft copy */ in parport_pc_read_control()
188 unsigned char mask, in parport_pc_frob_control() argument
197 if (mask & 0x20) { in parport_pc_frob_control()
199 p->name, p->cad->name, in parport_pc_frob_control()
207 /* Restrict mask and val to control lines. */ in parport_pc_frob_control()
208 mask &= wm; in parport_pc_frob_control()
211 return __parport_pc_frob_control (p, mask, val); in parport_pc_frob_control()
232 extern int parport_pc_claim_resources(struct parport *p);
237 int irq, int dma,
239 int irqflags);