1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVBIOS_I2C_H__
3 #define __NVBIOS_I2C_H__
5 /* matches bios type field prior to ccb 4.1 */
6 DCB_I2C_NV04_BIT = 0x00,
7 DCB_I2C_NV4E_BIT = 0x04,
8 DCB_I2C_NVIO_BIT = 0x05,
9 DCB_I2C_NVIO_AUX = 0x06,
10 /* made up - mostly */
15 struct dcb_i2c_entry {
16 enum dcb_i2c_type type;
23 u16 dcb_i2c_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
24 u16 dcb_i2c_entry(struct nvkm_bios *, u8 index, u8 *ver, u8 *len);
25 int dcb_i2c_parse(struct nvkm_bios *, u8 index, struct dcb_i2c_entry *);