/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * This file was automatically generated by headergen, DO NOT EDIT it. * headergen version: 3.0.0 * stmp3700 version: 2.4.0 * stmp3700 authors: Amaury Pouly * * Copyright (C) 2015 by the authors * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ****************************************************************************/ #ifndef __HEADERGEN_STMP3700_DCP_H__ #define __HEADERGEN_STMP3700_DCP_H__ #define HW_DCP_CTRL HW(DCP_CTRL) #define HWA_DCP_CTRL (0x80028000 + 0x0) #define HWT_DCP_CTRL HWIO_32_RW #define HWN_DCP_CTRL DCP_CTRL #define HWI_DCP_CTRL #define HW_DCP_CTRL_SET HW(DCP_CTRL_SET) #define HWA_DCP_CTRL_SET (HWA_DCP_CTRL + 0x4) #define HWT_DCP_CTRL_SET HWIO_32_WO #define HWN_DCP_CTRL_SET DCP_CTRL #define HWI_DCP_CTRL_SET #define HW_DCP_CTRL_CLR HW(DCP_CTRL_CLR) #define HWA_DCP_CTRL_CLR (HWA_DCP_CTRL + 0x8) #define HWT_DCP_CTRL_CLR HWIO_32_WO #define HWN_DCP_CTRL_CLR DCP_CTRL #define HWI_DCP_CTRL_CLR #define HW_DCP_CTRL_TOG HW(DCP_CTRL_TOG) #define HWA_DCP_CTRL_TOG (HWA_DCP_CTRL + 0xc) #define HWT_DCP_CTRL_TOG HWIO_32_WO #define HWN_DCP_CTRL_TOG DCP_CTRL #define HWI_DCP_CTRL_TOG #define BP_DCP_CTRL_SFTRST 31 #define BM_DCP_CTRL_SFTRST 0x80000000 #define BF_DCP_CTRL_SFTRST(v) (((v) & 0x1) << 31) #define BFM_DCP_CTRL_SFTRST(v) BM_DCP_CTRL_SFTRST #define BF_DCP_CTRL_SFTRST_V(e) BF_DCP_CTRL_SFTRST(BV_DCP_CTRL_SFTRST__##e) #define BFM_DCP_CTRL_SFTRST_V(v) BM_DCP_CTRL_SFTRST #define BP_DCP_CTRL_CLKGATE 30 #define BM_DCP_CTRL_CLKGATE 0x40000000 #define BF_DCP_CTRL_CLKGATE(v) (((v) & 0x1) << 30) #define BFM_DCP_CTRL_CLKGATE(v) BM_DCP_CTRL_CLKGATE #define BF_DCP_CTRL_CLKGATE_V(e) BF_DCP_CTRL_CLKGATE(BV_DCP_CTRL_CLKGATE__##e) #define BFM_DCP_CTRL_CLKGATE_V(v) BM_DCP_CTRL_CLKGATE #define BP_DCP_CTRL_PRESENT_CRYPTO 29 #define BM_DCP_CTRL_PRESENT_CRYPTO 0x20000000 #define BV_DCP_CTRL_PRESENT_CRYPTO__Present 0x1 #define BV_DCP_CTRL_PRESENT_CRYPTO__Absent 0x0 #define BF_DCP_CTRL_PRESENT_CRYPTO(v) (((v) & 0x1) << 29) #define BFM_DCP_CTRL_PRESENT_CRYPTO(v) BM_DCP_CTRL_PRESENT_CRYPTO #define BF_DCP_CTRL_PRESENT_CRYPTO_V(e) BF_DCP_CTRL_PRESENT_CRYPTO(BV_DCP_CTRL_PRESENT_CRYPTO__##e) #define BFM_DCP_CTRL_PRESENT_CRYPTO_V(v) BM_DCP_CTRL_PRESENT_CRYPTO #define BP_DCP_CTRL_PRESENT_CSC 28 #define BM_DCP_CTRL_PRESENT_CSC 0x10000000 #define BV_DCP_CTRL_PRESENT_CSC__Present 0x1 #define BV_DCP_CTRL_PRESENT_CSC__Absent 0x0 #define BF_DCP_CTRL_PRESENT_CSC(v) (((v) & 0x1) << 28) #define BFM_DCP_CTRL_PRESENT_CSC(v) BM_DCP_CTRL_PRESENT_CSC #define BF_DCP_CTRL_PRESENT_CSC_V(e) BF_DCP_CTRL_PRESENT_CSC(BV_DCP_CTRL_PRESENT_CSC__##e) #define BFM_DCP_CTRL_PRESENT_CSC_V(v) BM_DCP_CTRL_PRESENT_CSC #define BP_DCP_CTRL_GATHER_RESIDUAL_WRITES 23 #define BM_DCP_CTRL_GATHER_RESIDUAL_WRITES 0x800000 #define BF_DCP_CTRL_GATHER_RESIDUAL_WRITES(v) (((v) & 0x1) << 23) #define BFM_DCP_CTRL_GATHER_RESIDUAL_WRITES(v) BM_DCP_CTRL_GATHER_RESIDUAL_WRITES #define BF_DCP_CTRL_GATHER_RESIDUAL_WRITES_V(e) BF_DCP_CTRL_GATHER_RESIDUAL_WRITES(BV_DCP_CTRL_GATHER_RESIDUAL_WRITES__##e) #define BFM_DCP_CTRL_GATHER_RESIDUAL_WRITES_V(v) BM_DCP_CTRL_GATHER_RESIDUAL_WRITES #define BP_DCP_CTRL_ENABLE_CONTEXT_CACHING 22 #define BM_DCP_CTRL_ENABLE_CONTEXT_CACHING 0x400000 #define BF_DCP_CTRL_ENABLE_CONTEXT_CACHING(v) (((v) & 0x1) << 22) #define BFM_DCP_CTRL_ENABLE_CONTEXT_CACHING(v) BM_DCP_CTRL_ENABLE_CONTEXT_CACHING #define BF_DCP_CTRL_ENABLE_CONTEXT_CACHING_V(e) BF_DCP_CTRL_ENABLE_CONTEXT_CACHING(BV_DCP_CTRL_ENABLE_CONTEXT_CACHING__##e) #define BFM_DCP_CTRL_ENABLE_CONTEXT_CACHING_V(v) BM_DCP_CTRL_ENABLE_CONTEXT_CACHING #define BP_DCP_CTRL_ENABLE_CONTEXT_SWITCHING 21 #define BM_DCP_CTRL_ENABLE_CONTEXT_SWITCHING 0x200000 #define BF_DCP_CTRL_ENABLE_CONTEXT_SWITCHING(v) (((v) & 0x1) << 21) #define BFM_DCP_CTRL_ENABLE_CONTEXT_SWITCHING(v) BM_DCP_CTRL_ENABLE_CONTEXT_SWITCHING #define BF_DCP_CTRL_ENABLE_CONTEXT_SWITCHING_V(e) BF_DCP_CTRL_ENABLE_CONTEXT_SWITCHING(BV_DCP_CTRL_ENABLE_CONTEXT_SWITCHING__##e) #define BFM_DCP_CTRL_ENABLE_CONTEXT_SWITCHING_V(v) BM_DCP_CTRL_ENABLE_CONTEXT_SWITCHING #define BP_DCP_CTRL_CSC_INTERRUPT_ENABLE 8 #define BM_DCP_CTRL_CSC_INTERRUPT_ENABLE 0x100 #define BF_DCP_CTRL_CSC_INTERRUPT_ENABLE(v) (((v) & 0x1) << 8) #define BFM_DCP_CTRL_CSC_INTERRUPT_ENABLE(v) BM_DCP_CTRL_CSC_INTERRUPT_ENABLE #define BF_DCP_CTRL_CSC_INTERRUPT_ENABLE_V(e) BF_DCP_CTRL_CSC_INTERRUPT_ENABLE(BV_DCP_CTRL_CSC_INTERRUPT_ENABLE__##e) #define BFM_DCP_CTRL_CSC_INTERRUPT_ENABLE_V(v) BM_DCP_CTRL_CSC_INTERRUPT_ENABLE #define BP_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE 0 #define BM_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE 0xff #define BV_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE__CH0 0x1 #define BV_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE__CH1 0x2 #define BV_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE__CH2 0x4 #define BV_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE__CH3 0x8 #define BF_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE(v) (((v) & 0xff) << 0) #define BFM_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE(v) BM_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE #define BF_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE_V(e) BF_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE(BV_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE__##e) #define BFM_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE_V(v) BM_DCP_CTRL_CHANNEL_INTERRUPT_ENABLE #define HW_DCP_STAT HW(DCP_STAT) #define HWA_DCP_STAT (0x80028000 + 0x10) #define HWT_DCP_STAT HWIO_32_RW #define HWN_DCP_STAT DCP_STAT #define HWI_DCP_STAT #define HW_DCP_STAT_SET HW(DCP_STAT_SET) #define HWA_DCP_STAT_SET (HWA_DCP_STAT + 0x4) #define HWT_DCP_STAT_SET HWIO_32_WO #define HWN_DCP_STAT_SET DCP_STAT #define HWI_DCP_STAT_SET #define HW_DCP_STAT_CLR HW(DCP_STAT_CLR) #define HWA_DCP_STAT_CLR (HWA_DCP_STAT + 0x8) #define HWT_DCP_STAT_CLR HWIO_32_WO #define HWN_DCP_STAT_CLR DCP_STAT #define HWI_DCP_STAT_CLR #define HW_DCP_STAT_TOG HW(DCP_STAT_TOG) #define HWA_DCP_STAT_TOG (HWA_DCP_STAT + 0xc) #define HWT_DCP_STAT_TOG HWIO_32_WO #define HWN_DCP_STAT_TOG DCP_STAT #define HWI_DCP_STAT_TOG #define BP_DCP_STAT_OTP_KEY_READY 28 #define BM_DCP_STAT_OTP_KEY_READY 0x10000000 #define BF_DCP_STAT_OTP_KEY_READY(v) (((v) & 0x1) << 28) #define BFM_DCP_STAT_OTP_KEY_READY(v) BM_DCP_STAT_OTP_KEY_READY #define BF_DCP_STAT_OTP_KEY_READY_V(e) BF_DCP_STAT_OTP_KEY_READY(BV_DCP_STAT_OTP_KEY_READY__##e) #define BFM_DCP_STAT_OTP_KEY_READY_V(v) BM_DCP_STAT_OTP_KEY_READY #define BP_DCP_STAT_CUR_CHANNEL 24 #define BM_DCP_STAT_CUR_CHANNEL 0xf000000 #define BV_DCP_STAT_CUR_CHANNEL__None 0x0 #define BV_DCP_STAT_CUR_CHANNEL__CH0 0x1 #define BV_DCP_STAT_CUR_CHANNEL__CH1 0x2 #define BV_DCP_STAT_CUR_CHANNEL__CH2 0x3 #define BV_DCP_STAT_CUR_CHANNEL__CH3 0x4 #define BV_DCP_STAT_CUR_CHANNEL__CSC 0x8 #define BF_DCP_STAT_CUR_CHANNEL(v) (((v) & 0xf) << 24) #define BFM_DCP_STAT_CUR_CHANNEL(v) BM_DCP_STAT_CUR_CHANNEL #define BF_DCP_STAT_CUR_CHANNEL_V(e) BF_DCP_STAT_CUR_CHANNEL(BV_DCP_STAT_CUR_CHANNEL__##e) #define BFM_DCP_STAT_CUR_CHANNEL_V(v) BM_DCP_STAT_CUR_CHANNEL #define BP_DCP_STAT_READY_CHANNELS 16 #define BM_DCP_STAT_READY_CHANNELS 0xff0000 #define BV_DCP_STAT_READY_CHANNELS__CH0 0x1 #define BV_DCP_STAT_READY_CHANNELS__CH1 0x2 #define BV_DCP_STAT_READY_CHANNELS__CH2 0x4 #define BV_DCP_STAT_READY_CHANNELS__CH3 0x8 #define BF_DCP_STAT_READY_CHANNELS(v) (((v) & 0xff) << 16) #define BFM_DCP_STAT_READY_CHANNELS(v) BM_DCP_STAT_READY_CHANNELS #define BF_DCP_STAT_READY_CHANNELS_V(e) BF_DCP_STAT_READY_CHANNELS(BV_DCP_STAT_READY_CHANNELS__##e) #define BFM_DCP_STAT_READY_CHANNELS_V(v) BM_DCP_STAT_READY_CHANNELS #define BP_DCP_STAT_CSCIRQ 8 #define BM_DCP_STAT_CSCIRQ 0x100 #define BF_DCP_STAT_CSCIRQ(v) (((v) & 0x1) << 8) #define BFM_DCP_STAT_CSCIRQ(v) BM_DCP_STAT_CSCIRQ #define BF_DCP_STAT_CSCIRQ_V(e) BF_DCP_STAT_CSCIRQ(BV_DCP_STAT_CSCIRQ__##e) #define BFM_DCP_STAT_CSCIRQ_V(v) BM_DCP_STAT_CSCIRQ #define BP_DCP_STAT_IRQ 0 #define BM_DCP_STAT_IRQ 0xf #define BF_DCP_STAT_IRQ(v) (((v) & 0xf) << 0) #define BFM_DCP_STAT_IRQ(v) BM_DCP_STAT_IRQ #define BF_DCP_STAT_IRQ_V(e) BF_DCP_STAT_IRQ(BV_DCP_STAT_IRQ__##e) #define BFM_DCP_STAT_IRQ_V(v) BM_DCP_STAT_IRQ #define HW_DCP_CHANNELCTRL HW(DCP_CHANNELCTRL) #define HWA_DCP_CHANNELCTRL (0x80028000 + 0x20) #define HWT_DCP_CHANNELCTRL HWIO_32_RW #define HWN_DCP_CHANNELCTRL DCP_CHANNELCTRL #define HWI_DCP_CHANNELCTRL #define HW_DCP_CHANNELCTRL_SET HW(DCP_CHANNELCTRL_SET) #define HWA_DCP_CHANNELCTRL_SET (HWA_DCP_CHANNELCTRL + 0x4) #define HWT_DCP_CHANNELCTRL_SET HWIO_32_WO #define HWN_DCP_CHANNELCTRL_SET DCP_CHANNELCTRL #define HWI_DCP_CHANNELCTRL_SET #define HW_DCP_CHANNELCTRL_CLR HW(DCP_CHANNELCTRL_CLR) #define HWA_DCP_CHANNELCTRL_CLR (HWA_DCP_CHANNELCTRL + 0x8) #define HWT_DCP_CHANNELCTRL_CLR HWIO_32_WO #define HWN_DCP_CHANNELCTRL_CLR DCP_CHANNELCTRL #define HWI_DCP_CHANNELCTRL_CLR #define HW_DCP_CHANNELCTRL_TOG HW(DCP_CHANNELCTRL_TOG) #define HWA_DCP_CHANNELCTRL_TOG (HWA_DCP_CHANNELCTRL + 0xc) #define HWT_DCP_CHANNELCTRL_TOG HWIO_32_WO #define HWN_DCP_CHANNELCTRL_TOG DCP_CHANNELCTRL #define HWI_DCP_CHANNELCTRL_TOG #define BP_DCP_CHANNELCTRL_CSC_PRIORITY 17 #define BM_DCP_CHANNELCTRL_CSC_PRIORITY 0x60000 #define BV_DCP_CHANNELCTRL_CSC_PRIORITY__HIGH 0x3 #define BV_DCP_CHANNELCTRL_CSC_PRIORITY__MED 0x2 #define BV_DCP_CHANNELCTRL_CSC_PRIORITY__LOW 0x1 #define BV_DCP_CHANNELCTRL_CSC_PRIORITY__BACKGROUND 0x0 #define BF_DCP_CHANNELCTRL_CSC_PRIORITY(v) (((v) & 0x3) << 17) #define BFM_DCP_CHANNELCTRL_CSC_PRIORITY(v) BM_DCP_CHANNELCTRL_CSC_PRIORITY #define BF_DCP_CHANNELCTRL_CSC_PRIORITY_V(e) BF_DCP_CHANNELCTRL_CSC_PRIORITY(BV_DCP_CHANNELCTRL_CSC_PRIORITY__##e) #define BFM_DCP_CHANNELCTRL_CSC_PRIORITY_V(v) BM_DCP_CHANNELCTRL_CSC_PRIORITY #define BP_DCP_CHANNELCTRL_CH0_IRQ_MERGED 16 #define BM_DCP_CHANNELCTRL_CH0_IRQ_MERGED 0x10000 #define BF_DCP_CHANNELCTRL_CH0_IRQ_MERGED(v) (((v) & 0x1) << 16) #define BFM_DCP_CHANNELCTRL_CH0_IRQ_MERGED(v) BM_DCP_CHANNELCTRL_CH0_IRQ_MERGED #define BF_DCP_CHANNELCTRL_CH0_IRQ_MERGED_V(e) BF_DCP_CHANNELCTRL_CH0_IRQ_MERGED(BV_DCP_CHANNELCTRL_CH0_IRQ_MERGED__##e) #define BFM_DCP_CHANNELCTRL_CH0_IRQ_MERGED_V(v) BM_DCP_CHANNELCTRL_CH0_IRQ_MERGED #define BP_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL 8 #define BM_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL 0xff00 #define BV_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL__CH0 0x1 #define BV_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL__CH1 0x2 #define BV_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL__CH2 0x4 #define BV_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL__CH3 0x8 #define BF_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL(v) (((v) & 0xff) << 8) #define BFM_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL(v) BM_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL #define BF_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL_V(e) BF_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL(BV_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL__##e) #define BFM_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL_V(v) BM_DCP_CHANNELCTRL_HIGH_PRIORITY_CHANNEL #define BP_DCP_CHANNELCTRL_ENABLE_CHANNEL 0 #define BM_DCP_CHANNELCTRL_ENABLE_CHANNEL 0xff #define BV_DCP_CHANNELCTRL_ENABLE_CHANNEL__CH0 0x1 #define BV_DCP_CHANNELCTRL_ENABLE_CHANNEL__CH1 0x2 #define BV_DCP_CHANNELCTRL_ENABLE_CHANNEL__CH2 0x4 #define BV_DCP_CHANNELCTRL_ENABLE_CHANNEL__CH3 0x8 #define BF_DCP_CHANNELCTRL_ENABLE_CHANNEL(v) (((v) & 0xff) << 0) #define BFM_DCP_CHANNELCTRL_ENABLE_CHANNEL(v) BM_DCP_CHANNELCTRL_ENABLE_CHANNEL #define BF_DCP_CHANNELCTRL_ENABLE_CHANNEL_V(e) BF_DCP_CHANNELCTRL_ENABLE_CHANNEL(BV_DCP_CHANNELCTRL_ENABLE_CHANNEL__##e) #define BFM_DCP_CHANNELCTRL_ENABLE_CHANNEL_V(v) BM_DCP_CHANNELCTRL_ENABLE_CHANNEL #define HW_DCP_CAPABILITY0 HW(DCP_CAPABILITY0) #define HWA_DCP_CAPABILITY0 (0x80028000 + 0x30) #define HWT_DCP_CAPABILITY0 HWIO_32_RW #define HWN_DCP_CAPABILITY0 DCP_CAPABILITY0 #define HWI_DCP_CAPABILITY0 #define BP_DCP_CAPABILITY0_NUM_CHANNELS 8 #define BM_DCP_CAPABILITY0_NUM_CHANNELS 0xf00 #define BF_DCP_CAPABILITY0_NUM_CHANNELS(v) (((v) & 0xf) << 8) #define BFM_DCP_CAPABILITY0_NUM_CHANNELS(v) BM_DCP_CAPABILITY0_NUM_CHANNELS #define BF_DCP_CAPABILITY0_NUM_CHANNELS_V(e) BF_DCP_CAPABILITY0_NUM_CHANNELS(BV_DCP_CAPABILITY0_NUM_CHANNELS__##e) #define BFM_DCP_CAPABILITY0_NUM_CHANNELS_V(v) BM_DCP_CAPABILITY0_NUM_CHANNELS #define BP_DCP_CAPABILITY0_NUM_KEYS 0 #define BM_DCP_CAPABILITY0_NUM_KEYS 0xff #define BF_DCP_CAPABILITY0_NUM_KEYS(v) (((v) & 0xff) << 0) #define BFM_DCP_CAPABILITY0_NUM_KEYS(v) BM_DCP_CAPABILITY0_NUM_KEYS #define BF_DCP_CAPABILITY0_NUM_KEYS_V(e) BF_DCP_CAPABILITY0_NUM_KEYS(BV_DCP_CAPABILITY0_NUM_KEYS__##e) #define BFM_DCP_CAPABILITY0_NUM_KEYS_V(v) BM_DCP_CAPABILITY0_NUM_KEYS #define HW_DCP_CAPABILITY1 HW(DCP_CAPABILITY1) #define HWA_DCP_CAPABILITY1 (0x80028000 + 0x40) #define HWT_DCP_CAPABILITY1 HWIO_32_RW #define HWN_DCP_CAPABILITY1 DCP_CAPABILITY1 #define HWI_DCP_CAPABILITY1 #define BP_DCP_CAPABILITY1_HASH_ALGORITHMS 16 #define BM_DCP_CAPABILITY1_HASH_ALGORITHMS 0xffff0000 #define BV_DCP_CAPABILITY1_HASH_ALGORITHMS__SHA1 0x1 #define BV_DCP_CAPABILITY1_HASH_ALGORITHMS__CRC32 0x2 #define BF_DCP_CAPABILITY1_HASH_ALGORITHMS(v) (((v) & 0xffff) << 16) #define BFM_DCP_CAPABILITY1_HASH_ALGORITHMS(v) BM_DCP_CAPABILITY1_HASH_ALGORITHMS #define BF_DCP_CAPABILITY1_HASH_ALGORITHMS_V(e) BF_DCP_CAPABILITY1_HASH_ALGORITHMS(BV_DCP_CAPABILITY1_HASH_ALGORITHMS__##e) #define BFM_DCP_CAPABILITY1_HASH_ALGORITHMS_V(v) BM_DCP_CAPABILITY1_HASH_ALGORITHMS #define BP_DCP_CAPABILITY1_CIPHER_ALGORITHMS 0 #define BM_DCP_CAPABILITY1_CIPHER_ALGORITHMS 0xffff #define BV_DCP_CAPABILITY1_CIPHER_ALGORITHMS__AES128 0x1 #define BF_DCP_CAPABILITY1_CIPHER_ALGORITHMS(v) (((v) & 0xffff) << 0) #define BFM_DCP_CAPABILITY1_CIPHER_ALGORITHMS(v) BM_DCP_CAPABILITY1_CIPHER_ALGORITHMS #define BF_DCP_CAPABILITY1_CIPHER_ALGORITHMS_V(e) BF_DCP_CAPABILITY1_CIPHER_ALGORITHMS(BV_DCP_CAPABILITY1_CIPHER_ALGORITHMS__##e) #define BFM_DCP_CAPABILITY1_CIPHER_ALGORITHMS_V(v) BM_DCP_CAPABILITY1_CIPHER_ALGORITHMS #define HW_DCP_CONTEXT HW(DCP_CONTEXT) #define HWA_DCP_CONTEXT (0x80028000 + 0x50) #define HWT_DCP_CONTEXT HWIO_32_RW #define HWN_DCP_CONTEXT DCP_CONTEXT #define HWI_DCP_CONTEXT #define BP_DCP_CONTEXT_ADDR 0 #define BM_DCP_CONTEXT_ADDR 0xffffffff #define BF_DCP_CONTEXT_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_CONTEXT_ADDR(v) BM_DCP_CONTEXT_ADDR #define BF_DCP_CONTEXT_ADDR_V(e) BF_DCP_CONTEXT_ADDR(BV_DCP_CONTEXT_ADDR__##e) #define BFM_DCP_CONTEXT_ADDR_V(v) BM_DCP_CONTEXT_ADDR #define HW_DCP_KEY HW(DCP_KEY) #define HWA_DCP_KEY (0x80028000 + 0x60) #define HWT_DCP_KEY HWIO_32_RW #define HWN_DCP_KEY DCP_KEY #define HWI_DCP_KEY #define BP_DCP_KEY_INDEX 4 #define BM_DCP_KEY_INDEX 0x30 #define BF_DCP_KEY_INDEX(v) (((v) & 0x3) << 4) #define BFM_DCP_KEY_INDEX(v) BM_DCP_KEY_INDEX #define BF_DCP_KEY_INDEX_V(e) BF_DCP_KEY_INDEX(BV_DCP_KEY_INDEX__##e) #define BFM_DCP_KEY_INDEX_V(v) BM_DCP_KEY_INDEX #define BP_DCP_KEY_SUBWORD 0 #define BM_DCP_KEY_SUBWORD 0x3 #define BF_DCP_KEY_SUBWORD(v) (((v) & 0x3) << 0) #define BFM_DCP_KEY_SUBWORD(v) BM_DCP_KEY_SUBWORD #define BF_DCP_KEY_SUBWORD_V(e) BF_DCP_KEY_SUBWORD(BV_DCP_KEY_SUBWORD__##e) #define BFM_DCP_KEY_SUBWORD_V(v) BM_DCP_KEY_SUBWORD #define HW_DCP_KEYDATA HW(DCP_KEYDATA) #define HWA_DCP_KEYDATA (0x80028000 + 0x70) #define HWT_DCP_KEYDATA HWIO_32_RW #define HWN_DCP_KEYDATA DCP_KEYDATA #define HWI_DCP_KEYDATA #define BP_DCP_KEYDATA_DATA 0 #define BM_DCP_KEYDATA_DATA 0xffffffff #define BF_DCP_KEYDATA_DATA(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_KEYDATA_DATA(v) BM_DCP_KEYDATA_DATA #define BF_DCP_KEYDATA_DATA_V(e) BF_DCP_KEYDATA_DATA(BV_DCP_KEYDATA_DATA__##e) #define BFM_DCP_KEYDATA_DATA_V(v) BM_DCP_KEYDATA_DATA #define HW_DCP_PACKET0 HW(DCP_PACKET0) #define HWA_DCP_PACKET0 (0x80028000 + 0x80) #define HWT_DCP_PACKET0 HWIO_32_RW #define HWN_DCP_PACKET0 DCP_PACKET0 #define HWI_DCP_PACKET0 #define BP_DCP_PACKET0_ADDR 0 #define BM_DCP_PACKET0_ADDR 0xffffffff #define BF_DCP_PACKET0_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_PACKET0_ADDR(v) BM_DCP_PACKET0_ADDR #define BF_DCP_PACKET0_ADDR_V(e) BF_DCP_PACKET0_ADDR(BV_DCP_PACKET0_ADDR__##e) #define BFM_DCP_PACKET0_ADDR_V(v) BM_DCP_PACKET0_ADDR #define HW_DCP_PACKET1 HW(DCP_PACKET1) #define HWA_DCP_PACKET1 (0x80028000 + 0x90) #define HWT_DCP_PACKET1 HWIO_32_RW #define HWN_DCP_PACKET1 DCP_PACKET1 #define HWI_DCP_PACKET1 #define BP_DCP_PACKET1_TAG 24 #define BM_DCP_PACKET1_TAG 0xff000000 #define BF_DCP_PACKET1_TAG(v) (((v) & 0xff) << 24) #define BFM_DCP_PACKET1_TAG(v) BM_DCP_PACKET1_TAG #define BF_DCP_PACKET1_TAG_V(e) BF_DCP_PACKET1_TAG(BV_DCP_PACKET1_TAG__##e) #define BFM_DCP_PACKET1_TAG_V(v) BM_DCP_PACKET1_TAG #define BP_DCP_PACKET1_OUTPUT_WORDSWAP 23 #define BM_DCP_PACKET1_OUTPUT_WORDSWAP 0x800000 #define BF_DCP_PACKET1_OUTPUT_WORDSWAP(v) (((v) & 0x1) << 23) #define BFM_DCP_PACKET1_OUTPUT_WORDSWAP(v) BM_DCP_PACKET1_OUTPUT_WORDSWAP #define BF_DCP_PACKET1_OUTPUT_WORDSWAP_V(e) BF_DCP_PACKET1_OUTPUT_WORDSWAP(BV_DCP_PACKET1_OUTPUT_WORDSWAP__##e) #define BFM_DCP_PACKET1_OUTPUT_WORDSWAP_V(v) BM_DCP_PACKET1_OUTPUT_WORDSWAP #define BP_DCP_PACKET1_OUTPUT_BYTESWAP 22 #define BM_DCP_PACKET1_OUTPUT_BYTESWAP 0x400000 #define BF_DCP_PACKET1_OUTPUT_BYTESWAP(v) (((v) & 0x1) << 22) #define BFM_DCP_PACKET1_OUTPUT_BYTESWAP(v) BM_DCP_PACKET1_OUTPUT_BYTESWAP #define BF_DCP_PACKET1_OUTPUT_BYTESWAP_V(e) BF_DCP_PACKET1_OUTPUT_BYTESWAP(BV_DCP_PACKET1_OUTPUT_BYTESWAP__##e) #define BFM_DCP_PACKET1_OUTPUT_BYTESWAP_V(v) BM_DCP_PACKET1_OUTPUT_BYTESWAP #define BP_DCP_PACKET1_INPUT_WORDSWAP 21 #define BM_DCP_PACKET1_INPUT_WORDSWAP 0x200000 #define BF_DCP_PACKET1_INPUT_WORDSWAP(v) (((v) & 0x1) << 21) #define BFM_DCP_PACKET1_INPUT_WORDSWAP(v) BM_DCP_PACKET1_INPUT_WORDSWAP #define BF_DCP_PACKET1_INPUT_WORDSWAP_V(e) BF_DCP_PACKET1_INPUT_WORDSWAP(BV_DCP_PACKET1_INPUT_WORDSWAP__##e) #define BFM_DCP_PACKET1_INPUT_WORDSWAP_V(v) BM_DCP_PACKET1_INPUT_WORDSWAP #define BP_DCP_PACKET1_INPUT_BYTESWAP 20 #define BM_DCP_PACKET1_INPUT_BYTESWAP 0x100000 #define BF_DCP_PACKET1_INPUT_BYTESWAP(v) (((v) & 0x1) << 20) #define BFM_DCP_PACKET1_INPUT_BYTESWAP(v) BM_DCP_PACKET1_INPUT_BYTESWAP #define BF_DCP_PACKET1_INPUT_BYTESWAP_V(e) BF_DCP_PACKET1_INPUT_BYTESWAP(BV_DCP_PACKET1_INPUT_BYTESWAP__##e) #define BFM_DCP_PACKET1_INPUT_BYTESWAP_V(v) BM_DCP_PACKET1_INPUT_BYTESWAP #define BP_DCP_PACKET1_KEY_WORDSWAP 19 #define BM_DCP_PACKET1_KEY_WORDSWAP 0x80000 #define BF_DCP_PACKET1_KEY_WORDSWAP(v) (((v) & 0x1) << 19) #define BFM_DCP_PACKET1_KEY_WORDSWAP(v) BM_DCP_PACKET1_KEY_WORDSWAP #define BF_DCP_PACKET1_KEY_WORDSWAP_V(e) BF_DCP_PACKET1_KEY_WORDSWAP(BV_DCP_PACKET1_KEY_WORDSWAP__##e) #define BFM_DCP_PACKET1_KEY_WORDSWAP_V(v) BM_DCP_PACKET1_KEY_WORDSWAP #define BP_DCP_PACKET1_KEY_BYTESWAP 18 #define BM_DCP_PACKET1_KEY_BYTESWAP 0x40000 #define BF_DCP_PACKET1_KEY_BYTESWAP(v) (((v) & 0x1) << 18) #define BFM_DCP_PACKET1_KEY_BYTESWAP(v) BM_DCP_PACKET1_KEY_BYTESWAP #define BF_DCP_PACKET1_KEY_BYTESWAP_V(e) BF_DCP_PACKET1_KEY_BYTESWAP(BV_DCP_PACKET1_KEY_BYTESWAP__##e) #define BFM_DCP_PACKET1_KEY_BYTESWAP_V(v) BM_DCP_PACKET1_KEY_BYTESWAP #define BP_DCP_PACKET1_TEST_SEMA_IRQ 17 #define BM_DCP_PACKET1_TEST_SEMA_IRQ 0x20000 #define BF_DCP_PACKET1_TEST_SEMA_IRQ(v) (((v) & 0x1) << 17) #define BFM_DCP_PACKET1_TEST_SEMA_IRQ(v) BM_DCP_PACKET1_TEST_SEMA_IRQ #define BF_DCP_PACKET1_TEST_SEMA_IRQ_V(e) BF_DCP_PACKET1_TEST_SEMA_IRQ(BV_DCP_PACKET1_TEST_SEMA_IRQ__##e) #define BFM_DCP_PACKET1_TEST_SEMA_IRQ_V(v) BM_DCP_PACKET1_TEST_SEMA_IRQ #define BP_DCP_PACKET1_CONSTANT_FILL 16 #define BM_DCP_PACKET1_CONSTANT_FILL 0x10000 #define BF_DCP_PACKET1_CONSTANT_FILL(v) (((v) & 0x1) << 16) #define BFM_DCP_PACKET1_CONSTANT_FILL(v) BM_DCP_PACKET1_CONSTANT_FILL #define BF_DCP_PACKET1_CONSTANT_FILL_V(e) BF_DCP_PACKET1_CONSTANT_FILL(BV_DCP_PACKET1_CONSTANT_FILL__##e) #define BFM_DCP_PACKET1_CONSTANT_FILL_V(v) BM_DCP_PACKET1_CONSTANT_FILL #define BP_DCP_PACKET1_HASH_OUTPUT 15 #define BM_DCP_PACKET1_HASH_OUTPUT 0x8000 #define BV_DCP_PACKET1_HASH_OUTPUT__INPUT 0x0 #define BV_DCP_PACKET1_HASH_OUTPUT__OUTPUT 0x1 #define BF_DCP_PACKET1_HASH_OUTPUT(v) (((v) & 0x1) << 15) #define BFM_DCP_PACKET1_HASH_OUTPUT(v) BM_DCP_PACKET1_HASH_OUTPUT #define BF_DCP_PACKET1_HASH_OUTPUT_V(e) BF_DCP_PACKET1_HASH_OUTPUT(BV_DCP_PACKET1_HASH_OUTPUT__##e) #define BFM_DCP_PACKET1_HASH_OUTPUT_V(v) BM_DCP_PACKET1_HASH_OUTPUT #define BP_DCP_PACKET1_CHECK_HASH 14 #define BM_DCP_PACKET1_CHECK_HASH 0x4000 #define BF_DCP_PACKET1_CHECK_HASH(v) (((v) & 0x1) << 14) #define BFM_DCP_PACKET1_CHECK_HASH(v) BM_DCP_PACKET1_CHECK_HASH #define BF_DCP_PACKET1_CHECK_HASH_V(e) BF_DCP_PACKET1_CHECK_HASH(BV_DCP_PACKET1_CHECK_HASH__##e) #define BFM_DCP_PACKET1_CHECK_HASH_V(v) BM_DCP_PACKET1_CHECK_HASH #define BP_DCP_PACKET1_HASH_TERM 13 #define BM_DCP_PACKET1_HASH_TERM 0x2000 #define BF_DCP_PACKET1_HASH_TERM(v) (((v) & 0x1) << 13) #define BFM_DCP_PACKET1_HASH_TERM(v) BM_DCP_PACKET1_HASH_TERM #define BF_DCP_PACKET1_HASH_TERM_V(e) BF_DCP_PACKET1_HASH_TERM(BV_DCP_PACKET1_HASH_TERM__##e) #define BFM_DCP_PACKET1_HASH_TERM_V(v) BM_DCP_PACKET1_HASH_TERM #define BP_DCP_PACKET1_HASH_INIT 12 #define BM_DCP_PACKET1_HASH_INIT 0x1000 #define BF_DCP_PACKET1_HASH_INIT(v) (((v) & 0x1) << 12) #define BFM_DCP_PACKET1_HASH_INIT(v) BM_DCP_PACKET1_HASH_INIT #define BF_DCP_PACKET1_HASH_INIT_V(e) BF_DCP_PACKET1_HASH_INIT(BV_DCP_PACKET1_HASH_INIT__##e) #define BFM_DCP_PACKET1_HASH_INIT_V(v) BM_DCP_PACKET1_HASH_INIT #define BP_DCP_PACKET1_PAYLOAD_KEY 11 #define BM_DCP_PACKET1_PAYLOAD_KEY 0x800 #define BF_DCP_PACKET1_PAYLOAD_KEY(v) (((v) & 0x1) << 11) #define BFM_DCP_PACKET1_PAYLOAD_KEY(v) BM_DCP_PACKET1_PAYLOAD_KEY #define BF_DCP_PACKET1_PAYLOAD_KEY_V(e) BF_DCP_PACKET1_PAYLOAD_KEY(BV_DCP_PACKET1_PAYLOAD_KEY__##e) #define BFM_DCP_PACKET1_PAYLOAD_KEY_V(v) BM_DCP_PACKET1_PAYLOAD_KEY #define BP_DCP_PACKET1_OTP_KEY 10 #define BM_DCP_PACKET1_OTP_KEY 0x400 #define BF_DCP_PACKET1_OTP_KEY(v) (((v) & 0x1) << 10) #define BFM_DCP_PACKET1_OTP_KEY(v) BM_DCP_PACKET1_OTP_KEY #define BF_DCP_PACKET1_OTP_KEY_V(e) BF_DCP_PACKET1_OTP_KEY(BV_DCP_PACKET1_OTP_KEY__##e) #define BFM_DCP_PACKET1_OTP_KEY_V(v) BM_DCP_PACKET1_OTP_KEY #define BP_DCP_PACKET1_CIPHER_INIT 9 #define BM_DCP_PACKET1_CIPHER_INIT 0x200 #define BF_DCP_PACKET1_CIPHER_INIT(v) (((v) & 0x1) << 9) #define BFM_DCP_PACKET1_CIPHER_INIT(v) BM_DCP_PACKET1_CIPHER_INIT #define BF_DCP_PACKET1_CIPHER_INIT_V(e) BF_DCP_PACKET1_CIPHER_INIT(BV_DCP_PACKET1_CIPHER_INIT__##e) #define BFM_DCP_PACKET1_CIPHER_INIT_V(v) BM_DCP_PACKET1_CIPHER_INIT #define BP_DCP_PACKET1_CIPHER_ENCRYPT 8 #define BM_DCP_PACKET1_CIPHER_ENCRYPT 0x100 #define BV_DCP_PACKET1_CIPHER_ENCRYPT__ENCRYPT 0x1 #define BV_DCP_PACKET1_CIPHER_ENCRYPT__DECRYPT 0x0 #define BF_DCP_PACKET1_CIPHER_ENCRYPT(v) (((v) & 0x1) << 8) #define BFM_DCP_PACKET1_CIPHER_ENCRYPT(v) BM_DCP_PACKET1_CIPHER_ENCRYPT #define BF_DCP_PACKET1_CIPHER_ENCRYPT_V(e) BF_DCP_PACKET1_CIPHER_ENCRYPT(BV_DCP_PACKET1_CIPHER_ENCRYPT__##e) #define BFM_DCP_PACKET1_CIPHER_ENCRYPT_V(v) BM_DCP_PACKET1_CIPHER_ENCRYPT #define BP_DCP_PACKET1_ENABLE_BLIT 7 #define BM_DCP_PACKET1_ENABLE_BLIT 0x80 #define BF_DCP_PACKET1_ENABLE_BLIT(v) (((v) & 0x1) << 7) #define BFM_DCP_PACKET1_ENABLE_BLIT(v) BM_DCP_PACKET1_ENABLE_BLIT #define BF_DCP_PACKET1_ENABLE_BLIT_V(e) BF_DCP_PACKET1_ENABLE_BLIT(BV_DCP_PACKET1_ENABLE_BLIT__##e) #define BFM_DCP_PACKET1_ENABLE_BLIT_V(v) BM_DCP_PACKET1_ENABLE_BLIT #define BP_DCP_PACKET1_ENABLE_HASH 6 #define BM_DCP_PACKET1_ENABLE_HASH 0x40 #define BF_DCP_PACKET1_ENABLE_HASH(v) (((v) & 0x1) << 6) #define BFM_DCP_PACKET1_ENABLE_HASH(v) BM_DCP_PACKET1_ENABLE_HASH #define BF_DCP_PACKET1_ENABLE_HASH_V(e) BF_DCP_PACKET1_ENABLE_HASH(BV_DCP_PACKET1_ENABLE_HASH__##e) #define BFM_DCP_PACKET1_ENABLE_HASH_V(v) BM_DCP_PACKET1_ENABLE_HASH #define BP_DCP_PACKET1_ENABLE_CIPHER 5 #define BM_DCP_PACKET1_ENABLE_CIPHER 0x20 #define BF_DCP_PACKET1_ENABLE_CIPHER(v) (((v) & 0x1) << 5) #define BFM_DCP_PACKET1_ENABLE_CIPHER(v) BM_DCP_PACKET1_ENABLE_CIPHER #define BF_DCP_PACKET1_ENABLE_CIPHER_V(e) BF_DCP_PACKET1_ENABLE_CIPHER(BV_DCP_PACKET1_ENABLE_CIPHER__##e) #define BFM_DCP_PACKET1_ENABLE_CIPHER_V(v) BM_DCP_PACKET1_ENABLE_CIPHER #define BP_DCP_PACKET1_ENABLE_MEMCOPY 4 #define BM_DCP_PACKET1_ENABLE_MEMCOPY 0x10 #define BF_DCP_PACKET1_ENABLE_MEMCOPY(v) (((v) & 0x1) << 4) #define BFM_DCP_PACKET1_ENABLE_MEMCOPY(v) BM_DCP_PACKET1_ENABLE_MEMCOPY #define BF_DCP_PACKET1_ENABLE_MEMCOPY_V(e) BF_DCP_PACKET1_ENABLE_MEMCOPY(BV_DCP_PACKET1_ENABLE_MEMCOPY__##e) #define BFM_DCP_PACKET1_ENABLE_MEMCOPY_V(v) BM_DCP_PACKET1_ENABLE_MEMCOPY #define BP_DCP_PACKET1_CHAIN_CONTIGUOUS 3 #define BM_DCP_PACKET1_CHAIN_CONTIGUOUS 0x8 #define BF_DCP_PACKET1_CHAIN_CONTIGUOUS(v) (((v) & 0x1) << 3) #define BFM_DCP_PACKET1_CHAIN_CONTIGUOUS(v) BM_DCP_PACKET1_CHAIN_CONTIGUOUS #define BF_DCP_PACKET1_CHAIN_CONTIGUOUS_V(e) BF_DCP_PACKET1_CHAIN_CONTIGUOUS(BV_DCP_PACKET1_CHAIN_CONTIGUOUS__##e) #define BFM_DCP_PACKET1_CHAIN_CONTIGUOUS_V(v) BM_DCP_PACKET1_CHAIN_CONTIGUOUS #define BP_DCP_PACKET1_CHAIN 2 #define BM_DCP_PACKET1_CHAIN 0x4 #define BF_DCP_PACKET1_CHAIN(v) (((v) & 0x1) << 2) #define BFM_DCP_PACKET1_CHAIN(v) BM_DCP_PACKET1_CHAIN #define BF_DCP_PACKET1_CHAIN_V(e) BF_DCP_PACKET1_CHAIN(BV_DCP_PACKET1_CHAIN__##e) #define BFM_DCP_PACKET1_CHAIN_V(v) BM_DCP_PACKET1_CHAIN #define BP_DCP_PACKET1_DECR_SEMAPHORE 1 #define BM_DCP_PACKET1_DECR_SEMAPHORE 0x2 #define BF_DCP_PACKET1_DECR_SEMAPHORE(v) (((v) & 0x1) << 1) #define BFM_DCP_PACKET1_DECR_SEMAPHORE(v) BM_DCP_PACKET1_DECR_SEMAPHORE #define BF_DCP_PACKET1_DECR_SEMAPHORE_V(e) BF_DCP_PACKET1_DECR_SEMAPHORE(BV_DCP_PACKET1_DECR_SEMAPHORE__##e) #define BFM_DCP_PACKET1_DECR_SEMAPHORE_V(v) BM_DCP_PACKET1_DECR_SEMAPHORE #define BP_DCP_PACKET1_INTERRUPT 0 #define BM_DCP_PACKET1_INTERRUPT 0x1 #define BF_DCP_PACKET1_INTERRUPT(v) (((v) & 0x1) << 0) #define BFM_DCP_PACKET1_INTERRUPT(v) BM_DCP_PACKET1_INTERRUPT #define BF_DCP_PACKET1_INTERRUPT_V(e) BF_DCP_PACKET1_INTERRUPT(BV_DCP_PACKET1_INTERRUPT__##e) #define BFM_DCP_PACKET1_INTERRUPT_V(v) BM_DCP_PACKET1_INTERRUPT #define HW_DCP_PACKET2 HW(DCP_PACKET2) #define HWA_DCP_PACKET2 (0x80028000 + 0xa0) #define HWT_DCP_PACKET2 HWIO_32_RW #define HWN_DCP_PACKET2 DCP_PACKET2 #define HWI_DCP_PACKET2 #define BP_DCP_PACKET2_CIPHER_CFG 24 #define BM_DCP_PACKET2_CIPHER_CFG 0xff000000 #define BF_DCP_PACKET2_CIPHER_CFG(v) (((v) & 0xff) << 24) #define BFM_DCP_PACKET2_CIPHER_CFG(v) BM_DCP_PACKET2_CIPHER_CFG #define BF_DCP_PACKET2_CIPHER_CFG_V(e) BF_DCP_PACKET2_CIPHER_CFG(BV_DCP_PACKET2_CIPHER_CFG__##e) #define BFM_DCP_PACKET2_CIPHER_CFG_V(v) BM_DCP_PACKET2_CIPHER_CFG #define BP_DCP_PACKET2_HASH_SELECT 16 #define BM_DCP_PACKET2_HASH_SELECT 0xf0000 #define BV_DCP_PACKET2_HASH_SELECT__SHA1 0x0 #define BV_DCP_PACKET2_HASH_SELECT__CRC32 0x1 #define BF_DCP_PACKET2_HASH_SELECT(v) (((v) & 0xf) << 16) #define BFM_DCP_PACKET2_HASH_SELECT(v) BM_DCP_PACKET2_HASH_SELECT #define BF_DCP_PACKET2_HASH_SELECT_V(e) BF_DCP_PACKET2_HASH_SELECT(BV_DCP_PACKET2_HASH_SELECT__##e) #define BFM_DCP_PACKET2_HASH_SELECT_V(v) BM_DCP_PACKET2_HASH_SELECT #define BP_DCP_PACKET2_KEY_SELECT 8 #define BM_DCP_PACKET2_KEY_SELECT 0xff00 #define BF_DCP_PACKET2_KEY_SELECT(v) (((v) & 0xff) << 8) #define BFM_DCP_PACKET2_KEY_SELECT(v) BM_DCP_PACKET2_KEY_SELECT #define BF_DCP_PACKET2_KEY_SELECT_V(e) BF_DCP_PACKET2_KEY_SELECT(BV_DCP_PACKET2_KEY_SELECT__##e) #define BFM_DCP_PACKET2_KEY_SELECT_V(v) BM_DCP_PACKET2_KEY_SELECT #define BP_DCP_PACKET2_CIPHER_MODE 4 #define BM_DCP_PACKET2_CIPHER_MODE 0xf0 #define BV_DCP_PACKET2_CIPHER_MODE__ECB 0x0 #define BV_DCP_PACKET2_CIPHER_MODE__CCB 0x1 #define BF_DCP_PACKET2_CIPHER_MODE(v) (((v) & 0xf) << 4) #define BFM_DCP_PACKET2_CIPHER_MODE(v) BM_DCP_PACKET2_CIPHER_MODE #define BF_DCP_PACKET2_CIPHER_MODE_V(e) BF_DCP_PACKET2_CIPHER_MODE(BV_DCP_PACKET2_CIPHER_MODE__##e) #define BFM_DCP_PACKET2_CIPHER_MODE_V(v) BM_DCP_PACKET2_CIPHER_MODE #define BP_DCP_PACKET2_CIPHER_SELECT 0 #define BM_DCP_PACKET2_CIPHER_SELECT 0xf #define BV_DCP_PACKET2_CIPHER_SELECT__AES128 0x0 #define BF_DCP_PACKET2_CIPHER_SELECT(v) (((v) & 0xf) << 0) #define BFM_DCP_PACKET2_CIPHER_SELECT(v) BM_DCP_PACKET2_CIPHER_SELECT #define BF_DCP_PACKET2_CIPHER_SELECT_V(e) BF_DCP_PACKET2_CIPHER_SELECT(BV_DCP_PACKET2_CIPHER_SELECT__##e) #define BFM_DCP_PACKET2_CIPHER_SELECT_V(v) BM_DCP_PACKET2_CIPHER_SELECT #define HW_DCP_PACKET3 HW(DCP_PACKET3) #define HWA_DCP_PACKET3 (0x80028000 + 0xb0) #define HWT_DCP_PACKET3 HWIO_32_RW #define HWN_DCP_PACKET3 DCP_PACKET3 #define HWI_DCP_PACKET3 #define BP_DCP_PACKET3_ADDR 0 #define BM_DCP_PACKET3_ADDR 0xffffffff #define BF_DCP_PACKET3_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_PACKET3_ADDR(v) BM_DCP_PACKET3_ADDR #define BF_DCP_PACKET3_ADDR_V(e) BF_DCP_PACKET3_ADDR(BV_DCP_PACKET3_ADDR__##e) #define BFM_DCP_PACKET3_ADDR_V(v) BM_DCP_PACKET3_ADDR #define HW_DCP_PACKET4 HW(DCP_PACKET4) #define HWA_DCP_PACKET4 (0x80028000 + 0xc0) #define HWT_DCP_PACKET4 HWIO_32_RW #define HWN_DCP_PACKET4 DCP_PACKET4 #define HWI_DCP_PACKET4 #define BP_DCP_PACKET4_ADDR 0 #define BM_DCP_PACKET4_ADDR 0xffffffff #define BF_DCP_PACKET4_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_PACKET4_ADDR(v) BM_DCP_PACKET4_ADDR #define BF_DCP_PACKET4_ADDR_V(e) BF_DCP_PACKET4_ADDR(BV_DCP_PACKET4_ADDR__##e) #define BFM_DCP_PACKET4_ADDR_V(v) BM_DCP_PACKET4_ADDR #define HW_DCP_PACKET5 HW(DCP_PACKET5) #define HWA_DCP_PACKET5 (0x80028000 + 0xd0) #define HWT_DCP_PACKET5 HWIO_32_RW #define HWN_DCP_PACKET5 DCP_PACKET5 #define HWI_DCP_PACKET5 #define BP_DCP_PACKET5_COUNT 0 #define BM_DCP_PACKET5_COUNT 0xffffffff #define BF_DCP_PACKET5_COUNT(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_PACKET5_COUNT(v) BM_DCP_PACKET5_COUNT #define BF_DCP_PACKET5_COUNT_V(e) BF_DCP_PACKET5_COUNT(BV_DCP_PACKET5_COUNT__##e) #define BFM_DCP_PACKET5_COUNT_V(v) BM_DCP_PACKET5_COUNT #define HW_DCP_PACKET6 HW(DCP_PACKET6) #define HWA_DCP_PACKET6 (0x80028000 + 0xe0) #define HWT_DCP_PACKET6 HWIO_32_RW #define HWN_DCP_PACKET6 DCP_PACKET6 #define HWI_DCP_PACKET6 #define BP_DCP_PACKET6_ADDR 0 #define BM_DCP_PACKET6_ADDR 0xffffffff #define BF_DCP_PACKET6_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_PACKET6_ADDR(v) BM_DCP_PACKET6_ADDR #define BF_DCP_PACKET6_ADDR_V(e) BF_DCP_PACKET6_ADDR(BV_DCP_PACKET6_ADDR__##e) #define BFM_DCP_PACKET6_ADDR_V(v) BM_DCP_PACKET6_ADDR #define HW_DCP_CHnCMDPTR(_n1) HW(DCP_CHnCMDPTR(_n1)) #define HWA_DCP_CHnCMDPTR(_n1) (0x80028000 + 0x100 + (_n1) * 0x40) #define HWT_DCP_CHnCMDPTR(_n1) HWIO_32_RW #define HWN_DCP_CHnCMDPTR(_n1) DCP_CHnCMDPTR #define HWI_DCP_CHnCMDPTR(_n1) (_n1) #define BP_DCP_CHnCMDPTR_ADDR 0 #define BM_DCP_CHnCMDPTR_ADDR 0xffffffff #define BF_DCP_CHnCMDPTR_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_CHnCMDPTR_ADDR(v) BM_DCP_CHnCMDPTR_ADDR #define BF_DCP_CHnCMDPTR_ADDR_V(e) BF_DCP_CHnCMDPTR_ADDR(BV_DCP_CHnCMDPTR_ADDR__##e) #define BFM_DCP_CHnCMDPTR_ADDR_V(v) BM_DCP_CHnCMDPTR_ADDR #define HW_DCP_CHnSEMA(_n1) HW(DCP_CHnSEMA(_n1)) #define HWA_DCP_CHnSEMA(_n1) (0x80028000 + 0x110 + (_n1) * 0x40) #define HWT_DCP_CHnSEMA(_n1) HWIO_32_RW #define HWN_DCP_CHnSEMA(_n1) DCP_CHnSEMA #define HWI_DCP_CHnSEMA(_n1) (_n1) #define BP_DCP_CHnSEMA_VALUE 16 #define BM_DCP_CHnSEMA_VALUE 0xff0000 #define BF_DCP_CHnSEMA_VALUE(v) (((v) & 0xff) << 16) #define BFM_DCP_CHnSEMA_VALUE(v) BM_DCP_CHnSEMA_VALUE #define BF_DCP_CHnSEMA_VALUE_V(e) BF_DCP_CHnSEMA_VALUE(BV_DCP_CHnSEMA_VALUE__##e) #define BFM_DCP_CHnSEMA_VALUE_V(v) BM_DCP_CHnSEMA_VALUE #define BP_DCP_CHnSEMA_INCREMENT 0 #define BM_DCP_CHnSEMA_INCREMENT 0xff #define BF_DCP_CHnSEMA_INCREMENT(v) (((v) & 0xff) << 0) #define BFM_DCP_CHnSEMA_INCREMENT(v) BM_DCP_CHnSEMA_INCREMENT #define BF_DCP_CHnSEMA_INCREMENT_V(e) BF_DCP_CHnSEMA_INCREMENT(BV_DCP_CHnSEMA_INCREMENT__##e) #define BFM_DCP_CHnSEMA_INCREMENT_V(v) BM_DCP_CHnSEMA_INCREMENT #define HW_DCP_CHnSTAT(_n1) HW(DCP_CHnSTAT(_n1)) #define HWA_DCP_CHnSTAT(_n1) (0x80028000 + 0x120 + (_n1) * 0x40) #define HWT_DCP_CHnSTAT(_n1) HWIO_32_RW #define HWN_DCP_CHnSTAT(_n1) DCP_CHnSTAT #define HWI_DCP_CHnSTAT(_n1) (_n1) #define HW_DCP_CHnSTAT_SET(_n1) HW(DCP_CHnSTAT_SET(_n1)) #define HWA_DCP_CHnSTAT_SET(_n1) (HWA_DCP_CHnSTAT(_n1) + 0x4) #define HWT_DCP_CHnSTAT_SET(_n1) HWIO_32_WO #define HWN_DCP_CHnSTAT_SET(_n1) DCP_CHnSTAT #define HWI_DCP_CHnSTAT_SET(_n1) (_n1) #define HW_DCP_CHnSTAT_CLR(_n1) HW(DCP_CHnSTAT_CLR(_n1)) #define HWA_DCP_CHnSTAT_CLR(_n1) (HWA_DCP_CHnSTAT(_n1) + 0x8) #define HWT_DCP_CHnSTAT_CLR(_n1) HWIO_32_WO #define HWN_DCP_CHnSTAT_CLR(_n1) DCP_CHnSTAT #define HWI_DCP_CHnSTAT_CLR(_n1) (_n1) #define HW_DCP_CHnSTAT_TOG(_n1) HW(DCP_CHnSTAT_TOG(_n1)) #define HWA_DCP_CHnSTAT_TOG(_n1) (HWA_DCP_CHnSTAT(_n1) + 0xc) #define HWT_DCP_CHnSTAT_TOG(_n1) HWIO_32_WO #define HWN_DCP_CHnSTAT_TOG(_n1) DCP_CHnSTAT #define HWI_DCP_CHnSTAT_TOG(_n1) (_n1) #define BP_DCP_CHnSTAT_TAG 24 #define BM_DCP_CHnSTAT_TAG 0xff000000 #define BF_DCP_CHnSTAT_TAG(v) (((v) & 0xff) << 24) #define BFM_DCP_CHnSTAT_TAG(v) BM_DCP_CHnSTAT_TAG #define BF_DCP_CHnSTAT_TAG_V(e) BF_DCP_CHnSTAT_TAG(BV_DCP_CHnSTAT_TAG__##e) #define BFM_DCP_CHnSTAT_TAG_V(v) BM_DCP_CHnSTAT_TAG #define BP_DCP_CHnSTAT_ERROR_CODE 16 #define BM_DCP_CHnSTAT_ERROR_CODE 0xff0000 #define BV_DCP_CHnSTAT_ERROR_CODE__NEXT_CHAIN_IS_0 0x1 #define BV_DCP_CHnSTAT_ERROR_CODE__NO_CHAIN 0x2 #define BV_DCP_CHnSTAT_ERROR_CODE__CONTEXT_ERROR 0x3 #define BV_DCP_CHnSTAT_ERROR_CODE__PAYLOAD_ERROR 0x4 #define BV_DCP_CHnSTAT_ERROR_CODE__INVALID_MODE 0x5 #define BF_DCP_CHnSTAT_ERROR_CODE(v) (((v) & 0xff) << 16) #define BFM_DCP_CHnSTAT_ERROR_CODE(v) BM_DCP_CHnSTAT_ERROR_CODE #define BF_DCP_CHnSTAT_ERROR_CODE_V(e) BF_DCP_CHnSTAT_ERROR_CODE(BV_DCP_CHnSTAT_ERROR_CODE__##e) #define BFM_DCP_CHnSTAT_ERROR_CODE_V(v) BM_DCP_CHnSTAT_ERROR_CODE #define BP_DCP_CHnSTAT_ERROR_DST 5 #define BM_DCP_CHnSTAT_ERROR_DST 0x20 #define BF_DCP_CHnSTAT_ERROR_DST(v) (((v) & 0x1) << 5) #define BFM_DCP_CHnSTAT_ERROR_DST(v) BM_DCP_CHnSTAT_ERROR_DST #define BF_DCP_CHnSTAT_ERROR_DST_V(e) BF_DCP_CHnSTAT_ERROR_DST(BV_DCP_CHnSTAT_ERROR_DST__##e) #define BFM_DCP_CHnSTAT_ERROR_DST_V(v) BM_DCP_CHnSTAT_ERROR_DST #define BP_DCP_CHnSTAT_ERROR_SRC 4 #define BM_DCP_CHnSTAT_ERROR_SRC 0x10 #define BF_DCP_CHnSTAT_ERROR_SRC(v) (((v) & 0x1) << 4) #define BFM_DCP_CHnSTAT_ERROR_SRC(v) BM_DCP_CHnSTAT_ERROR_SRC #define BF_DCP_CHnSTAT_ERROR_SRC_V(e) BF_DCP_CHnSTAT_ERROR_SRC(BV_DCP_CHnSTAT_ERROR_SRC__##e) #define BFM_DCP_CHnSTAT_ERROR_SRC_V(v) BM_DCP_CHnSTAT_ERROR_SRC #define BP_DCP_CHnSTAT_ERROR_PACKET 3 #define BM_DCP_CHnSTAT_ERROR_PACKET 0x8 #define BF_DCP_CHnSTAT_ERROR_PACKET(v) (((v) & 0x1) << 3) #define BFM_DCP_CHnSTAT_ERROR_PACKET(v) BM_DCP_CHnSTAT_ERROR_PACKET #define BF_DCP_CHnSTAT_ERROR_PACKET_V(e) BF_DCP_CHnSTAT_ERROR_PACKET(BV_DCP_CHnSTAT_ERROR_PACKET__##e) #define BFM_DCP_CHnSTAT_ERROR_PACKET_V(v) BM_DCP_CHnSTAT_ERROR_PACKET #define BP_DCP_CHnSTAT_ERROR_SETUP 2 #define BM_DCP_CHnSTAT_ERROR_SETUP 0x4 #define BF_DCP_CHnSTAT_ERROR_SETUP(v) (((v) & 0x1) << 2) #define BFM_DCP_CHnSTAT_ERROR_SETUP(v) BM_DCP_CHnSTAT_ERROR_SETUP #define BF_DCP_CHnSTAT_ERROR_SETUP_V(e) BF_DCP_CHnSTAT_ERROR_SETUP(BV_DCP_CHnSTAT_ERROR_SETUP__##e) #define BFM_DCP_CHnSTAT_ERROR_SETUP_V(v) BM_DCP_CHnSTAT_ERROR_SETUP #define BP_DCP_CHnSTAT_HASH_MISMATCH 1 #define BM_DCP_CHnSTAT_HASH_MISMATCH 0x2 #define BF_DCP_CHnSTAT_HASH_MISMATCH(v) (((v) & 0x1) << 1) #define BFM_DCP_CHnSTAT_HASH_MISMATCH(v) BM_DCP_CHnSTAT_HASH_MISMATCH #define BF_DCP_CHnSTAT_HASH_MISMATCH_V(e) BF_DCP_CHnSTAT_HASH_MISMATCH(BV_DCP_CHnSTAT_HASH_MISMATCH__##e) #define BFM_DCP_CHnSTAT_HASH_MISMATCH_V(v) BM_DCP_CHnSTAT_HASH_MISMATCH #define HW_DCP_CHnOPTS(_n1) HW(DCP_CHnOPTS(_n1)) #define HWA_DCP_CHnOPTS(_n1) (0x80028000 + 0x130 + (_n1) * 0x40) #define HWT_DCP_CHnOPTS(_n1) HWIO_32_RW #define HWN_DCP_CHnOPTS(_n1) DCP_CHnOPTS #define HWI_DCP_CHnOPTS(_n1) (_n1) #define HW_DCP_CHnOPTS_SET(_n1) HW(DCP_CHnOPTS_SET(_n1)) #define HWA_DCP_CHnOPTS_SET(_n1) (HWA_DCP_CHnOPTS(_n1) + 0x4) #define HWT_DCP_CHnOPTS_SET(_n1) HWIO_32_WO #define HWN_DCP_CHnOPTS_SET(_n1) DCP_CHnOPTS #define HWI_DCP_CHnOPTS_SET(_n1) (_n1) #define HW_DCP_CHnOPTS_CLR(_n1) HW(DCP_CHnOPTS_CLR(_n1)) #define HWA_DCP_CHnOPTS_CLR(_n1) (HWA_DCP_CHnOPTS(_n1) + 0x8) #define HWT_DCP_CHnOPTS_CLR(_n1) HWIO_32_WO #define HWN_DCP_CHnOPTS_CLR(_n1) DCP_CHnOPTS #define HWI_DCP_CHnOPTS_CLR(_n1) (_n1) #define HW_DCP_CHnOPTS_TOG(_n1) HW(DCP_CHnOPTS_TOG(_n1)) #define HWA_DCP_CHnOPTS_TOG(_n1) (HWA_DCP_CHnOPTS(_n1) + 0xc) #define HWT_DCP_CHnOPTS_TOG(_n1) HWIO_32_WO #define HWN_DCP_CHnOPTS_TOG(_n1) DCP_CHnOPTS #define HWI_DCP_CHnOPTS_TOG(_n1) (_n1) #define BP_DCP_CHnOPTS_RECOVERY_TIMER 0 #define BM_DCP_CHnOPTS_RECOVERY_TIMER 0xffff #define BF_DCP_CHnOPTS_RECOVERY_TIMER(v) (((v) & 0xffff) << 0) #define BFM_DCP_CHnOPTS_RECOVERY_TIMER(v) BM_DCP_CHnOPTS_RECOVERY_TIMER #define BF_DCP_CHnOPTS_RECOVERY_TIMER_V(e) BF_DCP_CHnOPTS_RECOVERY_TIMER(BV_DCP_CHnOPTS_RECOVERY_TIMER__##e) #define BFM_DCP_CHnOPTS_RECOVERY_TIMER_V(v) BM_DCP_CHnOPTS_RECOVERY_TIMER #define HW_DCP_CSCCTRL0 HW(DCP_CSCCTRL0) #define HWA_DCP_CSCCTRL0 (0x80028000 + 0x300) #define HWT_DCP_CSCCTRL0 HWIO_32_RW #define HWN_DCP_CSCCTRL0 DCP_CSCCTRL0 #define HWI_DCP_CSCCTRL0 #define HW_DCP_CSCCTRL0_SET HW(DCP_CSCCTRL0_SET) #define HWA_DCP_CSCCTRL0_SET (HWA_DCP_CSCCTRL0 + 0x4) #define HWT_DCP_CSCCTRL0_SET HWIO_32_WO #define HWN_DCP_CSCCTRL0_SET DCP_CSCCTRL0 #define HWI_DCP_CSCCTRL0_SET #define HW_DCP_CSCCTRL0_CLR HW(DCP_CSCCTRL0_CLR) #define HWA_DCP_CSCCTRL0_CLR (HWA_DCP_CSCCTRL0 + 0x8) #define HWT_DCP_CSCCTRL0_CLR HWIO_32_WO #define HWN_DCP_CSCCTRL0_CLR DCP_CSCCTRL0 #define HWI_DCP_CSCCTRL0_CLR #define HW_DCP_CSCCTRL0_TOG HW(DCP_CSCCTRL0_TOG) #define HWA_DCP_CSCCTRL0_TOG (HWA_DCP_CSCCTRL0 + 0xc) #define HWT_DCP_CSCCTRL0_TOG HWIO_32_WO #define HWN_DCP_CSCCTRL0_TOG DCP_CSCCTRL0 #define HWI_DCP_CSCCTRL0_TOG #define BP_DCP_CSCCTRL0_UPSAMPLE 14 #define BM_DCP_CSCCTRL0_UPSAMPLE 0x4000 #define BF_DCP_CSCCTRL0_UPSAMPLE(v) (((v) & 0x1) << 14) #define BFM_DCP_CSCCTRL0_UPSAMPLE(v) BM_DCP_CSCCTRL0_UPSAMPLE #define BF_DCP_CSCCTRL0_UPSAMPLE_V(e) BF_DCP_CSCCTRL0_UPSAMPLE(BV_DCP_CSCCTRL0_UPSAMPLE__##e) #define BFM_DCP_CSCCTRL0_UPSAMPLE_V(v) BM_DCP_CSCCTRL0_UPSAMPLE #define BP_DCP_CSCCTRL0_SCALE 13 #define BM_DCP_CSCCTRL0_SCALE 0x2000 #define BF_DCP_CSCCTRL0_SCALE(v) (((v) & 0x1) << 13) #define BFM_DCP_CSCCTRL0_SCALE(v) BM_DCP_CSCCTRL0_SCALE #define BF_DCP_CSCCTRL0_SCALE_V(e) BF_DCP_CSCCTRL0_SCALE(BV_DCP_CSCCTRL0_SCALE__##e) #define BFM_DCP_CSCCTRL0_SCALE_V(v) BM_DCP_CSCCTRL0_SCALE #define BP_DCP_CSCCTRL0_ROTATE 12 #define BM_DCP_CSCCTRL0_ROTATE 0x1000 #define BF_DCP_CSCCTRL0_ROTATE(v) (((v) & 0x1) << 12) #define BFM_DCP_CSCCTRL0_ROTATE(v) BM_DCP_CSCCTRL0_ROTATE #define BF_DCP_CSCCTRL0_ROTATE_V(e) BF_DCP_CSCCTRL0_ROTATE(BV_DCP_CSCCTRL0_ROTATE__##e) #define BFM_DCP_CSCCTRL0_ROTATE_V(v) BM_DCP_CSCCTRL0_ROTATE #define BP_DCP_CSCCTRL0_SUBSAMPLE 11 #define BM_DCP_CSCCTRL0_SUBSAMPLE 0x800 #define BF_DCP_CSCCTRL0_SUBSAMPLE(v) (((v) & 0x1) << 11) #define BFM_DCP_CSCCTRL0_SUBSAMPLE(v) BM_DCP_CSCCTRL0_SUBSAMPLE #define BF_DCP_CSCCTRL0_SUBSAMPLE_V(e) BF_DCP_CSCCTRL0_SUBSAMPLE(BV_DCP_CSCCTRL0_SUBSAMPLE__##e) #define BFM_DCP_CSCCTRL0_SUBSAMPLE_V(v) BM_DCP_CSCCTRL0_SUBSAMPLE #define BP_DCP_CSCCTRL0_DELTA 10 #define BM_DCP_CSCCTRL0_DELTA 0x400 #define BF_DCP_CSCCTRL0_DELTA(v) (((v) & 0x1) << 10) #define BFM_DCP_CSCCTRL0_DELTA(v) BM_DCP_CSCCTRL0_DELTA #define BF_DCP_CSCCTRL0_DELTA_V(e) BF_DCP_CSCCTRL0_DELTA(BV_DCP_CSCCTRL0_DELTA__##e) #define BFM_DCP_CSCCTRL0_DELTA_V(v) BM_DCP_CSCCTRL0_DELTA #define BP_DCP_CSCCTRL0_RGB_FORMAT 8 #define BM_DCP_CSCCTRL0_RGB_FORMAT 0x300 #define BV_DCP_CSCCTRL0_RGB_FORMAT__RGB16_565 0x0 #define BV_DCP_CSCCTRL0_RGB_FORMAT__RGB24 0x2 #define BV_DCP_CSCCTRL0_RGB_FORMAT__YUV422I 0x3 #define BF_DCP_CSCCTRL0_RGB_FORMAT(v) (((v) & 0x3) << 8) #define BFM_DCP_CSCCTRL0_RGB_FORMAT(v) BM_DCP_CSCCTRL0_RGB_FORMAT #define BF_DCP_CSCCTRL0_RGB_FORMAT_V(e) BF_DCP_CSCCTRL0_RGB_FORMAT(BV_DCP_CSCCTRL0_RGB_FORMAT__##e) #define BFM_DCP_CSCCTRL0_RGB_FORMAT_V(v) BM_DCP_CSCCTRL0_RGB_FORMAT #define BP_DCP_CSCCTRL0_YUV_FORMAT 4 #define BM_DCP_CSCCTRL0_YUV_FORMAT 0xf0 #define BV_DCP_CSCCTRL0_YUV_FORMAT__YUV420 0x0 #define BV_DCP_CSCCTRL0_YUV_FORMAT__YUV422 0x2 #define BF_DCP_CSCCTRL0_YUV_FORMAT(v) (((v) & 0xf) << 4) #define BFM_DCP_CSCCTRL0_YUV_FORMAT(v) BM_DCP_CSCCTRL0_YUV_FORMAT #define BF_DCP_CSCCTRL0_YUV_FORMAT_V(e) BF_DCP_CSCCTRL0_YUV_FORMAT(BV_DCP_CSCCTRL0_YUV_FORMAT__##e) #define BFM_DCP_CSCCTRL0_YUV_FORMAT_V(v) BM_DCP_CSCCTRL0_YUV_FORMAT #define BP_DCP_CSCCTRL0_ENABLE 0 #define BM_DCP_CSCCTRL0_ENABLE 0x1 #define BF_DCP_CSCCTRL0_ENABLE(v) (((v) & 0x1) << 0) #define BFM_DCP_CSCCTRL0_ENABLE(v) BM_DCP_CSCCTRL0_ENABLE #define BF_DCP_CSCCTRL0_ENABLE_V(e) BF_DCP_CSCCTRL0_ENABLE(BV_DCP_CSCCTRL0_ENABLE__##e) #define BFM_DCP_CSCCTRL0_ENABLE_V(v) BM_DCP_CSCCTRL0_ENABLE #define HW_DCP_CSCSTAT HW(DCP_CSCSTAT) #define HWA_DCP_CSCSTAT (0x80028000 + 0x310) #define HWT_DCP_CSCSTAT HWIO_32_RW #define HWN_DCP_CSCSTAT DCP_CSCSTAT #define HWI_DCP_CSCSTAT #define HW_DCP_CSCSTAT_SET HW(DCP_CSCSTAT_SET) #define HWA_DCP_CSCSTAT_SET (HWA_DCP_CSCSTAT + 0x4) #define HWT_DCP_CSCSTAT_SET HWIO_32_WO #define HWN_DCP_CSCSTAT_SET DCP_CSCSTAT #define HWI_DCP_CSCSTAT_SET #define HW_DCP_CSCSTAT_CLR HW(DCP_CSCSTAT_CLR) #define HWA_DCP_CSCSTAT_CLR (HWA_DCP_CSCSTAT + 0x8) #define HWT_DCP_CSCSTAT_CLR HWIO_32_WO #define HWN_DCP_CSCSTAT_CLR DCP_CSCSTAT #define HWI_DCP_CSCSTAT_CLR #define HW_DCP_CSCSTAT_TOG HW(DCP_CSCSTAT_TOG) #define HWA_DCP_CSCSTAT_TOG (HWA_DCP_CSCSTAT + 0xc) #define HWT_DCP_CSCSTAT_TOG HWIO_32_WO #define HWN_DCP_CSCSTAT_TOG DCP_CSCSTAT #define HWI_DCP_CSCSTAT_TOG #define BP_DCP_CSCSTAT_ERROR_CODE 16 #define BM_DCP_CSCSTAT_ERROR_CODE 0xff0000 #define BV_DCP_CSCSTAT_ERROR_CODE__LUMA0_FETCH_ERROR_Y0 0x1 #define BV_DCP_CSCSTAT_ERROR_CODE__LUMA1_FETCH_ERROR_Y1 0x2 #define BV_DCP_CSCSTAT_ERROR_CODE__CHROMA_FETCH_ERROR_U 0x3 #define BV_DCP_CSCSTAT_ERROR_CODE__CHROMA_FETCH_ERROR_V 0x4 #define BF_DCP_CSCSTAT_ERROR_CODE(v) (((v) & 0xff) << 16) #define BFM_DCP_CSCSTAT_ERROR_CODE(v) BM_DCP_CSCSTAT_ERROR_CODE #define BF_DCP_CSCSTAT_ERROR_CODE_V(e) BF_DCP_CSCSTAT_ERROR_CODE(BV_DCP_CSCSTAT_ERROR_CODE__##e) #define BFM_DCP_CSCSTAT_ERROR_CODE_V(v) BM_DCP_CSCSTAT_ERROR_CODE #define BP_DCP_CSCSTAT_ERROR_DST 5 #define BM_DCP_CSCSTAT_ERROR_DST 0x20 #define BF_DCP_CSCSTAT_ERROR_DST(v) (((v) & 0x1) << 5) #define BFM_DCP_CSCSTAT_ERROR_DST(v) BM_DCP_CSCSTAT_ERROR_DST #define BF_DCP_CSCSTAT_ERROR_DST_V(e) BF_DCP_CSCSTAT_ERROR_DST(BV_DCP_CSCSTAT_ERROR_DST__##e) #define BFM_DCP_CSCSTAT_ERROR_DST_V(v) BM_DCP_CSCSTAT_ERROR_DST #define BP_DCP_CSCSTAT_ERROR_SRC 4 #define BM_DCP_CSCSTAT_ERROR_SRC 0x10 #define BF_DCP_CSCSTAT_ERROR_SRC(v) (((v) & 0x1) << 4) #define BFM_DCP_CSCSTAT_ERROR_SRC(v) BM_DCP_CSCSTAT_ERROR_SRC #define BF_DCP_CSCSTAT_ERROR_SRC_V(e) BF_DCP_CSCSTAT_ERROR_SRC(BV_DCP_CSCSTAT_ERROR_SRC__##e) #define BFM_DCP_CSCSTAT_ERROR_SRC_V(v) BM_DCP_CSCSTAT_ERROR_SRC #define BP_DCP_CSCSTAT_ERROR_SETUP 2 #define BM_DCP_CSCSTAT_ERROR_SETUP 0x4 #define BF_DCP_CSCSTAT_ERROR_SETUP(v) (((v) & 0x1) << 2) #define BFM_DCP_CSCSTAT_ERROR_SETUP(v) BM_DCP_CSCSTAT_ERROR_SETUP #define BF_DCP_CSCSTAT_ERROR_SETUP_V(e) BF_DCP_CSCSTAT_ERROR_SETUP(BV_DCP_CSCSTAT_ERROR_SETUP__##e) #define BFM_DCP_CSCSTAT_ERROR_SETUP_V(v) BM_DCP_CSCSTAT_ERROR_SETUP #define BP_DCP_CSCSTAT_COMPLETE 0 #define BM_DCP_CSCSTAT_COMPLETE 0x1 #define BF_DCP_CSCSTAT_COMPLETE(v) (((v) & 0x1) << 0) #define BFM_DCP_CSCSTAT_COMPLETE(v) BM_DCP_CSCSTAT_COMPLETE #define BF_DCP_CSCSTAT_COMPLETE_V(e) BF_DCP_CSCSTAT_COMPLETE(BV_DCP_CSCSTAT_COMPLETE__##e) #define BFM_DCP_CSCSTAT_COMPLETE_V(v) BM_DCP_CSCSTAT_COMPLETE #define HW_DCP_CSCOUTBUFPARAM HW(DCP_CSCOUTBUFPARAM) #define HWA_DCP_CSCOUTBUFPARAM (0x80028000 + 0x320) #define HWT_DCP_CSCOUTBUFPARAM HWIO_32_RW #define HWN_DCP_CSCOUTBUFPARAM DCP_CSCOUTBUFPARAM #define HWI_DCP_CSCOUTBUFPARAM #define BP_DCP_CSCOUTBUFPARAM_FIELD_SIZE 12 #define BM_DCP_CSCOUTBUFPARAM_FIELD_SIZE 0xfff000 #define BF_DCP_CSCOUTBUFPARAM_FIELD_SIZE(v) (((v) & 0xfff) << 12) #define BFM_DCP_CSCOUTBUFPARAM_FIELD_SIZE(v) BM_DCP_CSCOUTBUFPARAM_FIELD_SIZE #define BF_DCP_CSCOUTBUFPARAM_FIELD_SIZE_V(e) BF_DCP_CSCOUTBUFPARAM_FIELD_SIZE(BV_DCP_CSCOUTBUFPARAM_FIELD_SIZE__##e) #define BFM_DCP_CSCOUTBUFPARAM_FIELD_SIZE_V(v) BM_DCP_CSCOUTBUFPARAM_FIELD_SIZE #define BP_DCP_CSCOUTBUFPARAM_LINE_SIZE 0 #define BM_DCP_CSCOUTBUFPARAM_LINE_SIZE 0xfff #define BF_DCP_CSCOUTBUFPARAM_LINE_SIZE(v) (((v) & 0xfff) << 0) #define BFM_DCP_CSCOUTBUFPARAM_LINE_SIZE(v) BM_DCP_CSCOUTBUFPARAM_LINE_SIZE #define BF_DCP_CSCOUTBUFPARAM_LINE_SIZE_V(e) BF_DCP_CSCOUTBUFPARAM_LINE_SIZE(BV_DCP_CSCOUTBUFPARAM_LINE_SIZE__##e) #define BFM_DCP_CSCOUTBUFPARAM_LINE_SIZE_V(v) BM_DCP_CSCOUTBUFPARAM_LINE_SIZE #define HW_DCP_CSCINBUFPARAM HW(DCP_CSCINBUFPARAM) #define HWA_DCP_CSCINBUFPARAM (0x80028000 + 0x330) #define HWT_DCP_CSCINBUFPARAM HWIO_32_RW #define HWN_DCP_CSCINBUFPARAM DCP_CSCINBUFPARAM #define HWI_DCP_CSCINBUFPARAM #define BP_DCP_CSCINBUFPARAM_LINE_SIZE 0 #define BM_DCP_CSCINBUFPARAM_LINE_SIZE 0xfff #define BF_DCP_CSCINBUFPARAM_LINE_SIZE(v) (((v) & 0xfff) << 0) #define BFM_DCP_CSCINBUFPARAM_LINE_SIZE(v) BM_DCP_CSCINBUFPARAM_LINE_SIZE #define BF_DCP_CSCINBUFPARAM_LINE_SIZE_V(e) BF_DCP_CSCINBUFPARAM_LINE_SIZE(BV_DCP_CSCINBUFPARAM_LINE_SIZE__##e) #define BFM_DCP_CSCINBUFPARAM_LINE_SIZE_V(v) BM_DCP_CSCINBUFPARAM_LINE_SIZE #define HW_DCP_CSCRGB HW(DCP_CSCRGB) #define HWA_DCP_CSCRGB (0x80028000 + 0x340) #define HWT_DCP_CSCRGB HWIO_32_RW #define HWN_DCP_CSCRGB DCP_CSCRGB #define HWI_DCP_CSCRGB #define BP_DCP_CSCRGB_ADDR 0 #define BM_DCP_CSCRGB_ADDR 0xffffffff #define BF_DCP_CSCRGB_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_CSCRGB_ADDR(v) BM_DCP_CSCRGB_ADDR #define BF_DCP_CSCRGB_ADDR_V(e) BF_DCP_CSCRGB_ADDR(BV_DCP_CSCRGB_ADDR__##e) #define BFM_DCP_CSCRGB_ADDR_V(v) BM_DCP_CSCRGB_ADDR #define HW_DCP_CSCLUMA HW(DCP_CSCLUMA) #define HWA_DCP_CSCLUMA (0x80028000 + 0x350) #define HWT_DCP_CSCLUMA HWIO_32_RW #define HWN_DCP_CSCLUMA DCP_CSCLUMA #define HWI_DCP_CSCLUMA #define BP_DCP_CSCLUMA_ADDR 0 #define BM_DCP_CSCLUMA_ADDR 0xffffffff #define BF_DCP_CSCLUMA_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_CSCLUMA_ADDR(v) BM_DCP_CSCLUMA_ADDR #define BF_DCP_CSCLUMA_ADDR_V(e) BF_DCP_CSCLUMA_ADDR(BV_DCP_CSCLUMA_ADDR__##e) #define BFM_DCP_CSCLUMA_ADDR_V(v) BM_DCP_CSCLUMA_ADDR #define HW_DCP_CSCCHROMAU HW(DCP_CSCCHROMAU) #define HWA_DCP_CSCCHROMAU (0x80028000 + 0x360) #define HWT_DCP_CSCCHROMAU HWIO_32_RW #define HWN_DCP_CSCCHROMAU DCP_CSCCHROMAU #define HWI_DCP_CSCCHROMAU #define BP_DCP_CSCCHROMAU_ADDR 0 #define BM_DCP_CSCCHROMAU_ADDR 0xffffffff #define BF_DCP_CSCCHROMAU_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_CSCCHROMAU_ADDR(v) BM_DCP_CSCCHROMAU_ADDR #define BF_DCP_CSCCHROMAU_ADDR_V(e) BF_DCP_CSCCHROMAU_ADDR(BV_DCP_CSCCHROMAU_ADDR__##e) #define BFM_DCP_CSCCHROMAU_ADDR_V(v) BM_DCP_CSCCHROMAU_ADDR #define HW_DCP_CSCCHROMAV HW(DCP_CSCCHROMAV) #define HWA_DCP_CSCCHROMAV (0x80028000 + 0x370) #define HWT_DCP_CSCCHROMAV HWIO_32_RW #define HWN_DCP_CSCCHROMAV DCP_CSCCHROMAV #define HWI_DCP_CSCCHROMAV #define BP_DCP_CSCCHROMAV_ADDR 0 #define BM_DCP_CSCCHROMAV_ADDR 0xffffffff #define BF_DCP_CSCCHROMAV_ADDR(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_CSCCHROMAV_ADDR(v) BM_DCP_CSCCHROMAV_ADDR #define BF_DCP_CSCCHROMAV_ADDR_V(e) BF_DCP_CSCCHROMAV_ADDR(BV_DCP_CSCCHROMAV_ADDR__##e) #define BFM_DCP_CSCCHROMAV_ADDR_V(v) BM_DCP_CSCCHROMAV_ADDR #define HW_DCP_CSCCOEFF0 HW(DCP_CSCCOEFF0) #define HWA_DCP_CSCCOEFF0 (0x80028000 + 0x380) #define HWT_DCP_CSCCOEFF0 HWIO_32_RW #define HWN_DCP_CSCCOEFF0 DCP_CSCCOEFF0 #define HWI_DCP_CSCCOEFF0 #define BP_DCP_CSCCOEFF0_C0 16 #define BM_DCP_CSCCOEFF0_C0 0x3ff0000 #define BF_DCP_CSCCOEFF0_C0(v) (((v) & 0x3ff) << 16) #define BFM_DCP_CSCCOEFF0_C0(v) BM_DCP_CSCCOEFF0_C0 #define BF_DCP_CSCCOEFF0_C0_V(e) BF_DCP_CSCCOEFF0_C0(BV_DCP_CSCCOEFF0_C0__##e) #define BFM_DCP_CSCCOEFF0_C0_V(v) BM_DCP_CSCCOEFF0_C0 #define BP_DCP_CSCCOEFF0_UV_OFFSET 8 #define BM_DCP_CSCCOEFF0_UV_OFFSET 0xff00 #define BF_DCP_CSCCOEFF0_UV_OFFSET(v) (((v) & 0xff) << 8) #define BFM_DCP_CSCCOEFF0_UV_OFFSET(v) BM_DCP_CSCCOEFF0_UV_OFFSET #define BF_DCP_CSCCOEFF0_UV_OFFSET_V(e) BF_DCP_CSCCOEFF0_UV_OFFSET(BV_DCP_CSCCOEFF0_UV_OFFSET__##e) #define BFM_DCP_CSCCOEFF0_UV_OFFSET_V(v) BM_DCP_CSCCOEFF0_UV_OFFSET #define BP_DCP_CSCCOEFF0_Y_OFFSET 0 #define BM_DCP_CSCCOEFF0_Y_OFFSET 0xff #define BF_DCP_CSCCOEFF0_Y_OFFSET(v) (((v) & 0xff) << 0) #define BFM_DCP_CSCCOEFF0_Y_OFFSET(v) BM_DCP_CSCCOEFF0_Y_OFFSET #define BF_DCP_CSCCOEFF0_Y_OFFSET_V(e) BF_DCP_CSCCOEFF0_Y_OFFSET(BV_DCP_CSCCOEFF0_Y_OFFSET__##e) #define BFM_DCP_CSCCOEFF0_Y_OFFSET_V(v) BM_DCP_CSCCOEFF0_Y_OFFSET #define HW_DCP_CSCCOEFF1 HW(DCP_CSCCOEFF1) #define HWA_DCP_CSCCOEFF1 (0x80028000 + 0x390) #define HWT_DCP_CSCCOEFF1 HWIO_32_RW #define HWN_DCP_CSCCOEFF1 DCP_CSCCOEFF1 #define HWI_DCP_CSCCOEFF1 #define BP_DCP_CSCCOEFF1_C1 16 #define BM_DCP_CSCCOEFF1_C1 0x3ff0000 #define BF_DCP_CSCCOEFF1_C1(v) (((v) & 0x3ff) << 16) #define BFM_DCP_CSCCOEFF1_C1(v) BM_DCP_CSCCOEFF1_C1 #define BF_DCP_CSCCOEFF1_C1_V(e) BF_DCP_CSCCOEFF1_C1(BV_DCP_CSCCOEFF1_C1__##e) #define BFM_DCP_CSCCOEFF1_C1_V(v) BM_DCP_CSCCOEFF1_C1 #define BP_DCP_CSCCOEFF1_C4 0 #define BM_DCP_CSCCOEFF1_C4 0x3ff #define BF_DCP_CSCCOEFF1_C4(v) (((v) & 0x3ff) << 0) #define BFM_DCP_CSCCOEFF1_C4(v) BM_DCP_CSCCOEFF1_C4 #define BF_DCP_CSCCOEFF1_C4_V(e) BF_DCP_CSCCOEFF1_C4(BV_DCP_CSCCOEFF1_C4__##e) #define BFM_DCP_CSCCOEFF1_C4_V(v) BM_DCP_CSCCOEFF1_C4 #define HW_DCP_CSCCOEFF2 HW(DCP_CSCCOEFF2) #define HWA_DCP_CSCCOEFF2 (0x80028000 + 0x3a0) #define HWT_DCP_CSCCOEFF2 HWIO_32_RW #define HWN_DCP_CSCCOEFF2 DCP_CSCCOEFF2 #define HWI_DCP_CSCCOEFF2 #define BP_DCP_CSCCOEFF2_C2 16 #define BM_DCP_CSCCOEFF2_C2 0x3ff0000 #define BF_DCP_CSCCOEFF2_C2(v) (((v) & 0x3ff) << 16) #define BFM_DCP_CSCCOEFF2_C2(v) BM_DCP_CSCCOEFF2_C2 #define BF_DCP_CSCCOEFF2_C2_V(e) BF_DCP_CSCCOEFF2_C2(BV_DCP_CSCCOEFF2_C2__##e) #define BFM_DCP_CSCCOEFF2_C2_V(v) BM_DCP_CSCCOEFF2_C2 #define BP_DCP_CSCCOEFF2_C3 0 #define BM_DCP_CSCCOEFF2_C3 0x3ff #define BF_DCP_CSCCOEFF2_C3(v) (((v) & 0x3ff) << 0) #define BFM_DCP_CSCCOEFF2_C3(v) BM_DCP_CSCCOEFF2_C3 #define BF_DCP_CSCCOEFF2_C3_V(e) BF_DCP_CSCCOEFF2_C3(BV_DCP_CSCCOEFF2_C3__##e) #define BFM_DCP_CSCCOEFF2_C3_V(v) BM_DCP_CSCCOEFF2_C3 #define HW_DCP_CSCXSCALE HW(DCP_CSCXSCALE) #define HWA_DCP_CSCXSCALE (0x80028000 + 0x3e0) #define HWT_DCP_CSCXSCALE HWIO_32_RW #define HWN_DCP_CSCXSCALE DCP_CSCXSCALE #define HWI_DCP_CSCXSCALE #define BP_DCP_CSCXSCALE_INT 24 #define BM_DCP_CSCXSCALE_INT 0x3000000 #define BF_DCP_CSCXSCALE_INT(v) (((v) & 0x3) << 24) #define BFM_DCP_CSCXSCALE_INT(v) BM_DCP_CSCXSCALE_INT #define BF_DCP_CSCXSCALE_INT_V(e) BF_DCP_CSCXSCALE_INT(BV_DCP_CSCXSCALE_INT__##e) #define BFM_DCP_CSCXSCALE_INT_V(v) BM_DCP_CSCXSCALE_INT #define BP_DCP_CSCXSCALE_FRAC 12 #define BM_DCP_CSCXSCALE_FRAC 0xfff000 #define BF_DCP_CSCXSCALE_FRAC(v) (((v) & 0xfff) << 12) #define BFM_DCP_CSCXSCALE_FRAC(v) BM_DCP_CSCXSCALE_FRAC #define BF_DCP_CSCXSCALE_FRAC_V(e) BF_DCP_CSCXSCALE_FRAC(BV_DCP_CSCXSCALE_FRAC__##e) #define BFM_DCP_CSCXSCALE_FRAC_V(v) BM_DCP_CSCXSCALE_FRAC #define BP_DCP_CSCXSCALE_WIDTH 0 #define BM_DCP_CSCXSCALE_WIDTH 0xfff #define BF_DCP_CSCXSCALE_WIDTH(v) (((v) & 0xfff) << 0) #define BFM_DCP_CSCXSCALE_WIDTH(v) BM_DCP_CSCXSCALE_WIDTH #define BF_DCP_CSCXSCALE_WIDTH_V(e) BF_DCP_CSCXSCALE_WIDTH(BV_DCP_CSCXSCALE_WIDTH__##e) #define BFM_DCP_CSCXSCALE_WIDTH_V(v) BM_DCP_CSCXSCALE_WIDTH #define HW_DCP_CSCYSCALE HW(DCP_CSCYSCALE) #define HWA_DCP_CSCYSCALE (0x80028000 + 0x3f0) #define HWT_DCP_CSCYSCALE HWIO_32_RW #define HWN_DCP_CSCYSCALE DCP_CSCYSCALE #define HWI_DCP_CSCYSCALE #define BP_DCP_CSCYSCALE_INT 24 #define BM_DCP_CSCYSCALE_INT 0x3000000 #define BF_DCP_CSCYSCALE_INT(v) (((v) & 0x3) << 24) #define BFM_DCP_CSCYSCALE_INT(v) BM_DCP_CSCYSCALE_INT #define BF_DCP_CSCYSCALE_INT_V(e) BF_DCP_CSCYSCALE_INT(BV_DCP_CSCYSCALE_INT__##e) #define BFM_DCP_CSCYSCALE_INT_V(v) BM_DCP_CSCYSCALE_INT #define BP_DCP_CSCYSCALE_FRAC 12 #define BM_DCP_CSCYSCALE_FRAC 0xfff000 #define BF_DCP_CSCYSCALE_FRAC(v) (((v) & 0xfff) << 12) #define BFM_DCP_CSCYSCALE_FRAC(v) BM_DCP_CSCYSCALE_FRAC #define BF_DCP_CSCYSCALE_FRAC_V(e) BF_DCP_CSCYSCALE_FRAC(BV_DCP_CSCYSCALE_FRAC__##e) #define BFM_DCP_CSCYSCALE_FRAC_V(v) BM_DCP_CSCYSCALE_FRAC #define BP_DCP_CSCYSCALE_HEIGHT 0 #define BM_DCP_CSCYSCALE_HEIGHT 0xfff #define BF_DCP_CSCYSCALE_HEIGHT(v) (((v) & 0xfff) << 0) #define BFM_DCP_CSCYSCALE_HEIGHT(v) BM_DCP_CSCYSCALE_HEIGHT #define BF_DCP_CSCYSCALE_HEIGHT_V(e) BF_DCP_CSCYSCALE_HEIGHT(BV_DCP_CSCYSCALE_HEIGHT__##e) #define BFM_DCP_CSCYSCALE_HEIGHT_V(v) BM_DCP_CSCYSCALE_HEIGHT #define HW_DCP_DBGSELECT HW(DCP_DBGSELECT) #define HWA_DCP_DBGSELECT (0x80028000 + 0x400) #define HWT_DCP_DBGSELECT HWIO_32_RW #define HWN_DCP_DBGSELECT DCP_DBGSELECT #define HWI_DCP_DBGSELECT #define BP_DCP_DBGSELECT_INDEX 0 #define BM_DCP_DBGSELECT_INDEX 0xff #define BV_DCP_DBGSELECT_INDEX__CONTROL 0x1 #define BV_DCP_DBGSELECT_INDEX__OTPKEY0 0x10 #define BV_DCP_DBGSELECT_INDEX__OTPKEY1 0x11 #define BV_DCP_DBGSELECT_INDEX__OTPKEY2 0x12 #define BV_DCP_DBGSELECT_INDEX__OTPKEY3 0x13 #define BF_DCP_DBGSELECT_INDEX(v) (((v) & 0xff) << 0) #define BFM_DCP_DBGSELECT_INDEX(v) BM_DCP_DBGSELECT_INDEX #define BF_DCP_DBGSELECT_INDEX_V(e) BF_DCP_DBGSELECT_INDEX(BV_DCP_DBGSELECT_INDEX__##e) #define BFM_DCP_DBGSELECT_INDEX_V(v) BM_DCP_DBGSELECT_INDEX #define HW_DCP_DBGDATA HW(DCP_DBGDATA) #define HWA_DCP_DBGDATA (0x80028000 + 0x410) #define HWT_DCP_DBGDATA HWIO_32_RW #define HWN_DCP_DBGDATA DCP_DBGDATA #define HWI_DCP_DBGDATA #define BP_DCP_DBGDATA_DATA 0 #define BM_DCP_DBGDATA_DATA 0xffffffff #define BF_DCP_DBGDATA_DATA(v) (((v) & 0xffffffff) << 0) #define BFM_DCP_DBGDATA_DATA(v) BM_DCP_DBGDATA_DATA #define BF_DCP_DBGDATA_DATA_V(e) BF_DCP_DBGDATA_DATA(BV_DCP_DBGDATA_DATA__##e) #define BFM_DCP_DBGDATA_DATA_V(v) BM_DCP_DBGDATA_DATA #define HW_DCP_VERSION HW(DCP_VERSION) #define HWA_DCP_VERSION (0x80028000 + 0x420) #define HWT_DCP_VERSION HWIO_32_RW #define HWN_DCP_VERSION DCP_VERSION #define HWI_DCP_VERSION #define BP_DCP_VERSION_MAJOR 24 #define BM_DCP_VERSION_MAJOR 0xff000000 #define BF_DCP_VERSION_MAJOR(v) (((v) & 0xff) << 24) #define BFM_DCP_VERSION_MAJOR(v) BM_DCP_VERSION_MAJOR #define BF_DCP_VERSION_MAJOR_V(e) BF_DCP_VERSION_MAJOR(BV_DCP_VERSION_MAJOR__##e) #define BFM_DCP_VERSION_MAJOR_V(v) BM_DCP_VERSION_MAJOR #define BP_DCP_VERSION_MINOR 16 #define BM_DCP_VERSION_MINOR 0xff0000 #define BF_DCP_VERSION_MINOR(v) (((v) & 0xff) << 16) #define BFM_DCP_VERSION_MINOR(v) BM_DCP_VERSION_MINOR #define BF_DCP_VERSION_MINOR_V(e) BF_DCP_VERSION_MINOR(BV_DCP_VERSION_MINOR__##e) #define BFM_DCP_VERSION_MINOR_V(v) BM_DCP_VERSION_MINOR #define BP_DCP_VERSION_STEP 0 #define BM_DCP_VERSION_STEP 0xffff #define BF_DCP_VERSION_STEP(v) (((v) & 0xffff) << 0) #define BFM_DCP_VERSION_STEP(v) BM_DCP_VERSION_STEP #define BF_DCP_VERSION_STEP_V(e) BF_DCP_VERSION_STEP(BV_DCP_VERSION_STEP__##e) #define BFM_DCP_VERSION_STEP_V(v) BM_DCP_VERSION_STEP #endif /* __HEADERGEN_STMP3700_DCP_H__*/