2023-06-06 23:10:32 +03:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2023 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_PMDEMAND_H__
|
|
|
|
#define __INTEL_PMDEMAND_H__
|
|
|
|
|
2024-12-31 18:27:38 +02:00
|
|
|
#include <linux/types.h>
|
2023-06-06 23:10:32 +03:00
|
|
|
|
2024-12-31 18:27:38 +02:00
|
|
|
enum pipe;
|
2023-06-06 23:10:32 +03:00
|
|
|
struct intel_atomic_state;
|
|
|
|
struct intel_crtc_state;
|
2024-12-31 18:27:39 +02:00
|
|
|
struct intel_display;
|
2023-06-06 23:10:32 +03:00
|
|
|
struct intel_encoder;
|
2024-12-31 18:27:38 +02:00
|
|
|
struct intel_global_state;
|
2023-06-06 23:10:32 +03:00
|
|
|
struct intel_plane_state;
|
2024-12-31 18:27:38 +02:00
|
|
|
struct intel_pmdemand_state;
|
2023-06-06 23:10:32 +03:00
|
|
|
|
2024-12-31 18:27:37 +02:00
|
|
|
struct intel_pmdemand_state *to_intel_pmdemand_state(struct intel_global_state *obj_state);
|
2023-06-06 23:10:32 +03:00
|
|
|
|
2024-12-31 18:27:39 +02:00
|
|
|
void intel_pmdemand_init_early(struct intel_display *display);
|
|
|
|
int intel_pmdemand_init(struct intel_display *display);
|
|
|
|
void intel_pmdemand_init_pmdemand_params(struct intel_display *display,
|
2023-06-06 23:10:32 +03:00
|
|
|
struct intel_pmdemand_state *pmdemand_state);
|
2024-12-31 18:27:39 +02:00
|
|
|
void intel_pmdemand_update_port_clock(struct intel_display *display,
|
2023-06-06 23:10:32 +03:00
|
|
|
struct intel_pmdemand_state *pmdemand_state,
|
|
|
|
enum pipe pipe, int port_clock);
|
2024-12-31 18:27:39 +02:00
|
|
|
void intel_pmdemand_update_phys_mask(struct intel_display *display,
|
2023-06-06 23:10:32 +03:00
|
|
|
struct intel_encoder *encoder,
|
|
|
|
struct intel_pmdemand_state *pmdemand_state,
|
|
|
|
bool clear_bit);
|
2024-12-31 18:27:39 +02:00
|
|
|
void intel_pmdemand_program_dbuf(struct intel_display *display,
|
2023-06-06 23:10:32 +03:00
|
|
|
u8 dbuf_slices);
|
|
|
|
void intel_pmdemand_pre_plane_update(struct intel_atomic_state *state);
|
|
|
|
void intel_pmdemand_post_plane_update(struct intel_atomic_state *state);
|
|
|
|
int intel_pmdemand_atomic_check(struct intel_atomic_state *state);
|
|
|
|
|
|
|
|
#endif /* __INTEL_PMDEMAND_H__ */
|