linux/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c

/*
 * Copyright 2012-15 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: AMD
 *
 */

#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)
{}