Lines Matching +full:addr +full:- +full:mode

2   Copyright (c), 2004-2005,2007-2010 Trident Microsystems, Inc.
37 * Fast access, because of short addressing format (16 instead of 32 bits addr)
48 /*-------- compilation control switches --------------------------------------*/
53 /*-------- Required includes -------------------------------------------------*/
57 /*-------- Defines, configuring the API --------------------------------------*/
98 #error At least one of short- or long-addressing format must be allowed.
112 * + single master mode means no use of repeated starts
113 * + multi master mode means use of repeated starts
121 * Default is single master, DAP FASI changes multi-master setting silently
131 * Chunk/mode checking
134 * Comments about DRXDAP_MAX_WCHUNKSIZE in single or multi master mode and
139 * In single master mode, data can be written by sending the register address
143 * If ten-bit I2C device addresses are used, the minimum chunk size must be six,
146 * Data in single master mode is transferred as follows:
153 * <S> <devR> --- <P>
155 * In multi-master mode, the data must immediately follow the address (an I2C
158 * 10-bit I2C device addresses are used).
160 * The 7-bit or 10-bit i2c address parameters is a runtime parameter.
163 *-------------------------------------------------------------------------------
167 * +----------------+----------------+
168 * | 7b i2c addr | 10b i2c addr |
169 * +----------------+----------------+
171 * ------+--------+-------+--------+-------+
174 * ------+--------+-------+--------+-------+
201 #error DRXDAP_MAX_WCHUNKSIZE must be at least 3 in single master mode
204 #error DRXDAP_MAX_WCHUNKSIZE must be at least 5 in multi master mode
209 #error DRXDAP_MAX_WCHUNKSIZE must be at least 5 in single master mode
212 #error DRXDAP_MAX_WCHUNKSIZE must be at least 7 in multi master mode
235 /*-------- Public API functions ----------------------------------------------*/
246 #define DRXDAP_FASI_ADDR2BLOCK(addr) (((addr)>>22)&0x3F) argument
247 #define DRXDAP_FASI_ADDR2BANK(addr) (((addr)>>16)&0x3F) argument
248 #define DRXDAP_FASI_ADDR2OFFSET(addr) ((addr)&0x7FFF) argument
250 #define DRXDAP_FASI_SHORT_FORMAT(addr) (((addr) & 0xFC30FF80) == 0) argument
251 #define DRXDAP_FASI_LONG_FORMAT(addr) (((addr) & 0xFC30FF80) != 0) argument
252 #define DRXDAP_FASI_OFFSET_TOO_LARGE(addr) (((addr) & 0x00008000) != 0) argument