Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
mbcs.h File Reference

Go to the source code of this file.

Data Structures

union  cm_id
 
union  cm_status
 
union  cm_error_detail1
 
union  cm_error_detail2
 
union  cm_control
 
union  cm_req_timeout
 
union  intr_dest
 
union  cm_error_status
 
union  cm_clr_error_status
 
union  cm_error_intr_enable
 
struct  cm_mmr
 
union  dma_hostaddr
 
union  dma_localaddr
 
union  dma_control
 
union  dma_amo_dest
 
union  rdma_aux_status
 
struct  rdma_mmr
 
union  wdma_aux_status
 
struct  wdma_mmr
 
union  algo_step
 
struct  algo_mmr
 
struct  mbcs_mmr
 
struct  algoblock
 
struct  getdma
 
struct  putdma
 
struct  mbcs_soft
 

Macros

#define MB   (1024*1024)
 
#define MB2   (2*MB)
 
#define MB4   (4*MB)
 
#define MB6   (6*MB)
 
#define MBCS_CM_ID   0x0000 /* Identification */
 
#define MBCS_CM_STATUS   0x0008 /* Status */
 
#define MBCS_CM_ERROR_DETAIL1   0x0010 /* Error Detail1 */
 
#define MBCS_CM_ERROR_DETAIL2   0x0018 /* Error Detail2 */
 
#define MBCS_CM_CONTROL   0x0020 /* Control */
 
#define MBCS_CM_REQ_TOUT   0x0028 /* Request Time-out */
 
#define MBCS_CM_ERR_INT_DEST   0x0038 /* Error Interrupt Destination */
 
#define MBCS_CM_TARG_FL   0x0050 /* Target Flush */
 
#define MBCS_CM_ERR_STAT   0x0060 /* Error Status */
 
#define MBCS_CM_CLR_ERR_STAT   0x0068 /* Clear Error Status */
 
#define MBCS_CM_ERR_INT_EN   0x0070 /* Error Interrupt Enable */
 
#define MBCS_RD_DMA_SYS_ADDR   0x0100 /* Read DMA System Address */
 
#define MBCS_RD_DMA_LOC_ADDR   0x0108 /* Read DMA Local Address */
 
#define MBCS_RD_DMA_CTRL   0x0110 /* Read DMA Control */
 
#define MBCS_RD_DMA_AMO_DEST   0x0118 /* Read DMA AMO Destination */
 
#define MBCS_RD_DMA_INT_DEST   0x0120 /* Read DMA Interrupt Destination */
 
#define MBCS_RD_DMA_AUX_STAT   0x0130 /* Read DMA Auxiliary Status */
 
#define MBCS_WR_DMA_SYS_ADDR   0x0200 /* Write DMA System Address */
 
#define MBCS_WR_DMA_LOC_ADDR   0x0208 /* Write DMA Local Address */
 
#define MBCS_WR_DMA_CTRL   0x0210 /* Write DMA Control */
 
#define MBCS_WR_DMA_AMO_DEST   0x0218 /* Write DMA AMO Destination */
 
#define MBCS_WR_DMA_INT_DEST   0x0220 /* Write DMA Interrupt Destination */
 
#define MBCS_WR_DMA_AUX_STAT   0x0230 /* Write DMA Auxiliary Status */
 
#define MBCS_ALG_AMO_DEST   0x0300 /* Algorithm AMO Destination */
 
#define MBCS_ALG_INT_DEST   0x0308 /* Algorithm Interrupt Destination */
 
#define MBCS_ALG_OFFSETS   0x0310
 
#define MBCS_ALG_STEP   0x0318 /* Algorithm Step */
 
#define MBCS_GSCR_START   0x0000000
 
#define MBCS_DEBUG_START   0x0100000
 
#define MBCS_RAM0_START   0x0200000
 
#define MBCS_RAM1_START   0x0400000
 
#define MBCS_RAM2_START   0x0600000
 
#define MBCS_CM_CONTROL_REQ_TOUT_MASK   0x0000000000ffffffUL
 
#define MBCS_SRAM_SIZE   (1024*1024)
 
#define MBCS_CACHELINE_SIZE   128
 
#define MBCS_MMR_ADDR(mmr_base, offset)   ((uint64_t *)(mmr_base + offset))
 
#define MBCS_MMR_SET(mmr_base, offset, value)
 
#define MBCS_MMR_GET(mmr_base, offset)   *(uint64_t *)(mmr_base + offset)
 
#define MBCS_MMR_ZERO(mmr_base, offset)   MBCS_MMR_SET(mmr_base, offset, 0)
 
#define DEVICE_NAME   "mbcs"
 
#define MBCS_PART_NUM   0xfff0
 
#define MBCS_PART_NUM_ALG0   0xf001
 
#define MBCS_MFG_NUM   0x1
 

Macro Definition Documentation

#define DEVICE_NAME   "mbcs"

Definition at line 478 of file mbcs.h.

#define MB   (1024*1024)

Definition at line 15 of file mbcs.h.

#define MB2   (2*MB)

Definition at line 16 of file mbcs.h.

#define MB4   (4*MB)

Definition at line 17 of file mbcs.h.

#define MB6   (6*MB)

Definition at line 18 of file mbcs.h.

#define MBCS_ALG_AMO_DEST   0x0300 /* Algorithm AMO Destination */

Definition at line 46 of file mbcs.h.

#define MBCS_ALG_INT_DEST   0x0308 /* Algorithm Interrupt Destination */

Definition at line 47 of file mbcs.h.

