Go to the source code of this file.
|
#define | IOFUNC_IO(name, hws, ap) |
|
#define | IOFUNC_IND(name, hws, ap) |
|
#define | IOFUNC_MEMIO(name, hws, typ, adr) |
|
#define | ASSIGN_FUNC(typ, name, dest) |
|
#define | ASSIGN_FUNC_IPAC(typ, target) |
|
Value:do { \
dest.read_fifo = &ReadFiFo##
name##
_##typ; \
dest.write_fifo = &WriteFiFo##
name##
_##typ; \
} while (0)
Definition at line 98 of file iohelper.h.
#define ASSIGN_FUNC_IPAC |
( |
|
typ, |
|
|
|
target |
|
) |
| |
Value:do { \
ASSIGN_FUNC(typ, ISAC,
target.isac); \
ASSIGN_FUNC(typ, IPAC,
target); \
} while (0)
Definition at line 104 of file iohelper.h.
#define IOFUNC_IND |
( |
|
name, |
|
|
|
hws, |
|
|
|
ap |
|
) |
| |
Value:
outb(off, hw->ap.ale); \
return
inb(hw->ap.port); \
} \
outb(off, hw->ap.ale); \
outb(val, hw->ap.port); \
} \
outb(off, hw->ap.ale); \
insb(hw->ap.port, dp, size); \
} \
outb(off, hw->ap.ale); \
outsb(hw->ap.port, dp, size); \
}
Definition at line 56 of file iohelper.h.
#define IOFUNC_IO |
( |
|
name, |
|
|
|
hws, |
|
|
|
ap |
|
) |
| |
Value:
return
inb(hw->ap.port + off); \
} \
outb(val, hw->ap.port + off); \
} \
insb(hw->ap.port + off, dp, size); \
} \
outsb(hw->ap.port + off, dp, size); \
}
Definition at line 38 of file iohelper.h.
#define IOFUNC_MEMIO |
( |
|
name, |
|
|
|
hws, |
|
|
|
typ, |
|
|
|
adr |
|
) |
| |
Value:
return
readb(((typ *)hw->adr) + off); \
} \
writeb(val, ((typ *)hw->adr) + off); \
} \
while (size--) \
*dp++ =
readb(((typ *)hw->adr) + off); \
} \
static
void WriteFiFo##
name##_MIO(
void *p,
u8 off,
u8 *dp,
int size) {
\
while (size--) \
writeb(*dp++, ((typ *)hw->adr) + off); \
}
Definition at line 78 of file iohelper.h.