Go to the documentation of this file.
26 #ifndef _MVS94XX_REG_H_
27 #define _MVS94XX_REG_H_
29 #include <linux/types.h>
31 #define MAX_LINK_RATE SAS_LINK_RATE_6_0_GBPS
219 #define MAX_SG_ENTRY 255
253 #define SPI_CTRL_REG_94XX 0xc800
254 #define SPI_ADDR_REG_94XX 0xc804
255 #define SPI_WR_DATA_REG_94XX 0xc808
256 #define SPI_RD_DATA_REG_94XX 0xc80c
257 #define SPI_CTRL_READ_94XX (1U << 2)
258 #define SPI_ADDR_VLD_94XX (1U << 1)
259 #define SPI_CTRL_SpiStart_94XX (1U << 0)
261 #define mv_ffc(x) ffz(x)
278 #define r_reg_set_enable(i) \
279 (((i) > 31) ? mr32(MVS_STP_REG_SET_1) : \
280 mr32(MVS_STP_REG_SET_0))
282 #define w_reg_set_enable(i, tmp) \
283 (((i) > 31) ? mw32(MVS_STP_REG_SET_1, tmp) : \
284 mw32(MVS_STP_REG_SET_0, tmp))