2 * Copyright 1999 Egbert Eich
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of the authors not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. The authors makes no representations
11 * about the suitability of this software for any purpose. It is provided
12 * "as is" without express or implied warranty.
14 * THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
25 #if defined(__alpha__) || defined (__ia64__)
28 #include "AsmMacros.h"
32 int r_inb = 0, r_inw = 0, r_inl = 0, r_outb = 0, r_outw = 0, r_outl = 0;
33 int in_b = 0, in_w = 0, in_l = 0, out_b = 0, out_w = 0, out_l = 0;
37 port_rep_inb(CARD16 port, CARD8 *base, int d_f, CARD32 count)
39 register int inc = d_f ? -1 : 1;
42 p_printf(" rep_insb(%#x) %d bytes at %p %s",
43 port, count, base, d_f?"up":"down");
45 p_printf(" %x\n",getIP());
57 port_rep_inw(CARD16 port, CARD16 *base, int d_f, CARD32 count)
59 register int inc = d_f ? -1 : 1;
62 p_printf(" rep_insw(%#x) %d bytes at %p %s",
63 port, count, base, d_f?"up":"down");
65 p_printf(" %x\n",getIP());
77 port_rep_inl(CARD16 port, CARD32 *base, int d_f, CARD32 count)
79 register int inc = d_f ? -1 : 1;
82 p_printf(" rep_insl(%#x) %d bytes at %p %s",
83 port, count, base, d_f?"up":"down");
85 p_printf(" %x\n",getIP());
97 port_rep_outb(CARD16 port, CARD8 *base, int d_f, CARD32 count)
99 register int inc = d_f ? -1 : 1;
102 p_printf(" rep_outb(%#x) %d bytes at %p %s",
103 port, count, base, d_f?"up":"down");
105 p_printf(" %x\n",getIP());
117 port_rep_outw(CARD16 port, CARD16 *base, int d_f, CARD32 count)
119 register int inc = d_f ? -1 : 1;
122 p_printf(" rep_outw(%#x) %d bytes at %p %s",
123 port, count, base, d_f?"up":"down");
125 p_printf(" %x\n",getIP());
137 port_rep_outl(CARD16 port, CARD32 *base, int d_f, CARD32 count)
139 register int inc = d_f ? -1 : 1;
142 p_printf(" rep_outl(%#x) %d bytes at %p %s",
143 port, count, base, d_f?"up":"down");
145 p_printf(" %x\n",getIP());
162 p_printf(" inb(%#x) = %2.2x",port,val);
164 p_printf(" %x\n",getIP());
176 p_printf(" inw(%#x) = %4.4x",port,val);
178 p_printf(" %x\n",getIP());
190 if (cfg1in(port,&val))
195 p_printf(" inl(%#x) = %8.8x",port,val);
197 p_printf(" %x\n",getIP());
204 p_outb(CARD16 port, CARD8 val)
207 p_printf(" outb(%#x, %2.2x)",port,val);
209 p_printf(" %x\n",getIP());
216 p_outw(CARD16 port, CARD16 val)
219 p_printf(" outw(%#x, %4.4x)",port,val);
221 p_printf(" %x\n",getIP());
228 p_outl(CARD16 port, CARD32 val)
231 p_printf(" outl(%#x, %8.8x)",port,val);
233 p_printf(" %x\n",getIP());
237 if (cfg1out(port,val))
246 p_printf("rep: inb: %i, inw: %i, inl: %i, outb: %i, outw: %i, outl: %i\n",
247 r_inb,r_inw,r_inl,r_outb,r_outw,r_outl);
248 p_printf("inb: %i, inw: %i, inl: %i, outb: %i, outw: %i, outl: %i\n",
249 in_b,in_w,in_l,out_b,out_w,out_l);
255 r_inb = r_inw = r_inl = r_outb = r_outw = r_outl = 0;
256 in_b = in_w = in_l = out_b = out_w = out_l = 0;