Search
lxdream.org :: lxdream/src/mmio.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/mmio.h
changeset 172:59cf18b4cfb2
prev156:3b93648a3b07
next474:a0345bf296ed
author nkeynes
date Thu Jan 25 10:16:32 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Move PVR2 dma handling (0x10000000-0x13FFFFFF) into pvr2mem.c, minor
register cleanups in asic.c
file annotate diff log raw
1.1 --- a/src/mmio.h Thu Jun 15 10:25:45 2006 +0000
1.2 +++ b/src/mmio.h Thu Jan 25 10:16:32 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: mmio.h,v 1.5 2006-06-15 10:25:42 nkeynes Exp $
1.6 + * $Id: mmio.h,v 1.6 2006-06-27 11:02:46 nkeynes Exp $
1.7 *
1.8 * mmio.h defines a complicated batch of macros used to build up the
1.9 * memory-mapped I/O regions in a reasonably readable fashion.
1.10 @@ -39,6 +39,7 @@
1.11 #define PORT_RW 3
1.12 #define PORT_MR 5
1.13 #define PORT_MRW 7
1.14 +#define PORT_NOTRACE 16
1.15 #define UNDEFINED 0xDEADBEEF /* This has to be a value that nothing inits to */
1.16
1.17 struct mmio_region {
1.18 @@ -81,12 +82,16 @@
1.19 io_rgn[mid]->index[(r)>>2]->id : "<UNDEF>" )
1.20 #define MMIO_REGDESC_BYNUM( mid, r ) (io_rgn[mid]->index[(r)>>2] != NULL ? \
1.21 io_rgn[mid]->index[(r)>>2]->desc : "Undefined register" )
1.22 +#define MMIO_NOTRACE_BYNUM( mid, r ) (io_rgn[mid]->index[(r)>>2] != NULL ? \
1.23 + (io_rgn[mid]->index[(r)>>2]->flags & PORT_NOTRACE) : 0 )
1.24 #define MMIO_NAME_BYNUM( mid ) (io_rgn[mid]->id)
1.25
1.26 #define MMIO_REGID_IOBYNUM( io, r ) (io->index[(r)>>2] != NULL ? \
1.27 io->index[(r)>>2]->id : "<UNDEF>" )
1.28 #define MMIO_REGDESC_IOBYNUM( io, r ) (io->index[(r)>>2] != NULL ? \
1.29 io->index[(r)>>2]->desc : "Undefined register" )
1.30 +#define MMIO_NOTRACE_IOBYNUM( io, r ) (io->index[(r)>>2] != NULL ? \
1.31 + (io->index[(r)>>2]->flags & PORT_NOTRACE) : 0 )
1.32
1.33 #ifdef __cplusplus
1.34 }
.