1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef SOUND_FIREWIRE_DICE_INTERFACE_H_INCLUDED 3*4882a593Smuzhiyun #define SOUND_FIREWIRE_DICE_INTERFACE_H_INCLUDED 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun /* 6*4882a593Smuzhiyun * DICE device interface definitions 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun /* 10*4882a593Smuzhiyun * Generally, all registers can be read like memory, i.e., with quadlet read or 11*4882a593Smuzhiyun * block read transactions with at least quadlet-aligned offset and length. 12*4882a593Smuzhiyun * Writes are not allowed except where noted; quadlet-sized registers must be 13*4882a593Smuzhiyun * written with a quadlet write transaction. 14*4882a593Smuzhiyun * 15*4882a593Smuzhiyun * All values are in big endian. The DICE firmware runs on a little-endian CPU 16*4882a593Smuzhiyun * and just byte-swaps _all_ quadlets on the bus, so values without endianness 17*4882a593Smuzhiyun * (e.g. strings) get scrambled and must be byte-swapped again by the driver. 18*4882a593Smuzhiyun */ 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun /* 21*4882a593Smuzhiyun * Streaming is handled by the "DICE driver" interface. Its registers are 22*4882a593Smuzhiyun * located in this private address space. 23*4882a593Smuzhiyun */ 24*4882a593Smuzhiyun #define DICE_PRIVATE_SPACE 0xffffe0000000uLL 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun /* 27*4882a593Smuzhiyun * The registers are organized in several sections, which are organized 28*4882a593Smuzhiyun * separately to allow them to be extended individually. Whether a register is 29*4882a593Smuzhiyun * supported can be detected by checking its offset against its section's size. 30*4882a593Smuzhiyun * 31*4882a593Smuzhiyun * The section offset values are relative to DICE_PRIVATE_SPACE; the offset/ 32*4882a593Smuzhiyun * size values are measured in quadlets. Read-only. 33*4882a593Smuzhiyun */ 34*4882a593Smuzhiyun #define DICE_GLOBAL_OFFSET 0x00 35*4882a593Smuzhiyun #define DICE_GLOBAL_SIZE 0x04 36*4882a593Smuzhiyun #define DICE_TX_OFFSET 0x08 37*4882a593Smuzhiyun #define DICE_TX_SIZE 0x0c 38*4882a593Smuzhiyun #define DICE_RX_OFFSET 0x10 39*4882a593Smuzhiyun #define DICE_RX_SIZE 0x14 40*4882a593Smuzhiyun #define DICE_EXT_SYNC_OFFSET 0x18 41*4882a593Smuzhiyun #define DICE_EXT_SYNC_SIZE 0x1c 42*4882a593Smuzhiyun #define DICE_UNUSED2_OFFSET 0x20 43*4882a593Smuzhiyun #define DICE_UNUSED2_SIZE 0x24 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun /* 46*4882a593Smuzhiyun * Global settings. 47*4882a593Smuzhiyun */ 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun /* 50*4882a593Smuzhiyun * Stores the full 64-bit address (node ID and offset in the node's address 51*4882a593Smuzhiyun * space) where the device will send notifications. Must be changed with 52*4882a593Smuzhiyun * a compare/swap transaction by the owner. This register is automatically 53*4882a593Smuzhiyun * cleared on a bus reset. 54*4882a593Smuzhiyun */ 55*4882a593Smuzhiyun #define GLOBAL_OWNER 0x000 56*4882a593Smuzhiyun #define OWNER_NO_OWNER 0xffff000000000000uLL 57*4882a593Smuzhiyun #define OWNER_NODE_SHIFT 48 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun /* 60*4882a593Smuzhiyun * A bitmask with asynchronous events; read-only. When any event(s) happen, 61*4882a593Smuzhiyun * the bits of previous events are cleared, and the value of this register is 62*4882a593Smuzhiyun * also written to the address stored in the owner register. 63*4882a593Smuzhiyun */ 64*4882a593Smuzhiyun #define GLOBAL_NOTIFICATION 0x008 65*4882a593Smuzhiyun /* Some registers in the Rx/Tx sections may have changed. */ 66*4882a593Smuzhiyun #define NOTIFY_RX_CFG_CHG 0x00000001 67*4882a593Smuzhiyun #define NOTIFY_TX_CFG_CHG 0x00000002 68*4882a593Smuzhiyun /* Lock status of the current clock source may have changed. */ 69*4882a593Smuzhiyun #define NOTIFY_LOCK_CHG 0x00000010 70*4882a593Smuzhiyun /* Write to the clock select register has been finished. */ 71*4882a593Smuzhiyun #define NOTIFY_CLOCK_ACCEPTED 0x00000020 72*4882a593Smuzhiyun /* Lock status of some clock source has changed. */ 73*4882a593Smuzhiyun #define NOTIFY_EXT_STATUS 0x00000040 74*4882a593Smuzhiyun /* Other bits may be used for device-specific events. */ 75*4882a593Smuzhiyun 76*4882a593Smuzhiyun /* 77*4882a593Smuzhiyun * A name that can be customized for each device; read/write. Padded with zero 78*4882a593Smuzhiyun * bytes. Quadlets are byte-swapped. The encoding is whatever the host driver 79*4882a593Smuzhiyun * happens to be using. 80*4882a593Smuzhiyun */ 81*4882a593Smuzhiyun #define GLOBAL_NICK_NAME 0x00c 82*4882a593Smuzhiyun #define NICK_NAME_SIZE 64 83*4882a593Smuzhiyun 84*4882a593Smuzhiyun /* 85*4882a593Smuzhiyun * The current sample rate and clock source; read/write. Whether a clock 86*4882a593Smuzhiyun * source or sample rate is supported is device-specific; the internal clock 87*4882a593Smuzhiyun * source is always available. Low/mid/high = up to 48/96/192 kHz. This 88*4882a593Smuzhiyun * register can be changed even while streams are running. 89*4882a593Smuzhiyun */ 90*4882a593Smuzhiyun #define GLOBAL_CLOCK_SELECT 0x04c 91*4882a593Smuzhiyun #define CLOCK_SOURCE_MASK 0x000000ff 92*4882a593Smuzhiyun #define CLOCK_SOURCE_AES1 0x00000000 93*4882a593Smuzhiyun #define CLOCK_SOURCE_AES2 0x00000001 94*4882a593Smuzhiyun #define CLOCK_SOURCE_AES3 0x00000002 95*4882a593Smuzhiyun #define CLOCK_SOURCE_AES4 0x00000003 96*4882a593Smuzhiyun #define CLOCK_SOURCE_AES_ANY 0x00000004 97*4882a593Smuzhiyun #define CLOCK_SOURCE_ADAT 0x00000005 98*4882a593Smuzhiyun #define CLOCK_SOURCE_TDIF 0x00000006 99*4882a593Smuzhiyun #define CLOCK_SOURCE_WC 0x00000007 100*4882a593Smuzhiyun #define CLOCK_SOURCE_ARX1 0x00000008 101*4882a593Smuzhiyun #define CLOCK_SOURCE_ARX2 0x00000009 102*4882a593Smuzhiyun #define CLOCK_SOURCE_ARX3 0x0000000a 103*4882a593Smuzhiyun #define CLOCK_SOURCE_ARX4 0x0000000b 104*4882a593Smuzhiyun #define CLOCK_SOURCE_INTERNAL 0x0000000c 105*4882a593Smuzhiyun #define CLOCK_RATE_MASK 0x0000ff00 106*4882a593Smuzhiyun #define CLOCK_RATE_32000 0x00000000 107*4882a593Smuzhiyun #define CLOCK_RATE_44100 0x00000100 108*4882a593Smuzhiyun #define CLOCK_RATE_48000 0x00000200 109*4882a593Smuzhiyun #define CLOCK_RATE_88200 0x00000300 110*4882a593Smuzhiyun #define CLOCK_RATE_96000 0x00000400 111*4882a593Smuzhiyun #define CLOCK_RATE_176400 0x00000500 112*4882a593Smuzhiyun #define CLOCK_RATE_192000 0x00000600 113*4882a593Smuzhiyun #define CLOCK_RATE_ANY_LOW 0x00000700 114*4882a593Smuzhiyun #define CLOCK_RATE_ANY_MID 0x00000800 115*4882a593Smuzhiyun #define CLOCK_RATE_ANY_HIGH 0x00000900 116*4882a593Smuzhiyun #define CLOCK_RATE_NONE 0x00000a00 117*4882a593Smuzhiyun #define CLOCK_RATE_SHIFT 8 118*4882a593Smuzhiyun 119*4882a593Smuzhiyun /* 120*4882a593Smuzhiyun * Enable streaming; read/write. Writing a non-zero value (re)starts all 121*4882a593Smuzhiyun * streams that have a valid iso channel set; zero stops all streams. The 122*4882a593Smuzhiyun * streams' parameters must be configured before starting. This register is 123*4882a593Smuzhiyun * automatically cleared on a bus reset. 124*4882a593Smuzhiyun */ 125*4882a593Smuzhiyun #define GLOBAL_ENABLE 0x050 126*4882a593Smuzhiyun 127*4882a593Smuzhiyun /* 128*4882a593Smuzhiyun * Status of the sample clock; read-only. 129*4882a593Smuzhiyun */ 130*4882a593Smuzhiyun #define GLOBAL_STATUS 0x054 131*4882a593Smuzhiyun /* The current clock source is locked. */ 132*4882a593Smuzhiyun #define STATUS_SOURCE_LOCKED 0x00000001 133*4882a593Smuzhiyun /* The actual sample rate; CLOCK_RATE_32000-_192000 or _NONE. */ 134*4882a593Smuzhiyun #define STATUS_NOMINAL_RATE_MASK 0x0000ff00 135*4882a593Smuzhiyun 136*4882a593Smuzhiyun /* 137*4882a593Smuzhiyun * Status of all clock sources; read-only. 138*4882a593Smuzhiyun */ 139*4882a593Smuzhiyun #define GLOBAL_EXTENDED_STATUS 0x058 140*4882a593Smuzhiyun /* 141*4882a593Smuzhiyun * The _LOCKED bits always show the current status; any change generates 142*4882a593Smuzhiyun * a notification. 143*4882a593Smuzhiyun */ 144*4882a593Smuzhiyun #define EXT_STATUS_AES1_LOCKED 0x00000001 145*4882a593Smuzhiyun #define EXT_STATUS_AES2_LOCKED 0x00000002 146*4882a593Smuzhiyun #define EXT_STATUS_AES3_LOCKED 0x00000004 147*4882a593Smuzhiyun #define EXT_STATUS_AES4_LOCKED 0x00000008 148*4882a593Smuzhiyun #define EXT_STATUS_ADAT_LOCKED 0x00000010 149*4882a593Smuzhiyun #define EXT_STATUS_TDIF_LOCKED 0x00000020 150*4882a593Smuzhiyun #define EXT_STATUS_ARX1_LOCKED 0x00000040 151*4882a593Smuzhiyun #define EXT_STATUS_ARX2_LOCKED 0x00000080 152*4882a593Smuzhiyun #define EXT_STATUS_ARX3_LOCKED 0x00000100 153*4882a593Smuzhiyun #define EXT_STATUS_ARX4_LOCKED 0x00000200 154*4882a593Smuzhiyun #define EXT_STATUS_WC_LOCKED 0x00000400 155*4882a593Smuzhiyun /* 156*4882a593Smuzhiyun * The _SLIP bits do not generate notifications; a set bit indicates that an 157*4882a593Smuzhiyun * error occurred since the last time when this register was read with 158*4882a593Smuzhiyun * a quadlet read transaction. 159*4882a593Smuzhiyun */ 160*4882a593Smuzhiyun #define EXT_STATUS_AES1_SLIP 0x00010000 161*4882a593Smuzhiyun #define EXT_STATUS_AES2_SLIP 0x00020000 162*4882a593Smuzhiyun #define EXT_STATUS_AES3_SLIP 0x00040000 163*4882a593Smuzhiyun #define EXT_STATUS_AES4_SLIP 0x00080000 164*4882a593Smuzhiyun #define EXT_STATUS_ADAT_SLIP 0x00100000 165*4882a593Smuzhiyun #define EXT_STATUS_TDIF_SLIP 0x00200000 166*4882a593Smuzhiyun #define EXT_STATUS_ARX1_SLIP 0x00400000 167*4882a593Smuzhiyun #define EXT_STATUS_ARX2_SLIP 0x00800000 168*4882a593Smuzhiyun #define EXT_STATUS_ARX3_SLIP 0x01000000 169*4882a593Smuzhiyun #define EXT_STATUS_ARX4_SLIP 0x02000000 170*4882a593Smuzhiyun #define EXT_STATUS_WC_SLIP 0x04000000 171*4882a593Smuzhiyun 172*4882a593Smuzhiyun /* 173*4882a593Smuzhiyun * The measured rate of the current clock source, in Hz; read-only. 174*4882a593Smuzhiyun */ 175*4882a593Smuzhiyun #define GLOBAL_SAMPLE_RATE 0x05c 176*4882a593Smuzhiyun 177*4882a593Smuzhiyun /* 178*4882a593Smuzhiyun * Some old firmware versions do not have the following global registers. 179*4882a593Smuzhiyun * Windows drivers produced by TCAT lost backward compatibility in its 180*4882a593Smuzhiyun * early release because they can handle firmware only which supports the 181*4882a593Smuzhiyun * following registers. 182*4882a593Smuzhiyun */ 183*4882a593Smuzhiyun 184*4882a593Smuzhiyun /* 185*4882a593Smuzhiyun * The version of the DICE driver specification that this device conforms to; 186*4882a593Smuzhiyun * read-only. 187*4882a593Smuzhiyun */ 188*4882a593Smuzhiyun #define GLOBAL_VERSION 0x060 189*4882a593Smuzhiyun 190*4882a593Smuzhiyun /* 191*4882a593Smuzhiyun * Supported sample rates and clock sources; read-only. 192*4882a593Smuzhiyun */ 193*4882a593Smuzhiyun #define GLOBAL_CLOCK_CAPABILITIES 0x064 194*4882a593Smuzhiyun #define CLOCK_CAP_RATE_32000 0x00000001 195*4882a593Smuzhiyun #define CLOCK_CAP_RATE_44100 0x00000002 196*4882a593Smuzhiyun #define CLOCK_CAP_RATE_48000 0x00000004 197*4882a593Smuzhiyun #define CLOCK_CAP_RATE_88200 0x00000008 198*4882a593Smuzhiyun #define CLOCK_CAP_RATE_96000 0x00000010 199*4882a593Smuzhiyun #define CLOCK_CAP_RATE_176400 0x00000020 200*4882a593Smuzhiyun #define CLOCK_CAP_RATE_192000 0x00000040 201*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_AES1 0x00010000 202*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_AES2 0x00020000 203*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_AES3 0x00040000 204*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_AES4 0x00080000 205*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_AES_ANY 0x00100000 206*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_ADAT 0x00200000 207*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_TDIF 0x00400000 208*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_WC 0x00800000 209*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_ARX1 0x01000000 210*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_ARX2 0x02000000 211*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_ARX3 0x04000000 212*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_ARX4 0x08000000 213*4882a593Smuzhiyun #define CLOCK_CAP_SOURCE_INTERNAL 0x10000000 214*4882a593Smuzhiyun 215*4882a593Smuzhiyun /* 216*4882a593Smuzhiyun * Names of all clock sources; read-only. Quadlets are byte-swapped. Names 217*4882a593Smuzhiyun * are separated with one backslash, the list is terminated with two 218*4882a593Smuzhiyun * backslashes. Unused clock sources are included. 219*4882a593Smuzhiyun */ 220*4882a593Smuzhiyun #define GLOBAL_CLOCK_SOURCE_NAMES 0x068 221*4882a593Smuzhiyun #define CLOCK_SOURCE_NAMES_SIZE 256 222*4882a593Smuzhiyun 223*4882a593Smuzhiyun /* 224*4882a593Smuzhiyun * Capture stream settings. This section includes the number/size registers 225*4882a593Smuzhiyun * and the registers of all streams. 226*4882a593Smuzhiyun */ 227*4882a593Smuzhiyun 228*4882a593Smuzhiyun /* 229*4882a593Smuzhiyun * The number of supported capture streams; read-only. 230*4882a593Smuzhiyun */ 231*4882a593Smuzhiyun #define TX_NUMBER 0x000 232*4882a593Smuzhiyun 233*4882a593Smuzhiyun /* 234*4882a593Smuzhiyun * The size of one stream's register block, in quadlets; read-only. The 235*4882a593Smuzhiyun * registers of the first stream follow immediately afterwards; the registers 236*4882a593Smuzhiyun * of the following streams are offset by this register's value. 237*4882a593Smuzhiyun */ 238*4882a593Smuzhiyun #define TX_SIZE 0x004 239*4882a593Smuzhiyun 240*4882a593Smuzhiyun /* 241*4882a593Smuzhiyun * The isochronous channel number on which packets are sent, or -1 if the 242*4882a593Smuzhiyun * stream is not to be used; read/write. 243*4882a593Smuzhiyun */ 244*4882a593Smuzhiyun #define TX_ISOCHRONOUS 0x008 245*4882a593Smuzhiyun 246*4882a593Smuzhiyun /* 247*4882a593Smuzhiyun * The number of audio channels; read-only. There will be one quadlet per 248*4882a593Smuzhiyun * channel; the first channel is the first quadlet in a data block. 249*4882a593Smuzhiyun */ 250*4882a593Smuzhiyun #define TX_NUMBER_AUDIO 0x00c 251*4882a593Smuzhiyun 252*4882a593Smuzhiyun /* 253*4882a593Smuzhiyun * The number of MIDI ports, 0-8; read-only. If > 0, there will be one 254*4882a593Smuzhiyun * additional quadlet in each data block, following the audio quadlets. 255*4882a593Smuzhiyun */ 256*4882a593Smuzhiyun #define TX_NUMBER_MIDI 0x010 257*4882a593Smuzhiyun 258*4882a593Smuzhiyun /* 259*4882a593Smuzhiyun * The speed at which the packets are sent, SCODE_100-_400; read/write. 260*4882a593Smuzhiyun * SCODE_800 is only available in Dice III. 261*4882a593Smuzhiyun */ 262*4882a593Smuzhiyun #define TX_SPEED 0x014 263*4882a593Smuzhiyun 264*4882a593Smuzhiyun /* 265*4882a593Smuzhiyun * Names of all audio channels; read-only. Quadlets are byte-swapped. Names 266*4882a593Smuzhiyun * are separated with one backslash, the list is terminated with two 267*4882a593Smuzhiyun * backslashes. 268*4882a593Smuzhiyun */ 269*4882a593Smuzhiyun #define TX_NAMES 0x018 270*4882a593Smuzhiyun #define TX_NAMES_SIZE 256 271*4882a593Smuzhiyun 272*4882a593Smuzhiyun /* 273*4882a593Smuzhiyun * Audio IEC60958 capabilities; read-only. Bitmask with one bit per audio 274*4882a593Smuzhiyun * channel. 275*4882a593Smuzhiyun */ 276*4882a593Smuzhiyun #define TX_AC3_CAPABILITIES 0x118 277*4882a593Smuzhiyun 278*4882a593Smuzhiyun /* 279*4882a593Smuzhiyun * Send audio data with IEC60958 label; read/write. Bitmask with one bit per 280*4882a593Smuzhiyun * audio channel. This register can be changed even while the stream is 281*4882a593Smuzhiyun * running. 282*4882a593Smuzhiyun */ 283*4882a593Smuzhiyun #define TX_AC3_ENABLE 0x11c 284*4882a593Smuzhiyun 285*4882a593Smuzhiyun /* 286*4882a593Smuzhiyun * Playback stream settings. This section includes the number/size registers 287*4882a593Smuzhiyun * and the registers of all streams. 288*4882a593Smuzhiyun */ 289*4882a593Smuzhiyun 290*4882a593Smuzhiyun /* 291*4882a593Smuzhiyun * The number of supported playback streams; read-only. 292*4882a593Smuzhiyun */ 293*4882a593Smuzhiyun #define RX_NUMBER 0x000 294*4882a593Smuzhiyun 295*4882a593Smuzhiyun /* 296*4882a593Smuzhiyun * The size of one stream's register block, in quadlets; read-only. The 297*4882a593Smuzhiyun * registers of the first stream follow immediately afterwards; the registers 298*4882a593Smuzhiyun * of the following streams are offset by this register's value. 299*4882a593Smuzhiyun */ 300*4882a593Smuzhiyun #define RX_SIZE 0x004 301*4882a593Smuzhiyun 302*4882a593Smuzhiyun /* 303*4882a593Smuzhiyun * The isochronous channel number on which packets are received, or -1 if the 304*4882a593Smuzhiyun * stream is not to be used; read/write. 305*4882a593Smuzhiyun */ 306*4882a593Smuzhiyun #define RX_ISOCHRONOUS 0x008 307*4882a593Smuzhiyun 308*4882a593Smuzhiyun /* 309*4882a593Smuzhiyun * Index of first quadlet to be interpreted; read/write. If > 0, that many 310*4882a593Smuzhiyun * quadlets at the beginning of each data block will be ignored, and all the 311*4882a593Smuzhiyun * audio and MIDI quadlets will follow. 312*4882a593Smuzhiyun */ 313*4882a593Smuzhiyun #define RX_SEQ_START 0x00c 314*4882a593Smuzhiyun 315*4882a593Smuzhiyun /* 316*4882a593Smuzhiyun * The number of audio channels; read-only. There will be one quadlet per 317*4882a593Smuzhiyun * channel. 318*4882a593Smuzhiyun */ 319*4882a593Smuzhiyun #define RX_NUMBER_AUDIO 0x010 320*4882a593Smuzhiyun 321*4882a593Smuzhiyun /* 322*4882a593Smuzhiyun * The number of MIDI ports, 0-8; read-only. If > 0, there will be one 323*4882a593Smuzhiyun * additional quadlet in each data block, following the audio quadlets. 324*4882a593Smuzhiyun */ 325*4882a593Smuzhiyun #define RX_NUMBER_MIDI 0x014 326*4882a593Smuzhiyun 327*4882a593Smuzhiyun /* 328*4882a593Smuzhiyun * Names of all audio channels; read-only. Quadlets are byte-swapped. Names 329*4882a593Smuzhiyun * are separated with one backslash, the list is terminated with two 330*4882a593Smuzhiyun * backslashes. 331*4882a593Smuzhiyun */ 332*4882a593Smuzhiyun #define RX_NAMES 0x018 333*4882a593Smuzhiyun #define RX_NAMES_SIZE 256 334*4882a593Smuzhiyun 335*4882a593Smuzhiyun /* 336*4882a593Smuzhiyun * Audio IEC60958 capabilities; read-only. Bitmask with one bit per audio 337*4882a593Smuzhiyun * channel. 338*4882a593Smuzhiyun */ 339*4882a593Smuzhiyun #define RX_AC3_CAPABILITIES 0x118 340*4882a593Smuzhiyun 341*4882a593Smuzhiyun /* 342*4882a593Smuzhiyun * Receive audio data with IEC60958 label; read/write. Bitmask with one bit 343*4882a593Smuzhiyun * per audio channel. This register can be changed even while the stream is 344*4882a593Smuzhiyun * running. 345*4882a593Smuzhiyun */ 346*4882a593Smuzhiyun #define RX_AC3_ENABLE 0x11c 347*4882a593Smuzhiyun 348*4882a593Smuzhiyun /* 349*4882a593Smuzhiyun * Extended synchronization information. 350*4882a593Smuzhiyun * This section can be read completely with a block read request. 351*4882a593Smuzhiyun */ 352*4882a593Smuzhiyun 353*4882a593Smuzhiyun /* 354*4882a593Smuzhiyun * Current clock source; read-only. 355*4882a593Smuzhiyun */ 356*4882a593Smuzhiyun #define EXT_SYNC_CLOCK_SOURCE 0x000 357*4882a593Smuzhiyun 358*4882a593Smuzhiyun /* 359*4882a593Smuzhiyun * Clock source is locked (boolean); read-only. 360*4882a593Smuzhiyun */ 361*4882a593Smuzhiyun #define EXT_SYNC_LOCKED 0x004 362*4882a593Smuzhiyun 363*4882a593Smuzhiyun /* 364*4882a593Smuzhiyun * Current sample rate (CLOCK_RATE_* >> CLOCK_RATE_SHIFT), _32000-_192000 or 365*4882a593Smuzhiyun * _NONE; read-only. 366*4882a593Smuzhiyun */ 367*4882a593Smuzhiyun #define EXT_SYNC_RATE 0x008 368*4882a593Smuzhiyun 369*4882a593Smuzhiyun /* 370*4882a593Smuzhiyun * ADAT user data bits; read-only. 371*4882a593Smuzhiyun */ 372*4882a593Smuzhiyun #define EXT_SYNC_ADAT_USER_DATA 0x00c 373*4882a593Smuzhiyun /* The data bits, if available. */ 374*4882a593Smuzhiyun #define ADAT_USER_DATA_MASK 0x0f 375*4882a593Smuzhiyun /* The data bits are not available. */ 376*4882a593Smuzhiyun #define ADAT_USER_DATA_NO_DATA 0x10 377*4882a593Smuzhiyun 378*4882a593Smuzhiyun #endif 379