Lines Matching refs:ioaddr
107 static inline unsigned char read_byte_mode0(short ioaddr) in read_byte_mode0() argument
111 outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); in read_byte_mode0()
112 inbyte(ioaddr + PAR_STATUS); in read_byte_mode0()
113 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode0()
114 outb(Ctrl_HNibRead, ioaddr + PAR_CONTROL); in read_byte_mode0()
115 inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ in read_byte_mode0()
116 inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ in read_byte_mode0()
117 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode0()
121 static inline unsigned char read_byte_mode2(short ioaddr) in read_byte_mode2() argument
125 outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); in read_byte_mode2()
126 inbyte(ioaddr + PAR_STATUS); in read_byte_mode2()
127 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode2()
128 outb(Ctrl_HNibRead, ioaddr + PAR_CONTROL); in read_byte_mode2()
129 inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ in read_byte_mode2()
130 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode2()
134 static inline unsigned char read_byte_mode4(short ioaddr) in read_byte_mode4() argument
138 outb(RdAddr | MAR, ioaddr + PAR_DATA); in read_byte_mode4()
139 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode4()
140 outb(RdAddr | HNib | MAR, ioaddr + PAR_DATA); in read_byte_mode4()
141 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode4()
145 static inline unsigned char read_byte_mode6(short ioaddr) in read_byte_mode6() argument
149 outb(RdAddr | MAR, ioaddr + PAR_DATA); in read_byte_mode6()
150 inbyte(ioaddr + PAR_STATUS); in read_byte_mode6()
151 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode6()
152 outb(RdAddr | HNib | MAR, ioaddr + PAR_DATA); in read_byte_mode6()
153 inbyte(ioaddr + PAR_STATUS); in read_byte_mode6()
154 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode6()
223 static inline void write_byte_mode0(short ioaddr, unsigned char value) in write_byte_mode0() argument
225 outb(value & 0x0f, ioaddr + PAR_DATA); in write_byte_mode0()
226 outb((value>>4) | 0x10, ioaddr + PAR_DATA); in write_byte_mode0()
229 static inline void write_byte_mode1(short ioaddr, unsigned char value) in write_byte_mode1() argument
231 outb(value & 0x0f, ioaddr + PAR_DATA); in write_byte_mode1()
232 outb(Ctrl_IRQEN | Ctrl_LNibWrite, ioaddr + PAR_CONTROL); in write_byte_mode1()
233 outb((value>>4) | 0x10, ioaddr + PAR_DATA); in write_byte_mode1()
234 outb(Ctrl_IRQEN | Ctrl_HNibWrite, ioaddr + PAR_CONTROL); in write_byte_mode1()
238 static inline void write_word_mode0(short ioaddr, unsigned short value) in write_word_mode0() argument
240 outb(value & 0x0f, ioaddr + PAR_DATA); in write_word_mode0()
242 outb((value & 0x0f) | 0x10, ioaddr + PAR_DATA); in write_word_mode0()
244 outb(value & 0x0f, ioaddr + PAR_DATA); in write_word_mode0()
246 outb((value & 0x0f) | 0x10, ioaddr + PAR_DATA); in write_word_mode0()