Lines Matching defs:cs
24 static int is_valid_cs(unsigned int cs)
26 if (cs > 6)
35 int bcm63xx_set_cs_base(unsigned int cs, u32 base, unsigned int size)
40 if (!is_valid_cs(cs))
55 bcm_mpi_writel(val, MPI_CSBASE_REG(cs));
66 int bcm63xx_set_cs_timing(unsigned int cs, unsigned int wait,
72 if (!is_valid_cs(cs))
76 val = bcm_mpi_readl(MPI_CSCTL_REG(cs));
83 bcm_mpi_writel(val, MPI_CSCTL_REG(cs));
94 int bcm63xx_set_cs_param(unsigned int cs, u32 params)
99 if (!is_valid_cs(cs))
103 if (cs == MPI_CS_PCMCIA_COMMON ||
104 cs == MPI_CS_PCMCIA_ATTR ||
105 cs == MPI_CS_PCMCIA_IO)
109 val = bcm_mpi_readl(MPI_CSCTL_REG(cs));
115 bcm_mpi_writel(val, MPI_CSCTL_REG(cs));
124 * set cs status (enable/disable)
126 int bcm63xx_set_cs_status(unsigned int cs, int enable)
131 if (!is_valid_cs(cs))
135 val = bcm_mpi_readl(MPI_CSCTL_REG(cs));
140 bcm_mpi_writel(val, MPI_CSCTL_REG(cs));