#ifndef __FSL_GUTS_H__
#define __FSL_GUTS_H__
#include <linux/types.h>
#include <linux/io.h>
struct ccsr_guts { … } __attribute__ ((packed));
#define MPC85xx_PMUXCR_QE(x) …
#ifdef CONFIG_PPC_86xx
#define CCSR_GUTS_DMACR_DEV_SSI …
#define CCSR_GUTS_DMACR_DEV_IR …
static inline void guts_set_dmacr(struct ccsr_guts __iomem *guts,
unsigned int co, unsigned int ch, unsigned int device)
{
unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch));
clrsetbits_be32(&guts->dmacr, 3 << shift, device << shift);
}
#define CCSR_GUTS_PMUXCR_LDPSEL …
#define CCSR_GUTS_PMUXCR_SSI1_MASK …
#define CCSR_GUTS_PMUXCR_SSI1_LA …
#define CCSR_GUTS_PMUXCR_SSI1_HI …
#define CCSR_GUTS_PMUXCR_SSI1_SSI …
#define CCSR_GUTS_PMUXCR_SSI2_MASK …
#define CCSR_GUTS_PMUXCR_SSI2_LA …
#define CCSR_GUTS_PMUXCR_SSI2_HI …
#define CCSR_GUTS_PMUXCR_SSI2_SSI …
#define CCSR_GUTS_PMUXCR_LA_22_25_LA …
#define CCSR_GUTS_PMUXCR_LA_22_25_HI …
#define CCSR_GUTS_PMUXCR_DBGDRV …
#define CCSR_GUTS_PMUXCR_DMA2_0 …
#define CCSR_GUTS_PMUXCR_DMA2_3 …
#define CCSR_GUTS_PMUXCR_DMA1_0 …
#define CCSR_GUTS_PMUXCR_DMA1_3 …
static inline void guts_set_pmuxcr_dma(struct ccsr_guts __iomem *guts,
unsigned int co, unsigned int ch, unsigned int value)
{
if ((ch == 0) || (ch == 3)) {
unsigned int shift = 2 * (co + 1) - (ch & 1) - 1;
clrsetbits_be32(&guts->pmuxcr, 1 << shift, value << shift);
}
}
#define CCSR_GUTS_CLKDVDR_PXCKEN …
#define CCSR_GUTS_CLKDVDR_SSICKEN …
#define CCSR_GUTS_CLKDVDR_PXCKINV …
#define CCSR_GUTS_CLKDVDR_PXCKDLY_SHIFT …
#define CCSR_GUTS_CLKDVDR_PXCKDLY_MASK …
#define CCSR_GUTS_CLKDVDR_PXCKDLY …
#define CCSR_GUTS_CLKDVDR_PXCLK_SHIFT …
#define CCSR_GUTS_CLKDVDR_PXCLK_MASK …
#define CCSR_GUTS_CLKDVDR_PXCLK …
#define CCSR_GUTS_CLKDVDR_SSICLK_MASK …
#define CCSR_GUTS_CLKDVDR_SSICLK …
#endif
struct ccsr_rcpm_v1 { … };
struct ccsr_rcpm_v2 { … };
#endif