linux/drivers/media/usb/au0828/au0828-reg.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  Driver for the Auvitek USB bridge
 *
 *  Copyright (c) 2008 Steven Toth <[email protected]>
 */

/* We'll start to rename these registers once we have a better
 * understanding of their meaning.
 */
#define REG_000
#define REG_001
#define REG_002
#define REG_003

#define AU0828_SENSORCTRL_100
#define AU0828_SENSORCTRL_VBI_103

/* I2C registers */
#define AU0828_I2C_TRIGGER_200
#define AU0828_I2C_STATUS_201
#define AU0828_I2C_CLK_DIVIDER_202
#define AU0828_I2C_DEST_ADDR_203
#define AU0828_I2C_WRITE_FIFO_205
#define AU0828_I2C_READ_FIFO_209
#define AU0828_I2C_MULTIBYTE_MODE_2FF

/* Audio registers */
#define AU0828_AUDIOCTRL_50C

#define REG_600

/*********************************************************************/
/* Here are constants for values associated with the above registers */

/* I2C Trigger (Reg 0x200) */
#define AU0828_I2C_TRIGGER_WRITE
#define AU0828_I2C_TRIGGER_READ
#define AU0828_I2C_TRIGGER_HOLD

/* I2C Status (Reg 0x201) */
#define AU0828_I2C_STATUS_READ_DONE
#define AU0828_I2C_STATUS_NO_READ_ACK
#define AU0828_I2C_STATUS_WRITE_DONE
#define AU0828_I2C_STATUS_NO_WRITE_ACK
#define AU0828_I2C_STATUS_BUSY

/* I2C Clock Divider (Reg 0x202) */
#define AU0828_I2C_CLK_250KHZ
#define AU0828_I2C_CLK_100KHZ
#define AU0828_I2C_CLK_30KHZ
#define AU0828_I2C_CLK_20KHZ