]>
git.ipfire.org Git - people/stevee/ipfire-2.x.git/blob - src/hwinfo/src/int10/i10_io.c
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.
24 #if defined(__alpha__) || defined (__ia64__)
27 #include "AsmMacros.h"
33 port_rep_inb(CARD16 port
, CARD8
*base
, int d_f
, CARD32 count
)
35 register int inc
= d_f
? -1 : 1;
46 port_rep_inw(CARD16 port
, CARD16
*base
, int d_f
, CARD32 count
)
48 register int inc
= d_f
? -1 : 1;
59 port_rep_inl(CARD16 port
, CARD32
*base
, int d_f
, CARD32 count
)
61 register int inc
= d_f
? -1 : 1;
72 port_rep_outb(CARD16 port
, CARD8
*base
, int d_f
, CARD32 count
)
74 register int inc
= d_f
? -1 : 1;
85 port_rep_outw(CARD16 port
, CARD16
*base
, int d_f
, CARD32 count
)
87 register int inc
= d_f
? -1 : 1;
98 port_rep_outl(CARD16 port
, CARD32
*base
, int d_f
, CARD32 count
)
100 register int inc
= d_f
? -1 : 1;