#define MBCS_ALG_OFFSETS   0x0310

Definition at line 48 of file mbcs.h.

#define MBCS_ALG_STEP   0x0318 /* Algorithm Step */

Definition at line 49 of file mbcs.h.

#define MBCS_CACHELINE_SIZE   128

Definition at line 61 of file mbcs.h.

#define MBCS_CM_CLR_ERR_STAT   0x0068 /* Clear Error Status */

Definition at line 32 of file mbcs.h.

#define MBCS_CM_CONTROL   0x0020 /* Control */

Definition at line 27 of file mbcs.h.

#define MBCS_CM_CONTROL_REQ_TOUT_MASK   0x0000000000ffffffUL

Definition at line 57 of file mbcs.h.

#define MBCS_CM_ERR_INT_DEST   0x0038 /* Error Interrupt Destination */

Definition at line 29 of file mbcs.h.

#define MBCS_CM_ERR_INT_EN   0x0070 /* Error Interrupt Enable */

Definition at line 33 of file mbcs.h.

#define MBCS_CM_ERR_STAT   0x0060 /* Error Status */

Definition at line 31 of file mbcs.h.

#define MBCS_CM_ERROR_DETAIL1   0x0010 /* Error Detail1 */

Definition at line 25 of file mbcs.h.

#define MBCS_CM_ERROR_DETAIL2   0x0018 /* Error Detail2 */

Definition at line 26 of file mbcs.h.

#define MBCS_CM_ID   0x0000 /* Identification */

Definition at line 23 of file mbcs.h.

#define MBCS_CM_REQ_TOUT   0x0028 /* Request Time-out */

Definition at line 28 of file mbcs.h.

#define MBCS_CM_STATUS   0x0008 /* Status */

Definition at line 24 of file mbcs.h.

#define MBCS_CM_TARG_FL   0x0050 /* Target Flush */

Definition at line 30 of file mbcs.h.

#define MBCS_DEBUG_START   0x0100000

Definition at line 52 of file mbcs.h.

#define MBCS_GSCR_START   0x0000000

Definition at line 51 of file mbcs.h.

#define MBCS_MFG_NUM   0x1

Definition at line 481 of file mbcs.h.

#define MBCS_MMR_ADDR (   mmr_base,
  offset 
)    ((uint64_t *)(mmr_base + offset))

Definition at line 66 of file mbcs.h.

#define MBCS_MMR_GET (   mmr_base,
  offset 
)    *(uint64_t *)(mmr_base + offset)

Definition at line 73 of file mbcs.h.

#define MBCS_MMR_SET (   mmr_base,
  offset,
  value 
)
Value:
{ \
uint64_t *mbcs_mmr_set_u64p, readback; \
mbcs_mmr_set_u64p = (uint64_t *)(mmr_base + offset); \
*mbcs_mmr_set_u64p = value; \
readback = *mbcs_mmr_set_u64p; \
}

Definition at line 67 of file mbcs.h.

#define MBCS_MMR_ZERO (   mmr_base,
  offset 
)    MBCS_MMR_SET(mmr_base, offset, 0)

Definition at line 74 of file mbcs.h.

#define MBCS_PART_NUM   0xfff0

Definition at line 479 of file mbcs.h.

#define MBCS_PART_NUM_ALG0   0xf001

Definition at line 480 of file mbcs.h.

#define MBCS_RAM0_START   0x0200000

Definition at line 53 of file mbcs.h.

#define MBCS_RAM1_START   0x0400000

Definition at line 54 of file mbcs.h.

#define MBCS_RAM2_START   0x0600000

Definition at line 55 of file mbcs.h.

#define MBCS_RD_DMA_AMO_DEST   0x0118 /* Read DMA AMO Destination */

Definition at line 37 of file mbcs.h.

#define MBCS_RD_DMA_AUX_STAT   0x0130 /* Read DMA Auxiliary Status */

Definition at line 39 of file mbcs.h.

#define MBCS_RD_DMA_CTRL   0x0110 /* Read DMA Control */

Definition at line 36 of file mbcs.h.

#define MBCS_RD_DMA_INT_DEST   0x0120 /* Read DMA Interrupt Destination */

Definition at line 38 of file mbcs.h.

#define MBCS_RD_DMA_LOC_ADDR   0x0108 /* Read DMA Local Address */

Definition at line 35 of file mbcs.h.

#define MBCS_RD_DMA_SYS_ADDR   0x0100 /* Read DMA System Address */

Definition at line 34 of file mbcs.h.

#define MBCS_SRAM_SIZE   (1024*1024)

Definition at line 60 of file mbcs.h.

#define MBCS_WR_DMA_AMO_DEST   0x0218 /* Write DMA AMO Destination */

Definition at line 43 of file mbcs.h.

#define MBCS_WR_DMA_AUX_STAT   0x0230 /* Write DMA Auxiliary Status */

Definition at line 45 of file mbcs.h.

#define MBCS_WR_DMA_CTRL   0x0210 /* Write DMA Control */

Definition at line 42 of file mbcs.h.

#define MBCS_WR_DMA_INT_DEST   0x0220 /* Write DMA Interrupt Destination */

Definition at line 44 of file mbcs.h.

#define MBCS_WR_DMA_LOC_ADDR   0x0208 /* Write DMA Local Address */

Definition at line 41 of file mbcs.h.

#define MBCS_WR_DMA_SYS_ADDR   0x0200 /* Write DMA System Address */

Definition at line 40 of file mbcs.h.