Bryan Wu | 19381f0 | 2007-05-21 18:09:31 +0800 | [diff] [blame] | 1 | /* |
| 2 | * File: include/asm-blackfin/mach-bf549/cdefBF549.h |
| 3 | * Based on: |
| 4 | * Author: |
| 5 | * |
| 6 | * Created: |
| 7 | * Description: |
| 8 | * |
| 9 | * Rev: |
| 10 | * |
| 11 | * Modified: |
| 12 | * |
| 13 | * Bugs: Enter bugs at http://blackfin.uclinux.org/ |
| 14 | * |
| 15 | * This program is free software; you can redistribute it and/or modify |
| 16 | * it under the terms of the GNU General Public License as published by |
| 17 | * the Free Software Foundation; either version 2, or (at your option) |
| 18 | * any later version. |
| 19 | * |
| 20 | * This program is distributed in the hope that it will be useful, |
| 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 | * GNU General Public License for more details. |
| 24 | * |
| 25 | * You should have received a copy of the GNU General Public License |
| 26 | * along with this program; see the file COPYING. |
| 27 | * If not, write to the Free Software Foundation, |
| 28 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 29 | */ |
| 30 | |
| 31 | #ifndef _CDEF_BF549_H |
| 32 | #define _CDEF_BF549_H |
| 33 | |
| 34 | /* include all Core registers and bit definitions */ |
| 35 | #include "defBF549.h" |
| 36 | |
| 37 | /* include core sbfin_read_()ecific register pointer definitions */ |
Bryan Wu | 639f657 | 2008-08-27 10:51:02 +0800 | [diff] [blame] | 38 | #include <asm/cdef_LPBlackfin.h> |
Bryan Wu | 19381f0 | 2007-05-21 18:09:31 +0800 | [diff] [blame] | 39 | |
| 40 | /* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF549 */ |
| 41 | |
| 42 | /* include cdefBF54x_base.h for the set of #defines that are common to all ADSP-BF54x bfin_read_()rocessors */ |
| 43 | #include "cdefBF54x_base.h" |
| 44 | |
| 45 | /* The following are the #defines needed by ADSP-BF549 that are not in the common header */ |
| 46 | |
| 47 | /* Timer Registers */ |
| 48 | |
| 49 | #define bfin_read_TIMER8_CONFIG() bfin_read16(TIMER8_CONFIG) |
| 50 | #define bfin_write_TIMER8_CONFIG(val) bfin_write16(TIMER8_CONFIG, val) |
| 51 | #define bfin_read_TIMER8_COUNTER() bfin_read32(TIMER8_COUNTER) |
| 52 | #define bfin_write_TIMER8_COUNTER(val) bfin_write32(TIMER8_COUNTER, val) |
| 53 | #define bfin_read_TIMER8_PERIOD() bfin_read32(TIMER8_PERIOD) |
| 54 | #define bfin_write_TIMER8_PERIOD(val) bfin_write32(TIMER8_PERIOD, val) |
| 55 | #define bfin_read_TIMER8_WIDTH() bfin_read32(TIMER8_WIDTH) |
| 56 | #define bfin_write_TIMER8_WIDTH(val) bfin_write32(TIMER8_WIDTH, val) |
| 57 | #define bfin_read_TIMER9_CONFIG() bfin_read16(TIMER9_CONFIG) |
| 58 | #define bfin_write_TIMER9_CONFIG(val) bfin_write16(TIMER9_CONFIG, val) |
| 59 | #define bfin_read_TIMER9_COUNTER() bfin_read32(TIMER9_COUNTER) |
| 60 | #define bfin_write_TIMER9_COUNTER(val) bfin_write32(TIMER9_COUNTER, val) |
| 61 | #define bfin_read_TIMER9_PERIOD() bfin_read32(TIMER9_PERIOD) |
| 62 | #define bfin_write_TIMER9_PERIOD(val) bfin_write32(TIMER9_PERIOD, val) |
| 63 | #define bfin_read_TIMER9_WIDTH() bfin_read32(TIMER9_WIDTH) |
| 64 | #define bfin_write_TIMER9_WIDTH(val) bfin_write32(TIMER9_WIDTH, val) |
| 65 | #define bfin_read_TIMER10_CONFIG() bfin_read16(TIMER10_CONFIG) |
| 66 | #define bfin_write_TIMER10_CONFIG(val) bfin_write16(TIMER10_CONFIG, val) |
| 67 | #define bfin_read_TIMER10_COUNTER() bfin_read32(TIMER10_COUNTER) |
| 68 | #define bfin_write_TIMER10_COUNTER(val) bfin_write32(TIMER10_COUNTER, val) |
| 69 | #define bfin_read_TIMER10_PERIOD() bfin_read32(TIMER10_PERIOD) |
| 70 | #define bfin_write_TIMER10_PERIOD(val) bfin_write32(TIMER10_PERIOD, val) |
| 71 | #define bfin_read_TIMER10_WIDTH() bfin_read32(TIMER10_WIDTH) |
| 72 | #define bfin_write_TIMER10_WIDTH(val) bfin_write32(TIMER10_WIDTH, val) |
| 73 | |
| 74 | /* Timer Groubfin_read_() of 3 */ |
| 75 | |
| 76 | #define bfin_read_TIMER_ENABLE1() bfin_read16(TIMER_ENABLE1) |
| 77 | #define bfin_write_TIMER_ENABLE1(val) bfin_write16(TIMER_ENABLE1, val) |
| 78 | #define bfin_read_TIMER_DISABLE1() bfin_read16(TIMER_DISABLE1) |
| 79 | #define bfin_write_TIMER_DISABLE1(val) bfin_write16(TIMER_DISABLE1, val) |
| 80 | #define bfin_read_TIMER_STATUS1() bfin_read32(TIMER_STATUS1) |
| 81 | #define bfin_write_TIMER_STATUS1(val) bfin_write32(TIMER_STATUS1, val) |
| 82 | |
| 83 | /* SPORT0 Registers */ |
| 84 | |
| 85 | #define bfin_read_SPORT0_TCR1() bfin_read16(SPORT0_TCR1) |
| 86 | #define bfin_write_SPORT0_TCR1(val) bfin_write16(SPORT0_TCR1, val) |
| 87 | #define bfin_read_SPORT0_TCR2() bfin_read16(SPORT0_TCR2) |
| 88 | #define bfin_write_SPORT0_TCR2(val) bfin_write16(SPORT0_TCR2, val) |
| 89 | #define bfin_read_SPORT0_TCLKDIV() bfin_read16(SPORT0_TCLKDIV) |
| 90 | #define bfin_write_SPORT0_TCLKDIV(val) bfin_write16(SPORT0_TCLKDIV, val) |
| 91 | #define bfin_read_SPORT0_TFSDIV() bfin_read16(SPORT0_TFSDIV) |
| 92 | #define bfin_write_SPORT0_TFSDIV(val) bfin_write16(SPORT0_TFSDIV, val) |
| 93 | #define bfin_read_SPORT0_TX() bfin_read32(SPORT0_TX) |
| 94 | #define bfin_write_SPORT0_TX(val) bfin_write32(SPORT0_TX, val) |
| 95 | #define bfin_read_SPORT0_RX() bfin_read32(SPORT0_RX) |
| 96 | #define bfin_write_SPORT0_RX(val) bfin_write32(SPORT0_RX, val) |
| 97 | #define bfin_read_SPORT0_RCR1() bfin_read16(SPORT0_RCR1) |
| 98 | #define bfin_write_SPORT0_RCR1(val) bfin_write16(SPORT0_RCR1, val) |
| 99 | #define bfin_read_SPORT0_RCR2() bfin_read16(SPORT0_RCR2) |
| 100 | #define bfin_write_SPORT0_RCR2(val) bfin_write16(SPORT0_RCR2, val) |
| 101 | #define bfin_read_SPORT0_RCLKDIV() bfin_read16(SPORT0_RCLKDIV) |
| 102 | #define bfin_write_SPORT0_RCLKDIV(val) bfin_write16(SPORT0_RCLKDIV, val) |
| 103 | #define bfin_read_SPORT0_RFSDIV() bfin_read16(SPORT0_RFSDIV) |
| 104 | #define bfin_write_SPORT0_RFSDIV(val) bfin_write16(SPORT0_RFSDIV, val) |
| 105 | #define bfin_read_SPORT0_STAT() bfin_read16(SPORT0_STAT) |
| 106 | #define bfin_write_SPORT0_STAT(val) bfin_write16(SPORT0_STAT, val) |
| 107 | #define bfin_read_SPORT0_CHNL() bfin_read16(SPORT0_CHNL) |
| 108 | #define bfin_write_SPORT0_CHNL(val) bfin_write16(SPORT0_CHNL, val) |
| 109 | #define bfin_read_SPORT0_MCMC1() bfin_read16(SPORT0_MCMC1) |
| 110 | #define bfin_write_SPORT0_MCMC1(val) bfin_write16(SPORT0_MCMC1, val) |
| 111 | #define bfin_read_SPORT0_MCMC2() bfin_read16(SPORT0_MCMC2) |
| 112 | #define bfin_write_SPORT0_MCMC2(val) bfin_write16(SPORT0_MCMC2, val) |
| 113 | #define bfin_read_SPORT0_MTCS0() bfin_read32(SPORT0_MTCS0) |
| 114 | #define bfin_write_SPORT0_MTCS0(val) bfin_write32(SPORT0_MTCS0, val) |
| 115 | #define bfin_read_SPORT0_MTCS1() bfin_read32(SPORT0_MTCS1) |
| 116 | #define bfin_write_SPORT0_MTCS1(val) bfin_write32(SPORT0_MTCS1, val) |
| 117 | #define bfin_read_SPORT0_MTCS2() bfin_read32(SPORT0_MTCS2) |
| 118 | #define bfin_write_SPORT0_MTCS2(val) bfin_write32(SPORT0_MTCS2, val) |
| 119 | #define bfin_read_SPORT0_MTCS3() bfin_read32(SPORT0_MTCS3) |
| 120 | #define bfin_write_SPORT0_MTCS3(val) bfin_write32(SPORT0_MTCS3, val) |
| 121 | #define bfin_read_SPORT0_MRCS0() bfin_read32(SPORT0_MRCS0) |
| 122 | #define bfin_write_SPORT0_MRCS0(val) bfin_write32(SPORT0_MRCS0, val) |
| 123 | #define bfin_read_SPORT0_MRCS1() bfin_read32(SPORT0_MRCS1) |
| 124 | #define bfin_write_SPORT0_MRCS1(val) bfin_write32(SPORT0_MRCS1, val) |
| 125 | #define bfin_read_SPORT0_MRCS2() bfin_read32(SPORT0_MRCS2) |
| 126 | #define bfin_write_SPORT0_MRCS2(val) bfin_write32(SPORT0_MRCS2, val) |
| 127 | #define bfin_read_SPORT0_MRCS3() bfin_read32(SPORT0_MRCS3) |
| 128 | #define bfin_write_SPORT0_MRCS3(val) bfin_write32(SPORT0_MRCS3, val) |
| 129 | |
| 130 | /* EPPI0 Registers */ |
| 131 | |
| 132 | #define bfin_read_EPPI0_STATUS() bfin_read16(EPPI0_STATUS) |
| 133 | #define bfin_write_EPPI0_STATUS(val) bfin_write16(EPPI0_STATUS, val) |
| 134 | #define bfin_read_EPPI0_HCOUNT() bfin_read16(EPPI0_HCOUNT) |
| 135 | #define bfin_write_EPPI0_HCOUNT(val) bfin_write16(EPPI0_HCOUNT, val) |
| 136 | #define bfin_read_EPPI0_HDELAY() bfin_read16(EPPI0_HDELAY) |
| 137 | #define bfin_write_EPPI0_HDELAY(val) bfin_write16(EPPI0_HDELAY, val) |
| 138 | #define bfin_read_EPPI0_VCOUNT() bfin_read16(EPPI0_VCOUNT) |
| 139 | #define bfin_write_EPPI0_VCOUNT(val) bfin_write16(EPPI0_VCOUNT, val) |
| 140 | #define bfin_read_EPPI0_VDELAY() bfin_read16(EPPI0_VDELAY) |
| 141 | #define bfin_write_EPPI0_VDELAY(val) bfin_write16(EPPI0_VDELAY, val) |
| 142 | #define bfin_read_EPPI0_FRAME() bfin_read16(EPPI0_FRAME) |
| 143 | #define bfin_write_EPPI0_FRAME(val) bfin_write16(EPPI0_FRAME, val) |
| 144 | #define bfin_read_EPPI0_LINE() bfin_read16(EPPI0_LINE) |
| 145 | #define bfin_write_EPPI0_LINE(val) bfin_write16(EPPI0_LINE, val) |
| 146 | #define bfin_read_EPPI0_CLKDIV() bfin_read16(EPPI0_CLKDIV) |
| 147 | #define bfin_write_EPPI0_CLKDIV(val) bfin_write16(EPPI0_CLKDIV, val) |
| 148 | #define bfin_read_EPPI0_CONTROL() bfin_read32(EPPI0_CONTROL) |
| 149 | #define bfin_write_EPPI0_CONTROL(val) bfin_write32(EPPI0_CONTROL, val) |
| 150 | #define bfin_read_EPPI0_FS1W_HBL() bfin_read32(EPPI0_FS1W_HBL) |
| 151 | #define bfin_write_EPPI0_FS1W_HBL(val) bfin_write32(EPPI0_FS1W_HBL, val) |
| 152 | #define bfin_read_EPPI0_FS1P_AVPL() bfin_read32(EPPI0_FS1P_AVPL) |
| 153 | #define bfin_write_EPPI0_FS1P_AVPL(val) bfin_write32(EPPI0_FS1P_AVPL, val) |
| 154 | #define bfin_read_EPPI0_FS2W_LVB() bfin_read32(EPPI0_FS2W_LVB) |
| 155 | #define bfin_write_EPPI0_FS2W_LVB(val) bfin_write32(EPPI0_FS2W_LVB, val) |
| 156 | #define bfin_read_EPPI0_FS2P_LAVF() bfin_read32(EPPI0_FS2P_LAVF) |
| 157 | #define bfin_write_EPPI0_FS2P_LAVF(val) bfin_write32(EPPI0_FS2P_LAVF, val) |
| 158 | #define bfin_read_EPPI0_CLIP() bfin_read32(EPPI0_CLIP) |
| 159 | #define bfin_write_EPPI0_CLIP(val) bfin_write32(EPPI0_CLIP, val) |
| 160 | |
| 161 | /* UART2 Registers */ |
| 162 | |
| 163 | #define bfin_read_UART2_DLL() bfin_read16(UART2_DLL) |
| 164 | #define bfin_write_UART2_DLL(val) bfin_write16(UART2_DLL, val) |
| 165 | #define bfin_read_UART2_DLH() bfin_read16(UART2_DLH) |
| 166 | #define bfin_write_UART2_DLH(val) bfin_write16(UART2_DLH, val) |
| 167 | #define bfin_read_UART2_GCTL() bfin_read16(UART2_GCTL) |
| 168 | #define bfin_write_UART2_GCTL(val) bfin_write16(UART2_GCTL, val) |
| 169 | #define bfin_read_UART2_LCR() bfin_read16(UART2_LCR) |
| 170 | #define bfin_write_UART2_LCR(val) bfin_write16(UART2_LCR, val) |
| 171 | #define bfin_read_UART2_MCR() bfin_read16(UART2_MCR) |
| 172 | #define bfin_write_UART2_MCR(val) bfin_write16(UART2_MCR, val) |
| 173 | #define bfin_read_UART2_LSR() bfin_read16(UART2_LSR) |
| 174 | #define bfin_write_UART2_LSR(val) bfin_write16(UART2_LSR, val) |
| 175 | #define bfin_read_UART2_MSR() bfin_read16(UART2_MSR) |
| 176 | #define bfin_write_UART2_MSR(val) bfin_write16(UART2_MSR, val) |
| 177 | #define bfin_read_UART2_SCR() bfin_read16(UART2_SCR) |
| 178 | #define bfin_write_UART2_SCR(val) bfin_write16(UART2_SCR, val) |
| 179 | #define bfin_read_UART2_IER_SET() bfin_read16(UART2_IER_SET) |
| 180 | #define bfin_write_UART2_IER_SET(val) bfin_write16(UART2_IER_SET, val) |
| 181 | #define bfin_read_UART2_IER_CLEAR() bfin_read16(UART2_IER_CLEAR) |
| 182 | #define bfin_write_UART2_IER_CLEAR(val) bfin_write16(UART2_IER_CLEAR, val) |
| 183 | #define bfin_read_UART2_RBR() bfin_read16(UART2_RBR) |
| 184 | #define bfin_write_UART2_RBR(val) bfin_write16(UART2_RBR, val) |
| 185 | |
| 186 | /* Two Wire Interface Registers (TWI1) */ |
| 187 | |
Bryan Wu | 19381f0 | 2007-05-21 18:09:31 +0800 | [diff] [blame] | 188 | /* SPI2 Registers */ |
| 189 | |
| 190 | #define bfin_read_SPI2_CTL() bfin_read16(SPI2_CTL) |
| 191 | #define bfin_write_SPI2_CTL(val) bfin_write16(SPI2_CTL, val) |
| 192 | #define bfin_read_SPI2_FLG() bfin_read16(SPI2_FLG) |
| 193 | #define bfin_write_SPI2_FLG(val) bfin_write16(SPI2_FLG, val) |
| 194 | #define bfin_read_SPI2_STAT() bfin_read16(SPI2_STAT) |
| 195 | #define bfin_write_SPI2_STAT(val) bfin_write16(SPI2_STAT, val) |
| 196 | #define bfin_read_SPI2_TDBR() bfin_read16(SPI2_TDBR) |
| 197 | #define bfin_write_SPI2_TDBR(val) bfin_write16(SPI2_TDBR, val) |
| 198 | #define bfin_read_SPI2_RDBR() bfin_read16(SPI2_RDBR) |
| 199 | #define bfin_write_SPI2_RDBR(val) bfin_write16(SPI2_RDBR, val) |
| 200 | #define bfin_read_SPI2_BAUD() bfin_read16(SPI2_BAUD) |
| 201 | #define bfin_write_SPI2_BAUD(val) bfin_write16(SPI2_BAUD, val) |
| 202 | #define bfin_read_SPI2_SHADOW() bfin_read16(SPI2_SHADOW) |
| 203 | #define bfin_write_SPI2_SHADOW(val) bfin_write16(SPI2_SHADOW, val) |
| 204 | |
| 205 | /* MXVR Registers */ |
| 206 | |
| 207 | #define bfin_read_MXVR_CONFIG() bfin_read16(MXVR_CONFIG) |
| 208 | #define bfin_write_MXVR_CONFIG(val) bfin_write16(MXVR_CONFIG, val) |
| 209 | #define bfin_read_MXVR_STATE_0() bfin_read32(MXVR_STATE_0) |
| 210 | #define bfin_write_MXVR_STATE_0(val) bfin_write32(MXVR_STATE_0, val) |
| 211 | #define bfin_read_MXVR_STATE_1() bfin_read32(MXVR_STATE_1) |
| 212 | #define bfin_write_MXVR_STATE_1(val) bfin_write32(MXVR_STATE_1, val) |
| 213 | #define bfin_read_MXVR_INT_STAT_0() bfin_read32(MXVR_INT_STAT_0) |
| 214 | #define bfin_write_MXVR_INT_STAT_0(val) bfin_write32(MXVR_INT_STAT_0, val) |
| 215 | #define bfin_read_MXVR_INT_STAT_1() bfin_read32(MXVR_INT_STAT_1) |
| 216 | #define bfin_write_MXVR_INT_STAT_1(val) bfin_write32(MXVR_INT_STAT_1, val) |
| 217 | #define bfin_read_MXVR_INT_EN_0() bfin_read32(MXVR_INT_EN_0) |
| 218 | #define bfin_write_MXVR_INT_EN_0(val) bfin_write32(MXVR_INT_EN_0, val) |
| 219 | #define bfin_read_MXVR_INT_EN_1() bfin_read32(MXVR_INT_EN_1) |
| 220 | #define bfin_write_MXVR_INT_EN_1(val) bfin_write32(MXVR_INT_EN_1, val) |
| 221 | #define bfin_read_MXVR_POSITION() bfin_read16(MXVR_POSITION) |
| 222 | #define bfin_write_MXVR_POSITION(val) bfin_write16(MXVR_POSITION, val) |
| 223 | #define bfin_read_MXVR_MAX_POSITION() bfin_read16(MXVR_MAX_POSITION) |
| 224 | #define bfin_write_MXVR_MAX_POSITION(val) bfin_write16(MXVR_MAX_POSITION, val) |
| 225 | #define bfin_read_MXVR_DELAY() bfin_read16(MXVR_DELAY) |
| 226 | #define bfin_write_MXVR_DELAY(val) bfin_write16(MXVR_DELAY, val) |
| 227 | #define bfin_read_MXVR_MAX_DELAY() bfin_read16(MXVR_MAX_DELAY) |
| 228 | #define bfin_write_MXVR_MAX_DELAY(val) bfin_write16(MXVR_MAX_DELAY, val) |
| 229 | #define bfin_read_MXVR_LADDR() bfin_read32(MXVR_LADDR) |
| 230 | #define bfin_write_MXVR_LADDR(val) bfin_write32(MXVR_LADDR, val) |
| 231 | #define bfin_read_MXVR_GADDR() bfin_read16(MXVR_GADDR) |
| 232 | #define bfin_write_MXVR_GADDR(val) bfin_write16(MXVR_GADDR, val) |
| 233 | #define bfin_read_MXVR_AADDR() bfin_read32(MXVR_AADDR) |
| 234 | #define bfin_write_MXVR_AADDR(val) bfin_write32(MXVR_AADDR, val) |
| 235 | |
| 236 | /* MXVR Allocation Table Registers */ |
| 237 | |
| 238 | #define bfin_read_MXVR_ALLOC_0() bfin_read32(MXVR_ALLOC_0) |
| 239 | #define bfin_write_MXVR_ALLOC_0(val) bfin_write32(MXVR_ALLOC_0, val) |
| 240 | #define bfin_read_MXVR_ALLOC_1() bfin_read32(MXVR_ALLOC_1) |
| 241 | #define bfin_write_MXVR_ALLOC_1(val) bfin_write32(MXVR_ALLOC_1, val) |
| 242 | #define bfin_read_MXVR_ALLOC_2() bfin_read32(MXVR_ALLOC_2) |
| 243 | #define bfin_write_MXVR_ALLOC_2(val) bfin_write32(MXVR_ALLOC_2, val) |
| 244 | #define bfin_read_MXVR_ALLOC_3() bfin_read32(MXVR_ALLOC_3) |
| 245 | #define bfin_write_MXVR_ALLOC_3(val) bfin_write32(MXVR_ALLOC_3, val) |
| 246 | #define bfin_read_MXVR_ALLOC_4() bfin_read32(MXVR_ALLOC_4) |
| 247 | #define bfin_write_MXVR_ALLOC_4(val) bfin_write32(MXVR_ALLOC_4, val) |
| 248 | #define bfin_read_MXVR_ALLOC_5() bfin_read32(MXVR_ALLOC_5) |
| 249 | #define bfin_write_MXVR_ALLOC_5(val) bfin_write32(MXVR_ALLOC_5, val) |
| 250 | #define bfin_read_MXVR_ALLOC_6() bfin_read32(MXVR_ALLOC_6) |
| 251 | #define bfin_write_MXVR_ALLOC_6(val) bfin_write32(MXVR_ALLOC_6, val) |
| 252 | #define bfin_read_MXVR_ALLOC_7() bfin_read32(MXVR_ALLOC_7) |
| 253 | #define bfin_write_MXVR_ALLOC_7(val) bfin_write32(MXVR_ALLOC_7, val) |
| 254 | #define bfin_read_MXVR_ALLOC_8() bfin_read32(MXVR_ALLOC_8) |
| 255 | #define bfin_write_MXVR_ALLOC_8(val) bfin_write32(MXVR_ALLOC_8, val) |
| 256 | #define bfin_read_MXVR_ALLOC_9() bfin_read32(MXVR_ALLOC_9) |
| 257 | #define bfin_write_MXVR_ALLOC_9(val) bfin_write32(MXVR_ALLOC_9, val) |
| 258 | #define bfin_read_MXVR_ALLOC_10() bfin_read32(MXVR_ALLOC_10) |
| 259 | #define bfin_write_MXVR_ALLOC_10(val) bfin_write32(MXVR_ALLOC_10, val) |
| 260 | #define bfin_read_MXVR_ALLOC_11() bfin_read32(MXVR_ALLOC_11) |
| 261 | #define bfin_write_MXVR_ALLOC_11(val) bfin_write32(MXVR_ALLOC_11, val) |
| 262 | #define bfin_read_MXVR_ALLOC_12() bfin_read32(MXVR_ALLOC_12) |
| 263 | #define bfin_write_MXVR_ALLOC_12(val) bfin_write32(MXVR_ALLOC_12, val) |
| 264 | #define bfin_read_MXVR_ALLOC_13() bfin_read32(MXVR_ALLOC_13) |
| 265 | #define bfin_write_MXVR_ALLOC_13(val) bfin_write32(MXVR_ALLOC_13, val) |
| 266 | #define bfin_read_MXVR_ALLOC_14() bfin_read32(MXVR_ALLOC_14) |
| 267 | #define bfin_write_MXVR_ALLOC_14(val) bfin_write32(MXVR_ALLOC_14, val) |
| 268 | |
| 269 | /* MXVR Channel Assign Registers */ |
| 270 | |
| 271 | #define bfin_read_MXVR_SYNC_LCHAN_0() bfin_read32(MXVR_SYNC_LCHAN_0) |
| 272 | #define bfin_write_MXVR_SYNC_LCHAN_0(val) bfin_write32(MXVR_SYNC_LCHAN_0, val) |
| 273 | #define bfin_read_MXVR_SYNC_LCHAN_1() bfin_read32(MXVR_SYNC_LCHAN_1) |
| 274 | #define bfin_write_MXVR_SYNC_LCHAN_1(val) bfin_write32(MXVR_SYNC_LCHAN_1, val) |
| 275 | #define bfin_read_MXVR_SYNC_LCHAN_2() bfin_read32(MXVR_SYNC_LCHAN_2) |
| 276 | #define bfin_write_MXVR_SYNC_LCHAN_2(val) bfin_write32(MXVR_SYNC_LCHAN_2, val) |
| 277 | #define bfin_read_MXVR_SYNC_LCHAN_3() bfin_read32(MXVR_SYNC_LCHAN_3) |
| 278 | #define bfin_write_MXVR_SYNC_LCHAN_3(val) bfin_write32(MXVR_SYNC_LCHAN_3, val) |
| 279 | #define bfin_read_MXVR_SYNC_LCHAN_4() bfin_read32(MXVR_SYNC_LCHAN_4) |
| 280 | #define bfin_write_MXVR_SYNC_LCHAN_4(val) bfin_write32(MXVR_SYNC_LCHAN_4, val) |
| 281 | #define bfin_read_MXVR_SYNC_LCHAN_5() bfin_read32(MXVR_SYNC_LCHAN_5) |
| 282 | #define bfin_write_MXVR_SYNC_LCHAN_5(val) bfin_write32(MXVR_SYNC_LCHAN_5, val) |
| 283 | #define bfin_read_MXVR_SYNC_LCHAN_6() bfin_read32(MXVR_SYNC_LCHAN_6) |
| 284 | #define bfin_write_MXVR_SYNC_LCHAN_6(val) bfin_write32(MXVR_SYNC_LCHAN_6, val) |
| 285 | #define bfin_read_MXVR_SYNC_LCHAN_7() bfin_read32(MXVR_SYNC_LCHAN_7) |
| 286 | #define bfin_write_MXVR_SYNC_LCHAN_7(val) bfin_write32(MXVR_SYNC_LCHAN_7, val) |
| 287 | |
| 288 | /* MXVR DMA0 Registers */ |
| 289 | |
| 290 | #define bfin_read_MXVR_DMA0_CONFIG() bfin_read32(MXVR_DMA0_CONFIG) |
| 291 | #define bfin_write_MXVR_DMA0_CONFIG(val) bfin_write32(MXVR_DMA0_CONFIG, val) |
| 292 | #define bfin_read_MXVR_DMA0_START_ADDR() bfin_read32(MXVR_DMA0_START_ADDR) |
| 293 | #define bfin_write_MXVR_DMA0_START_ADDR(val) bfin_write32(MXVR_DMA0_START_ADDR) |
| 294 | #define bfin_read_MXVR_DMA0_COUNT() bfin_read16(MXVR_DMA0_COUNT) |
| 295 | #define bfin_write_MXVR_DMA0_COUNT(val) bfin_write16(MXVR_DMA0_COUNT, val) |
| 296 | #define bfin_read_MXVR_DMA0_CURR_ADDR() bfin_read32(MXVR_DMA0_CURR_ADDR) |
| 297 | #define bfin_write_MXVR_DMA0_CURR_ADDR(val) bfin_write32(MXVR_DMA0_CURR_ADDR) |
| 298 | #define bfin_read_MXVR_DMA0_CURR_COUNT() bfin_read16(MXVR_DMA0_CURR_COUNT) |
| 299 | #define bfin_write_MXVR_DMA0_CURR_COUNT(val) bfin_write16(MXVR_DMA0_CURR_COUNT, val) |
| 300 | |
| 301 | /* MXVR DMA1 Registers */ |
| 302 | |
| 303 | #define bfin_read_MXVR_DMA1_CONFIG() bfin_read32(MXVR_DMA1_CONFIG) |
| 304 | #define bfin_write_MXVR_DMA1_CONFIG(val) bfin_write32(MXVR_DMA1_CONFIG, val) |
| 305 | #define bfin_read_MXVR_DMA1_START_ADDR() bfin_read32(MXVR_DMA1_START_ADDR) |
| 306 | #define bfin_write_MXVR_DMA1_START_ADDR(val) bfin_write32(MXVR_DMA1_START_ADDR) |
| 307 | #define bfin_read_MXVR_DMA1_COUNT() bfin_read16(MXVR_DMA1_COUNT) |
| 308 | #define bfin_write_MXVR_DMA1_COUNT(val) bfin_write16(MXVR_DMA1_COUNT, val) |
| 309 | #define bfin_read_MXVR_DMA1_CURR_ADDR() bfin_read32(MXVR_DMA1_CURR_ADDR) |
| 310 | #define bfin_write_MXVR_DMA1_CURR_ADDR(val) bfin_write32(MXVR_DMA1_CURR_ADDR) |
| 311 | #define bfin_read_MXVR_DMA1_CURR_COUNT() bfin_read16(MXVR_DMA1_CURR_COUNT) |
| 312 | #define bfin_write_MXVR_DMA1_CURR_COUNT(val) bfin_write16(MXVR_DMA1_CURR_COUNT, val) |
| 313 | |
| 314 | /* MXVR DMA2 Registers */ |
| 315 | |
| 316 | #define bfin_read_MXVR_DMA2_CONFIG() bfin_read32(MXVR_DMA2_CONFIG) |
| 317 | #define bfin_write_MXVR_DMA2_CONFIG(val) bfin_write32(MXVR_DMA2_CONFIG, val) |
| 318 | #define bfin_read_MXVR_DMA2_START_ADDR() bfin_read32(MXVR_DMA2_START_ADDR) |
| 319 | #define bfin_write_MXVR_DMA2_START_ADDR(val) bfin_write32(MXVR_DMA2_START_ADDR) |
| 320 | #define bfin_read_MXVR_DMA2_COUNT() bfin_read16(MXVR_DMA2_COUNT) |
| 321 | #define bfin_write_MXVR_DMA2_COUNT(val) bfin_write16(MXVR_DMA2_COUNT, val) |
| 322 | #define bfin_read_MXVR_DMA2_CURR_ADDR() bfin_read32(MXVR_DMA2_CURR_ADDR) |
| 323 | #define bfin_write_MXVR_DMA2_CURR_ADDR(val) bfin_write32(MXVR_DMA2_CURR_ADDR) |
| 324 | #define bfin_read_MXVR_DMA2_CURR_COUNT() bfin_read16(MXVR_DMA2_CURR_COUNT) |
| 325 | #define bfin_write_MXVR_DMA2_CURR_COUNT(val) bfin_write16(MXVR_DMA2_CURR_COUNT, val) |
| 326 | |
| 327 | /* MXVR DMA3 Registers */ |
| 328 | |
| 329 | #define bfin_read_MXVR_DMA3_CONFIG() bfin_read32(MXVR_DMA3_CONFIG) |
| 330 | #define bfin_write_MXVR_DMA3_CONFIG(val) bfin_write32(MXVR_DMA3_CONFIG, val) |
| 331 | #define bfin_read_MXVR_DMA3_START_ADDR() bfin_read32(MXVR_DMA3_START_ADDR) |
| 332 | #define bfin_write_MXVR_DMA3_START_ADDR(val) bfin_write32(MXVR_DMA3_START_ADDR) |
| 333 | #define bfin_read_MXVR_DMA3_COUNT() bfin_read16(MXVR_DMA3_COUNT) |
| 334 | #define bfin_write_MXVR_DMA3_COUNT(val) bfin_write16(MXVR_DMA3_COUNT, val) |
| 335 | #define bfin_read_MXVR_DMA3_CURR_ADDR() bfin_read32(MXVR_DMA3_CURR_ADDR) |
| 336 | #define bfin_write_MXVR_DMA3_CURR_ADDR(val) bfin_write32(MXVR_DMA3_CURR_ADDR) |
| 337 | #define bfin_read_MXVR_DMA3_CURR_COUNT() bfin_read16(MXVR_DMA3_CURR_COUNT) |
| 338 | #define bfin_write_MXVR_DMA3_CURR_COUNT(val) bfin_write16(MXVR_DMA3_CURR_COUNT, val) |
| 339 | |
| 340 | /* MXVR DMA4 Registers */ |
| 341 | |
| 342 | #define bfin_read_MXVR_DMA4_CONFIG() bfin_read32(MXVR_DMA4_CONFIG) |
| 343 | #define bfin_write_MXVR_DMA4_CONFIG(val) bfin_write32(MXVR_DMA4_CONFIG, val) |
| 344 | #define bfin_read_MXVR_DMA4_START_ADDR() bfin_read32(MXVR_DMA4_START_ADDR) |
| 345 | #define bfin_write_MXVR_DMA4_START_ADDR(val) bfin_write32(MXVR_DMA4_START_ADDR) |
| 346 | #define bfin_read_MXVR_DMA4_COUNT() bfin_read16(MXVR_DMA4_COUNT) |
| 347 | #define bfin_write_MXVR_DMA4_COUNT(val) bfin_write16(MXVR_DMA4_COUNT, val) |
| 348 | #define bfin_read_MXVR_DMA4_CURR_ADDR() bfin_read32(MXVR_DMA4_CURR_ADDR) |
| 349 | #define bfin_write_MXVR_DMA4_CURR_ADDR(val) bfin_write32(MXVR_DMA4_CURR_ADDR) |
| 350 | #define bfin_read_MXVR_DMA4_CURR_COUNT() bfin_read16(MXVR_DMA4_CURR_COUNT) |
| 351 | #define bfin_write_MXVR_DMA4_CURR_COUNT(val) bfin_write16(MXVR_DMA4_CURR_COUNT, val) |
| 352 | |
| 353 | /* MXVR DMA5 Registers */ |
| 354 | |
| 355 | #define bfin_read_MXVR_DMA5_CONFIG() bfin_read32(MXVR_DMA5_CONFIG) |
| 356 | #define bfin_write_MXVR_DMA5_CONFIG(val) bfin_write32(MXVR_DMA5_CONFIG, val) |
| 357 | #define bfin_read_MXVR_DMA5_START_ADDR() bfin_read32(MXVR_DMA5_START_ADDR) |
| 358 | #define bfin_write_MXVR_DMA5_START_ADDR(val) bfin_write32(MXVR_DMA5_START_ADDR) |
| 359 | #define bfin_read_MXVR_DMA5_COUNT() bfin_read16(MXVR_DMA5_COUNT) |
| 360 | #define bfin_write_MXVR_DMA5_COUNT(val) bfin_write16(MXVR_DMA5_COUNT, val) |
| 361 | #define bfin_read_MXVR_DMA5_CURR_ADDR() bfin_read32(MXVR_DMA5_CURR_ADDR) |
| 362 | #define bfin_write_MXVR_DMA5_CURR_ADDR(val) bfin_write32(MXVR_DMA5_CURR_ADDR) |
| 363 | #define bfin_read_MXVR_DMA5_CURR_COUNT() bfin_read16(MXVR_DMA5_CURR_COUNT) |
| 364 | #define bfin_write_MXVR_DMA5_CURR_COUNT(val) bfin_write16(MXVR_DMA5_CURR_COUNT, val) |
| 365 | |
| 366 | /* MXVR DMA6 Registers */ |
| 367 | |
| 368 | #define bfin_read_MXVR_DMA6_CONFIG() bfin_read32(MXVR_DMA6_CONFIG) |
| 369 | #define bfin_write_MXVR_DMA6_CONFIG(val) bfin_write32(MXVR_DMA6_CONFIG, val) |
| 370 | #define bfin_read_MXVR_DMA6_START_ADDR() bfin_read32(MXVR_DMA6_START_ADDR) |
| 371 | #define bfin_write_MXVR_DMA6_START_ADDR(val) bfin_write32(MXVR_DMA6_START_ADDR) |
| 372 | #define bfin_read_MXVR_DMA6_COUNT() bfin_read16(MXVR_DMA6_COUNT) |
| 373 | #define bfin_write_MXVR_DMA6_COUNT(val) bfin_write16(MXVR_DMA6_COUNT, val) |
| 374 | #define bfin_read_MXVR_DMA6_CURR_ADDR() bfin_read32(MXVR_DMA6_CURR_ADDR) |
| 375 | #define bfin_write_MXVR_DMA6_CURR_ADDR(val) bfin_write32(MXVR_DMA6_CURR_ADDR) |
| 376 | #define bfin_read_MXVR_DMA6_CURR_COUNT() bfin_read16(MXVR_DMA6_CURR_COUNT) |
| 377 | #define bfin_write_MXVR_DMA6_CURR_COUNT(val) bfin_write16(MXVR_DMA6_CURR_COUNT, val) |
| 378 | |
| 379 | /* MXVR DMA7 Registers */ |
| 380 | |
| 381 | #define bfin_read_MXVR_DMA7_CONFIG() bfin_read32(MXVR_DMA7_CONFIG) |
| 382 | #define bfin_write_MXVR_DMA7_CONFIG(val) bfin_write32(MXVR_DMA7_CONFIG, val) |
| 383 | #define bfin_read_MXVR_DMA7_START_ADDR() bfin_read32(MXVR_DMA7_START_ADDR) |
| 384 | #define bfin_write_MXVR_DMA7_START_ADDR(val) bfin_write32(MXVR_DMA7_START_ADDR) |
| 385 | #define bfin_read_MXVR_DMA7_COUNT() bfin_read16(MXVR_DMA7_COUNT) |
| 386 | #define bfin_write_MXVR_DMA7_COUNT(val) bfin_write16(MXVR_DMA7_COUNT, val) |
| 387 | #define bfin_read_MXVR_DMA7_CURR_ADDR() bfin_read32(MXVR_DMA7_CURR_ADDR) |
| 388 | #define bfin_write_MXVR_DMA7_CURR_ADDR(val) bfin_write32(MXVR_DMA7_CURR_ADDR) |
| 389 | #define bfin_read_MXVR_DMA7_CURR_COUNT() bfin_read16(MXVR_DMA7_CURR_COUNT) |
| 390 | #define bfin_write_MXVR_DMA7_CURR_COUNT(val) bfin_write16(MXVR_DMA7_CURR_COUNT, val) |
| 391 | |
| 392 | /* MXVR Asynch Packet Registers */ |
| 393 | |
| 394 | #define bfin_read_MXVR_AP_CTL() bfin_read16(MXVR_AP_CTL) |
| 395 | #define bfin_write_MXVR_AP_CTL(val) bfin_write16(MXVR_AP_CTL, val) |
| 396 | #define bfin_read_MXVR_APRB_START_ADDR() bfin_read32(MXVR_APRB_START_ADDR) |
| 397 | #define bfin_write_MXVR_APRB_START_ADDR(val) bfin_write32(MXVR_APRB_START_ADDR) |
| 398 | #define bfin_read_MXVR_APRB_CURR_ADDR() bfin_read32(MXVR_APRB_CURR_ADDR) |
| 399 | #define bfin_write_MXVR_APRB_CURR_ADDR(val) bfin_write32(MXVR_APRB_CURR_ADDR) |
| 400 | #define bfin_read_MXVR_APTB_START_ADDR() bfin_read32(MXVR_APTB_START_ADDR) |
| 401 | #define bfin_write_MXVR_APTB_START_ADDR(val) bfin_write32(MXVR_APTB_START_ADDR) |
| 402 | #define bfin_read_MXVR_APTB_CURR_ADDR() bfin_read32(MXVR_APTB_CURR_ADDR) |
| 403 | #define bfin_write_MXVR_APTB_CURR_ADDR(val) bfin_write32(MXVR_APTB_CURR_ADDR) |
| 404 | |
| 405 | /* MXVR Control Message Registers */ |
| 406 | |
| 407 | #define bfin_read_MXVR_CM_CTL() bfin_read32(MXVR_CM_CTL) |
| 408 | #define bfin_write_MXVR_CM_CTL(val) bfin_write32(MXVR_CM_CTL, val) |
| 409 | #define bfin_read_MXVR_CMRB_START_ADDR() bfin_read32(MXVR_CMRB_START_ADDR) |
| 410 | #define bfin_write_MXVR_CMRB_START_ADDR(val) bfin_write32(MXVR_CMRB_START_ADDR) |
| 411 | #define bfin_read_MXVR_CMRB_CURR_ADDR() bfin_read32(MXVR_CMRB_CURR_ADDR) |
| 412 | #define bfin_write_MXVR_CMRB_CURR_ADDR(val) bfin_write32(MXVR_CMRB_CURR_ADDR) |
| 413 | #define bfin_read_MXVR_CMTB_START_ADDR() bfin_read32(MXVR_CMTB_START_ADDR) |
| 414 | #define bfin_write_MXVR_CMTB_START_ADDR(val) bfin_write32(MXVR_CMTB_START_ADDR) |
| 415 | #define bfin_read_MXVR_CMTB_CURR_ADDR() bfin_read32(MXVR_CMTB_CURR_ADDR) |
| 416 | #define bfin_write_MXVR_CMTB_CURR_ADDR(val) bfin_write32(MXVR_CMTB_CURR_ADDR) |
| 417 | |
| 418 | /* MXVR Remote Read Registers */ |
| 419 | |
| 420 | #define bfin_read_MXVR_RRDB_START_ADDR() bfin_read32(MXVR_RRDB_START_ADDR) |
| 421 | #define bfin_write_MXVR_RRDB_START_ADDR(val) bfin_write32(MXVR_RRDB_START_ADDR) |
| 422 | #define bfin_read_MXVR_RRDB_CURR_ADDR() bfin_read32(MXVR_RRDB_CURR_ADDR) |
| 423 | #define bfin_write_MXVR_RRDB_CURR_ADDR(val) bfin_write32(MXVR_RRDB_CURR_ADDR) |
| 424 | |
| 425 | /* MXVR Pattern Data Registers */ |
| 426 | |
| 427 | #define bfin_read_MXVR_PAT_DATA_0() bfin_read32(MXVR_PAT_DATA_0) |
| 428 | #define bfin_write_MXVR_PAT_DATA_0(val) bfin_write32(MXVR_PAT_DATA_0, val) |
| 429 | #define bfin_read_MXVR_PAT_EN_0() bfin_read32(MXVR_PAT_EN_0) |
| 430 | #define bfin_write_MXVR_PAT_EN_0(val) bfin_write32(MXVR_PAT_EN_0, val) |
| 431 | #define bfin_read_MXVR_PAT_DATA_1() bfin_read32(MXVR_PAT_DATA_1) |
| 432 | #define bfin_write_MXVR_PAT_DATA_1(val) bfin_write32(MXVR_PAT_DATA_1, val) |
| 433 | #define bfin_read_MXVR_PAT_EN_1() bfin_read32(MXVR_PAT_EN_1) |
| 434 | #define bfin_write_MXVR_PAT_EN_1(val) bfin_write32(MXVR_PAT_EN_1, val) |
| 435 | |
| 436 | /* MXVR Frame Counter Registers */ |
| 437 | |
| 438 | #define bfin_read_MXVR_FRAME_CNT_0() bfin_read16(MXVR_FRAME_CNT_0) |
| 439 | #define bfin_write_MXVR_FRAME_CNT_0(val) bfin_write16(MXVR_FRAME_CNT_0, val) |
| 440 | #define bfin_read_MXVR_FRAME_CNT_1() bfin_read16(MXVR_FRAME_CNT_1) |
| 441 | #define bfin_write_MXVR_FRAME_CNT_1(val) bfin_write16(MXVR_FRAME_CNT_1, val) |
| 442 | |
| 443 | /* MXVR Routing Table Registers */ |
| 444 | |
| 445 | #define bfin_read_MXVR_ROUTING_0() bfin_read32(MXVR_ROUTING_0) |
| 446 | #define bfin_write_MXVR_ROUTING_0(val) bfin_write32(MXVR_ROUTING_0, val) |
| 447 | #define bfin_read_MXVR_ROUTING_1() bfin_read32(MXVR_ROUTING_1) |
| 448 | #define bfin_write_MXVR_ROUTING_1(val) bfin_write32(MXVR_ROUTING_1, val) |
| 449 | #define bfin_read_MXVR_ROUTING_2() bfin_read32(MXVR_ROUTING_2) |
| 450 | #define bfin_write_MXVR_ROUTING_2(val) bfin_write32(MXVR_ROUTING_2, val) |
| 451 | #define bfin_read_MXVR_ROUTING_3() bfin_read32(MXVR_ROUTING_3) |
| 452 | #define bfin_write_MXVR_ROUTING_3(val) bfin_write32(MXVR_ROUTING_3, val) |
| 453 | #define bfin_read_MXVR_ROUTING_4() bfin_read32(MXVR_ROUTING_4) |
| 454 | #define bfin_write_MXVR_ROUTING_4(val) bfin_write32(MXVR_ROUTING_4, val) |
| 455 | #define bfin_read_MXVR_ROUTING_5() bfin_read32(MXVR_ROUTING_5) |
| 456 | #define bfin_write_MXVR_ROUTING_5(val) bfin_write32(MXVR_ROUTING_5, val) |
| 457 | #define bfin_read_MXVR_ROUTING_6() bfin_read32(MXVR_ROUTING_6) |
| 458 | #define bfin_write_MXVR_ROUTING_6(val) bfin_write32(MXVR_ROUTING_6, val) |
| 459 | #define bfin_read_MXVR_ROUTING_7() bfin_read32(MXVR_ROUTING_7) |
| 460 | #define bfin_write_MXVR_ROUTING_7(val) bfin_write32(MXVR_ROUTING_7, val) |
| 461 | #define bfin_read_MXVR_ROUTING_8() bfin_read32(MXVR_ROUTING_8) |
| 462 | #define bfin_write_MXVR_ROUTING_8(val) bfin_write32(MXVR_ROUTING_8, val) |
| 463 | #define bfin_read_MXVR_ROUTING_9() bfin_read32(MXVR_ROUTING_9) |
| 464 | #define bfin_write_MXVR_ROUTING_9(val) bfin_write32(MXVR_ROUTING_9, val) |
| 465 | #define bfin_read_MXVR_ROUTING_10() bfin_read32(MXVR_ROUTING_10) |
| 466 | #define bfin_write_MXVR_ROUTING_10(val) bfin_write32(MXVR_ROUTING_10, val) |
| 467 | #define bfin_read_MXVR_ROUTING_11() bfin_read32(MXVR_ROUTING_11) |
| 468 | #define bfin_write_MXVR_ROUTING_11(val) bfin_write32(MXVR_ROUTING_11, val) |
| 469 | #define bfin_read_MXVR_ROUTING_12() bfin_read32(MXVR_ROUTING_12) |
| 470 | #define bfin_write_MXVR_ROUTING_12(val) bfin_write32(MXVR_ROUTING_12, val) |
| 471 | #define bfin_read_MXVR_ROUTING_13() bfin_read32(MXVR_ROUTING_13) |
| 472 | #define bfin_write_MXVR_ROUTING_13(val) bfin_write32(MXVR_ROUTING_13, val) |
| 473 | #define bfin_read_MXVR_ROUTING_14() bfin_read32(MXVR_ROUTING_14) |
| 474 | #define bfin_write_MXVR_ROUTING_14(val) bfin_write32(MXVR_ROUTING_14, val) |
| 475 | |
| 476 | /* MXVR Counter-Clock-Control Registers */ |
| 477 | |
| 478 | #define bfin_read_MXVR_BLOCK_CNT() bfin_read16(MXVR_BLOCK_CNT) |
| 479 | #define bfin_write_MXVR_BLOCK_CNT(val) bfin_write16(MXVR_BLOCK_CNT, val) |
| 480 | #define bfin_read_MXVR_CLK_CTL() bfin_read32(MXVR_CLK_CTL) |
| 481 | #define bfin_write_MXVR_CLK_CTL(val) bfin_write32(MXVR_CLK_CTL, val) |
| 482 | #define bfin_read_MXVR_CDRPLL_CTL() bfin_read32(MXVR_CDRPLL_CTL) |
| 483 | #define bfin_write_MXVR_CDRPLL_CTL(val) bfin_write32(MXVR_CDRPLL_CTL, val) |
| 484 | #define bfin_read_MXVR_FMPLL_CTL() bfin_read32(MXVR_FMPLL_CTL) |
| 485 | #define bfin_write_MXVR_FMPLL_CTL(val) bfin_write32(MXVR_FMPLL_CTL, val) |
| 486 | #define bfin_read_MXVR_PIN_CTL() bfin_read16(MXVR_PIN_CTL) |
| 487 | #define bfin_write_MXVR_PIN_CTL(val) bfin_write16(MXVR_PIN_CTL, val) |
| 488 | #define bfin_read_MXVR_SCLK_CNT() bfin_read16(MXVR_SCLK_CNT) |
| 489 | #define bfin_write_MXVR_SCLK_CNT(val) bfin_write16(MXVR_SCLK_CNT, val) |
| 490 | |
| 491 | /* CAN Controller 1 Config 1 Registers */ |
| 492 | |
| 493 | #define bfin_read_CAN1_MC1() bfin_read16(CAN1_MC1) |
| 494 | #define bfin_write_CAN1_MC1(val) bfin_write16(CAN1_MC1, val) |
| 495 | #define bfin_read_CAN1_MD1() bfin_read16(CAN1_MD1) |
| 496 | #define bfin_write_CAN1_MD1(val) bfin_write16(CAN1_MD1, val) |
| 497 | #define bfin_read_CAN1_TRS1() bfin_read16(CAN1_TRS1) |
| 498 | #define bfin_write_CAN1_TRS1(val) bfin_write16(CAN1_TRS1, val) |
| 499 | #define bfin_read_CAN1_TRR1() bfin_read16(CAN1_TRR1) |
| 500 | #define bfin_write_CAN1_TRR1(val) bfin_write16(CAN1_TRR1, val) |
| 501 | #define bfin_read_CAN1_TA1() bfin_read16(CAN1_TA1) |
| 502 | #define bfin_write_CAN1_TA1(val) bfin_write16(CAN1_TA1, val) |
| 503 | #define bfin_read_CAN1_AA1() bfin_read16(CAN1_AA1) |
| 504 | #define bfin_write_CAN1_AA1(val) bfin_write16(CAN1_AA1, val) |
| 505 | #define bfin_read_CAN1_RMP1() bfin_read16(CAN1_RMP1) |
| 506 | #define bfin_write_CAN1_RMP1(val) bfin_write16(CAN1_RMP1, val) |
| 507 | #define bfin_read_CAN1_RML1() bfin_read16(CAN1_RML1) |
| 508 | #define bfin_write_CAN1_RML1(val) bfin_write16(CAN1_RML1, val) |
| 509 | #define bfin_read_CAN1_MBTIF1() bfin_read16(CAN1_MBTIF1) |
| 510 | #define bfin_write_CAN1_MBTIF1(val) bfin_write16(CAN1_MBTIF1, val) |
| 511 | #define bfin_read_CAN1_MBRIF1() bfin_read16(CAN1_MBRIF1) |
| 512 | #define bfin_write_CAN1_MBRIF1(val) bfin_write16(CAN1_MBRIF1, val) |
| 513 | #define bfin_read_CAN1_MBIM1() bfin_read16(CAN1_MBIM1) |
| 514 | #define bfin_write_CAN1_MBIM1(val) bfin_write16(CAN1_MBIM1, val) |
| 515 | #define bfin_read_CAN1_RFH1() bfin_read16(CAN1_RFH1) |
| 516 | #define bfin_write_CAN1_RFH1(val) bfin_write16(CAN1_RFH1, val) |
| 517 | #define bfin_read_CAN1_OPSS1() bfin_read16(CAN1_OPSS1) |
| 518 | #define bfin_write_CAN1_OPSS1(val) bfin_write16(CAN1_OPSS1, val) |
| 519 | |
| 520 | /* CAN Controller 1 Config 2 Registers */ |
| 521 | |
| 522 | #define bfin_read_CAN1_MC2() bfin_read16(CAN1_MC2) |
| 523 | #define bfin_write_CAN1_MC2(val) bfin_write16(CAN1_MC2, val) |
| 524 | #define bfin_read_CAN1_MD2() bfin_read16(CAN1_MD2) |
| 525 | #define bfin_write_CAN1_MD2(val) bfin_write16(CAN1_MD2, val) |
| 526 | #define bfin_read_CAN1_TRS2() bfin_read16(CAN1_TRS2) |
| 527 | #define bfin_write_CAN1_TRS2(val) bfin_write16(CAN1_TRS2, val) |
| 528 | #define bfin_read_CAN1_TRR2() bfin_read16(CAN1_TRR2) |
| 529 | #define bfin_write_CAN1_TRR2(val) bfin_write16(CAN1_TRR2, val) |
| 530 | #define bfin_read_CAN1_TA2() bfin_read16(CAN1_TA2) |
| 531 | #define bfin_write_CAN1_TA2(val) bfin_write16(CAN1_TA2, val) |
| 532 | #define bfin_read_CAN1_AA2() bfin_read16(CAN1_AA2) |
| 533 | #define bfin_write_CAN1_AA2(val) bfin_write16(CAN1_AA2, val) |
| 534 | #define bfin_read_CAN1_RMP2() bfin_read16(CAN1_RMP2) |
| 535 | #define bfin_write_CAN1_RMP2(val) bfin_write16(CAN1_RMP2, val) |
| 536 | #define bfin_read_CAN1_RML2() bfin_read16(CAN1_RML2) |
| 537 | #define bfin_write_CAN1_RML2(val) bfin_write16(CAN1_RML2, val) |
| 538 | #define bfin_read_CAN1_MBTIF2() bfin_read16(CAN1_MBTIF2) |
| 539 | #define bfin_write_CAN1_MBTIF2(val) bfin_write16(CAN1_MBTIF2, val) |
| 540 | #define bfin_read_CAN1_MBRIF2() bfin_read16(CAN1_MBRIF2) |
| 541 | #define bfin_write_CAN1_MBRIF2(val) bfin_write16(CAN1_MBRIF2, val) |
| 542 | #define bfin_read_CAN1_MBIM2() bfin_read16(CAN1_MBIM2) |
| 543 | #define bfin_write_CAN1_MBIM2(val) bfin_write16(CAN1_MBIM2, val) |
| 544 | #define bfin_read_CAN1_RFH2() bfin_read16(CAN1_RFH2) |
| 545 | #define bfin_write_CAN1_RFH2(val) bfin_write16(CAN1_RFH2, val) |
| 546 | #define bfin_read_CAN1_OPSS2() bfin_read16(CAN1_OPSS2) |
| 547 | #define bfin_write_CAN1_OPSS2(val) bfin_write16(CAN1_OPSS2, val) |
| 548 | |
| 549 | /* CAN Controller 1 Clock/Interrubfin_read_()t/Counter Registers */ |
| 550 | |
| 551 | #define bfin_read_CAN1_CLOCK() bfin_read16(CAN1_CLOCK) |
| 552 | #define bfin_write_CAN1_CLOCK(val) bfin_write16(CAN1_CLOCK, val) |
| 553 | #define bfin_read_CAN1_TIMING() bfin_read16(CAN1_TIMING) |
| 554 | #define bfin_write_CAN1_TIMING(val) bfin_write16(CAN1_TIMING, val) |
| 555 | #define bfin_read_CAN1_DEBUG() bfin_read16(CAN1_DEBUG) |
| 556 | #define bfin_write_CAN1_DEBUG(val) bfin_write16(CAN1_DEBUG, val) |
| 557 | #define bfin_read_CAN1_STATUS() bfin_read16(CAN1_STATUS) |
| 558 | #define bfin_write_CAN1_STATUS(val) bfin_write16(CAN1_STATUS, val) |
| 559 | #define bfin_read_CAN1_CEC() bfin_read16(CAN1_CEC) |
| 560 | #define bfin_write_CAN1_CEC(val) bfin_write16(CAN1_CEC, val) |
| 561 | #define bfin_read_CAN1_GIS() bfin_read16(CAN1_GIS) |
| 562 | #define bfin_write_CAN1_GIS(val) bfin_write16(CAN1_GIS, val) |
| 563 | #define bfin_read_CAN1_GIM() bfin_read16(CAN1_GIM) |
| 564 | #define bfin_write_CAN1_GIM(val) bfin_write16(CAN1_GIM, val) |
| 565 | #define bfin_read_CAN1_GIF() bfin_read16(CAN1_GIF) |
| 566 | #define bfin_write_CAN1_GIF(val) bfin_write16(CAN1_GIF, val) |
| 567 | #define bfin_read_CAN1_CONTROL() bfin_read16(CAN1_CONTROL) |
| 568 | #define bfin_write_CAN1_CONTROL(val) bfin_write16(CAN1_CONTROL, val) |
| 569 | #define bfin_read_CAN1_INTR() bfin_read16(CAN1_INTR) |
| 570 | #define bfin_write_CAN1_INTR(val) bfin_write16(CAN1_INTR, val) |
| 571 | #define bfin_read_CAN1_MBTD() bfin_read16(CAN1_MBTD) |
| 572 | #define bfin_write_CAN1_MBTD(val) bfin_write16(CAN1_MBTD, val) |
| 573 | #define bfin_read_CAN1_EWR() bfin_read16(CAN1_EWR) |
| 574 | #define bfin_write_CAN1_EWR(val) bfin_write16(CAN1_EWR, val) |
| 575 | #define bfin_read_CAN1_ESR() bfin_read16(CAN1_ESR) |
| 576 | #define bfin_write_CAN1_ESR(val) bfin_write16(CAN1_ESR, val) |
| 577 | #define bfin_read_CAN1_UCCNT() bfin_read16(CAN1_UCCNT) |
| 578 | #define bfin_write_CAN1_UCCNT(val) bfin_write16(CAN1_UCCNT, val) |
| 579 | #define bfin_read_CAN1_UCRC() bfin_read16(CAN1_UCRC) |
| 580 | #define bfin_write_CAN1_UCRC(val) bfin_write16(CAN1_UCRC, val) |
| 581 | #define bfin_read_CAN1_UCCNF() bfin_read16(CAN1_UCCNF) |
| 582 | #define bfin_write_CAN1_UCCNF(val) bfin_write16(CAN1_UCCNF, val) |
| 583 | |
| 584 | /* CAN Controller 1 Mailbox Accebfin_read_()tance Registers */ |
| 585 | |
| 586 | #define bfin_read_CAN1_AM00L() bfin_read16(CAN1_AM00L) |
| 587 | #define bfin_write_CAN1_AM00L(val) bfin_write16(CAN1_AM00L, val) |
| 588 | #define bfin_read_CAN1_AM00H() bfin_read16(CAN1_AM00H) |
| 589 | #define bfin_write_CAN1_AM00H(val) bfin_write16(CAN1_AM00H, val) |
| 590 | #define bfin_read_CAN1_AM01L() bfin_read16(CAN1_AM01L) |
| 591 | #define bfin_write_CAN1_AM01L(val) bfin_write16(CAN1_AM01L, val) |
| 592 | #define bfin_read_CAN1_AM01H() bfin_read16(CAN1_AM01H) |
| 593 | #define bfin_write_CAN1_AM01H(val) bfin_write16(CAN1_AM01H, val) |
| 594 | #define bfin_read_CAN1_AM02L() bfin_read16(CAN1_AM02L) |
| 595 | #define bfin_write_CAN1_AM02L(val) bfin_write16(CAN1_AM02L, val) |
| 596 | #define bfin_read_CAN1_AM02H() bfin_read16(CAN1_AM02H) |
| 597 | #define bfin_write_CAN1_AM02H(val) bfin_write16(CAN1_AM02H, val) |
| 598 | #define bfin_read_CAN1_AM03L() bfin_read16(CAN1_AM03L) |
| 599 | #define bfin_write_CAN1_AM03L(val) bfin_write16(CAN1_AM03L, val) |
| 600 | #define bfin_read_CAN1_AM03H() bfin_read16(CAN1_AM03H) |
| 601 | #define bfin_write_CAN1_AM03H(val) bfin_write16(CAN1_AM03H, val) |
| 602 | #define bfin_read_CAN1_AM04L() bfin_read16(CAN1_AM04L) |
| 603 | #define bfin_write_CAN1_AM04L(val) bfin_write16(CAN1_AM04L, val) |
| 604 | #define bfin_read_CAN1_AM04H() bfin_read16(CAN1_AM04H) |
| 605 | #define bfin_write_CAN1_AM04H(val) bfin_write16(CAN1_AM04H, val) |
| 606 | #define bfin_read_CAN1_AM05L() bfin_read16(CAN1_AM05L) |
| 607 | #define bfin_write_CAN1_AM05L(val) bfin_write16(CAN1_AM05L, val) |
| 608 | #define bfin_read_CAN1_AM05H() bfin_read16(CAN1_AM05H) |
| 609 | #define bfin_write_CAN1_AM05H(val) bfin_write16(CAN1_AM05H, val) |
| 610 | #define bfin_read_CAN1_AM06L() bfin_read16(CAN1_AM06L) |
| 611 | #define bfin_write_CAN1_AM06L(val) bfin_write16(CAN1_AM06L, val) |
| 612 | #define bfin_read_CAN1_AM06H() bfin_read16(CAN1_AM06H) |
| 613 | #define bfin_write_CAN1_AM06H(val) bfin_write16(CAN1_AM06H, val) |
| 614 | #define bfin_read_CAN1_AM07L() bfin_read16(CAN1_AM07L) |
| 615 | #define bfin_write_CAN1_AM07L(val) bfin_write16(CAN1_AM07L, val) |
| 616 | #define bfin_read_CAN1_AM07H() bfin_read16(CAN1_AM07H) |
| 617 | #define bfin_write_CAN1_AM07H(val) bfin_write16(CAN1_AM07H, val) |
| 618 | #define bfin_read_CAN1_AM08L() bfin_read16(CAN1_AM08L) |
| 619 | #define bfin_write_CAN1_AM08L(val) bfin_write16(CAN1_AM08L, val) |
| 620 | #define bfin_read_CAN1_AM08H() bfin_read16(CAN1_AM08H) |
| 621 | #define bfin_write_CAN1_AM08H(val) bfin_write16(CAN1_AM08H, val) |
| 622 | #define bfin_read_CAN1_AM09L() bfin_read16(CAN1_AM09L) |
| 623 | #define bfin_write_CAN1_AM09L(val) bfin_write16(CAN1_AM09L, val) |
| 624 | #define bfin_read_CAN1_AM09H() bfin_read16(CAN1_AM09H) |
| 625 | #define bfin_write_CAN1_AM09H(val) bfin_write16(CAN1_AM09H, val) |
| 626 | #define bfin_read_CAN1_AM10L() bfin_read16(CAN1_AM10L) |
| 627 | #define bfin_write_CAN1_AM10L(val) bfin_write16(CAN1_AM10L, val) |
| 628 | #define bfin_read_CAN1_AM10H() bfin_read16(CAN1_AM10H) |
| 629 | #define bfin_write_CAN1_AM10H(val) bfin_write16(CAN1_AM10H, val) |
| 630 | #define bfin_read_CAN1_AM11L() bfin_read16(CAN1_AM11L) |
| 631 | #define bfin_write_CAN1_AM11L(val) bfin_write16(CAN1_AM11L, val) |
| 632 | #define bfin_read_CAN1_AM11H() bfin_read16(CAN1_AM11H) |
| 633 | #define bfin_write_CAN1_AM11H(val) bfin_write16(CAN1_AM11H, val) |
| 634 | #define bfin_read_CAN1_AM12L() bfin_read16(CAN1_AM12L) |
| 635 | #define bfin_write_CAN1_AM12L(val) bfin_write16(CAN1_AM12L, val) |
| 636 | #define bfin_read_CAN1_AM12H() bfin_read16(CAN1_AM12H) |
| 637 | #define bfin_write_CAN1_AM12H(val) bfin_write16(CAN1_AM12H, val) |
| 638 | #define bfin_read_CAN1_AM13L() bfin_read16(CAN1_AM13L) |
| 639 | #define bfin_write_CAN1_AM13L(val) bfin_write16(CAN1_AM13L, val) |
| 640 | #define bfin_read_CAN1_AM13H() bfin_read16(CAN1_AM13H) |
| 641 | #define bfin_write_CAN1_AM13H(val) bfin_write16(CAN1_AM13H, val) |
| 642 | #define bfin_read_CAN1_AM14L() bfin_read16(CAN1_AM14L) |
| 643 | #define bfin_write_CAN1_AM14L(val) bfin_write16(CAN1_AM14L, val) |
| 644 | #define bfin_read_CAN1_AM14H() bfin_read16(CAN1_AM14H) |
| 645 | #define bfin_write_CAN1_AM14H(val) bfin_write16(CAN1_AM14H, val) |
| 646 | #define bfin_read_CAN1_AM15L() bfin_read16(CAN1_AM15L) |
| 647 | #define bfin_write_CAN1_AM15L(val) bfin_write16(CAN1_AM15L, val) |
| 648 | #define bfin_read_CAN1_AM15H() bfin_read16(CAN1_AM15H) |
| 649 | #define bfin_write_CAN1_AM15H(val) bfin_write16(CAN1_AM15H, val) |
| 650 | |
| 651 | /* CAN Controller 1 Mailbox Accebfin_read_()tance Registers */ |
| 652 | |
| 653 | #define bfin_read_CAN1_AM16L() bfin_read16(CAN1_AM16L) |
| 654 | #define bfin_write_CAN1_AM16L(val) bfin_write16(CAN1_AM16L, val) |
| 655 | #define bfin_read_CAN1_AM16H() bfin_read16(CAN1_AM16H) |
| 656 | #define bfin_write_CAN1_AM16H(val) bfin_write16(CAN1_AM16H, val) |
| 657 | #define bfin_read_CAN1_AM17L() bfin_read16(CAN1_AM17L) |
| 658 | #define bfin_write_CAN1_AM17L(val) bfin_write16(CAN1_AM17L, val) |
| 659 | #define bfin_read_CAN1_AM17H() bfin_read16(CAN1_AM17H) |
| 660 | #define bfin_write_CAN1_AM17H(val) bfin_write16(CAN1_AM17H, val) |
| 661 | #define bfin_read_CAN1_AM18L() bfin_read16(CAN1_AM18L) |
| 662 | #define bfin_write_CAN1_AM18L(val) bfin_write16(CAN1_AM18L, val) |
| 663 | #define bfin_read_CAN1_AM18H() bfin_read16(CAN1_AM18H) |
| 664 | #define bfin_write_CAN1_AM18H(val) bfin_write16(CAN1_AM18H, val) |
| 665 | #define bfin_read_CAN1_AM19L() bfin_read16(CAN1_AM19L) |
| 666 | #define bfin_write_CAN1_AM19L(val) bfin_write16(CAN1_AM19L, val) |
| 667 | #define bfin_read_CAN1_AM19H() bfin_read16(CAN1_AM19H) |
| 668 | #define bfin_write_CAN1_AM19H(val) bfin_write16(CAN1_AM19H, val) |
| 669 | #define bfin_read_CAN1_AM20L() bfin_read16(CAN1_AM20L) |
| 670 | #define bfin_write_CAN1_AM20L(val) bfin_write16(CAN1_AM20L, val) |
| 671 | #define bfin_read_CAN1_AM20H() bfin_read16(CAN1_AM20H) |
| 672 | #define bfin_write_CAN1_AM20H(val) bfin_write16(CAN1_AM20H, val) |
| 673 | #define bfin_read_CAN1_AM21L() bfin_read16(CAN1_AM21L) |
| 674 | #define bfin_write_CAN1_AM21L(val) bfin_write16(CAN1_AM21L, val) |
| 675 | #define bfin_read_CAN1_AM21H() bfin_read16(CAN1_AM21H) |
| 676 | #define bfin_write_CAN1_AM21H(val) bfin_write16(CAN1_AM21H, val) |
| 677 | #define bfin_read_CAN1_AM22L() bfin_read16(CAN1_AM22L) |
| 678 | #define bfin_write_CAN1_AM22L(val) bfin_write16(CAN1_AM22L, val) |
| 679 | #define bfin_read_CAN1_AM22H() bfin_read16(CAN1_AM22H) |
| 680 | #define bfin_write_CAN1_AM22H(val) bfin_write16(CAN1_AM22H, val) |
| 681 | #define bfin_read_CAN1_AM23L() bfin_read16(CAN1_AM23L) |
| 682 | #define bfin_write_CAN1_AM23L(val) bfin_write16(CAN1_AM23L, val) |
| 683 | #define bfin_read_CAN1_AM23H() bfin_read16(CAN1_AM23H) |
| 684 | #define bfin_write_CAN1_AM23H(val) bfin_write16(CAN1_AM23H, val) |
| 685 | #define bfin_read_CAN1_AM24L() bfin_read16(CAN1_AM24L) |
| 686 | #define bfin_write_CAN1_AM24L(val) bfin_write16(CAN1_AM24L, val) |
| 687 | #define bfin_read_CAN1_AM24H() bfin_read16(CAN1_AM24H) |
| 688 | #define bfin_write_CAN1_AM24H(val) bfin_write16(CAN1_AM24H, val) |
| 689 | #define bfin_read_CAN1_AM25L() bfin_read16(CAN1_AM25L) |
| 690 | #define bfin_write_CAN1_AM25L(val) bfin_write16(CAN1_AM25L, val) |
| 691 | #define bfin_read_CAN1_AM25H() bfin_read16(CAN1_AM25H) |
| 692 | #define bfin_write_CAN1_AM25H(val) bfin_write16(CAN1_AM25H, val) |
| 693 | #define bfin_read_CAN1_AM26L() bfin_read16(CAN1_AM26L) |
| 694 | #define bfin_write_CAN1_AM26L(val) bfin_write16(CAN1_AM26L, val) |
| 695 | #define bfin_read_CAN1_AM26H() bfin_read16(CAN1_AM26H) |
| 696 | #define bfin_write_CAN1_AM26H(val) bfin_write16(CAN1_AM26H, val) |
| 697 | #define bfin_read_CAN1_AM27L() bfin_read16(CAN1_AM27L) |
| 698 | #define bfin_write_CAN1_AM27L(val) bfin_write16(CAN1_AM27L, val) |
| 699 | #define bfin_read_CAN1_AM27H() bfin_read16(CAN1_AM27H) |
| 700 | #define bfin_write_CAN1_AM27H(val) bfin_write16(CAN1_AM27H, val) |
| 701 | #define bfin_read_CAN1_AM28L() bfin_read16(CAN1_AM28L) |
| 702 | #define bfin_write_CAN1_AM28L(val) bfin_write16(CAN1_AM28L, val) |
| 703 | #define bfin_read_CAN1_AM28H() bfin_read16(CAN1_AM28H) |
| 704 | #define bfin_write_CAN1_AM28H(val) bfin_write16(CAN1_AM28H, val) |
| 705 | #define bfin_read_CAN1_AM29L() bfin_read16(CAN1_AM29L) |
| 706 | #define bfin_write_CAN1_AM29L(val) bfin_write16(CAN1_AM29L, val) |
| 707 | #define bfin_read_CAN1_AM29H() bfin_read16(CAN1_AM29H) |
| 708 | #define bfin_write_CAN1_AM29H(val) bfin_write16(CAN1_AM29H, val) |
| 709 | #define bfin_read_CAN1_AM30L() bfin_read16(CAN1_AM30L) |
| 710 | #define bfin_write_CAN1_AM30L(val) bfin_write16(CAN1_AM30L, val) |
| 711 | #define bfin_read_CAN1_AM30H() bfin_read16(CAN1_AM30H) |
| 712 | #define bfin_write_CAN1_AM30H(val) bfin_write16(CAN1_AM30H, val) |
| 713 | #define bfin_read_CAN1_AM31L() bfin_read16(CAN1_AM31L) |
| 714 | #define bfin_write_CAN1_AM31L(val) bfin_write16(CAN1_AM31L, val) |
| 715 | #define bfin_read_CAN1_AM31H() bfin_read16(CAN1_AM31H) |
| 716 | #define bfin_write_CAN1_AM31H(val) bfin_write16(CAN1_AM31H, val) |
| 717 | |
| 718 | /* CAN Controller 1 Mailbox Data Registers */ |
| 719 | |
| 720 | #define bfin_read_CAN1_MB00_DATA0() bfin_read16(CAN1_MB00_DATA0) |
| 721 | #define bfin_write_CAN1_MB00_DATA0(val) bfin_write16(CAN1_MB00_DATA0, val) |
| 722 | #define bfin_read_CAN1_MB00_DATA1() bfin_read16(CAN1_MB00_DATA1) |
| 723 | #define bfin_write_CAN1_MB00_DATA1(val) bfin_write16(CAN1_MB00_DATA1, val) |
| 724 | #define bfin_read_CAN1_MB00_DATA2() bfin_read16(CAN1_MB00_DATA2) |
| 725 | #define bfin_write_CAN1_MB00_DATA2(val) bfin_write16(CAN1_MB00_DATA2, val) |
| 726 | #define bfin_read_CAN1_MB00_DATA3() bfin_read16(CAN1_MB00_DATA3) |
| 727 | #define bfin_write_CAN1_MB00_DATA3(val) bfin_write16(CAN1_MB00_DATA3, val) |
| 728 | #define bfin_read_CAN1_MB00_LENGTH() bfin_read16(CAN1_MB00_LENGTH) |
| 729 | #define bfin_write_CAN1_MB00_LENGTH(val) bfin_write16(CAN1_MB00_LENGTH, val) |
| 730 | #define bfin_read_CAN1_MB00_TIMESTAMP() bfin_read16(CAN1_MB00_TIMESTAMP) |
| 731 | #define bfin_write_CAN1_MB00_TIMESTAMP(val) bfin_write16(CAN1_MB00_TIMESTAMP, val) |
| 732 | #define bfin_read_CAN1_MB00_ID0() bfin_read16(CAN1_MB00_ID0) |
| 733 | #define bfin_write_CAN1_MB00_ID0(val) bfin_write16(CAN1_MB00_ID0, val) |
| 734 | #define bfin_read_CAN1_MB00_ID1() bfin_read16(CAN1_MB00_ID1) |
| 735 | #define bfin_write_CAN1_MB00_ID1(val) bfin_write16(CAN1_MB00_ID1, val) |
| 736 | #define bfin_read_CAN1_MB01_DATA0() bfin_read16(CAN1_MB01_DATA0) |
| 737 | #define bfin_write_CAN1_MB01_DATA0(val) bfin_write16(CAN1_MB01_DATA0, val) |
| 738 | #define bfin_read_CAN1_MB01_DATA1() bfin_read16(CAN1_MB01_DATA1) |
| 739 | #define bfin_write_CAN1_MB01_DATA1(val) bfin_write16(CAN1_MB01_DATA1, val) |
| 740 | #define bfin_read_CAN1_MB01_DATA2() bfin_read16(CAN1_MB01_DATA2) |
| 741 | #define bfin_write_CAN1_MB01_DATA2(val) bfin_write16(CAN1_MB01_DATA2, val) |
| 742 | #define bfin_read_CAN1_MB01_DATA3() bfin_read16(CAN1_MB01_DATA3) |
| 743 | #define bfin_write_CAN1_MB01_DATA3(val) bfin_write16(CAN1_MB01_DATA3, val) |
| 744 | #define bfin_read_CAN1_MB01_LENGTH() bfin_read16(CAN1_MB01_LENGTH) |
| 745 | #define bfin_write_CAN1_MB01_LENGTH(val) bfin_write16(CAN1_MB01_LENGTH, val) |
| 746 | #define bfin_read_CAN1_MB01_TIMESTAMP() bfin_read16(CAN1_MB01_TIMESTAMP) |
| 747 | #define bfin_write_CAN1_MB01_TIMESTAMP(val) bfin_write16(CAN1_MB01_TIMESTAMP, val) |
| 748 | #define bfin_read_CAN1_MB01_ID0() bfin_read16(CAN1_MB01_ID0) |
| 749 | #define bfin_write_CAN1_MB01_ID0(val) bfin_write16(CAN1_MB01_ID0, val) |
| 750 | #define bfin_read_CAN1_MB01_ID1() bfin_read16(CAN1_MB01_ID1) |
| 751 | #define bfin_write_CAN1_MB01_ID1(val) bfin_write16(CAN1_MB01_ID1, val) |
| 752 | #define bfin_read_CAN1_MB02_DATA0() bfin_read16(CAN1_MB02_DATA0) |
| 753 | #define bfin_write_CAN1_MB02_DATA0(val) bfin_write16(CAN1_MB02_DATA0, val) |
| 754 | #define bfin_read_CAN1_MB02_DATA1() bfin_read16(CAN1_MB02_DATA1) |
| 755 | #define bfin_write_CAN1_MB02_DATA1(val) bfin_write16(CAN1_MB02_DATA1, val) |
| 756 | #define bfin_read_CAN1_MB02_DATA2() bfin_read16(CAN1_MB02_DATA2) |
| 757 | #define bfin_write_CAN1_MB02_DATA2(val) bfin_write16(CAN1_MB02_DATA2, val) |
| 758 | #define bfin_read_CAN1_MB02_DATA3() bfin_read16(CAN1_MB02_DATA3) |
| 759 | #define bfin_write_CAN1_MB02_DATA3(val) bfin_write16(CAN1_MB02_DATA3, val) |
| 760 | #define bfin_read_CAN1_MB02_LENGTH() bfin_read16(CAN1_MB02_LENGTH) |
| 761 | #define bfin_write_CAN1_MB02_LENGTH(val) bfin_write16(CAN1_MB02_LENGTH, val) |
| 762 | #define bfin_read_CAN1_MB02_TIMESTAMP() bfin_read16(CAN1_MB02_TIMESTAMP) |
| 763 | #define bfin_write_CAN1_MB02_TIMESTAMP(val) bfin_write16(CAN1_MB02_TIMESTAMP, val) |
| 764 | #define bfin_read_CAN1_MB02_ID0() bfin_read16(CAN1_MB02_ID0) |
| 765 | #define bfin_write_CAN1_MB02_ID0(val) bfin_write16(CAN1_MB02_ID0, val) |
| 766 | #define bfin_read_CAN1_MB02_ID1() bfin_read16(CAN1_MB02_ID1) |
| 767 | #define bfin_write_CAN1_MB02_ID1(val) bfin_write16(CAN1_MB02_ID1, val) |
| 768 | #define bfin_read_CAN1_MB03_DATA0() bfin_read16(CAN1_MB03_DATA0) |
| 769 | #define bfin_write_CAN1_MB03_DATA0(val) bfin_write16(CAN1_MB03_DATA0, val) |
| 770 | #define bfin_read_CAN1_MB03_DATA1() bfin_read16(CAN1_MB03_DATA1) |
| 771 | #define bfin_write_CAN1_MB03_DATA1(val) bfin_write16(CAN1_MB03_DATA1, val) |
| 772 | #define bfin_read_CAN1_MB03_DATA2() bfin_read16(CAN1_MB03_DATA2) |
| 773 | #define bfin_write_CAN1_MB03_DATA2(val) bfin_write16(CAN1_MB03_DATA2, val) |
| 774 | #define bfin_read_CAN1_MB03_DATA3() bfin_read16(CAN1_MB03_DATA3) |
| 775 | #define bfin_write_CAN1_MB03_DATA3(val) bfin_write16(CAN1_MB03_DATA3, val) |
| 776 | #define bfin_read_CAN1_MB03_LENGTH() bfin_read16(CAN1_MB03_LENGTH) |
| 777 | #define bfin_write_CAN1_MB03_LENGTH(val) bfin_write16(CAN1_MB03_LENGTH, val) |
| 778 | #define bfin_read_CAN1_MB03_TIMESTAMP() bfin_read16(CAN1_MB03_TIMESTAMP) |
| 779 | #define bfin_write_CAN1_MB03_TIMESTAMP(val) bfin_write16(CAN1_MB03_TIMESTAMP, val) |
| 780 | #define bfin_read_CAN1_MB03_ID0() bfin_read16(CAN1_MB03_ID0) |
| 781 | #define bfin_write_CAN1_MB03_ID0(val) bfin_write16(CAN1_MB03_ID0, val) |
| 782 | #define bfin_read_CAN1_MB03_ID1() bfin_read16(CAN1_MB03_ID1) |
| 783 | #define bfin_write_CAN1_MB03_ID1(val) bfin_write16(CAN1_MB03_ID1, val) |
| 784 | #define bfin_read_CAN1_MB04_DATA0() bfin_read16(CAN1_MB04_DATA0) |
| 785 | #define bfin_write_CAN1_MB04_DATA0(val) bfin_write16(CAN1_MB04_DATA0, val) |
| 786 | #define bfin_read_CAN1_MB04_DATA1() bfin_read16(CAN1_MB04_DATA1) |
| 787 | #define bfin_write_CAN1_MB04_DATA1(val) bfin_write16(CAN1_MB04_DATA1, val) |
| 788 | #define bfin_read_CAN1_MB04_DATA2() bfin_read16(CAN1_MB04_DATA2) |
| 789 | #define bfin_write_CAN1_MB04_DATA2(val) bfin_write16(CAN1_MB04_DATA2, val) |
| 790 | #define bfin_read_CAN1_MB04_DATA3() bfin_read16(CAN1_MB04_DATA3) |
| 791 | #define bfin_write_CAN1_MB04_DATA3(val) bfin_write16(CAN1_MB04_DATA3, val) |
| 792 | #define bfin_read_CAN1_MB04_LENGTH() bfin_read16(CAN1_MB04_LENGTH) |
| 793 | #define bfin_write_CAN1_MB04_LENGTH(val) bfin_write16(CAN1_MB04_LENGTH, val) |
| 794 | #define bfin_read_CAN1_MB04_TIMESTAMP() bfin_read16(CAN1_MB04_TIMESTAMP) |
| 795 | #define bfin_write_CAN1_MB04_TIMESTAMP(val) bfin_write16(CAN1_MB04_TIMESTAMP, val) |
| 796 | #define bfin_read_CAN1_MB04_ID0() bfin_read16(CAN1_MB04_ID0) |
| 797 | #define bfin_write_CAN1_MB04_ID0(val) bfin_write16(CAN1_MB04_ID0, val) |
| 798 | #define bfin_read_CAN1_MB04_ID1() bfin_read16(CAN1_MB04_ID1) |
| 799 | #define bfin_write_CAN1_MB04_ID1(val) bfin_write16(CAN1_MB04_ID1, val) |
| 800 | #define bfin_read_CAN1_MB05_DATA0() bfin_read16(CAN1_MB05_DATA0) |
| 801 | #define bfin_write_CAN1_MB05_DATA0(val) bfin_write16(CAN1_MB05_DATA0, val) |
| 802 | #define bfin_read_CAN1_MB05_DATA1() bfin_read16(CAN1_MB05_DATA1) |
| 803 | #define bfin_write_CAN1_MB05_DATA1(val) bfin_write16(CAN1_MB05_DATA1, val) |
| 804 | #define bfin_read_CAN1_MB05_DATA2() bfin_read16(CAN1_MB05_DATA2) |
| 805 | #define bfin_write_CAN1_MB05_DATA2(val) bfin_write16(CAN1_MB05_DATA2, val) |
| 806 | #define bfin_read_CAN1_MB05_DATA3() bfin_read16(CAN1_MB05_DATA3) |
| 807 | #define bfin_write_CAN1_MB05_DATA3(val) bfin_write16(CAN1_MB05_DATA3, val) |
| 808 | #define bfin_read_CAN1_MB05_LENGTH() bfin_read16(CAN1_MB05_LENGTH) |
| 809 | #define bfin_write_CAN1_MB05_LENGTH(val) bfin_write16(CAN1_MB05_LENGTH, val) |
| 810 | #define bfin_read_CAN1_MB05_TIMESTAMP() bfin_read16(CAN1_MB05_TIMESTAMP) |
| 811 | #define bfin_write_CAN1_MB05_TIMESTAMP(val) bfin_write16(CAN1_MB05_TIMESTAMP, val) |
| 812 | #define bfin_read_CAN1_MB05_ID0() bfin_read16(CAN1_MB05_ID0) |
| 813 | #define bfin_write_CAN1_MB05_ID0(val) bfin_write16(CAN1_MB05_ID0, val) |
| 814 | #define bfin_read_CAN1_MB05_ID1() bfin_read16(CAN1_MB05_ID1) |
| 815 | #define bfin_write_CAN1_MB05_ID1(val) bfin_write16(CAN1_MB05_ID1, val) |
| 816 | #define bfin_read_CAN1_MB06_DATA0() bfin_read16(CAN1_MB06_DATA0) |
| 817 | #define bfin_write_CAN1_MB06_DATA0(val) bfin_write16(CAN1_MB06_DATA0, val) |
| 818 | #define bfin_read_CAN1_MB06_DATA1() bfin_read16(CAN1_MB06_DATA1) |
| 819 | #define bfin_write_CAN1_MB06_DATA1(val) bfin_write16(CAN1_MB06_DATA1, val) |
| 820 | #define bfin_read_CAN1_MB06_DATA2() bfin_read16(CAN1_MB06_DATA2) |
| 821 | #define bfin_write_CAN1_MB06_DATA2(val) bfin_write16(CAN1_MB06_DATA2, val) |
| 822 | #define bfin_read_CAN1_MB06_DATA3() bfin_read16(CAN1_MB06_DATA3) |
| 823 | #define bfin_write_CAN1_MB06_DATA3(val) bfin_write16(CAN1_MB06_DATA3, val) |
| 824 | #define bfin_read_CAN1_MB06_LENGTH() bfin_read16(CAN1_MB06_LENGTH) |
| 825 | #define bfin_write_CAN1_MB06_LENGTH(val) bfin_write16(CAN1_MB06_LENGTH, val) |
| 826 | #define bfin_read_CAN1_MB06_TIMESTAMP() bfin_read16(CAN1_MB06_TIMESTAMP) |
| 827 | #define bfin_write_CAN1_MB06_TIMESTAMP(val) bfin_write16(CAN1_MB06_TIMESTAMP, val) |
| 828 | #define bfin_read_CAN1_MB06_ID0() bfin_read16(CAN1_MB06_ID0) |
| 829 | #define bfin_write_CAN1_MB06_ID0(val) bfin_write16(CAN1_MB06_ID0, val) |
| 830 | #define bfin_read_CAN1_MB06_ID1() bfin_read16(CAN1_MB06_ID1) |
| 831 | #define bfin_write_CAN1_MB06_ID1(val) bfin_write16(CAN1_MB06_ID1, val) |
| 832 | #define bfin_read_CAN1_MB07_DATA0() bfin_read16(CAN1_MB07_DATA0) |
| 833 | #define bfin_write_CAN1_MB07_DATA0(val) bfin_write16(CAN1_MB07_DATA0, val) |
| 834 | #define bfin_read_CAN1_MB07_DATA1() bfin_read16(CAN1_MB07_DATA1) |
| 835 | #define bfin_write_CAN1_MB07_DATA1(val) bfin_write16(CAN1_MB07_DATA1, val) |
| 836 | #define bfin_read_CAN1_MB07_DATA2() bfin_read16(CAN1_MB07_DATA2) |
| 837 | #define bfin_write_CAN1_MB07_DATA2(val) bfin_write16(CAN1_MB07_DATA2, val) |
| 838 | #define bfin_read_CAN1_MB07_DATA3() bfin_read16(CAN1_MB07_DATA3) |
| 839 | #define bfin_write_CAN1_MB07_DATA3(val) bfin_write16(CAN1_MB07_DATA3, val) |
| 840 | #define bfin_read_CAN1_MB07_LENGTH() bfin_read16(CAN1_MB07_LENGTH) |
| 841 | #define bfin_write_CAN1_MB07_LENGTH(val) bfin_write16(CAN1_MB07_LENGTH, val) |
| 842 | #define bfin_read_CAN1_MB07_TIMESTAMP() bfin_read16(CAN1_MB07_TIMESTAMP) |
| 843 | #define bfin_write_CAN1_MB07_TIMESTAMP(val) bfin_write16(CAN1_MB07_TIMESTAMP, val) |
| 844 | #define bfin_read_CAN1_MB07_ID0() bfin_read16(CAN1_MB07_ID0) |
| 845 | #define bfin_write_CAN1_MB07_ID0(val) bfin_write16(CAN1_MB07_ID0, val) |
| 846 | #define bfin_read_CAN1_MB07_ID1() bfin_read16(CAN1_MB07_ID1) |
| 847 | #define bfin_write_CAN1_MB07_ID1(val) bfin_write16(CAN1_MB07_ID1, val) |
| 848 | #define bfin_read_CAN1_MB08_DATA0() bfin_read16(CAN1_MB08_DATA0) |
| 849 | #define bfin_write_CAN1_MB08_DATA0(val) bfin_write16(CAN1_MB08_DATA0, val) |
| 850 | #define bfin_read_CAN1_MB08_DATA1() bfin_read16(CAN1_MB08_DATA1) |
| 851 | #define bfin_write_CAN1_MB08_DATA1(val) bfin_write16(CAN1_MB08_DATA1, val) |
| 852 | #define bfin_read_CAN1_MB08_DATA2() bfin_read16(CAN1_MB08_DATA2) |
| 853 | #define bfin_write_CAN1_MB08_DATA2(val) bfin_write16(CAN1_MB08_DATA2, val) |
| 854 | #define bfin_read_CAN1_MB08_DATA3() bfin_read16(CAN1_MB08_DATA3) |
| 855 | #define bfin_write_CAN1_MB08_DATA3(val) bfin_write16(CAN1_MB08_DATA3, val) |
| 856 | #define bfin_read_CAN1_MB08_LENGTH() bfin_read16(CAN1_MB08_LENGTH) |
| 857 | #define bfin_write_CAN1_MB08_LENGTH(val) bfin_write16(CAN1_MB08_LENGTH, val) |
| 858 | #define bfin_read_CAN1_MB08_TIMESTAMP() bfin_read16(CAN1_MB08_TIMESTAMP) |
| 859 | #define bfin_write_CAN1_MB08_TIMESTAMP(val) bfin_write16(CAN1_MB08_TIMESTAMP, val) |
| 860 | #define bfin_read_CAN1_MB08_ID0() bfin_read16(CAN1_MB08_ID0) |
| 861 | #define bfin_write_CAN1_MB08_ID0(val) bfin_write16(CAN1_MB08_ID0, val) |
| 862 | #define bfin_read_CAN1_MB08_ID1() bfin_read16(CAN1_MB08_ID1) |
| 863 | #define bfin_write_CAN1_MB08_ID1(val) bfin_write16(CAN1_MB08_ID1, val) |
| 864 | #define bfin_read_CAN1_MB09_DATA0() bfin_read16(CAN1_MB09_DATA0) |
| 865 | #define bfin_write_CAN1_MB09_DATA0(val) bfin_write16(CAN1_MB09_DATA0, val) |
| 866 | #define bfin_read_CAN1_MB09_DATA1() bfin_read16(CAN1_MB09_DATA1) |
| 867 | #define bfin_write_CAN1_MB09_DATA1(val) bfin_write16(CAN1_MB09_DATA1, val) |
| 868 | #define bfin_read_CAN1_MB09_DATA2() bfin_read16(CAN1_MB09_DATA2) |
| 869 | #define bfin_write_CAN1_MB09_DATA2(val) bfin_write16(CAN1_MB09_DATA2, val) |
| 870 | #define bfin_read_CAN1_MB09_DATA3() bfin_read16(CAN1_MB09_DATA3) |
| 871 | #define bfin_write_CAN1_MB09_DATA3(val) bfin_write16(CAN1_MB09_DATA3, val) |
| 872 | #define bfin_read_CAN1_MB09_LENGTH() bfin_read16(CAN1_MB09_LENGTH) |
| 873 | #define bfin_write_CAN1_MB09_LENGTH(val) bfin_write16(CAN1_MB09_LENGTH, val) |
| 874 | #define bfin_read_CAN1_MB09_TIMESTAMP() bfin_read16(CAN1_MB09_TIMESTAMP) |
| 875 | #define bfin_write_CAN1_MB09_TIMESTAMP(val) bfin_write16(CAN1_MB09_TIMESTAMP, val) |
| 876 | #define bfin_read_CAN1_MB09_ID0() bfin_read16(CAN1_MB09_ID0) |
| 877 | #define bfin_write_CAN1_MB09_ID0(val) bfin_write16(CAN1_MB09_ID0, val) |
| 878 | #define bfin_read_CAN1_MB09_ID1() bfin_read16(CAN1_MB09_ID1) |
| 879 | #define bfin_write_CAN1_MB09_ID1(val) bfin_write16(CAN1_MB09_ID1, val) |
| 880 | #define bfin_read_CAN1_MB10_DATA0() bfin_read16(CAN1_MB10_DATA0) |
| 881 | #define bfin_write_CAN1_MB10_DATA0(val) bfin_write16(CAN1_MB10_DATA0, val) |
| 882 | #define bfin_read_CAN1_MB10_DATA1() bfin_read16(CAN1_MB10_DATA1) |
| 883 | #define bfin_write_CAN1_MB10_DATA1(val) bfin_write16(CAN1_MB10_DATA1, val) |
| 884 | #define bfin_read_CAN1_MB10_DATA2() bfin_read16(CAN1_MB10_DATA2) |
| 885 | #define bfin_write_CAN1_MB10_DATA2(val) bfin_write16(CAN1_MB10_DATA2, val) |
| 886 | #define bfin_read_CAN1_MB10_DATA3() bfin_read16(CAN1_MB10_DATA3) |
| 887 | #define bfin_write_CAN1_MB10_DATA3(val) bfin_write16(CAN1_MB10_DATA3, val) |
| 888 | #define bfin_read_CAN1_MB10_LENGTH() bfin_read16(CAN1_MB10_LENGTH) |
| 889 | #define bfin_write_CAN1_MB10_LENGTH(val) bfin_write16(CAN1_MB10_LENGTH, val) |
| 890 | #define bfin_read_CAN1_MB10_TIMESTAMP() bfin_read16(CAN1_MB10_TIMESTAMP) |
| 891 | #define bfin_write_CAN1_MB10_TIMESTAMP(val) bfin_write16(CAN1_MB10_TIMESTAMP, val) |
| 892 | #define bfin_read_CAN1_MB10_ID0() bfin_read16(CAN1_MB10_ID0) |
| 893 | #define bfin_write_CAN1_MB10_ID0(val) bfin_write16(CAN1_MB10_ID0, val) |
| 894 | #define bfin_read_CAN1_MB10_ID1() bfin_read16(CAN1_MB10_ID1) |
| 895 | #define bfin_write_CAN1_MB10_ID1(val) bfin_write16(CAN1_MB10_ID1, val) |
| 896 | #define bfin_read_CAN1_MB11_DATA0() bfin_read16(CAN1_MB11_DATA0) |
| 897 | #define bfin_write_CAN1_MB11_DATA0(val) bfin_write16(CAN1_MB11_DATA0, val) |
| 898 | #define bfin_read_CAN1_MB11_DATA1() bfin_read16(CAN1_MB11_DATA1) |
| 899 | #define bfin_write_CAN1_MB11_DATA1(val) bfin_write16(CAN1_MB11_DATA1, val) |
| 900 | #define bfin_read_CAN1_MB11_DATA2() bfin_read16(CAN1_MB11_DATA2) |
| 901 | #define bfin_write_CAN1_MB11_DATA2(val) bfin_write16(CAN1_MB11_DATA2, val) |
| 902 | #define bfin_read_CAN1_MB11_DATA3() bfin_read16(CAN1_MB11_DATA3) |
| 903 | #define bfin_write_CAN1_MB11_DATA3(val) bfin_write16(CAN1_MB11_DATA3, val) |
| 904 | #define bfin_read_CAN1_MB11_LENGTH() bfin_read16(CAN1_MB11_LENGTH) |
| 905 | #define bfin_write_CAN1_MB11_LENGTH(val) bfin_write16(CAN1_MB11_LENGTH, val) |
| 906 | #define bfin_read_CAN1_MB11_TIMESTAMP() bfin_read16(CAN1_MB11_TIMESTAMP) |
| 907 | #define bfin_write_CAN1_MB11_TIMESTAMP(val) bfin_write16(CAN1_MB11_TIMESTAMP, val) |
| 908 | #define bfin_read_CAN1_MB11_ID0() bfin_read16(CAN1_MB11_ID0) |
| 909 | #define bfin_write_CAN1_MB11_ID0(val) bfin_write16(CAN1_MB11_ID0, val) |
| 910 | #define bfin_read_CAN1_MB11_ID1() bfin_read16(CAN1_MB11_ID1) |
| 911 | #define bfin_write_CAN1_MB11_ID1(val) bfin_write16(CAN1_MB11_ID1, val) |
| 912 | #define bfin_read_CAN1_MB12_DATA0() bfin_read16(CAN1_MB12_DATA0) |
| 913 | #define bfin_write_CAN1_MB12_DATA0(val) bfin_write16(CAN1_MB12_DATA0, val) |
| 914 | #define bfin_read_CAN1_MB12_DATA1() bfin_read16(CAN1_MB12_DATA1) |
| 915 | #define bfin_write_CAN1_MB12_DATA1(val) bfin_write16(CAN1_MB12_DATA1, val) |
| 916 | #define bfin_read_CAN1_MB12_DATA2() bfin_read16(CAN1_MB12_DATA2) |
| 917 | #define bfin_write_CAN1_MB12_DATA2(val) bfin_write16(CAN1_MB12_DATA2, val) |
| 918 | #define bfin_read_CAN1_MB12_DATA3() bfin_read16(CAN1_MB12_DATA3) |
| 919 | #define bfin_write_CAN1_MB12_DATA3(val) bfin_write16(CAN1_MB12_DATA3, val) |
| 920 | #define bfin_read_CAN1_MB12_LENGTH() bfin_read16(CAN1_MB12_LENGTH) |
| 921 | #define bfin_write_CAN1_MB12_LENGTH(val) bfin_write16(CAN1_MB12_LENGTH, val) |
| 922 | #define bfin_read_CAN1_MB12_TIMESTAMP() bfin_read16(CAN1_MB12_TIMESTAMP) |
| 923 | #define bfin_write_CAN1_MB12_TIMESTAMP(val) bfin_write16(CAN1_MB12_TIMESTAMP, val) |
| 924 | #define bfin_read_CAN1_MB12_ID0() bfin_read16(CAN1_MB12_ID0) |
| 925 | #define bfin_write_CAN1_MB12_ID0(val) bfin_write16(CAN1_MB12_ID0, val) |
| 926 | #define bfin_read_CAN1_MB12_ID1() bfin_read16(CAN1_MB12_ID1) |
| 927 | #define bfin_write_CAN1_MB12_ID1(val) bfin_write16(CAN1_MB12_ID1, val) |
| 928 | #define bfin_read_CAN1_MB13_DATA0() bfin_read16(CAN1_MB13_DATA0) |
| 929 | #define bfin_write_CAN1_MB13_DATA0(val) bfin_write16(CAN1_MB13_DATA0, val) |
| 930 | #define bfin_read_CAN1_MB13_DATA1() bfin_read16(CAN1_MB13_DATA1) |
| 931 | #define bfin_write_CAN1_MB13_DATA1(val) bfin_write16(CAN1_MB13_DATA1, val) |
| 932 | #define bfin_read_CAN1_MB13_DATA2() bfin_read16(CAN1_MB13_DATA2) |
| 933 | #define bfin_write_CAN1_MB13_DATA2(val) bfin_write16(CAN1_MB13_DATA2, val) |
| 934 | #define bfin_read_CAN1_MB13_DATA3() bfin_read16(CAN1_MB13_DATA3) |
| 935 | #define bfin_write_CAN1_MB13_DATA3(val) bfin_write16(CAN1_MB13_DATA3, val) |
| 936 | #define bfin_read_CAN1_MB13_LENGTH() bfin_read16(CAN1_MB13_LENGTH) |
| 937 | #define bfin_write_CAN1_MB13_LENGTH(val) bfin_write16(CAN1_MB13_LENGTH, val) |
| 938 | #define bfin_read_CAN1_MB13_TIMESTAMP() bfin_read16(CAN1_MB13_TIMESTAMP) |
| 939 | #define bfin_write_CAN1_MB13_TIMESTAMP(val) bfin_write16(CAN1_MB13_TIMESTAMP, val) |
| 940 | #define bfin_read_CAN1_MB13_ID0() bfin_read16(CAN1_MB13_ID0) |
| 941 | #define bfin_write_CAN1_MB13_ID0(val) bfin_write16(CAN1_MB13_ID0, val) |
| 942 | #define bfin_read_CAN1_MB13_ID1() bfin_read16(CAN1_MB13_ID1) |
| 943 | #define bfin_write_CAN1_MB13_ID1(val) bfin_write16(CAN1_MB13_ID1, val) |
| 944 | #define bfin_read_CAN1_MB14_DATA0() bfin_read16(CAN1_MB14_DATA0) |
| 945 | #define bfin_write_CAN1_MB14_DATA0(val) bfin_write16(CAN1_MB14_DATA0, val) |
| 946 | #define bfin_read_CAN1_MB14_DATA1() bfin_read16(CAN1_MB14_DATA1) |
| 947 | #define bfin_write_CAN1_MB14_DATA1(val) bfin_write16(CAN1_MB14_DATA1, val) |
| 948 | #define bfin_read_CAN1_MB14_DATA2() bfin_read16(CAN1_MB14_DATA2) |
| 949 | #define bfin_write_CAN1_MB14_DATA2(val) bfin_write16(CAN1_MB14_DATA2, val) |
| 950 | #define bfin_read_CAN1_MB14_DATA3() bfin_read16(CAN1_MB14_DATA3) |
| 951 | #define bfin_write_CAN1_MB14_DATA3(val) bfin_write16(CAN1_MB14_DATA3, val) |
| 952 | #define bfin_read_CAN1_MB14_LENGTH() bfin_read16(CAN1_MB14_LENGTH) |
| 953 | #define bfin_write_CAN1_MB14_LENGTH(val) bfin_write16(CAN1_MB14_LENGTH, val) |
| 954 | #define bfin_read_CAN1_MB14_TIMESTAMP() bfin_read16(CAN1_MB14_TIMESTAMP) |
| 955 | #define bfin_write_CAN1_MB14_TIMESTAMP(val) bfin_write16(CAN1_MB14_TIMESTAMP, val) |
| 956 | #define bfin_read_CAN1_MB14_ID0() bfin_read16(CAN1_MB14_ID0) |
| 957 | #define bfin_write_CAN1_MB14_ID0(val) bfin_write16(CAN1_MB14_ID0, val) |
| 958 | #define bfin_read_CAN1_MB14_ID1() bfin_read16(CAN1_MB14_ID1) |
| 959 | #define bfin_write_CAN1_MB14_ID1(val) bfin_write16(CAN1_MB14_ID1, val) |
| 960 | #define bfin_read_CAN1_MB15_DATA0() bfin_read16(CAN1_MB15_DATA0) |
| 961 | #define bfin_write_CAN1_MB15_DATA0(val) bfin_write16(CAN1_MB15_DATA0, val) |
| 962 | #define bfin_read_CAN1_MB15_DATA1() bfin_read16(CAN1_MB15_DATA1) |
| 963 | #define bfin_write_CAN1_MB15_DATA1(val) bfin_write16(CAN1_MB15_DATA1, val) |
| 964 | #define bfin_read_CAN1_MB15_DATA2() bfin_read16(CAN1_MB15_DATA2) |
| 965 | #define bfin_write_CAN1_MB15_DATA2(val) bfin_write16(CAN1_MB15_DATA2, val) |
| 966 | #define bfin_read_CAN1_MB15_DATA3() bfin_read16(CAN1_MB15_DATA3) |
| 967 | #define bfin_write_CAN1_MB15_DATA3(val) bfin_write16(CAN1_MB15_DATA3, val) |
| 968 | #define bfin_read_CAN1_MB15_LENGTH() bfin_read16(CAN1_MB15_LENGTH) |
| 969 | #define bfin_write_CAN1_MB15_LENGTH(val) bfin_write16(CAN1_MB15_LENGTH, val) |
| 970 | #define bfin_read_CAN1_MB15_TIMESTAMP() bfin_read16(CAN1_MB15_TIMESTAMP) |
| 971 | #define bfin_write_CAN1_MB15_TIMESTAMP(val) bfin_write16(CAN1_MB15_TIMESTAMP, val) |
| 972 | #define bfin_read_CAN1_MB15_ID0() bfin_read16(CAN1_MB15_ID0) |
| 973 | #define bfin_write_CAN1_MB15_ID0(val) bfin_write16(CAN1_MB15_ID0, val) |
| 974 | #define bfin_read_CAN1_MB15_ID1() bfin_read16(CAN1_MB15_ID1) |
| 975 | #define bfin_write_CAN1_MB15_ID1(val) bfin_write16(CAN1_MB15_ID1, val) |
| 976 | |
| 977 | /* CAN Controller 1 Mailbox Data Registers */ |
| 978 | |
| 979 | #define bfin_read_CAN1_MB16_DATA0() bfin_read16(CAN1_MB16_DATA0) |
| 980 | #define bfin_write_CAN1_MB16_DATA0(val) bfin_write16(CAN1_MB16_DATA0, val) |
| 981 | #define bfin_read_CAN1_MB16_DATA1() bfin_read16(CAN1_MB16_DATA1) |
| 982 | #define bfin_write_CAN1_MB16_DATA1(val) bfin_write16(CAN1_MB16_DATA1, val) |
| 983 | #define bfin_read_CAN1_MB16_DATA2() bfin_read16(CAN1_MB16_DATA2) |
| 984 | #define bfin_write_CAN1_MB16_DATA2(val) bfin_write16(CAN1_MB16_DATA2, val) |
| 985 | #define bfin_read_CAN1_MB16_DATA3() bfin_read16(CAN1_MB16_DATA3) |
| 986 | #define bfin_write_CAN1_MB16_DATA3(val) bfin_write16(CAN1_MB16_DATA3, val) |
| 987 | #define bfin_read_CAN1_MB16_LENGTH() bfin_read16(CAN1_MB16_LENGTH) |
| 988 | #define bfin_write_CAN1_MB16_LENGTH(val) bfin_write16(CAN1_MB16_LENGTH, val) |
| 989 | #define bfin_read_CAN1_MB16_TIMESTAMP() bfin_read16(CAN1_MB16_TIMESTAMP) |
| 990 | #define bfin_write_CAN1_MB16_TIMESTAMP(val) bfin_write16(CAN1_MB16_TIMESTAMP, val) |
| 991 | #define bfin_read_CAN1_MB16_ID0() bfin_read16(CAN1_MB16_ID0) |
| 992 | #define bfin_write_CAN1_MB16_ID0(val) bfin_write16(CAN1_MB16_ID0, val) |
| 993 | #define bfin_read_CAN1_MB16_ID1() bfin_read16(CAN1_MB16_ID1) |
| 994 | #define bfin_write_CAN1_MB16_ID1(val) bfin_write16(CAN1_MB16_ID1, val) |
| 995 | #define bfin_read_CAN1_MB17_DATA0() bfin_read16(CAN1_MB17_DATA0) |
| 996 | #define bfin_write_CAN1_MB17_DATA0(val) bfin_write16(CAN1_MB17_DATA0, val) |
| 997 | #define bfin_read_CAN1_MB17_DATA1() bfin_read16(CAN1_MB17_DATA1) |
| 998 | #define bfin_write_CAN1_MB17_DATA1(val) bfin_write16(CAN1_MB17_DATA1, val) |
| 999 | #define bfin_read_CAN1_MB17_DATA2() bfin_read16(CAN1_MB17_DATA2) |
| 1000 | #define bfin_write_CAN1_MB17_DATA2(val) bfin_write16(CAN1_MB17_DATA2, val) |
| 1001 | #define bfin_read_CAN1_MB17_DATA3() bfin_read16(CAN1_MB17_DATA3) |
| 1002 | #define bfin_write_CAN1_MB17_DATA3(val) bfin_write16(CAN1_MB17_DATA3, val) |
| 1003 | #define bfin_read_CAN1_MB17_LENGTH() bfin_read16(CAN1_MB17_LENGTH) |
| 1004 | #define bfin_write_CAN1_MB17_LENGTH(val) bfin_write16(CAN1_MB17_LENGTH, val) |
| 1005 | #define bfin_read_CAN1_MB17_TIMESTAMP() bfin_read16(CAN1_MB17_TIMESTAMP) |
| 1006 | #define bfin_write_CAN1_MB17_TIMESTAMP(val) bfin_write16(CAN1_MB17_TIMESTAMP, val) |
| 1007 | #define bfin_read_CAN1_MB17_ID0() bfin_read16(CAN1_MB17_ID0) |
| 1008 | #define bfin_write_CAN1_MB17_ID0(val) bfin_write16(CAN1_MB17_ID0, val) |
| 1009 | #define bfin_read_CAN1_MB17_ID1() bfin_read16(CAN1_MB17_ID1) |
| 1010 | #define bfin_write_CAN1_MB17_ID1(val) bfin_write16(CAN1_MB17_ID1, val) |
| 1011 | #define bfin_read_CAN1_MB18_DATA0() bfin_read16(CAN1_MB18_DATA0) |
| 1012 | #define bfin_write_CAN1_MB18_DATA0(val) bfin_write16(CAN1_MB18_DATA0, val) |
| 1013 | #define bfin_read_CAN1_MB18_DATA1() bfin_read16(CAN1_MB18_DATA1) |
| 1014 | #define bfin_write_CAN1_MB18_DATA1(val) bfin_write16(CAN1_MB18_DATA1, val) |
| 1015 | #define bfin_read_CAN1_MB18_DATA2() bfin_read16(CAN1_MB18_DATA2) |
| 1016 | #define bfin_write_CAN1_MB18_DATA2(val) bfin_write16(CAN1_MB18_DATA2, val) |
| 1017 | #define bfin_read_CAN1_MB18_DATA3() bfin_read16(CAN1_MB18_DATA3) |
| 1018 | #define bfin_write_CAN1_MB18_DATA3(val) bfin_write16(CAN1_MB18_DATA3, val) |
| 1019 | #define bfin_read_CAN1_MB18_LENGTH() bfin_read16(CAN1_MB18_LENGTH) |
| 1020 | #define bfin_write_CAN1_MB18_LENGTH(val) bfin_write16(CAN1_MB18_LENGTH, val) |
| 1021 | #define bfin_read_CAN1_MB18_TIMESTAMP() bfin_read16(CAN1_MB18_TIMESTAMP) |
| 1022 | #define bfin_write_CAN1_MB18_TIMESTAMP(val) bfin_write16(CAN1_MB18_TIMESTAMP, val) |
| 1023 | #define bfin_read_CAN1_MB18_ID0() bfin_read16(CAN1_MB18_ID0) |
| 1024 | #define bfin_write_CAN1_MB18_ID0(val) bfin_write16(CAN1_MB18_ID0, val) |
| 1025 | #define bfin_read_CAN1_MB18_ID1() bfin_read16(CAN1_MB18_ID1) |
| 1026 | #define bfin_write_CAN1_MB18_ID1(val) bfin_write16(CAN1_MB18_ID1, val) |
| 1027 | #define bfin_read_CAN1_MB19_DATA0() bfin_read16(CAN1_MB19_DATA0) |
| 1028 | #define bfin_write_CAN1_MB19_DATA0(val) bfin_write16(CAN1_MB19_DATA0, val) |
| 1029 | #define bfin_read_CAN1_MB19_DATA1() bfin_read16(CAN1_MB19_DATA1) |
| 1030 | #define bfin_write_CAN1_MB19_DATA1(val) bfin_write16(CAN1_MB19_DATA1, val) |
| 1031 | #define bfin_read_CAN1_MB19_DATA2() bfin_read16(CAN1_MB19_DATA2) |
| 1032 | #define bfin_write_CAN1_MB19_DATA2(val) bfin_write16(CAN1_MB19_DATA2, val) |
| 1033 | #define bfin_read_CAN1_MB19_DATA3() bfin_read16(CAN1_MB19_DATA3) |
| 1034 | #define bfin_write_CAN1_MB19_DATA3(val) bfin_write16(CAN1_MB19_DATA3, val) |
| 1035 | #define bfin_read_CAN1_MB19_LENGTH() bfin_read16(CAN1_MB19_LENGTH) |
| 1036 | #define bfin_write_CAN1_MB19_LENGTH(val) bfin_write16(CAN1_MB19_LENGTH, val) |
| 1037 | #define bfin_read_CAN1_MB19_TIMESTAMP() bfin_read16(CAN1_MB19_TIMESTAMP) |
| 1038 | #define bfin_write_CAN1_MB19_TIMESTAMP(val) bfin_write16(CAN1_MB19_TIMESTAMP, val) |
| 1039 | #define bfin_read_CAN1_MB19_ID0() bfin_read16(CAN1_MB19_ID0) |
| 1040 | #define bfin_write_CAN1_MB19_ID0(val) bfin_write16(CAN1_MB19_ID0, val) |
| 1041 | #define bfin_read_CAN1_MB19_ID1() bfin_read16(CAN1_MB19_ID1) |
| 1042 | #define bfin_write_CAN1_MB19_ID1(val) bfin_write16(CAN1_MB19_ID1, val) |
| 1043 | #define bfin_read_CAN1_MB20_DATA0() bfin_read16(CAN1_MB20_DATA0) |
| 1044 | #define bfin_write_CAN1_MB20_DATA0(val) bfin_write16(CAN1_MB20_DATA0, val) |
| 1045 | #define bfin_read_CAN1_MB20_DATA1() bfin_read16(CAN1_MB20_DATA1) |
| 1046 | #define bfin_write_CAN1_MB20_DATA1(val) bfin_write16(CAN1_MB20_DATA1, val) |
| 1047 | #define bfin_read_CAN1_MB20_DATA2() bfin_read16(CAN1_MB20_DATA2) |
| 1048 | #define bfin_write_CAN1_MB20_DATA2(val) bfin_write16(CAN1_MB20_DATA2, val) |
| 1049 | #define bfin_read_CAN1_MB20_DATA3() bfin_read16(CAN1_MB20_DATA3) |
| 1050 | #define bfin_write_CAN1_MB20_DATA3(val) bfin_write16(CAN1_MB20_DATA3, val) |
| 1051 | #define bfin_read_CAN1_MB20_LENGTH() bfin_read16(CAN1_MB20_LENGTH) |
| 1052 | #define bfin_write_CAN1_MB20_LENGTH(val) bfin_write16(CAN1_MB20_LENGTH, val) |
| 1053 | #define bfin_read_CAN1_MB20_TIMESTAMP() bfin_read16(CAN1_MB20_TIMESTAMP) |
| 1054 | #define bfin_write_CAN1_MB20_TIMESTAMP(val) bfin_write16(CAN1_MB20_TIMESTAMP, val) |
| 1055 | #define bfin_read_CAN1_MB20_ID0() bfin_read16(CAN1_MB20_ID0) |
| 1056 | #define bfin_write_CAN1_MB20_ID0(val) bfin_write16(CAN1_MB20_ID0, val) |
| 1057 | #define bfin_read_CAN1_MB20_ID1() bfin_read16(CAN1_MB20_ID1) |
| 1058 | #define bfin_write_CAN1_MB20_ID1(val) bfin_write16(CAN1_MB20_ID1, val) |
| 1059 | #define bfin_read_CAN1_MB21_DATA0() bfin_read16(CAN1_MB21_DATA0) |
| 1060 | #define bfin_write_CAN1_MB21_DATA0(val) bfin_write16(CAN1_MB21_DATA0, val) |
| 1061 | #define bfin_read_CAN1_MB21_DATA1() bfin_read16(CAN1_MB21_DATA1) |
| 1062 | #define bfin_write_CAN1_MB21_DATA1(val) bfin_write16(CAN1_MB21_DATA1, val) |
| 1063 | #define bfin_read_CAN1_MB21_DATA2() bfin_read16(CAN1_MB21_DATA2) |
| 1064 | #define bfin_write_CAN1_MB21_DATA2(val) bfin_write16(CAN1_MB21_DATA2, val) |
| 1065 | #define bfin_read_CAN1_MB21_DATA3() bfin_read16(CAN1_MB21_DATA3) |
| 1066 | #define bfin_write_CAN1_MB21_DATA3(val) bfin_write16(CAN1_MB21_DATA3, val) |
| 1067 | #define bfin_read_CAN1_MB21_LENGTH() bfin_read16(CAN1_MB21_LENGTH) |
| 1068 | #define bfin_write_CAN1_MB21_LENGTH(val) bfin_write16(CAN1_MB21_LENGTH, val) |
| 1069 | #define bfin_read_CAN1_MB21_TIMESTAMP() bfin_read16(CAN1_MB21_TIMESTAMP) |
| 1070 | #define bfin_write_CAN1_MB21_TIMESTAMP(val) bfin_write16(CAN1_MB21_TIMESTAMP, val) |
| 1071 | #define bfin_read_CAN1_MB21_ID0() bfin_read16(CAN1_MB21_ID0) |
| 1072 | #define bfin_write_CAN1_MB21_ID0(val) bfin_write16(CAN1_MB21_ID0, val) |
| 1073 | #define bfin_read_CAN1_MB21_ID1() bfin_read16(CAN1_MB21_ID1) |
| 1074 | #define bfin_write_CAN1_MB21_ID1(val) bfin_write16(CAN1_MB21_ID1, val) |
| 1075 | #define bfin_read_CAN1_MB22_DATA0() bfin_read16(CAN1_MB22_DATA0) |
| 1076 | #define bfin_write_CAN1_MB22_DATA0(val) bfin_write16(CAN1_MB22_DATA0, val) |
| 1077 | #define bfin_read_CAN1_MB22_DATA1() bfin_read16(CAN1_MB22_DATA1) |
| 1078 | #define bfin_write_CAN1_MB22_DATA1(val) bfin_write16(CAN1_MB22_DATA1, val) |
| 1079 | #define bfin_read_CAN1_MB22_DATA2() bfin_read16(CAN1_MB22_DATA2) |
| 1080 | #define bfin_write_CAN1_MB22_DATA2(val) bfin_write16(CAN1_MB22_DATA2, val) |
| 1081 | #define bfin_read_CAN1_MB22_DATA3() bfin_read16(CAN1_MB22_DATA3) |
| 1082 | #define bfin_write_CAN1_MB22_DATA3(val) bfin_write16(CAN1_MB22_DATA3, val) |
| 1083 | #define bfin_read_CAN1_MB22_LENGTH() bfin_read16(CAN1_MB22_LENGTH) |
| 1084 | #define bfin_write_CAN1_MB22_LENGTH(val) bfin_write16(CAN1_MB22_LENGTH, val) |
| 1085 | #define bfin_read_CAN1_MB22_TIMESTAMP() bfin_read16(CAN1_MB22_TIMESTAMP) |
| 1086 | #define bfin_write_CAN1_MB22_TIMESTAMP(val) bfin_write16(CAN1_MB22_TIMESTAMP, val) |
| 1087 | #define bfin_read_CAN1_MB22_ID0() bfin_read16(CAN1_MB22_ID0) |
| 1088 | #define bfin_write_CAN1_MB22_ID0(val) bfin_write16(CAN1_MB22_ID0, val) |
| 1089 | #define bfin_read_CAN1_MB22_ID1() bfin_read16(CAN1_MB22_ID1) |
| 1090 | #define bfin_write_CAN1_MB22_ID1(val) bfin_write16(CAN1_MB22_ID1, val) |
| 1091 | #define bfin_read_CAN1_MB23_DATA0() bfin_read16(CAN1_MB23_DATA0) |
| 1092 | #define bfin_write_CAN1_MB23_DATA0(val) bfin_write16(CAN1_MB23_DATA0, val) |
| 1093 | #define bfin_read_CAN1_MB23_DATA1() bfin_read16(CAN1_MB23_DATA1) |
| 1094 | #define bfin_write_CAN1_MB23_DATA1(val) bfin_write16(CAN1_MB23_DATA1, val) |
| 1095 | #define bfin_read_CAN1_MB23_DATA2() bfin_read16(CAN1_MB23_DATA2) |
| 1096 | #define bfin_write_CAN1_MB23_DATA2(val) bfin_write16(CAN1_MB23_DATA2, val) |
| 1097 | #define bfin_read_CAN1_MB23_DATA3() bfin_read16(CAN1_MB23_DATA3) |
| 1098 | #define bfin_write_CAN1_MB23_DATA3(val) bfin_write16(CAN1_MB23_DATA3, val) |
| 1099 | #define bfin_read_CAN1_MB23_LENGTH() bfin_read16(CAN1_MB23_LENGTH) |
| 1100 | #define bfin_write_CAN1_MB23_LENGTH(val) bfin_write16(CAN1_MB23_LENGTH, val) |
| 1101 | #define bfin_read_CAN1_MB23_TIMESTAMP() bfin_read16(CAN1_MB23_TIMESTAMP) |
| 1102 | #define bfin_write_CAN1_MB23_TIMESTAMP(val) bfin_write16(CAN1_MB23_TIMESTAMP, val) |
| 1103 | #define bfin_read_CAN1_MB23_ID0() bfin_read16(CAN1_MB23_ID0) |
| 1104 | #define bfin_write_CAN1_MB23_ID0(val) bfin_write16(CAN1_MB23_ID0, val) |
| 1105 | #define bfin_read_CAN1_MB23_ID1() bfin_read16(CAN1_MB23_ID1) |
| 1106 | #define bfin_write_CAN1_MB23_ID1(val) bfin_write16(CAN1_MB23_ID1, val) |
| 1107 | #define bfin_read_CAN1_MB24_DATA0() bfin_read16(CAN1_MB24_DATA0) |
| 1108 | #define bfin_write_CAN1_MB24_DATA0(val) bfin_write16(CAN1_MB24_DATA0, val) |
| 1109 | #define bfin_read_CAN1_MB24_DATA1() bfin_read16(CAN1_MB24_DATA1) |
| 1110 | #define bfin_write_CAN1_MB24_DATA1(val) bfin_write16(CAN1_MB24_DATA1, val) |
| 1111 | #define bfin_read_CAN1_MB24_DATA2() bfin_read16(CAN1_MB24_DATA2) |
| 1112 | #define bfin_write_CAN1_MB24_DATA2(val) bfin_write16(CAN1_MB24_DATA2, val) |
| 1113 | #define bfin_read_CAN1_MB24_DATA3() bfin_read16(CAN1_MB24_DATA3) |
| 1114 | #define bfin_write_CAN1_MB24_DATA3(val) bfin_write16(CAN1_MB24_DATA3, val) |
| 1115 | #define bfin_read_CAN1_MB24_LENGTH() bfin_read16(CAN1_MB24_LENGTH) |
| 1116 | #define bfin_write_CAN1_MB24_LENGTH(val) bfin_write16(CAN1_MB24_LENGTH, val) |
| 1117 | #define bfin_read_CAN1_MB24_TIMESTAMP() bfin_read16(CAN1_MB24_TIMESTAMP) |
| 1118 | #define bfin_write_CAN1_MB24_TIMESTAMP(val) bfin_write16(CAN1_MB24_TIMESTAMP, val) |
| 1119 | #define bfin_read_CAN1_MB24_ID0() bfin_read16(CAN1_MB24_ID0) |
| 1120 | #define bfin_write_CAN1_MB24_ID0(val) bfin_write16(CAN1_MB24_ID0, val) |
| 1121 | #define bfin_read_CAN1_MB24_ID1() bfin_read16(CAN1_MB24_ID1) |
| 1122 | #define bfin_write_CAN1_MB24_ID1(val) bfin_write16(CAN1_MB24_ID1, val) |
| 1123 | #define bfin_read_CAN1_MB25_DATA0() bfin_read16(CAN1_MB25_DATA0) |
| 1124 | #define bfin_write_CAN1_MB25_DATA0(val) bfin_write16(CAN1_MB25_DATA0, val) |
| 1125 | #define bfin_read_CAN1_MB25_DATA1() bfin_read16(CAN1_MB25_DATA1) |
| 1126 | #define bfin_write_CAN1_MB25_DATA1(val) bfin_write16(CAN1_MB25_DATA1, val) |
| 1127 | #define bfin_read_CAN1_MB25_DATA2() bfin_read16(CAN1_MB25_DATA2) |
| 1128 | #define bfin_write_CAN1_MB25_DATA2(val) bfin_write16(CAN1_MB25_DATA2, val) |
| 1129 | #define bfin_read_CAN1_MB25_DATA3() bfin_read16(CAN1_MB25_DATA3) |
| 1130 | #define bfin_write_CAN1_MB25_DATA3(val) bfin_write16(CAN1_MB25_DATA3, val) |
| 1131 | #define bfin_read_CAN1_MB25_LENGTH() bfin_read16(CAN1_MB25_LENGTH) |
| 1132 | #define bfin_write_CAN1_MB25_LENGTH(val) bfin_write16(CAN1_MB25_LENGTH, val) |
| 1133 | #define bfin_read_CAN1_MB25_TIMESTAMP() bfin_read16(CAN1_MB25_TIMESTAMP) |
| 1134 | #define bfin_write_CAN1_MB25_TIMESTAMP(val) bfin_write16(CAN1_MB25_TIMESTAMP, val) |
| 1135 | #define bfin_read_CAN1_MB25_ID0() bfin_read16(CAN1_MB25_ID0) |
| 1136 | #define bfin_write_CAN1_MB25_ID0(val) bfin_write16(CAN1_MB25_ID0, val) |
| 1137 | #define bfin_read_CAN1_MB25_ID1() bfin_read16(CAN1_MB25_ID1) |
| 1138 | #define bfin_write_CAN1_MB25_ID1(val) bfin_write16(CAN1_MB25_ID1, val) |
| 1139 | #define bfin_read_CAN1_MB26_DATA0() bfin_read16(CAN1_MB26_DATA0) |
| 1140 | #define bfin_write_CAN1_MB26_DATA0(val) bfin_write16(CAN1_MB26_DATA0, val) |
| 1141 | #define bfin_read_CAN1_MB26_DATA1() bfin_read16(CAN1_MB26_DATA1) |
| 1142 | #define bfin_write_CAN1_MB26_DATA1(val) bfin_write16(CAN1_MB26_DATA1, val) |
| 1143 | #define bfin_read_CAN1_MB26_DATA2() bfin_read16(CAN1_MB26_DATA2) |
| 1144 | #define bfin_write_CAN1_MB26_DATA2(val) bfin_write16(CAN1_MB26_DATA2, val) |
| 1145 | #define bfin_read_CAN1_MB26_DATA3() bfin_read16(CAN1_MB26_DATA3) |
| 1146 | #define bfin_write_CAN1_MB26_DATA3(val) bfin_write16(CAN1_MB26_DATA3, val) |
| 1147 | #define bfin_read_CAN1_MB26_LENGTH() bfin_read16(CAN1_MB26_LENGTH) |
| 1148 | #define bfin_write_CAN1_MB26_LENGTH(val) bfin_write16(CAN1_MB26_LENGTH, val) |
| 1149 | #define bfin_read_CAN1_MB26_TIMESTAMP() bfin_read16(CAN1_MB26_TIMESTAMP) |
| 1150 | #define bfin_write_CAN1_MB26_TIMESTAMP(val) bfin_write16(CAN1_MB26_TIMESTAMP, val) |
| 1151 | #define bfin_read_CAN1_MB26_ID0() bfin_read16(CAN1_MB26_ID0) |
| 1152 | #define bfin_write_CAN1_MB26_ID0(val) bfin_write16(CAN1_MB26_ID0, val) |
| 1153 | #define bfin_read_CAN1_MB26_ID1() bfin_read16(CAN1_MB26_ID1) |
| 1154 | #define bfin_write_CAN1_MB26_ID1(val) bfin_write16(CAN1_MB26_ID1, val) |
| 1155 | #define bfin_read_CAN1_MB27_DATA0() bfin_read16(CAN1_MB27_DATA0) |
| 1156 | #define bfin_write_CAN1_MB27_DATA0(val) bfin_write16(CAN1_MB27_DATA0, val) |
| 1157 | #define bfin_read_CAN1_MB27_DATA1() bfin_read16(CAN1_MB27_DATA1) |
| 1158 | #define bfin_write_CAN1_MB27_DATA1(val) bfin_write16(CAN1_MB27_DATA1, val) |
| 1159 | #define bfin_read_CAN1_MB27_DATA2() bfin_read16(CAN1_MB27_DATA2) |
| 1160 | #define bfin_write_CAN1_MB27_DATA2(val) bfin_write16(CAN1_MB27_DATA2, val) |
| 1161 | #define bfin_read_CAN1_MB27_DATA3() bfin_read16(CAN1_MB27_DATA3) |
| 1162 | #define bfin_write_CAN1_MB27_DATA3(val) bfin_write16(CAN1_MB27_DATA3, val) |
| 1163 | #define bfin_read_CAN1_MB27_LENGTH() bfin_read16(CAN1_MB27_LENGTH) |
| 1164 | #define bfin_write_CAN1_MB27_LENGTH(val) bfin_write16(CAN1_MB27_LENGTH, val) |
| 1165 | #define bfin_read_CAN1_MB27_TIMESTAMP() bfin_read16(CAN1_MB27_TIMESTAMP) |
| 1166 | #define bfin_write_CAN1_MB27_TIMESTAMP(val) bfin_write16(CAN1_MB27_TIMESTAMP, val) |
| 1167 | #define bfin_read_CAN1_MB27_ID0() bfin_read16(CAN1_MB27_ID0) |
| 1168 | #define bfin_write_CAN1_MB27_ID0(val) bfin_write16(CAN1_MB27_ID0, val) |
| 1169 | #define bfin_read_CAN1_MB27_ID1() bfin_read16(CAN1_MB27_ID1) |
| 1170 | #define bfin_write_CAN1_MB27_ID1(val) bfin_write16(CAN1_MB27_ID1, val) |
| 1171 | #define bfin_read_CAN1_MB28_DATA0() bfin_read16(CAN1_MB28_DATA0) |
| 1172 | #define bfin_write_CAN1_MB28_DATA0(val) bfin_write16(CAN1_MB28_DATA0, val) |
| 1173 | #define bfin_read_CAN1_MB28_DATA1() bfin_read16(CAN1_MB28_DATA1) |
| 1174 | #define bfin_write_CAN1_MB28_DATA1(val) bfin_write16(CAN1_MB28_DATA1, val) |
| 1175 | #define bfin_read_CAN1_MB28_DATA2() bfin_read16(CAN1_MB28_DATA2) |
| 1176 | #define bfin_write_CAN1_MB28_DATA2(val) bfin_write16(CAN1_MB28_DATA2, val) |
| 1177 | #define bfin_read_CAN1_MB28_DATA3() bfin_read16(CAN1_MB28_DATA3) |
| 1178 | #define bfin_write_CAN1_MB28_DATA3(val) bfin_write16(CAN1_MB28_DATA3, val) |
| 1179 | #define bfin_read_CAN1_MB28_LENGTH() bfin_read16(CAN1_MB28_LENGTH) |
| 1180 | #define bfin_write_CAN1_MB28_LENGTH(val) bfin_write16(CAN1_MB28_LENGTH, val) |
| 1181 | #define bfin_read_CAN1_MB28_TIMESTAMP() bfin_read16(CAN1_MB28_TIMESTAMP) |
| 1182 | #define bfin_write_CAN1_MB28_TIMESTAMP(val) bfin_write16(CAN1_MB28_TIMESTAMP, val) |
| 1183 | #define bfin_read_CAN1_MB28_ID0() bfin_read16(CAN1_MB28_ID0) |
| 1184 | #define bfin_write_CAN1_MB28_ID0(val) bfin_write16(CAN1_MB28_ID0, val) |
| 1185 | #define bfin_read_CAN1_MB28_ID1() bfin_read16(CAN1_MB28_ID1) |
| 1186 | #define bfin_write_CAN1_MB28_ID1(val) bfin_write16(CAN1_MB28_ID1, val) |
| 1187 | #define bfin_read_CAN1_MB29_DATA0() bfin_read16(CAN1_MB29_DATA0) |
| 1188 | #define bfin_write_CAN1_MB29_DATA0(val) bfin_write16(CAN1_MB29_DATA0, val) |
| 1189 | #define bfin_read_CAN1_MB29_DATA1() bfin_read16(CAN1_MB29_DATA1) |
| 1190 | #define bfin_write_CAN1_MB29_DATA1(val) bfin_write16(CAN1_MB29_DATA1, val) |
| 1191 | #define bfin_read_CAN1_MB29_DATA2() bfin_read16(CAN1_MB29_DATA2) |
| 1192 | #define bfin_write_CAN1_MB29_DATA2(val) bfin_write16(CAN1_MB29_DATA2, val) |
| 1193 | #define bfin_read_CAN1_MB29_DATA3() bfin_read16(CAN1_MB29_DATA3) |
| 1194 | #define bfin_write_CAN1_MB29_DATA3(val) bfin_write16(CAN1_MB29_DATA3, val) |
| 1195 | #define bfin_read_CAN1_MB29_LENGTH() bfin_read16(CAN1_MB29_LENGTH) |
| 1196 | #define bfin_write_CAN1_MB29_LENGTH(val) bfin_write16(CAN1_MB29_LENGTH, val) |
| 1197 | #define bfin_read_CAN1_MB29_TIMESTAMP() bfin_read16(CAN1_MB29_TIMESTAMP) |
| 1198 | #define bfin_write_CAN1_MB29_TIMESTAMP(val) bfin_write16(CAN1_MB29_TIMESTAMP, val) |
| 1199 | #define bfin_read_CAN1_MB29_ID0() bfin_read16(CAN1_MB29_ID0) |
| 1200 | #define bfin_write_CAN1_MB29_ID0(val) bfin_write16(CAN1_MB29_ID0, val) |
| 1201 | #define bfin_read_CAN1_MB29_ID1() bfin_read16(CAN1_MB29_ID1) |
| 1202 | #define bfin_write_CAN1_MB29_ID1(val) bfin_write16(CAN1_MB29_ID1, val) |
| 1203 | #define bfin_read_CAN1_MB30_DATA0() bfin_read16(CAN1_MB30_DATA0) |
| 1204 | #define bfin_write_CAN1_MB30_DATA0(val) bfin_write16(CAN1_MB30_DATA0, val) |
| 1205 | #define bfin_read_CAN1_MB30_DATA1() bfin_read16(CAN1_MB30_DATA1) |
| 1206 | #define bfin_write_CAN1_MB30_DATA1(val) bfin_write16(CAN1_MB30_DATA1, val) |
| 1207 | #define bfin_read_CAN1_MB30_DATA2() bfin_read16(CAN1_MB30_DATA2) |
| 1208 | #define bfin_write_CAN1_MB30_DATA2(val) bfin_write16(CAN1_MB30_DATA2, val) |
| 1209 | #define bfin_read_CAN1_MB30_DATA3() bfin_read16(CAN1_MB30_DATA3) |
| 1210 | #define bfin_write_CAN1_MB30_DATA3(val) bfin_write16(CAN1_MB30_DATA3, val) |
| 1211 | #define bfin_read_CAN1_MB30_LENGTH() bfin_read16(CAN1_MB30_LENGTH) |
| 1212 | #define bfin_write_CAN1_MB30_LENGTH(val) bfin_write16(CAN1_MB30_LENGTH, val) |
| 1213 | #define bfin_read_CAN1_MB30_TIMESTAMP() bfin_read16(CAN1_MB30_TIMESTAMP) |
| 1214 | #define bfin_write_CAN1_MB30_TIMESTAMP(val) bfin_write16(CAN1_MB30_TIMESTAMP, val) |
| 1215 | #define bfin_read_CAN1_MB30_ID0() bfin_read16(CAN1_MB30_ID0) |
| 1216 | #define bfin_write_CAN1_MB30_ID0(val) bfin_write16(CAN1_MB30_ID0, val) |
| 1217 | #define bfin_read_CAN1_MB30_ID1() bfin_read16(CAN1_MB30_ID1) |
| 1218 | #define bfin_write_CAN1_MB30_ID1(val) bfin_write16(CAN1_MB30_ID1, val) |
| 1219 | #define bfin_read_CAN1_MB31_DATA0() bfin_read16(CAN1_MB31_DATA0) |
| 1220 | #define bfin_write_CAN1_MB31_DATA0(val) bfin_write16(CAN1_MB31_DATA0, val) |
| 1221 | #define bfin_read_CAN1_MB31_DATA1() bfin_read16(CAN1_MB31_DATA1) |
| 1222 | #define bfin_write_CAN1_MB31_DATA1(val) bfin_write16(CAN1_MB31_DATA1, val) |
| 1223 | #define bfin_read_CAN1_MB31_DATA2() bfin_read16(CAN1_MB31_DATA2) |
| 1224 | #define bfin_write_CAN1_MB31_DATA2(val) bfin_write16(CAN1_MB31_DATA2, val) |
| 1225 | #define bfin_read_CAN1_MB31_DATA3() bfin_read16(CAN1_MB31_DATA3) |
| 1226 | #define bfin_write_CAN1_MB31_DATA3(val) bfin_write16(CAN1_MB31_DATA3, val) |
| 1227 | #define bfin_read_CAN1_MB31_LENGTH() bfin_read16(CAN1_MB31_LENGTH) |
| 1228 | #define bfin_write_CAN1_MB31_LENGTH(val) bfin_write16(CAN1_MB31_LENGTH, val) |
| 1229 | #define bfin_read_CAN1_MB31_TIMESTAMP() bfin_read16(CAN1_MB31_TIMESTAMP) |
| 1230 | #define bfin_write_CAN1_MB31_TIMESTAMP(val) bfin_write16(CAN1_MB31_TIMESTAMP, val) |
| 1231 | #define bfin_read_CAN1_MB31_ID0() bfin_read16(CAN1_MB31_ID0) |
| 1232 | #define bfin_write_CAN1_MB31_ID0(val) bfin_write16(CAN1_MB31_ID0, val) |
| 1233 | #define bfin_read_CAN1_MB31_ID1() bfin_read16(CAN1_MB31_ID1) |
| 1234 | #define bfin_write_CAN1_MB31_ID1(val) bfin_write16(CAN1_MB31_ID1, val) |
| 1235 | |
| 1236 | /* ATAPI Registers */ |
| 1237 | |
| 1238 | #define bfin_read_ATAPI_CONTROL() bfin_read16(ATAPI_CONTROL) |
| 1239 | #define bfin_write_ATAPI_CONTROL(val) bfin_write16(ATAPI_CONTROL, val) |
| 1240 | #define bfin_read_ATAPI_STATUS() bfin_read16(ATAPI_STATUS) |
| 1241 | #define bfin_write_ATAPI_STATUS(val) bfin_write16(ATAPI_STATUS, val) |
| 1242 | #define bfin_read_ATAPI_DEV_ADDR() bfin_read16(ATAPI_DEV_ADDR) |
| 1243 | #define bfin_write_ATAPI_DEV_ADDR(val) bfin_write16(ATAPI_DEV_ADDR, val) |
| 1244 | #define bfin_read_ATAPI_DEV_TXBUF() bfin_read16(ATAPI_DEV_TXBUF) |
| 1245 | #define bfin_write_ATAPI_DEV_TXBUF(val) bfin_write16(ATAPI_DEV_TXBUF, val) |
| 1246 | #define bfin_read_ATAPI_DEV_RXBUF() bfin_read16(ATAPI_DEV_RXBUF) |
| 1247 | #define bfin_write_ATAPI_DEV_RXBUF(val) bfin_write16(ATAPI_DEV_RXBUF, val) |
| 1248 | #define bfin_read_ATAPI_INT_MASK() bfin_read16(ATAPI_INT_MASK) |
| 1249 | #define bfin_write_ATAPI_INT_MASK(val) bfin_write16(ATAPI_INT_MASK, val) |
| 1250 | #define bfin_read_ATAPI_INT_STATUS() bfin_read16(ATAPI_INT_STATUS) |
| 1251 | #define bfin_write_ATAPI_INT_STATUS(val) bfin_write16(ATAPI_INT_STATUS, val) |
| 1252 | #define bfin_read_ATAPI_XFER_LEN() bfin_read16(ATAPI_XFER_LEN) |
| 1253 | #define bfin_write_ATAPI_XFER_LEN(val) bfin_write16(ATAPI_XFER_LEN, val) |
| 1254 | #define bfin_read_ATAPI_LINE_STATUS() bfin_read16(ATAPI_LINE_STATUS) |
| 1255 | #define bfin_write_ATAPI_LINE_STATUS(val) bfin_write16(ATAPI_LINE_STATUS, val) |
| 1256 | #define bfin_read_ATAPI_SM_STATE() bfin_read16(ATAPI_SM_STATE) |
| 1257 | #define bfin_write_ATAPI_SM_STATE(val) bfin_write16(ATAPI_SM_STATE, val) |
| 1258 | #define bfin_read_ATAPI_TERMINATE() bfin_read16(ATAPI_TERMINATE) |
| 1259 | #define bfin_write_ATAPI_TERMINATE(val) bfin_write16(ATAPI_TERMINATE, val) |
| 1260 | #define bfin_read_ATAPI_PIO_TFRCNT() bfin_read16(ATAPI_PIO_TFRCNT) |
| 1261 | #define bfin_write_ATAPI_PIO_TFRCNT(val) bfin_write16(ATAPI_PIO_TFRCNT, val) |
| 1262 | #define bfin_read_ATAPI_DMA_TFRCNT() bfin_read16(ATAPI_DMA_TFRCNT) |
| 1263 | #define bfin_write_ATAPI_DMA_TFRCNT(val) bfin_write16(ATAPI_DMA_TFRCNT, val) |
| 1264 | #define bfin_read_ATAPI_UMAIN_TFRCNT() bfin_read16(ATAPI_UMAIN_TFRCNT) |
| 1265 | #define bfin_write_ATAPI_UMAIN_TFRCNT(val) bfin_write16(ATAPI_UMAIN_TFRCNT, val) |
| 1266 | #define bfin_read_ATAPI_UDMAOUT_TFRCNT() bfin_read16(ATAPI_UDMAOUT_TFRCNT) |
| 1267 | #define bfin_write_ATAPI_UDMAOUT_TFRCNT(val) bfin_write16(ATAPI_UDMAOUT_TFRCNT, val) |
| 1268 | #define bfin_read_ATAPI_REG_TIM_0() bfin_read16(ATAPI_REG_TIM_0) |
| 1269 | #define bfin_write_ATAPI_REG_TIM_0(val) bfin_write16(ATAPI_REG_TIM_0, val) |
| 1270 | #define bfin_read_ATAPI_PIO_TIM_0() bfin_read16(ATAPI_PIO_TIM_0) |
| 1271 | #define bfin_write_ATAPI_PIO_TIM_0(val) bfin_write16(ATAPI_PIO_TIM_0, val) |
| 1272 | #define bfin_read_ATAPI_PIO_TIM_1() bfin_read16(ATAPI_PIO_TIM_1) |
| 1273 | #define bfin_write_ATAPI_PIO_TIM_1(val) bfin_write16(ATAPI_PIO_TIM_1, val) |
| 1274 | #define bfin_read_ATAPI_MULTI_TIM_0() bfin_read16(ATAPI_MULTI_TIM_0) |
| 1275 | #define bfin_write_ATAPI_MULTI_TIM_0(val) bfin_write16(ATAPI_MULTI_TIM_0, val) |
| 1276 | #define bfin_read_ATAPI_MULTI_TIM_1() bfin_read16(ATAPI_MULTI_TIM_1) |
| 1277 | #define bfin_write_ATAPI_MULTI_TIM_1(val) bfin_write16(ATAPI_MULTI_TIM_1, val) |
| 1278 | #define bfin_read_ATAPI_MULTI_TIM_2() bfin_read16(ATAPI_MULTI_TIM_2) |
| 1279 | #define bfin_write_ATAPI_MULTI_TIM_2(val) bfin_write16(ATAPI_MULTI_TIM_2, val) |
| 1280 | #define bfin_read_ATAPI_ULTRA_TIM_0() bfin_read16(ATAPI_ULTRA_TIM_0) |
| 1281 | #define bfin_write_ATAPI_ULTRA_TIM_0(val) bfin_write16(ATAPI_ULTRA_TIM_0, val) |
| 1282 | #define bfin_read_ATAPI_ULTRA_TIM_1() bfin_read16(ATAPI_ULTRA_TIM_1) |
| 1283 | #define bfin_write_ATAPI_ULTRA_TIM_1(val) bfin_write16(ATAPI_ULTRA_TIM_1, val) |
| 1284 | #define bfin_read_ATAPI_ULTRA_TIM_2() bfin_read16(ATAPI_ULTRA_TIM_2) |
| 1285 | #define bfin_write_ATAPI_ULTRA_TIM_2(val) bfin_write16(ATAPI_ULTRA_TIM_2, val) |
| 1286 | #define bfin_read_ATAPI_ULTRA_TIM_3() bfin_read16(ATAPI_ULTRA_TIM_3) |
| 1287 | #define bfin_write_ATAPI_ULTRA_TIM_3(val) bfin_write16(ATAPI_ULTRA_TIM_3, val) |
| 1288 | |
| 1289 | /* SDH Registers */ |
| 1290 | |
| 1291 | #define bfin_read_SDH_PWR_CTL() bfin_read16(SDH_PWR_CTL) |
| 1292 | #define bfin_write_SDH_PWR_CTL(val) bfin_write16(SDH_PWR_CTL, val) |
| 1293 | #define bfin_read_SDH_CLK_CTL() bfin_read16(SDH_CLK_CTL) |
| 1294 | #define bfin_write_SDH_CLK_CTL(val) bfin_write16(SDH_CLK_CTL, val) |
| 1295 | #define bfin_read_SDH_ARGUMENT() bfin_read32(SDH_ARGUMENT) |
| 1296 | #define bfin_write_SDH_ARGUMENT(val) bfin_write32(SDH_ARGUMENT, val) |
| 1297 | #define bfin_read_SDH_COMMAND() bfin_read16(SDH_COMMAND) |
| 1298 | #define bfin_write_SDH_COMMAND(val) bfin_write16(SDH_COMMAND, val) |
| 1299 | #define bfin_read_SDH_RESP_CMD() bfin_read16(SDH_RESP_CMD) |
| 1300 | #define bfin_write_SDH_RESP_CMD(val) bfin_write16(SDH_RESP_CMD, val) |
| 1301 | #define bfin_read_SDH_RESPONSE0() bfin_read32(SDH_RESPONSE0) |
| 1302 | #define bfin_write_SDH_RESPONSE0(val) bfin_write32(SDH_RESPONSE0, val) |
| 1303 | #define bfin_read_SDH_RESPONSE1() bfin_read32(SDH_RESPONSE1) |
| 1304 | #define bfin_write_SDH_RESPONSE1(val) bfin_write32(SDH_RESPONSE1, val) |
| 1305 | #define bfin_read_SDH_RESPONSE2() bfin_read32(SDH_RESPONSE2) |
| 1306 | #define bfin_write_SDH_RESPONSE2(val) bfin_write32(SDH_RESPONSE2, val) |
| 1307 | #define bfin_read_SDH_RESPONSE3() bfin_read32(SDH_RESPONSE3) |
| 1308 | #define bfin_write_SDH_RESPONSE3(val) bfin_write32(SDH_RESPONSE3, val) |
| 1309 | #define bfin_read_SDH_DATA_TIMER() bfin_read32(SDH_DATA_TIMER) |
| 1310 | #define bfin_write_SDH_DATA_TIMER(val) bfin_write32(SDH_DATA_TIMER, val) |
| 1311 | #define bfin_read_SDH_DATA_LGTH() bfin_read16(SDH_DATA_LGTH) |
| 1312 | #define bfin_write_SDH_DATA_LGTH(val) bfin_write16(SDH_DATA_LGTH, val) |
| 1313 | #define bfin_read_SDH_DATA_CTL() bfin_read16(SDH_DATA_CTL) |
| 1314 | #define bfin_write_SDH_DATA_CTL(val) bfin_write16(SDH_DATA_CTL, val) |
| 1315 | #define bfin_read_SDH_DATA_CNT() bfin_read16(SDH_DATA_CNT) |
| 1316 | #define bfin_write_SDH_DATA_CNT(val) bfin_write16(SDH_DATA_CNT, val) |
| 1317 | #define bfin_read_SDH_STATUS() bfin_read32(SDH_STATUS) |
| 1318 | #define bfin_write_SDH_STATUS(val) bfin_write32(SDH_STATUS, val) |
| 1319 | #define bfin_read_SDH_STATUS_CLR() bfin_read16(SDH_STATUS_CLR) |
| 1320 | #define bfin_write_SDH_STATUS_CLR(val) bfin_write16(SDH_STATUS_CLR, val) |
| 1321 | #define bfin_read_SDH_MASK0() bfin_read32(SDH_MASK0) |
| 1322 | #define bfin_write_SDH_MASK0(val) bfin_write32(SDH_MASK0, val) |
| 1323 | #define bfin_read_SDH_MASK1() bfin_read32(SDH_MASK1) |
| 1324 | #define bfin_write_SDH_MASK1(val) bfin_write32(SDH_MASK1, val) |
| 1325 | #define bfin_read_SDH_FIFO_CNT() bfin_read16(SDH_FIFO_CNT) |
| 1326 | #define bfin_write_SDH_FIFO_CNT(val) bfin_write16(SDH_FIFO_CNT, val) |
| 1327 | #define bfin_read_SDH_FIFO() bfin_read32(SDH_FIFO) |
| 1328 | #define bfin_write_SDH_FIFO(val) bfin_write32(SDH_FIFO, val) |
| 1329 | #define bfin_read_SDH_E_STATUS() bfin_read16(SDH_E_STATUS) |
| 1330 | #define bfin_write_SDH_E_STATUS(val) bfin_write16(SDH_E_STATUS, val) |
| 1331 | #define bfin_read_SDH_E_MASK() bfin_read16(SDH_E_MASK) |
| 1332 | #define bfin_write_SDH_E_MASK(val) bfin_write16(SDH_E_MASK, val) |
| 1333 | #define bfin_read_SDH_CFG() bfin_read16(SDH_CFG) |
| 1334 | #define bfin_write_SDH_CFG(val) bfin_write16(SDH_CFG, val) |
| 1335 | #define bfin_read_SDH_RD_WAIT_EN() bfin_read16(SDH_RD_WAIT_EN) |
| 1336 | #define bfin_write_SDH_RD_WAIT_EN(val) bfin_write16(SDH_RD_WAIT_EN, val) |
| 1337 | #define bfin_read_SDH_PID0() bfin_read16(SDH_PID0) |
| 1338 | #define bfin_write_SDH_PID0(val) bfin_write16(SDH_PID0, val) |
| 1339 | #define bfin_read_SDH_PID1() bfin_read16(SDH_PID1) |
| 1340 | #define bfin_write_SDH_PID1(val) bfin_write16(SDH_PID1, val) |
| 1341 | #define bfin_read_SDH_PID2() bfin_read16(SDH_PID2) |
| 1342 | #define bfin_write_SDH_PID2(val) bfin_write16(SDH_PID2, val) |
| 1343 | #define bfin_read_SDH_PID3() bfin_read16(SDH_PID3) |
| 1344 | #define bfin_write_SDH_PID3(val) bfin_write16(SDH_PID3, val) |
| 1345 | #define bfin_read_SDH_PID4() bfin_read16(SDH_PID4) |
| 1346 | #define bfin_write_SDH_PID4(val) bfin_write16(SDH_PID4, val) |
| 1347 | #define bfin_read_SDH_PID5() bfin_read16(SDH_PID5) |
| 1348 | #define bfin_write_SDH_PID5(val) bfin_write16(SDH_PID5, val) |
| 1349 | #define bfin_read_SDH_PID6() bfin_read16(SDH_PID6) |
| 1350 | #define bfin_write_SDH_PID6(val) bfin_write16(SDH_PID6, val) |
| 1351 | #define bfin_read_SDH_PID7() bfin_read16(SDH_PID7) |
| 1352 | #define bfin_write_SDH_PID7(val) bfin_write16(SDH_PID7, val) |
| 1353 | |
| 1354 | /* HOST Port Registers */ |
| 1355 | |
| 1356 | #define bfin_read_HOST_CONTROL() bfin_read16(HOST_CONTROL) |
| 1357 | #define bfin_write_HOST_CONTROL(val) bfin_write16(HOST_CONTROL, val) |
| 1358 | #define bfin_read_HOST_STATUS() bfin_read16(HOST_STATUS) |
| 1359 | #define bfin_write_HOST_STATUS(val) bfin_write16(HOST_STATUS, val) |
| 1360 | #define bfin_read_HOST_TIMEOUT() bfin_read16(HOST_TIMEOUT) |
| 1361 | #define bfin_write_HOST_TIMEOUT(val) bfin_write16(HOST_TIMEOUT, val) |
| 1362 | |
| 1363 | /* USB Control Registers */ |
| 1364 | |
| 1365 | #define bfin_read_USB_FADDR() bfin_read16(USB_FADDR) |
| 1366 | #define bfin_write_USB_FADDR(val) bfin_write16(USB_FADDR, val) |
| 1367 | #define bfin_read_USB_POWER() bfin_read16(USB_POWER) |
| 1368 | #define bfin_write_USB_POWER(val) bfin_write16(USB_POWER, val) |
| 1369 | #define bfin_read_USB_INTRTX() bfin_read16(USB_INTRTX) |
| 1370 | #define bfin_write_USB_INTRTX(val) bfin_write16(USB_INTRTX, val) |
| 1371 | #define bfin_read_USB_INTRRX() bfin_read16(USB_INTRRX) |
| 1372 | #define bfin_write_USB_INTRRX(val) bfin_write16(USB_INTRRX, val) |
| 1373 | #define bfin_read_USB_INTRTXE() bfin_read16(USB_INTRTXE) |
| 1374 | #define bfin_write_USB_INTRTXE(val) bfin_write16(USB_INTRTXE, val) |
| 1375 | #define bfin_read_USB_INTRRXE() bfin_read16(USB_INTRRXE) |
| 1376 | #define bfin_write_USB_INTRRXE(val) bfin_write16(USB_INTRRXE, val) |
| 1377 | #define bfin_read_USB_INTRUSB() bfin_read16(USB_INTRUSB) |
| 1378 | #define bfin_write_USB_INTRUSB(val) bfin_write16(USB_INTRUSB, val) |
| 1379 | #define bfin_read_USB_INTRUSBE() bfin_read16(USB_INTRUSBE) |
| 1380 | #define bfin_write_USB_INTRUSBE(val) bfin_write16(USB_INTRUSBE, val) |
| 1381 | #define bfin_read_USB_FRAME() bfin_read16(USB_FRAME) |
| 1382 | #define bfin_write_USB_FRAME(val) bfin_write16(USB_FRAME, val) |
| 1383 | #define bfin_read_USB_INDEX() bfin_read16(USB_INDEX) |
| 1384 | #define bfin_write_USB_INDEX(val) bfin_write16(USB_INDEX, val) |
| 1385 | #define bfin_read_USB_TESTMODE() bfin_read16(USB_TESTMODE) |
| 1386 | #define bfin_write_USB_TESTMODE(val) bfin_write16(USB_TESTMODE, val) |
| 1387 | #define bfin_read_USB_GLOBINTR() bfin_read16(USB_GLOBINTR) |
| 1388 | #define bfin_write_USB_GLOBINTR(val) bfin_write16(USB_GLOBINTR, val) |
| 1389 | #define bfin_read_USB_GLOBAL_CTL() bfin_read16(USB_GLOBAL_CTL) |
| 1390 | #define bfin_write_USB_GLOBAL_CTL(val) bfin_write16(USB_GLOBAL_CTL, val) |
| 1391 | |
| 1392 | /* USB Packet Control Registers */ |
| 1393 | |
| 1394 | #define bfin_read_USB_TX_MAX_PACKET() bfin_read16(USB_TX_MAX_PACKET) |
| 1395 | #define bfin_write_USB_TX_MAX_PACKET(val) bfin_write16(USB_TX_MAX_PACKET, val) |
| 1396 | #define bfin_read_USB_CSR0() bfin_read16(USB_CSR0) |
| 1397 | #define bfin_write_USB_CSR0(val) bfin_write16(USB_CSR0, val) |
| 1398 | #define bfin_read_USB_TXCSR() bfin_read16(USB_TXCSR) |
| 1399 | #define bfin_write_USB_TXCSR(val) bfin_write16(USB_TXCSR, val) |
| 1400 | #define bfin_read_USB_RX_MAX_PACKET() bfin_read16(USB_RX_MAX_PACKET) |
| 1401 | #define bfin_write_USB_RX_MAX_PACKET(val) bfin_write16(USB_RX_MAX_PACKET, val) |
| 1402 | #define bfin_read_USB_RXCSR() bfin_read16(USB_RXCSR) |
| 1403 | #define bfin_write_USB_RXCSR(val) bfin_write16(USB_RXCSR, val) |
| 1404 | #define bfin_read_USB_COUNT0() bfin_read16(USB_COUNT0) |
| 1405 | #define bfin_write_USB_COUNT0(val) bfin_write16(USB_COUNT0, val) |
| 1406 | #define bfin_read_USB_RXCOUNT() bfin_read16(USB_RXCOUNT) |
| 1407 | #define bfin_write_USB_RXCOUNT(val) bfin_write16(USB_RXCOUNT, val) |
| 1408 | #define bfin_read_USB_TXTYPE() bfin_read16(USB_TXTYPE) |
| 1409 | #define bfin_write_USB_TXTYPE(val) bfin_write16(USB_TXTYPE, val) |
| 1410 | #define bfin_read_USB_NAKLIMIT0() bfin_read16(USB_NAKLIMIT0) |
| 1411 | #define bfin_write_USB_NAKLIMIT0(val) bfin_write16(USB_NAKLIMIT0, val) |
| 1412 | #define bfin_read_USB_TXINTERVAL() bfin_read16(USB_TXINTERVAL) |
| 1413 | #define bfin_write_USB_TXINTERVAL(val) bfin_write16(USB_TXINTERVAL, val) |
| 1414 | #define bfin_read_USB_RXTYPE() bfin_read16(USB_RXTYPE) |
| 1415 | #define bfin_write_USB_RXTYPE(val) bfin_write16(USB_RXTYPE, val) |
| 1416 | #define bfin_read_USB_RXINTERVAL() bfin_read16(USB_RXINTERVAL) |
| 1417 | #define bfin_write_USB_RXINTERVAL(val) bfin_write16(USB_RXINTERVAL, val) |
| 1418 | #define bfin_read_USB_TXCOUNT() bfin_read16(USB_TXCOUNT) |
| 1419 | #define bfin_write_USB_TXCOUNT(val) bfin_write16(USB_TXCOUNT, val) |
| 1420 | |
| 1421 | /* USB Endbfin_read_()oint FIFO Registers */ |
| 1422 | |
| 1423 | #define bfin_read_USB_EP0_FIFO() bfin_read16(USB_EP0_FIFO) |
| 1424 | #define bfin_write_USB_EP0_FIFO(val) bfin_write16(USB_EP0_FIFO, val) |
| 1425 | #define bfin_read_USB_EP1_FIFO() bfin_read16(USB_EP1_FIFO) |
| 1426 | #define bfin_write_USB_EP1_FIFO(val) bfin_write16(USB_EP1_FIFO, val) |
| 1427 | #define bfin_read_USB_EP2_FIFO() bfin_read16(USB_EP2_FIFO) |
| 1428 | #define bfin_write_USB_EP2_FIFO(val) bfin_write16(USB_EP2_FIFO, val) |
| 1429 | #define bfin_read_USB_EP3_FIFO() bfin_read16(USB_EP3_FIFO) |
| 1430 | #define bfin_write_USB_EP3_FIFO(val) bfin_write16(USB_EP3_FIFO, val) |
| 1431 | #define bfin_read_USB_EP4_FIFO() bfin_read16(USB_EP4_FIFO) |
| 1432 | #define bfin_write_USB_EP4_FIFO(val) bfin_write16(USB_EP4_FIFO, val) |
| 1433 | #define bfin_read_USB_EP5_FIFO() bfin_read16(USB_EP5_FIFO) |
| 1434 | #define bfin_write_USB_EP5_FIFO(val) bfin_write16(USB_EP5_FIFO, val) |
| 1435 | #define bfin_read_USB_EP6_FIFO() bfin_read16(USB_EP6_FIFO) |
| 1436 | #define bfin_write_USB_EP6_FIFO(val) bfin_write16(USB_EP6_FIFO, val) |
| 1437 | #define bfin_read_USB_EP7_FIFO() bfin_read16(USB_EP7_FIFO) |
| 1438 | #define bfin_write_USB_EP7_FIFO(val) bfin_write16(USB_EP7_FIFO, val) |
| 1439 | |
| 1440 | /* USB OTG Control Registers */ |
| 1441 | |
| 1442 | #define bfin_read_USB_OTG_DEV_CTL() bfin_read16(USB_OTG_DEV_CTL) |
| 1443 | #define bfin_write_USB_OTG_DEV_CTL(val) bfin_write16(USB_OTG_DEV_CTL, val) |
| 1444 | #define bfin_read_USB_OTG_VBUS_IRQ() bfin_read16(USB_OTG_VBUS_IRQ) |
| 1445 | #define bfin_write_USB_OTG_VBUS_IRQ(val) bfin_write16(USB_OTG_VBUS_IRQ, val) |
| 1446 | #define bfin_read_USB_OTG_VBUS_MASK() bfin_read16(USB_OTG_VBUS_MASK) |
| 1447 | #define bfin_write_USB_OTG_VBUS_MASK(val) bfin_write16(USB_OTG_VBUS_MASK, val) |
| 1448 | |
| 1449 | /* USB Phy Control Registers */ |
| 1450 | |
| 1451 | #define bfin_read_USB_LINKINFO() bfin_read16(USB_LINKINFO) |
| 1452 | #define bfin_write_USB_LINKINFO(val) bfin_write16(USB_LINKINFO, val) |
| 1453 | #define bfin_read_USB_VPLEN() bfin_read16(USB_VPLEN) |
| 1454 | #define bfin_write_USB_VPLEN(val) bfin_write16(USB_VPLEN, val) |
| 1455 | #define bfin_read_USB_HS_EOF1() bfin_read16(USB_HS_EOF1) |
| 1456 | #define bfin_write_USB_HS_EOF1(val) bfin_write16(USB_HS_EOF1, val) |
| 1457 | #define bfin_read_USB_FS_EOF1() bfin_read16(USB_FS_EOF1) |
| 1458 | #define bfin_write_USB_FS_EOF1(val) bfin_write16(USB_FS_EOF1, val) |
| 1459 | #define bfin_read_USB_LS_EOF1() bfin_read16(USB_LS_EOF1) |
| 1460 | #define bfin_write_USB_LS_EOF1(val) bfin_write16(USB_LS_EOF1, val) |
| 1461 | |
| 1462 | /* (APHY_CNTRL is for ADI usage only) */ |
| 1463 | |
| 1464 | #define bfin_read_USB_APHY_CNTRL() bfin_read16(USB_APHY_CNTRL) |
| 1465 | #define bfin_write_USB_APHY_CNTRL(val) bfin_write16(USB_APHY_CNTRL, val) |
| 1466 | |
| 1467 | /* (APHY_CALIB is for ADI usage only) */ |
| 1468 | |
| 1469 | #define bfin_read_USB_APHY_CALIB() bfin_read16(USB_APHY_CALIB) |
| 1470 | #define bfin_write_USB_APHY_CALIB(val) bfin_write16(USB_APHY_CALIB, val) |
| 1471 | #define bfin_read_USB_APHY_CNTRL2() bfin_read16(USB_APHY_CNTRL2) |
| 1472 | #define bfin_write_USB_APHY_CNTRL2(val) bfin_write16(USB_APHY_CNTRL2, val) |
| 1473 | |
| 1474 | /* (PHY_TEST is for ADI usage only) */ |
| 1475 | |
| 1476 | #define bfin_read_USB_PHY_TEST() bfin_read16(USB_PHY_TEST) |
| 1477 | #define bfin_write_USB_PHY_TEST(val) bfin_write16(USB_PHY_TEST, val) |
| 1478 | #define bfin_read_USB_PLLOSC_CTRL() bfin_read16(USB_PLLOSC_CTRL) |
| 1479 | #define bfin_write_USB_PLLOSC_CTRL(val) bfin_write16(USB_PLLOSC_CTRL, val) |
| 1480 | #define bfin_read_USB_SRP_CLKDIV() bfin_read16(USB_SRP_CLKDIV) |
| 1481 | #define bfin_write_USB_SRP_CLKDIV(val) bfin_write16(USB_SRP_CLKDIV, val) |
| 1482 | |
| 1483 | /* USB Endbfin_read_()oint 0 Control Registers */ |
| 1484 | |
| 1485 | #define bfin_read_USB_EP_NI0_TXMAXP() bfin_read16(USB_EP_NI0_TXMAXP) |
| 1486 | #define bfin_write_USB_EP_NI0_TXMAXP(val) bfin_write16(USB_EP_NI0_TXMAXP, val) |
| 1487 | #define bfin_read_USB_EP_NI0_TXCSR() bfin_read16(USB_EP_NI0_TXCSR) |
| 1488 | #define bfin_write_USB_EP_NI0_TXCSR(val) bfin_write16(USB_EP_NI0_TXCSR, val) |
| 1489 | #define bfin_read_USB_EP_NI0_RXMAXP() bfin_read16(USB_EP_NI0_RXMAXP) |
| 1490 | #define bfin_write_USB_EP_NI0_RXMAXP(val) bfin_write16(USB_EP_NI0_RXMAXP, val) |
| 1491 | #define bfin_read_USB_EP_NI0_RXCSR() bfin_read16(USB_EP_NI0_RXCSR) |
| 1492 | #define bfin_write_USB_EP_NI0_RXCSR(val) bfin_write16(USB_EP_NI0_RXCSR, val) |
| 1493 | #define bfin_read_USB_EP_NI0_RXCOUNT() bfin_read16(USB_EP_NI0_RXCOUNT) |
| 1494 | #define bfin_write_USB_EP_NI0_RXCOUNT(val) bfin_write16(USB_EP_NI0_RXCOUNT, val) |
| 1495 | #define bfin_read_USB_EP_NI0_TXTYPE() bfin_read16(USB_EP_NI0_TXTYPE) |
| 1496 | #define bfin_write_USB_EP_NI0_TXTYPE(val) bfin_write16(USB_EP_NI0_TXTYPE, val) |
| 1497 | #define bfin_read_USB_EP_NI0_TXINTERVAL() bfin_read16(USB_EP_NI0_TXINTERVAL) |
| 1498 | #define bfin_write_USB_EP_NI0_TXINTERVAL(val) bfin_write16(USB_EP_NI0_TXINTERVAL, val) |
| 1499 | #define bfin_read_USB_EP_NI0_RXTYPE() bfin_read16(USB_EP_NI0_RXTYPE) |
| 1500 | #define bfin_write_USB_EP_NI0_RXTYPE(val) bfin_write16(USB_EP_NI0_RXTYPE, val) |
| 1501 | #define bfin_read_USB_EP_NI0_RXINTERVAL() bfin_read16(USB_EP_NI0_RXINTERVAL) |
| 1502 | #define bfin_write_USB_EP_NI0_RXINTERVAL(val) bfin_write16(USB_EP_NI0_RXINTERVAL, val) |
| 1503 | |
| 1504 | /* USB Endbfin_read_()oint 1 Control Registers */ |
| 1505 | |
| 1506 | #define bfin_read_USB_EP_NI0_TXCOUNT() bfin_read16(USB_EP_NI0_TXCOUNT) |
| 1507 | #define bfin_write_USB_EP_NI0_TXCOUNT(val) bfin_write16(USB_EP_NI0_TXCOUNT, val) |
| 1508 | #define bfin_read_USB_EP_NI1_TXMAXP() bfin_read16(USB_EP_NI1_TXMAXP) |
| 1509 | #define bfin_write_USB_EP_NI1_TXMAXP(val) bfin_write16(USB_EP_NI1_TXMAXP, val) |
| 1510 | #define bfin_read_USB_EP_NI1_TXCSR() bfin_read16(USB_EP_NI1_TXCSR) |
| 1511 | #define bfin_write_USB_EP_NI1_TXCSR(val) bfin_write16(USB_EP_NI1_TXCSR, val) |
| 1512 | #define bfin_read_USB_EP_NI1_RXMAXP() bfin_read16(USB_EP_NI1_RXMAXP) |
| 1513 | #define bfin_write_USB_EP_NI1_RXMAXP(val) bfin_write16(USB_EP_NI1_RXMAXP, val) |
| 1514 | #define bfin_read_USB_EP_NI1_RXCSR() bfin_read16(USB_EP_NI1_RXCSR) |
| 1515 | #define bfin_write_USB_EP_NI1_RXCSR(val) bfin_write16(USB_EP_NI1_RXCSR, val) |
| 1516 | #define bfin_read_USB_EP_NI1_RXCOUNT() bfin_read16(USB_EP_NI1_RXCOUNT) |
| 1517 | #define bfin_write_USB_EP_NI1_RXCOUNT(val) bfin_write16(USB_EP_NI1_RXCOUNT, val) |
| 1518 | #define bfin_read_USB_EP_NI1_TXTYPE() bfin_read16(USB_EP_NI1_TXTYPE) |
| 1519 | #define bfin_write_USB_EP_NI1_TXTYPE(val) bfin_write16(USB_EP_NI1_TXTYPE, val) |
| 1520 | #define bfin_read_USB_EP_NI1_TXINTERVAL() bfin_read16(USB_EP_NI1_TXINTERVAL) |
| 1521 | #define bfin_write_USB_EP_NI1_TXINTERVAL(val) bfin_write16(USB_EP_NI1_TXINTERVAL, val) |
| 1522 | #define bfin_read_USB_EP_NI1_RXTYPE() bfin_read16(USB_EP_NI1_RXTYPE) |
| 1523 | #define bfin_write_USB_EP_NI1_RXTYPE(val) bfin_write16(USB_EP_NI1_RXTYPE, val) |
| 1524 | #define bfin_read_USB_EP_NI1_RXINTERVAL() bfin_read16(USB_EP_NI1_RXINTERVAL) |
| 1525 | #define bfin_write_USB_EP_NI1_RXINTERVAL(val) bfin_write16(USB_EP_NI1_RXINTERVAL, val) |
| 1526 | |
| 1527 | /* USB Endbfin_read_()oint 2 Control Registers */ |
| 1528 | |
| 1529 | #define bfin_read_USB_EP_NI1_TXCOUNT() bfin_read16(USB_EP_NI1_TXCOUNT) |
| 1530 | #define bfin_write_USB_EP_NI1_TXCOUNT(val) bfin_write16(USB_EP_NI1_TXCOUNT, val) |
| 1531 | #define bfin_read_USB_EP_NI2_TXMAXP() bfin_read16(USB_EP_NI2_TXMAXP) |
| 1532 | #define bfin_write_USB_EP_NI2_TXMAXP(val) bfin_write16(USB_EP_NI2_TXMAXP, val) |
| 1533 | #define bfin_read_USB_EP_NI2_TXCSR() bfin_read16(USB_EP_NI2_TXCSR) |
| 1534 | #define bfin_write_USB_EP_NI2_TXCSR(val) bfin_write16(USB_EP_NI2_TXCSR, val) |
| 1535 | #define bfin_read_USB_EP_NI2_RXMAXP() bfin_read16(USB_EP_NI2_RXMAXP) |
| 1536 | #define bfin_write_USB_EP_NI2_RXMAXP(val) bfin_write16(USB_EP_NI2_RXMAXP, val) |
| 1537 | #define bfin_read_USB_EP_NI2_RXCSR() bfin_read16(USB_EP_NI2_RXCSR) |
| 1538 | #define bfin_write_USB_EP_NI2_RXCSR(val) bfin_write16(USB_EP_NI2_RXCSR, val) |
| 1539 | #define bfin_read_USB_EP_NI2_RXCOUNT() bfin_read16(USB_EP_NI2_RXCOUNT) |
| 1540 | #define bfin_write_USB_EP_NI2_RXCOUNT(val) bfin_write16(USB_EP_NI2_RXCOUNT, val) |
| 1541 | #define bfin_read_USB_EP_NI2_TXTYPE() bfin_read16(USB_EP_NI2_TXTYPE) |
| 1542 | #define bfin_write_USB_EP_NI2_TXTYPE(val) bfin_write16(USB_EP_NI2_TXTYPE, val) |
| 1543 | #define bfin_read_USB_EP_NI2_TXINTERVAL() bfin_read16(USB_EP_NI2_TXINTERVAL) |
| 1544 | #define bfin_write_USB_EP_NI2_TXINTERVAL(val) bfin_write16(USB_EP_NI2_TXINTERVAL, val) |
| 1545 | #define bfin_read_USB_EP_NI2_RXTYPE() bfin_read16(USB_EP_NI2_RXTYPE) |
| 1546 | #define bfin_write_USB_EP_NI2_RXTYPE(val) bfin_write16(USB_EP_NI2_RXTYPE, val) |
| 1547 | #define bfin_read_USB_EP_NI2_RXINTERVAL() bfin_read16(USB_EP_NI2_RXINTERVAL) |
| 1548 | #define bfin_write_USB_EP_NI2_RXINTERVAL(val) bfin_write16(USB_EP_NI2_RXINTERVAL, val) |
| 1549 | |
| 1550 | /* USB Endbfin_read_()oint 3 Control Registers */ |
| 1551 | |
| 1552 | #define bfin_read_USB_EP_NI2_TXCOUNT() bfin_read16(USB_EP_NI2_TXCOUNT) |
| 1553 | #define bfin_write_USB_EP_NI2_TXCOUNT(val) bfin_write16(USB_EP_NI2_TXCOUNT, val) |
| 1554 | #define bfin_read_USB_EP_NI3_TXMAXP() bfin_read16(USB_EP_NI3_TXMAXP) |
| 1555 | #define bfin_write_USB_EP_NI3_TXMAXP(val) bfin_write16(USB_EP_NI3_TXMAXP, val) |
| 1556 | #define bfin_read_USB_EP_NI3_TXCSR() bfin_read16(USB_EP_NI3_TXCSR) |
| 1557 | #define bfin_write_USB_EP_NI3_TXCSR(val) bfin_write16(USB_EP_NI3_TXCSR, val) |
| 1558 | #define bfin_read_USB_EP_NI3_RXMAXP() bfin_read16(USB_EP_NI3_RXMAXP) |
| 1559 | #define bfin_write_USB_EP_NI3_RXMAXP(val) bfin_write16(USB_EP_NI3_RXMAXP, val) |
| 1560 | #define bfin_read_USB_EP_NI3_RXCSR() bfin_read16(USB_EP_NI3_RXCSR) |
| 1561 | #define bfin_write_USB_EP_NI3_RXCSR(val) bfin_write16(USB_EP_NI3_RXCSR, val) |
| 1562 | #define bfin_read_USB_EP_NI3_RXCOUNT() bfin_read16(USB_EP_NI3_RXCOUNT) |
| 1563 | #define bfin_write_USB_EP_NI3_RXCOUNT(val) bfin_write16(USB_EP_NI3_RXCOUNT, val) |
| 1564 | #define bfin_read_USB_EP_NI3_TXTYPE() bfin_read16(USB_EP_NI3_TXTYPE) |
| 1565 | #define bfin_write_USB_EP_NI3_TXTYPE(val) bfin_write16(USB_EP_NI3_TXTYPE, val) |
| 1566 | #define bfin_read_USB_EP_NI3_TXINTERVAL() bfin_read16(USB_EP_NI3_TXINTERVAL) |
| 1567 | #define bfin_write_USB_EP_NI3_TXINTERVAL(val) bfin_write16(USB_EP_NI3_TXINTERVAL, val) |
| 1568 | #define bfin_read_USB_EP_NI3_RXTYPE() bfin_read16(USB_EP_NI3_RXTYPE) |
| 1569 | #define bfin_write_USB_EP_NI3_RXTYPE(val) bfin_write16(USB_EP_NI3_RXTYPE, val) |
| 1570 | #define bfin_read_USB_EP_NI3_RXINTERVAL() bfin_read16(USB_EP_NI3_RXINTERVAL) |
| 1571 | #define bfin_write_USB_EP_NI3_RXINTERVAL(val) bfin_write16(USB_EP_NI3_RXINTERVAL, val) |
| 1572 | |
| 1573 | /* USB Endbfin_read_()oint 4 Control Registers */ |
| 1574 | |
| 1575 | #define bfin_read_USB_EP_NI3_TXCOUNT() bfin_read16(USB_EP_NI3_TXCOUNT) |
| 1576 | #define bfin_write_USB_EP_NI3_TXCOUNT(val) bfin_write16(USB_EP_NI3_TXCOUNT, val) |
| 1577 | #define bfin_read_USB_EP_NI4_TXMAXP() bfin_read16(USB_EP_NI4_TXMAXP) |
| 1578 | #define bfin_write_USB_EP_NI4_TXMAXP(val) bfin_write16(USB_EP_NI4_TXMAXP, val) |
| 1579 | #define bfin_read_USB_EP_NI4_TXCSR() bfin_read16(USB_EP_NI4_TXCSR) |
| 1580 | #define bfin_write_USB_EP_NI4_TXCSR(val) bfin_write16(USB_EP_NI4_TXCSR, val) |
| 1581 | #define bfin_read_USB_EP_NI4_RXMAXP() bfin_read16(USB_EP_NI4_RXMAXP) |
| 1582 | #define bfin_write_USB_EP_NI4_RXMAXP(val) bfin_write16(USB_EP_NI4_RXMAXP, val) |
| 1583 | #define bfin_read_USB_EP_NI4_RXCSR() bfin_read16(USB_EP_NI4_RXCSR) |
| 1584 | #define bfin_write_USB_EP_NI4_RXCSR(val) bfin_write16(USB_EP_NI4_RXCSR, val) |
| 1585 | #define bfin_read_USB_EP_NI4_RXCOUNT() bfin_read16(USB_EP_NI4_RXCOUNT) |
| 1586 | #define bfin_write_USB_EP_NI4_RXCOUNT(val) bfin_write16(USB_EP_NI4_RXCOUNT, val) |
| 1587 | #define bfin_read_USB_EP_NI4_TXTYPE() bfin_read16(USB_EP_NI4_TXTYPE) |
| 1588 | #define bfin_write_USB_EP_NI4_TXTYPE(val) bfin_write16(USB_EP_NI4_TXTYPE, val) |
| 1589 | #define bfin_read_USB_EP_NI4_TXINTERVAL() bfin_read16(USB_EP_NI4_TXINTERVAL) |
| 1590 | #define bfin_write_USB_EP_NI4_TXINTERVAL(val) bfin_write16(USB_EP_NI4_TXINTERVAL, val) |
| 1591 | #define bfin_read_USB_EP_NI4_RXTYPE() bfin_read16(USB_EP_NI4_RXTYPE) |
| 1592 | #define bfin_write_USB_EP_NI4_RXTYPE(val) bfin_write16(USB_EP_NI4_RXTYPE, val) |
| 1593 | #define bfin_read_USB_EP_NI4_RXINTERVAL() bfin_read16(USB_EP_NI4_RXINTERVAL) |
| 1594 | #define bfin_write_USB_EP_NI4_RXINTERVAL(val) bfin_write16(USB_EP_NI4_RXINTERVAL, val) |
| 1595 | |
| 1596 | /* USB Endbfin_read_()oint 5 Control Registers */ |
| 1597 | |
| 1598 | #define bfin_read_USB_EP_NI4_TXCOUNT() bfin_read16(USB_EP_NI4_TXCOUNT) |
| 1599 | #define bfin_write_USB_EP_NI4_TXCOUNT(val) bfin_write16(USB_EP_NI4_TXCOUNT, val) |
| 1600 | #define bfin_read_USB_EP_NI5_TXMAXP() bfin_read16(USB_EP_NI5_TXMAXP) |
| 1601 | #define bfin_write_USB_EP_NI5_TXMAXP(val) bfin_write16(USB_EP_NI5_TXMAXP, val) |
| 1602 | #define bfin_read_USB_EP_NI5_TXCSR() bfin_read16(USB_EP_NI5_TXCSR) |
| 1603 | #define bfin_write_USB_EP_NI5_TXCSR(val) bfin_write16(USB_EP_NI5_TXCSR, val) |
| 1604 | #define bfin_read_USB_EP_NI5_RXMAXP() bfin_read16(USB_EP_NI5_RXMAXP) |
| 1605 | #define bfin_write_USB_EP_NI5_RXMAXP(val) bfin_write16(USB_EP_NI5_RXMAXP, val) |
| 1606 | #define bfin_read_USB_EP_NI5_RXCSR() bfin_read16(USB_EP_NI5_RXCSR) |
| 1607 | #define bfin_write_USB_EP_NI5_RXCSR(val) bfin_write16(USB_EP_NI5_RXCSR, val) |
| 1608 | #define bfin_read_USB_EP_NI5_RXCOUNT() bfin_read16(USB_EP_NI5_RXCOUNT) |
| 1609 | #define bfin_write_USB_EP_NI5_RXCOUNT(val) bfin_write16(USB_EP_NI5_RXCOUNT, val) |
| 1610 | #define bfin_read_USB_EP_NI5_TXTYPE() bfin_read16(USB_EP_NI5_TXTYPE) |
| 1611 | #define bfin_write_USB_EP_NI5_TXTYPE(val) bfin_write16(USB_EP_NI5_TXTYPE, val) |
| 1612 | #define bfin_read_USB_EP_NI5_TXINTERVAL() bfin_read16(USB_EP_NI5_TXINTERVAL) |
| 1613 | #define bfin_write_USB_EP_NI5_TXINTERVAL(val) bfin_write16(USB_EP_NI5_TXINTERVAL, val) |
| 1614 | #define bfin_read_USB_EP_NI5_RXTYPE() bfin_read16(USB_EP_NI5_RXTYPE) |
| 1615 | #define bfin_write_USB_EP_NI5_RXTYPE(val) bfin_write16(USB_EP_NI5_RXTYPE, val) |
| 1616 | #define bfin_read_USB_EP_NI5_RXINTERVAL() bfin_read16(USB_EP_NI5_RXINTERVAL) |
| 1617 | #define bfin_write_USB_EP_NI5_RXINTERVAL(val) bfin_write16(USB_EP_NI5_RXINTERVAL, val) |
| 1618 | |
| 1619 | /* USB Endbfin_read_()oint 6 Control Registers */ |
| 1620 | |
| 1621 | #define bfin_read_USB_EP_NI5_TXCOUNT() bfin_read16(USB_EP_NI5_TXCOUNT) |
| 1622 | #define bfin_write_USB_EP_NI5_TXCOUNT(val) bfin_write16(USB_EP_NI5_TXCOUNT, val) |
| 1623 | #define bfin_read_USB_EP_NI6_TXMAXP() bfin_read16(USB_EP_NI6_TXMAXP) |
| 1624 | #define bfin_write_USB_EP_NI6_TXMAXP(val) bfin_write16(USB_EP_NI6_TXMAXP, val) |
| 1625 | #define bfin_read_USB_EP_NI6_TXCSR() bfin_read16(USB_EP_NI6_TXCSR) |
| 1626 | #define bfin_write_USB_EP_NI6_TXCSR(val) bfin_write16(USB_EP_NI6_TXCSR, val) |
| 1627 | #define bfin_read_USB_EP_NI6_RXMAXP() bfin_read16(USB_EP_NI6_RXMAXP) |
| 1628 | #define bfin_write_USB_EP_NI6_RXMAXP(val) bfin_write16(USB_EP_NI6_RXMAXP, val) |
| 1629 | #define bfin_read_USB_EP_NI6_RXCSR() bfin_read16(USB_EP_NI6_RXCSR) |
| 1630 | #define bfin_write_USB_EP_NI6_RXCSR(val) bfin_write16(USB_EP_NI6_RXCSR, val) |
| 1631 | #define bfin_read_USB_EP_NI6_RXCOUNT() bfin_read16(USB_EP_NI6_RXCOUNT) |
| 1632 | #define bfin_write_USB_EP_NI6_RXCOUNT(val) bfin_write16(USB_EP_NI6_RXCOUNT, val) |
| 1633 | #define bfin_read_USB_EP_NI6_TXTYPE() bfin_read16(USB_EP_NI6_TXTYPE) |
| 1634 | #define bfin_write_USB_EP_NI6_TXTYPE(val) bfin_write16(USB_EP_NI6_TXTYPE, val) |
| 1635 | #define bfin_read_USB_EP_NI6_TXINTERVAL() bfin_read16(USB_EP_NI6_TXINTERVAL) |
| 1636 | #define bfin_write_USB_EP_NI6_TXINTERVAL(val) bfin_write16(USB_EP_NI6_TXINTERVAL, val) |
| 1637 | #define bfin_read_USB_EP_NI6_RXTYPE() bfin_read16(USB_EP_NI6_RXTYPE) |
| 1638 | #define bfin_write_USB_EP_NI6_RXTYPE(val) bfin_write16(USB_EP_NI6_RXTYPE, val) |
| 1639 | #define bfin_read_USB_EP_NI6_RXINTERVAL() bfin_read16(USB_EP_NI6_RXINTERVAL) |
| 1640 | #define bfin_write_USB_EP_NI6_RXINTERVAL(val) bfin_write16(USB_EP_NI6_RXINTERVAL, val) |
| 1641 | |
| 1642 | /* USB Endbfin_read_()oint 7 Control Registers */ |
| 1643 | |
| 1644 | #define bfin_read_USB_EP_NI6_TXCOUNT() bfin_read16(USB_EP_NI6_TXCOUNT) |
| 1645 | #define bfin_write_USB_EP_NI6_TXCOUNT(val) bfin_write16(USB_EP_NI6_TXCOUNT, val) |
| 1646 | #define bfin_read_USB_EP_NI7_TXMAXP() bfin_read16(USB_EP_NI7_TXMAXP) |
| 1647 | #define bfin_write_USB_EP_NI7_TXMAXP(val) bfin_write16(USB_EP_NI7_TXMAXP, val) |
| 1648 | #define bfin_read_USB_EP_NI7_TXCSR() bfin_read16(USB_EP_NI7_TXCSR) |
| 1649 | #define bfin_write_USB_EP_NI7_TXCSR(val) bfin_write16(USB_EP_NI7_TXCSR, val) |
| 1650 | #define bfin_read_USB_EP_NI7_RXMAXP() bfin_read16(USB_EP_NI7_RXMAXP) |
| 1651 | #define bfin_write_USB_EP_NI7_RXMAXP(val) bfin_write16(USB_EP_NI7_RXMAXP, val) |
| 1652 | #define bfin_read_USB_EP_NI7_RXCSR() bfin_read16(USB_EP_NI7_RXCSR) |
| 1653 | #define bfin_write_USB_EP_NI7_RXCSR(val) bfin_write16(USB_EP_NI7_RXCSR, val) |
| 1654 | #define bfin_read_USB_EP_NI7_RXCOUNT() bfin_read16(USB_EP_NI7_RXCOUNT) |
| 1655 | #define bfin_write_USB_EP_NI7_RXCOUNT(val) bfin_write16(USB_EP_NI7_RXCOUNT, val) |
| 1656 | #define bfin_read_USB_EP_NI7_TXTYPE() bfin_read16(USB_EP_NI7_TXTYPE) |
| 1657 | #define bfin_write_USB_EP_NI7_TXTYPE(val) bfin_write16(USB_EP_NI7_TXTYPE, val) |
| 1658 | #define bfin_read_USB_EP_NI7_TXINTERVAL() bfin_read16(USB_EP_NI7_TXINTERVAL) |
| 1659 | #define bfin_write_USB_EP_NI7_TXINTERVAL(val) bfin_write16(USB_EP_NI7_TXINTERVAL, val) |
| 1660 | #define bfin_read_USB_EP_NI7_RXTYPE() bfin_read16(USB_EP_NI7_RXTYPE) |
| 1661 | #define bfin_write_USB_EP_NI7_RXTYPE(val) bfin_write16(USB_EP_NI7_RXTYPE, val) |
| 1662 | #define bfin_read_USB_EP_NI7_RXINTERVAL() bfin_read16(USB_EP_NI7_RXINTERVAL) |
| 1663 | #define bfin_write_USB_EP_NI7_RXINTERVAL(val) bfin_write16(USB_EP_NI7_RXINTERVAL, val) |
| 1664 | #define bfin_read_USB_EP_NI7_TXCOUNT() bfin_read16(USB_EP_NI7_TXCOUNT) |
| 1665 | #define bfin_write_USB_EP_NI7_TXCOUNT(val) bfin_write16(USB_EP_NI7_TXCOUNT, val) |
| 1666 | #define bfin_read_USB_DMA_INTERRUPT() bfin_read16(USB_DMA_INTERRUPT) |
| 1667 | #define bfin_write_USB_DMA_INTERRUPT(val) bfin_write16(USB_DMA_INTERRUPT, val) |
| 1668 | |
| 1669 | /* USB Channel 0 Config Registers */ |
| 1670 | |
| 1671 | #define bfin_read_USB_DMA0CONTROL() bfin_read16(USB_DMA0CONTROL) |
| 1672 | #define bfin_write_USB_DMA0CONTROL(val) bfin_write16(USB_DMA0CONTROL, val) |
| 1673 | #define bfin_read_USB_DMA0ADDRLOW() bfin_read16(USB_DMA0ADDRLOW) |
| 1674 | #define bfin_write_USB_DMA0ADDRLOW(val) bfin_write16(USB_DMA0ADDRLOW, val) |
| 1675 | #define bfin_read_USB_DMA0ADDRHIGH() bfin_read16(USB_DMA0ADDRHIGH) |
| 1676 | #define bfin_write_USB_DMA0ADDRHIGH(val) bfin_write16(USB_DMA0ADDRHIGH, val) |
| 1677 | #define bfin_read_USB_DMA0COUNTLOW() bfin_read16(USB_DMA0COUNTLOW) |
| 1678 | #define bfin_write_USB_DMA0COUNTLOW(val) bfin_write16(USB_DMA0COUNTLOW, val) |
| 1679 | #define bfin_read_USB_DMA0COUNTHIGH() bfin_read16(USB_DMA0COUNTHIGH) |
| 1680 | #define bfin_write_USB_DMA0COUNTHIGH(val) bfin_write16(USB_DMA0COUNTHIGH, val) |
| 1681 | |
| 1682 | /* USB Channel 1 Config Registers */ |
| 1683 | |
| 1684 | #define bfin_read_USB_DMA1CONTROL() bfin_read16(USB_DMA1CONTROL) |
| 1685 | #define bfin_write_USB_DMA1CONTROL(val) bfin_write16(USB_DMA1CONTROL, val) |
| 1686 | #define bfin_read_USB_DMA1ADDRLOW() bfin_read16(USB_DMA1ADDRLOW) |
| 1687 | #define bfin_write_USB_DMA1ADDRLOW(val) bfin_write16(USB_DMA1ADDRLOW, val) |
| 1688 | #define bfin_read_USB_DMA1ADDRHIGH() bfin_read16(USB_DMA1ADDRHIGH) |
| 1689 | #define bfin_write_USB_DMA1ADDRHIGH(val) bfin_write16(USB_DMA1ADDRHIGH, val) |
| 1690 | #define bfin_read_USB_DMA1COUNTLOW() bfin_read16(USB_DMA1COUNTLOW) |
| 1691 | #define bfin_write_USB_DMA1COUNTLOW(val) bfin_write16(USB_DMA1COUNTLOW, val) |
| 1692 | #define bfin_read_USB_DMA1COUNTHIGH() bfin_read16(USB_DMA1COUNTHIGH) |
| 1693 | #define bfin_write_USB_DMA1COUNTHIGH(val) bfin_write16(USB_DMA1COUNTHIGH, val) |
| 1694 | |
| 1695 | /* USB Channel 2 Config Registers */ |
| 1696 | |
| 1697 | #define bfin_read_USB_DMA2CONTROL() bfin_read16(USB_DMA2CONTROL) |
| 1698 | #define bfin_write_USB_DMA2CONTROL(val) bfin_write16(USB_DMA2CONTROL, val) |
| 1699 | #define bfin_read_USB_DMA2ADDRLOW() bfin_read16(USB_DMA2ADDRLOW) |
| 1700 | #define bfin_write_USB_DMA2ADDRLOW(val) bfin_write16(USB_DMA2ADDRLOW, val) |
| 1701 | #define bfin_read_USB_DMA2ADDRHIGH() bfin_read16(USB_DMA2ADDRHIGH) |
| 1702 | #define bfin_write_USB_DMA2ADDRHIGH(val) bfin_write16(USB_DMA2ADDRHIGH, val) |
| 1703 | #define bfin_read_USB_DMA2COUNTLOW() bfin_read16(USB_DMA2COUNTLOW) |
| 1704 | #define bfin_write_USB_DMA2COUNTLOW(val) bfin_write16(USB_DMA2COUNTLOW, val) |
| 1705 | #define bfin_read_USB_DMA2COUNTHIGH() bfin_read16(USB_DMA2COUNTHIGH) |
| 1706 | #define bfin_write_USB_DMA2COUNTHIGH(val) bfin_write16(USB_DMA2COUNTHIGH, val) |
| 1707 | |
| 1708 | /* USB Channel 3 Config Registers */ |
| 1709 | |
| 1710 | #define bfin_read_USB_DMA3CONTROL() bfin_read16(USB_DMA3CONTROL) |
| 1711 | #define bfin_write_USB_DMA3CONTROL(val) bfin_write16(USB_DMA3CONTROL, val) |
| 1712 | #define bfin_read_USB_DMA3ADDRLOW() bfin_read16(USB_DMA3ADDRLOW) |
| 1713 | #define bfin_write_USB_DMA3ADDRLOW(val) bfin_write16(USB_DMA3ADDRLOW, val) |
| 1714 | #define bfin_read_USB_DMA3ADDRHIGH() bfin_read16(USB_DMA3ADDRHIGH) |
| 1715 | #define bfin_write_USB_DMA3ADDRHIGH(val) bfin_write16(USB_DMA3ADDRHIGH, val) |
| 1716 | #define bfin_read_USB_DMA3COUNTLOW() bfin_read16(USB_DMA3COUNTLOW) |
| 1717 | #define bfin_write_USB_DMA3COUNTLOW(val) bfin_write16(USB_DMA3COUNTLOW, val) |
| 1718 | #define bfin_read_USB_DMA3COUNTHIGH() bfin_read16(USB_DMA3COUNTHIGH) |
| 1719 | #define bfin_write_USB_DMA3COUNTHIGH(val) bfin_write16(USB_DMA3COUNTHIGH, val) |
| 1720 | |
| 1721 | /* USB Channel 4 Config Registers */ |
| 1722 | |
| 1723 | #define bfin_read_USB_DMA4CONTROL() bfin_read16(USB_DMA4CONTROL) |
| 1724 | #define bfin_write_USB_DMA4CONTROL(val) bfin_write16(USB_DMA4CONTROL, val) |
| 1725 | #define bfin_read_USB_DMA4ADDRLOW() bfin_read16(USB_DMA4ADDRLOW) |
| 1726 | #define bfin_write_USB_DMA4ADDRLOW(val) bfin_write16(USB_DMA4ADDRLOW, val) |
| 1727 | #define bfin_read_USB_DMA4ADDRHIGH() bfin_read16(USB_DMA4ADDRHIGH) |
| 1728 | #define bfin_write_USB_DMA4ADDRHIGH(val) bfin_write16(USB_DMA4ADDRHIGH, val) |
| 1729 | #define bfin_read_USB_DMA4COUNTLOW() bfin_read16(USB_DMA4COUNTLOW) |
| 1730 | #define bfin_write_USB_DMA4COUNTLOW(val) bfin_write16(USB_DMA4COUNTLOW, val) |
| 1731 | #define bfin_read_USB_DMA4COUNTHIGH() bfin_read16(USB_DMA4COUNTHIGH) |
| 1732 | #define bfin_write_USB_DMA4COUNTHIGH(val) bfin_write16(USB_DMA4COUNTHIGH, val) |
| 1733 | |
| 1734 | /* USB Channel 5 Config Registers */ |
| 1735 | |
| 1736 | #define bfin_read_USB_DMA5CONTROL() bfin_read16(USB_DMA5CONTROL) |
| 1737 | #define bfin_write_USB_DMA5CONTROL(val) bfin_write16(USB_DMA5CONTROL, val) |
| 1738 | #define bfin_read_USB_DMA5ADDRLOW() bfin_read16(USB_DMA5ADDRLOW) |
| 1739 | #define bfin_write_USB_DMA5ADDRLOW(val) bfin_write16(USB_DMA5ADDRLOW, val) |
| 1740 | #define bfin_read_USB_DMA5ADDRHIGH() bfin_read16(USB_DMA5ADDRHIGH) |
| 1741 | #define bfin_write_USB_DMA5ADDRHIGH(val) bfin_write16(USB_DMA5ADDRHIGH, val) |
| 1742 | #define bfin_read_USB_DMA5COUNTLOW() bfin_read16(USB_DMA5COUNTLOW) |
Mike Frysinger | 25bb23b | 2008-04-23 08:27:06 +0800 | [diff] [blame] | 1743 | #define bfin_write_USB_DMA5COUNTLOW(val) bfin_write16(USB_DMA5COUNTLOW, val) |
Bryan Wu | 19381f0 | 2007-05-21 18:09:31 +0800 | [diff] [blame] | 1744 | #define bfin_read_USB_DMA5COUNTHIGH() bfin_read16(USB_DMA5COUNTHIGH) |
| 1745 | #define bfin_write_USB_DMA5COUNTHIGH(val) bfin_write16(USB_DMA5COUNTHIGH, val) |
| 1746 | |
| 1747 | /* USB Channel 6 Config Registers */ |
| 1748 | |
| 1749 | #define bfin_read_USB_DMA6CONTROL() bfin_read16(USB_DMA6CONTROL) |
| 1750 | #define bfin_write_USB_DMA6CONTROL(val) bfin_write16(USB_DMA6CONTROL, val) |
| 1751 | #define bfin_read_USB_DMA6ADDRLOW() bfin_read16(USB_DMA6ADDRLOW) |
| 1752 | #define bfin_write_USB_DMA6ADDRLOW(val) bfin_write16(USB_DMA6ADDRLOW, val) |
| 1753 | #define bfin_read_USB_DMA6ADDRHIGH() bfin_read16(USB_DMA6ADDRHIGH) |
| 1754 | #define bfin_write_USB_DMA6ADDRHIGH(val) bfin_write16(USB_DMA6ADDRHIGH, val) |
| 1755 | #define bfin_read_USB_DMA6COUNTLOW() bfin_read16(USB_DMA6COUNTLOW) |
| 1756 | #define bfin_write_USB_DMA6COUNTLOW(val) bfin_write16(USB_DMA6COUNTLOW, val) |
| 1757 | #define bfin_read_USB_DMA6COUNTHIGH() bfin_read16(USB_DMA6COUNTHIGH) |
| 1758 | #define bfin_write_USB_DMA6COUNTHIGH(val) bfin_write16(USB_DMA6COUNTHIGH, val) |
| 1759 | |
| 1760 | /* USB Channel 7 Config Registers */ |
| 1761 | |
| 1762 | #define bfin_read_USB_DMA7CONTROL() bfin_read16(USB_DMA7CONTROL) |
| 1763 | #define bfin_write_USB_DMA7CONTROL(val) bfin_write16(USB_DMA7CONTROL, val) |
| 1764 | #define bfin_read_USB_DMA7ADDRLOW() bfin_read16(USB_DMA7ADDRLOW) |
| 1765 | #define bfin_write_USB_DMA7ADDRLOW(val) bfin_write16(USB_DMA7ADDRLOW, val) |
| 1766 | #define bfin_read_USB_DMA7ADDRHIGH() bfin_read16(USB_DMA7ADDRHIGH) |
| 1767 | #define bfin_write_USB_DMA7ADDRHIGH(val) bfin_write16(USB_DMA7ADDRHIGH, val) |
| 1768 | #define bfin_read_USB_DMA7COUNTLOW() bfin_read16(USB_DMA7COUNTLOW) |
| 1769 | #define bfin_write_USB_DMA7COUNTLOW(val) bfin_write16(USB_DMA7COUNTLOW, val) |
| 1770 | #define bfin_read_USB_DMA7COUNTHIGH() bfin_read16(USB_DMA7COUNTHIGH) |
| 1771 | #define bfin_write_USB_DMA7COUNTHIGH(val) bfin_write16(USB_DMA7COUNTHIGH, val) |
| 1772 | |
| 1773 | /* Keybfin_read_()ad Registers */ |
| 1774 | |
| 1775 | #define bfin_read_KPAD_CTL() bfin_read16(KPAD_CTL) |
| 1776 | #define bfin_write_KPAD_CTL(val) bfin_write16(KPAD_CTL, val) |
| 1777 | #define bfin_read_KPAD_PRESCALE() bfin_read16(KPAD_PRESCALE) |
| 1778 | #define bfin_write_KPAD_PRESCALE(val) bfin_write16(KPAD_PRESCALE, val) |
| 1779 | #define bfin_read_KPAD_MSEL() bfin_read16(KPAD_MSEL) |
| 1780 | #define bfin_write_KPAD_MSEL(val) bfin_write16(KPAD_MSEL, val) |
| 1781 | #define bfin_read_KPAD_ROWCOL() bfin_read16(KPAD_ROWCOL) |
| 1782 | #define bfin_write_KPAD_ROWCOL(val) bfin_write16(KPAD_ROWCOL, val) |
| 1783 | #define bfin_read_KPAD_STAT() bfin_read16(KPAD_STAT) |
| 1784 | #define bfin_write_KPAD_STAT(val) bfin_write16(KPAD_STAT, val) |
| 1785 | #define bfin_read_KPAD_SOFTEVAL() bfin_read16(KPAD_SOFTEVAL) |
| 1786 | #define bfin_write_KPAD_SOFTEVAL(val) bfin_write16(KPAD_SOFTEVAL, val) |
| 1787 | |
| 1788 | /* Pixel Combfin_read_()ositor (PIXC) Registers */ |
| 1789 | |
| 1790 | #define bfin_read_PIXC_CTL() bfin_read16(PIXC_CTL) |
| 1791 | #define bfin_write_PIXC_CTL(val) bfin_write16(PIXC_CTL, val) |
| 1792 | #define bfin_read_PIXC_PPL() bfin_read16(PIXC_PPL) |
| 1793 | #define bfin_write_PIXC_PPL(val) bfin_write16(PIXC_PPL, val) |
| 1794 | #define bfin_read_PIXC_LPF() bfin_read16(PIXC_LPF) |
| 1795 | #define bfin_write_PIXC_LPF(val) bfin_write16(PIXC_LPF, val) |
| 1796 | #define bfin_read_PIXC_AHSTART() bfin_read16(PIXC_AHSTART) |
| 1797 | #define bfin_write_PIXC_AHSTART(val) bfin_write16(PIXC_AHSTART, val) |
| 1798 | #define bfin_read_PIXC_AHEND() bfin_read16(PIXC_AHEND) |
| 1799 | #define bfin_write_PIXC_AHEND(val) bfin_write16(PIXC_AHEND, val) |
| 1800 | #define bfin_read_PIXC_AVSTART() bfin_read16(PIXC_AVSTART) |
| 1801 | #define bfin_write_PIXC_AVSTART(val) bfin_write16(PIXC_AVSTART, val) |
| 1802 | #define bfin_read_PIXC_AVEND() bfin_read16(PIXC_AVEND) |
| 1803 | #define bfin_write_PIXC_AVEND(val) bfin_write16(PIXC_AVEND, val) |
| 1804 | #define bfin_read_PIXC_ATRANSP() bfin_read16(PIXC_ATRANSP) |
| 1805 | #define bfin_write_PIXC_ATRANSP(val) bfin_write16(PIXC_ATRANSP, val) |
| 1806 | #define bfin_read_PIXC_BHSTART() bfin_read16(PIXC_BHSTART) |
| 1807 | #define bfin_write_PIXC_BHSTART(val) bfin_write16(PIXC_BHSTART, val) |
| 1808 | #define bfin_read_PIXC_BHEND() bfin_read16(PIXC_BHEND) |
| 1809 | #define bfin_write_PIXC_BHEND(val) bfin_write16(PIXC_BHEND, val) |
| 1810 | #define bfin_read_PIXC_BVSTART() bfin_read16(PIXC_BVSTART) |
| 1811 | #define bfin_write_PIXC_BVSTART(val) bfin_write16(PIXC_BVSTART, val) |
| 1812 | #define bfin_read_PIXC_BVEND() bfin_read16(PIXC_BVEND) |
| 1813 | #define bfin_write_PIXC_BVEND(val) bfin_write16(PIXC_BVEND, val) |
| 1814 | #define bfin_read_PIXC_BTRANSP() bfin_read16(PIXC_BTRANSP) |
| 1815 | #define bfin_write_PIXC_BTRANSP(val) bfin_write16(PIXC_BTRANSP, val) |
| 1816 | #define bfin_read_PIXC_INTRSTAT() bfin_read16(PIXC_INTRSTAT) |
| 1817 | #define bfin_write_PIXC_INTRSTAT(val) bfin_write16(PIXC_INTRSTAT, val) |
| 1818 | #define bfin_read_PIXC_RYCON() bfin_read32(PIXC_RYCON) |
| 1819 | #define bfin_write_PIXC_RYCON(val) bfin_write32(PIXC_RYCON, val) |
| 1820 | #define bfin_read_PIXC_GUCON() bfin_read32(PIXC_GUCON) |
| 1821 | #define bfin_write_PIXC_GUCON(val) bfin_write32(PIXC_GUCON, val) |
| 1822 | #define bfin_read_PIXC_BVCON() bfin_read32(PIXC_BVCON) |
| 1823 | #define bfin_write_PIXC_BVCON(val) bfin_write32(PIXC_BVCON, val) |
| 1824 | #define bfin_read_PIXC_CCBIAS() bfin_read32(PIXC_CCBIAS) |
| 1825 | #define bfin_write_PIXC_CCBIAS(val) bfin_write32(PIXC_CCBIAS, val) |
| 1826 | #define bfin_read_PIXC_TC() bfin_read32(PIXC_TC) |
| 1827 | #define bfin_write_PIXC_TC(val) bfin_write32(PIXC_TC, val) |
| 1828 | |
| 1829 | /* Handshake MDMA 0 Registers */ |
| 1830 | |
| 1831 | #define bfin_read_HMDMA0_CONTROL() bfin_read16(HMDMA0_CONTROL) |
| 1832 | #define bfin_write_HMDMA0_CONTROL(val) bfin_write16(HMDMA0_CONTROL, val) |
| 1833 | #define bfin_read_HMDMA0_ECINIT() bfin_read16(HMDMA0_ECINIT) |
| 1834 | #define bfin_write_HMDMA0_ECINIT(val) bfin_write16(HMDMA0_ECINIT, val) |
| 1835 | #define bfin_read_HMDMA0_BCINIT() bfin_read16(HMDMA0_BCINIT) |
| 1836 | #define bfin_write_HMDMA0_BCINIT(val) bfin_write16(HMDMA0_BCINIT, val) |
| 1837 | #define bfin_read_HMDMA0_ECURGENT() bfin_read16(HMDMA0_ECURGENT) |
| 1838 | #define bfin_write_HMDMA0_ECURGENT(val) bfin_write16(HMDMA0_ECURGENT, val) |
| 1839 | #define bfin_read_HMDMA0_ECOVERFLOW() bfin_read16(HMDMA0_ECOVERFLOW) |
| 1840 | #define bfin_write_HMDMA0_ECOVERFLOW(val) bfin_write16(HMDMA0_ECOVERFLOW, val) |
| 1841 | #define bfin_read_HMDMA0_ECOUNT() bfin_read16(HMDMA0_ECOUNT) |
| 1842 | #define bfin_write_HMDMA0_ECOUNT(val) bfin_write16(HMDMA0_ECOUNT, val) |
| 1843 | #define bfin_read_HMDMA0_BCOUNT() bfin_read16(HMDMA0_BCOUNT) |
| 1844 | #define bfin_write_HMDMA0_BCOUNT(val) bfin_write16(HMDMA0_BCOUNT, val) |
| 1845 | |
| 1846 | /* Handshake MDMA 1 Registers */ |
| 1847 | |
| 1848 | #define bfin_read_HMDMA1_CONTROL() bfin_read16(HMDMA1_CONTROL) |
| 1849 | #define bfin_write_HMDMA1_CONTROL(val) bfin_write16(HMDMA1_CONTROL, val) |
| 1850 | #define bfin_read_HMDMA1_ECINIT() bfin_read16(HMDMA1_ECINIT) |
| 1851 | #define bfin_write_HMDMA1_ECINIT(val) bfin_write16(HMDMA1_ECINIT, val) |
| 1852 | #define bfin_read_HMDMA1_BCINIT() bfin_read16(HMDMA1_BCINIT) |
| 1853 | #define bfin_write_HMDMA1_BCINIT(val) bfin_write16(HMDMA1_BCINIT, val) |
| 1854 | #define bfin_read_HMDMA1_ECURGENT() bfin_read16(HMDMA1_ECURGENT) |
| 1855 | #define bfin_write_HMDMA1_ECURGENT(val) bfin_write16(HMDMA1_ECURGENT, val) |
| 1856 | #define bfin_read_HMDMA1_ECOVERFLOW() bfin_read16(HMDMA1_ECOVERFLOW) |
| 1857 | #define bfin_write_HMDMA1_ECOVERFLOW(val) bfin_write16(HMDMA1_ECOVERFLOW, val) |
| 1858 | #define bfin_read_HMDMA1_ECOUNT() bfin_read16(HMDMA1_ECOUNT) |
| 1859 | #define bfin_write_HMDMA1_ECOUNT(val) bfin_write16(HMDMA1_ECOUNT, val) |
| 1860 | #define bfin_read_HMDMA1_BCOUNT() bfin_read16(HMDMA1_BCOUNT) |
| 1861 | #define bfin_write_HMDMA1_BCOUNT(val) bfin_write16(HMDMA1_BCOUNT, val) |
| 1862 | |
| 1863 | #endif /* _CDEF_BF549_H */ |