#include "dm_services.h"
#include "dce/dce_11_0_d.h"
#include "dce/dce_11_0_sh_mask.h"
#include "gmc/gmc_8_2_sh_mask.h"
#include "gmc/gmc_8_2_d.h"
#include "include/logger_interface.h"
#include "dce110_compressor.h"
#define DC_LOGGER …
#define DCP_REG(reg) …
#define DMIF_REG(reg) …
static const struct dce110_compressor_reg_offsets reg_offsets[] = …;
static uint32_t align_to_chunks_number_per_line(uint32_t pixels)
{ … }
static void reset_lb_on_vblank(struct compressor *compressor, uint32_t crtc_inst)
{ … }
static void wait_for_fbc_state_changed(
struct dce110_compressor *cp110,
bool enabled)
{ … }
void dce110_compressor_power_up_fbc(struct compressor *compressor)
{ … }
void dce110_compressor_enable_fbc(
struct compressor *compressor,
struct compr_addr_and_pitch_params *params)
{ … }
void dce110_compressor_disable_fbc(struct compressor *compressor)
{ … }
bool dce110_compressor_is_fbc_enabled_in_hw(
struct compressor *compressor,
uint32_t *inst)
{ … }
void dce110_compressor_program_compressed_surface_address_and_pitch(
struct compressor *compressor,
struct compr_addr_and_pitch_params *params)
{ … }
void dce110_compressor_set_fbc_invalidation_triggers(
struct compressor *compressor,
uint32_t fbc_trigger)
{ … }
struct compressor *dce110_compressor_create(struct dc_context *ctx)
{ … }
void dce110_compressor_destroy(struct compressor **compressor)
{ … }
void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y)
{ … }
static const struct compressor_funcs dce110_compressor_funcs = …;
void dce110_compressor_construct(struct dce110_compressor *compressor,
struct dc_context *ctx)
{ … }