From 491095fb50944ae66ec4c6a8def37b2fdedd2aa2 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Fri, 11 Oct 2002 08:36:34 +0000 Subject: [PATCH] Replaced constants with macros. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@164 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/arm/pxa2x0/ac97.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/arm/pxa2x0/ac97.h b/include/arm/pxa2x0/ac97.h index 05a4057b..4e151a13 100644 --- a/include/arm/pxa2x0/ac97.h +++ b/include/arm/pxa2x0/ac97.h @@ -186,15 +186,15 @@ typedef volatile struct AC97_registers { /* PCDR bits - see Table 13-55 in [1] */ -#define PCDR_PCM_RDATA_MASK 0xFFFF0000 -#define PCDR_PCM_RDATA(x) ((x << 16) & PCDR_PCM_RDATA_MASK) -#define PCDR_PCM_LDATA_MASK 0x0000FFFF -#define PCDR_PCM_LDATA(x) (x & PCDR_PCM_LDATA_MASK) +#define PCDR_PCM_RDATA_MASK bits(31,16) +#define PCDR_PCM_RDATA(x) bits_val(31,16,x) +#define PCDR_PCM_LDATA_MASK bits(15,0) +#define PCDR_PCM_LDATA(x) bits_val(15,0,x) /* MCDR bits - see Table 13-58 in [1] */ -#define MCDR_MIC_IN_DAT_MASK 0x0000FFFF -#define MCDR_MIC_IN_DAT(x) (x & MCDR_MIC_IN_DAT_MASK) +#define MCDR_MIC_IN_DAT_MASK bits(15,0) +#define MCDR_MIC_IN_DAT(x) bits_val(15,0,x) /* MOCR bits - see Table 13-59 in [1] */ @@ -214,7 +214,7 @@ typedef volatile struct AC97_registers { /* MODR bits - see Table 16-63 in [1] */ -#define MODR_MODEM_DAT_MASK 0x0000FFFF -#define MODR_MODEM_DAT(x) (x & MODR_MODEM_DAT_MASK) +#define MODR_MODEM_DAT_MASK bits(15,0) +#define MODR_MODEM_DAT(x) bits_val(15,0,x) #endif /* PXA2X0_AC97_H */