* vmeUniverse/vmeTsi148.c: Silenced compiler warnings

(gcc-4.1.1 warns that uint32_t and unsigned int are different).
This commit is contained in:
Till Straumann
2006-07-12 23:43:56 +00:00
parent 689429f8d6
commit c8f74b474a
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2006-07-12 Till Straumann <strauman@slac.stanford.edu>
* vmeUniverse/vmeTsi148.c: Silenced compiler warnings
(gcc-4.1.1 warns that uint32_t and unsigned int are different).
2006-06-19 Till Straumann <strauman@slac.stanford.edu>
* vmeUniverse/vme_amd_defs.h: Added address-modifier

View File

@@ -184,10 +184,10 @@
#define TSI_INTM2_REG 0x45c
#define TSI_RD(base, reg) in_be32(((base) + (reg)/sizeof(*base)))
#define TSI_RD(base, reg) in_be32((volatile unsigned *)((base) + (reg)/sizeof(*base)))
#define TSI_RD16(base, reg) in_be16((volatile unsigned short *)(base) + (reg)/sizeof(short))
#define TSI_RD8(base, reg) *((volatile unsigned char *)(base) + (reg))
#define TSI_WR(base, reg, val) out_be32(((base) + (reg)/sizeof(*base)), val)
#define TSI_WR(base, reg, val) out_be32((volatile unsigned *)((base) + (reg)/sizeof(*base)), val)
#define UNIV_SCTL_AM_MASK (UNIV_CTL_VAS | UNIV_SCTL_PGM | UNIV_SCTL_DAT | UNIV_SCTL_USER | UNIV_SCTL_SUPER)