drm/nouveau/disp: add dp rates method
[sfrench/cifs-2.6.git] / drivers / gpu / drm / nouveau / include / nvif / outp.h
index dd4dd0e2a7a1d059162bec39ac02f4afdc752313..596d543acd30288f521bee4164d8bfafc9344ac2 100644 (file)
@@ -59,6 +59,14 @@ int nvif_outp_hda_eld(struct nvif_outp *, int head, void *data, u32 size);
 
 int nvif_outp_dp_aux_pwr(struct nvif_outp *, bool enable);
 int nvif_outp_dp_aux_xfer(struct nvif_outp *, u8 type, u8 *size, u32 addr, u8 *data);
+
+struct nvif_outp_dp_rate {
+       int dpcd; /* -1 for non-indexed rates */
+       u32 rate;
+};
+
+int nvif_outp_dp_rates(struct nvif_outp *, struct nvif_outp_dp_rate *rate, int rate_nr);
+
 int nvif_outp_dp_retrain(struct nvif_outp *);
 int nvif_outp_dp_mst_vcpi(struct nvif_outp *, int head,
                          u8 start_slot, u8 num_slots, u16 pbn, u16 aligned_pbn);