summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_dio.h
blob: 369c5996326eb5d504c803238999659dea8f7e46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: MIT
//
// Copyright 2025 Advanced Micro Devices, Inc.

#ifndef __DCN10_DIO_H__
#define __DCN10_DIO_H__

#include "dio.h"

#define TO_DCN10_DIO(dio_base) \
	container_of(dio_base, struct dcn10_dio, base)

#define DIO_REG_LIST_DCN10()\
	SR(DIO_MEM_PWR_CTRL)

struct dcn_dio_registers {
	uint32_t DIO_MEM_PWR_CTRL;
};

struct dcn_dio_shift {
	uint8_t I2C_LIGHT_SLEEP_FORCE;
};

struct dcn_dio_mask {
	uint32_t I2C_LIGHT_SLEEP_FORCE;
};

struct dcn10_dio {
	struct dio base;
	const struct dcn_dio_registers *regs;
	const struct dcn_dio_shift *shifts;
	const struct dcn_dio_mask *masks;
};

void dcn10_dio_construct(
	struct dcn10_dio *dio10,
	struct dc_context *ctx,
	const struct dcn_dio_registers *regs,
	const struct dcn_dio_shift *shifts,
	const struct dcn_dio_mask *masks);

#endif /* __DCN10_DIO_H__ */