]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
b9ec1424 BS |
2 | #ifndef __NVKM_I2C_PRIV_H__ |
3 | #define __NVKM_I2C_PRIV_H__ | |
49bd8da5 | 4 | #define nvkm_i2c(p) container_of((p), struct nvkm_i2c, subdev) |
c26fe843 BS |
5 | #include <subdev/i2c.h> |
6 | ||
49bd8da5 BS |
7 | int nvkm_i2c_new_(const struct nvkm_i2c_func *, struct nvkm_device *, |
8 | int index, struct nvkm_i2c **); | |
3668a339 | 9 | |
49bd8da5 | 10 | struct nvkm_i2c_func { |
2aa5eac5 BS |
11 | int (*pad_x_new)(struct nvkm_i2c *, int id, struct nvkm_i2c_pad **); |
12 | int (*pad_s_new)(struct nvkm_i2c *, int id, struct nvkm_i2c_pad **); | |
3668a339 BS |
13 | |
14 | /* number of native dp aux channels present */ | |
15 | int aux; | |
16 | ||
17 | /* read and ack pending interrupts, returning only data | |
18 | * for ports that have not been masked off, while still | |
19 | * performing the ack for anything that was pending. | |
20 | */ | |
b9ec1424 | 21 | void (*aux_stat)(struct nvkm_i2c *, u32 *, u32 *, u32 *, u32 *); |
3668a339 BS |
22 | |
23 | /* mask on/off interrupt types for a given set of auxch | |
24 | */ | |
b9ec1424 | 25 | void (*aux_mask)(struct nvkm_i2c *, u32, u32, u32); |
c26fe843 BS |
26 | }; |
27 | ||
b9ec1424 BS |
28 | void g94_aux_stat(struct nvkm_i2c *, u32 *, u32 *, u32 *, u32 *); |
29 | void g94_aux_mask(struct nvkm_i2c *, u32, u32, u32); | |
c9083577 | 30 | |
b9ec1424 BS |
31 | void gk104_aux_stat(struct nvkm_i2c *, u32 *, u32 *, u32 *, u32 *); |
32 | void gk104_aux_mask(struct nvkm_i2c *, u32, u32, u32); | |
c26fe843 | 33 | #endif |