Path: blob/master/arch/cris/include/arch-v32/mach-a3/mach/hwregs/strmux_defs.h
15163 views
#ifndef __strmux_defs_h1#define __strmux_defs_h23/*4* This file is autogenerated from5* file: strmux.r6*7* by ../../../tools/rdesc/bin/rdes2c -outfile strmux_defs.h strmux.r8* Any changes here will be lost.9*10* -*- buffer-read-only: t -*-11*/12/* Main access macros */13#ifndef REG_RD14#define REG_RD( scope, inst, reg ) \15REG_READ( reg_##scope##_##reg, \16(inst) + REG_RD_ADDR_##scope##_##reg )17#endif1819#ifndef REG_WR20#define REG_WR( scope, inst, reg, val ) \21REG_WRITE( reg_##scope##_##reg, \22(inst) + REG_WR_ADDR_##scope##_##reg, (val) )23#endif2425#ifndef REG_RD_VECT26#define REG_RD_VECT( scope, inst, reg, index ) \27REG_READ( reg_##scope##_##reg, \28(inst) + REG_RD_ADDR_##scope##_##reg + \29(index) * STRIDE_##scope##_##reg )30#endif3132#ifndef REG_WR_VECT33#define REG_WR_VECT( scope, inst, reg, index, val ) \34REG_WRITE( reg_##scope##_##reg, \35(inst) + REG_WR_ADDR_##scope##_##reg + \36(index) * STRIDE_##scope##_##reg, (val) )37#endif3839#ifndef REG_RD_INT40#define REG_RD_INT( scope, inst, reg ) \41REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )42#endif4344#ifndef REG_WR_INT45#define REG_WR_INT( scope, inst, reg, val ) \46REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )47#endif4849#ifndef REG_RD_INT_VECT50#define REG_RD_INT_VECT( scope, inst, reg, index ) \51REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \52(index) * STRIDE_##scope##_##reg )53#endif5455#ifndef REG_WR_INT_VECT56#define REG_WR_INT_VECT( scope, inst, reg, index, val ) \57REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \58(index) * STRIDE_##scope##_##reg, (val) )59#endif6061#ifndef REG_TYPE_CONV62#define REG_TYPE_CONV( type, orgtype, val ) \63( { union { orgtype o; type n; } r; r.o = val; r.n; } )64#endif6566#ifndef reg_page_size67#define reg_page_size 819268#endif6970#ifndef REG_ADDR71#define REG_ADDR( scope, inst, reg ) \72( (inst) + REG_RD_ADDR_##scope##_##reg )73#endif7475#ifndef REG_ADDR_VECT76#define REG_ADDR_VECT( scope, inst, reg, index ) \77( (inst) + REG_RD_ADDR_##scope##_##reg + \78(index) * STRIDE_##scope##_##reg )79#endif8081/* C-code for register scope strmux */8283/* Register rw_cfg, scope strmux, type rw */84typedef struct {85unsigned int dma0 : 2;86unsigned int dma1 : 2;87unsigned int dma2 : 2;88unsigned int dma3 : 2;89unsigned int dma4 : 2;90unsigned int dma5 : 2;91unsigned int dma6 : 2;92unsigned int dma7 : 2;93unsigned int dummy1 : 2;94unsigned int dma9 : 2;95unsigned int dummy2 : 2;96unsigned int dma11 : 2;97unsigned int dummy3 : 8;98} reg_strmux_rw_cfg;99#define REG_RD_ADDR_strmux_rw_cfg 0100#define REG_WR_ADDR_strmux_rw_cfg 0101102103/* Constants */104enum {105regk_strmux_eth = 0x00000001,106regk_strmux_h264 = 0x00000001,107regk_strmux_iop = 0x00000001,108regk_strmux_jpeg = 0x00000001,109regk_strmux_off = 0x00000000,110regk_strmux_rw_cfg_default = 0x00000000,111regk_strmux_ser0 = 0x00000002,112regk_strmux_ser1 = 0x00000002,113regk_strmux_ser2 = 0x00000002,114regk_strmux_ser3 = 0x00000002,115regk_strmux_ser4 = 0x00000002,116regk_strmux_sser = 0x00000001,117regk_strmux_strcop = 0x00000001118};119#endif /* __strmux_defs_h */120121122