Merge branch 'kvm-arm/vgic-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / nouveau / core / subdev / i2c / nv50.h
1 #ifndef __NV50_I2C_H__
2 #define __NV50_I2C_H__
3
4 #include <subdev/i2c.h>
5
6 struct nv50_i2c_priv {
7         struct nouveau_i2c base;
8 };
9
10 struct nv50_i2c_port {
11         struct nouveau_i2c_port base;
12         u32 addr;
13         u32 ctrl;
14         u32 data;
15         u32 state;
16 };
17
18 extern const u32 nv50_i2c_addr[];
19 extern const int nv50_i2c_addr_nr;
20 int  nv50_i2c_port_init(struct nouveau_object *);
21 int  nv50_i2c_sense_scl(struct nouveau_i2c_port *);
22 int  nv50_i2c_sense_sda(struct nouveau_i2c_port *);
23 void nv50_i2c_drive_scl(struct nouveau_i2c_port *, int state);
24 void nv50_i2c_drive_sda(struct nouveau_i2c_port *, int state);
25
26 int  nv94_aux_port_ctor(struct nouveau_object *, struct nouveau_object *,
27                         struct nouveau_oclass *, void *, u32,
28                         struct nouveau_object **);
29 void nv94_i2c_acquire(struct nouveau_i2c_port *);
30 void nv94_i2c_release(struct nouveau_i2c_port *);
31
32 #endif