-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathamd-gpu-i2c.h
More file actions
36 lines (28 loc) · 761 Bytes
/
Copy pathamd-gpu-i2c.h
File metadata and controls
36 lines (28 loc) · 761 Bytes
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
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _UAPI_AMD_GPU_I2C_H
#define _UAPI_AMD_GPU_I2C_H
#include <linux/i2c.h>
#include "amd-gpu-pci.h"
#include "amd-gpu-reg.h"
#include "amd-i2c-base.h"
enum amd_gpu_i2c_engine {
AURA_GPU_I2C_NONE,
AURA_GPU_I2C_DCN,
AURA_GPU_I2C_DCE
};
struct amd_gpu_i2c_context {
struct amd_pci_asic asic;
struct amd_reg_service *reg_service;
struct i2c_adapter adapter;
bool registered;
enum amd_gpu_i2c_engine engine;
struct amd_gpu_i2c *gpu_ctx;
};
void amd_gpu_i2c_destroy_context (
struct amd_gpu_i2c_context *context
);
struct amd_gpu_i2c_context *amd_gpu_i2c_create_context(
const struct amd_pci_entry *const gpu,
uint8_t index
);
#endif