Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_init.h
26285 views
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
/*
3
* AMD MP2 1.1 initialization structures
4
*
5
* Copyright (c) 2022, Advanced Micro Devices, Inc.
6
* All Rights Reserved.
7
*
8
* Author: Basavaraj Natikar <[email protected]>
9
*/
10
11
#ifndef AMD_SFH_INIT_H
12
#define AMD_SFH_INIT_H
13
14
#include "../amd_sfh_common.h"
15
16
struct amd_sfh1_1_ops {
17
int (*init)(struct amd_mp2_dev *mp2);
18
void (*toggle_hpd)(struct amd_mp2_dev *mp2, bool enable);
19
};
20
21
int amd_sfh1_1_init(struct amd_mp2_dev *mp2);
22
void amd_sfh_toggle_hpd(struct amd_mp2_dev *mp2, bool enabled);
23
24
static const struct amd_sfh1_1_ops __maybe_unused sfh1_1_ops = {
25
.init = amd_sfh1_1_init,
26
.toggle_hpd = amd_sfh_toggle_hpd,
27
};
28
29
#endif
30
31