Search
lxdream.org :: lxdream/src/mmio.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/mmio.h
changeset 490:1e0f9940e064
prev474:a0345bf296ed
next561:533f6b478071
author nkeynes
date Sun Nov 04 08:49:18 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix pointer=>int conversions to use intptr_t types
file annotate diff log raw
1.1 --- a/src/mmio.h Wed Oct 31 09:05:44 2007 +0000
1.2 +++ b/src/mmio.h Sun Nov 04 08:49:18 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: mmio.h,v 1.7 2007-10-31 09:05:44 nkeynes Exp $
1.6 + * $Id: mmio.h,v 1.8 2007-11-04 08:49:18 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 @@ -65,7 +65,7 @@
1.11 void register_io_regions( struct mmio_region **mmiolist );
1.12
1.13 extern struct mmio_region *io_rgn[];
1.14 -extern int num_io_rgns;
1.15 +extern uintptr_t num_io_rgns;
1.16
1.17 #define MMIO_READ( id, r ) *((int32_t *)(mmio_region_##id.mem + (r)))
1.18 #define MMIO_READF( id, r ) *((float *)(mmio_region_##id.mem + (r)))
.