This fixes warnings caused by global functions lacking prototypes:, such as: warning: no previous prototype for 'dcn303_hw_sequencer_construct' [-Wmissing-prototypes] 12 | void dcn303_hw_sequencer_construct(struct dc *dc) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... warning: no previous prototype for ‘amdgpu_has_atpx’ [-Wmissing-prototypes] 76 | bool amdgpu_has_atpx(void) { | ^~~~~~~~~~~~~~~ Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Isabella Basso <isabbasso@riseup.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
22 lines
555 B
C
22 lines
555 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright (C) 2021 Advanced Micro Devices, Inc.
|
|
*
|
|
* Authors: AMD
|
|
*/
|
|
|
|
#include "dcn303_hwseq.h"
|
|
#include "dcn30/dcn30_init.h"
|
|
#include "dc.h"
|
|
|
|
#include "dcn303_init.h"
|
|
|
|
void dcn303_hw_sequencer_construct(struct dc *dc)
|
|
{
|
|
dcn30_hw_sequencer_construct(dc);
|
|
|
|
dc->hwseq->funcs.dpp_pg_control = dcn303_dpp_pg_control;
|
|
dc->hwseq->funcs.hubp_pg_control = dcn303_hubp_pg_control;
|
|
dc->hwseq->funcs.dsc_pg_control = dcn303_dsc_pg_control;
|
|
dc->hwseq->funcs.enable_power_gating_plane = dcn303_enable_power_gating_plane;
|
|
}
|