File Index
Files and directories
Sign in
FILE

amd_sfh_init.h

File preview with syntax highlighting.

linux-6.19.14/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_init.h C
 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 <Basavaraj.Natikar@amd.com>
 9 */
10
11#ifndef AMD_SFH_INIT_H
12#define AMD_SFH_INIT_H
13
14#include "../amd_sfh_common.h"
15
16struct 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
21int amd_sfh1_1_init(struct amd_mp2_dev *mp2);
22void amd_sfh_toggle_hpd(struct amd_mp2_dev *mp2, bool enabled);
23
24static 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
~/ Read-only file preview.