• Home
  • Raw
  • Download

Lines Matching refs:ioaddr

108 static inline unsigned char read_byte_mode0(short ioaddr)  in read_byte_mode0()  argument
112 outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); in read_byte_mode0()
113 inbyte(ioaddr + PAR_STATUS); in read_byte_mode0()
114 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode0()
115 outb(Ctrl_HNibRead, ioaddr + PAR_CONTROL); in read_byte_mode0()
116 inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ in read_byte_mode0()
117 inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ in read_byte_mode0()
118 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode0()
122 static inline unsigned char read_byte_mode2(short ioaddr) in read_byte_mode2() argument
126 outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); in read_byte_mode2()
127 inbyte(ioaddr + PAR_STATUS); in read_byte_mode2()
128 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode2()
129 outb(Ctrl_HNibRead, ioaddr + PAR_CONTROL); in read_byte_mode2()
130 inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ in read_byte_mode2()
131 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode2()
135 static inline unsigned char read_byte_mode4(short ioaddr) in read_byte_mode4() argument
139 outb(RdAddr | MAR, ioaddr + PAR_DATA); in read_byte_mode4()
140 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode4()
141 outb(RdAddr | HNib | MAR, ioaddr + PAR_DATA); in read_byte_mode4()
142 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode4()
146 static inline unsigned char read_byte_mode6(short ioaddr) in read_byte_mode6() argument
150 outb(RdAddr | MAR, ioaddr + PAR_DATA); in read_byte_mode6()
151 inbyte(ioaddr + PAR_STATUS); in read_byte_mode6()
152 low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; in read_byte_mode6()
153 outb(RdAddr | HNib | MAR, ioaddr + PAR_DATA); in read_byte_mode6()
154 inbyte(ioaddr + PAR_STATUS); in read_byte_mode6()
155 return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); in read_byte_mode6()
224 static inline void write_byte_mode0(short ioaddr, unsigned char value) in write_byte_mode0() argument
226 outb(value & 0x0f, ioaddr + PAR_DATA); in write_byte_mode0()
227 outb((value>>4) | 0x10, ioaddr + PAR_DATA); in write_byte_mode0()
230 static inline void write_byte_mode1(short ioaddr, unsigned char value) in write_byte_mode1() argument
232 outb(value & 0x0f, ioaddr + PAR_DATA); in write_byte_mode1()
233 outb(Ctrl_IRQEN | Ctrl_LNibWrite, ioaddr + PAR_CONTROL); in write_byte_mode1()
234 outb((value>>4) | 0x10, ioaddr + PAR_DATA); in write_byte_mode1()
235 outb(Ctrl_IRQEN | Ctrl_HNibWrite, ioaddr + PAR_CONTROL); in write_byte_mode1()
239 static inline void write_word_mode0(short ioaddr, unsigned short value) in write_word_mode0() argument
241 outb(value & 0x0f, ioaddr + PAR_DATA); in write_word_mode0()
243 outb((value & 0x0f) | 0x10, ioaddr + PAR_DATA); in write_word_mode0()
245 outb(value & 0x0f, ioaddr + PAR_DATA); in write_word_mode0()
247 outb((value & 0x0f) | 0x10, ioaddr + PAR_DATA); in write_word_mode0()