hsmp.c (c1691730d9ffb8e813018235ad1b9754104cf67b) hsmp.c (1349dd7dc21c63c9bad0e91fd1bf5f1ada34b0e2)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * AMD HSMP Platform Driver
4 * Copyright (c) 2022, AMD.
5 * All Rights Reserved.
6 *
7 * This file provides a device implementation for HSMP interface
8 */

--- 21 unchanged lines hidden (view full) ---

30#define HSMP_MSG_TIMEOUT 100
31#define HSMP_SHORT_SLEEP 1
32
33#define HSMP_WR true
34#define HSMP_RD false
35
36#define DRIVER_VERSION "2.3"
37
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * AMD HSMP Platform Driver
4 * Copyright (c) 2022, AMD.
5 * All Rights Reserved.
6 *
7 * This file provides a device implementation for HSMP interface
8 */

--- 21 unchanged lines hidden (view full) ---

30#define HSMP_MSG_TIMEOUT 100
31#define HSMP_SHORT_SLEEP 1
32
33#define HSMP_WR true
34#define HSMP_RD false
35
36#define DRIVER_VERSION "2.3"
37
38struct hsmp_plat_device hsmp_pdev;
39EXPORT_SYMBOL_NS_GPL(hsmp_pdev, AMD_HSMP);
38static struct hsmp_plat_device hsmp_pdev;
40
41/*
42 * Send a message to the HSMP port via PCI-e config space registers
43 * or by writing to MMIO space.
44 *
45 * The caller is expected to zero out any unused arguments.
46 * If a response is expected, the number of response words should be greater than 0.
47 *

--- 331 unchanged lines hidden (view full) ---

379EXPORT_SYMBOL_NS_GPL(hsmp_misc_register, AMD_HSMP);
380
381void hsmp_misc_deregister(void)
382{
383 misc_deregister(&hsmp_pdev.mdev);
384}
385EXPORT_SYMBOL_NS_GPL(hsmp_misc_deregister, AMD_HSMP);
386
39
40/*
41 * Send a message to the HSMP port via PCI-e config space registers
42 * or by writing to MMIO space.
43 *
44 * The caller is expected to zero out any unused arguments.
45 * If a response is expected, the number of response words should be greater than 0.
46 *

--- 331 unchanged lines hidden (view full) ---

378EXPORT_SYMBOL_NS_GPL(hsmp_misc_register, AMD_HSMP);
379
380void hsmp_misc_deregister(void)
381{
382 misc_deregister(&hsmp_pdev.mdev);
383}
384EXPORT_SYMBOL_NS_GPL(hsmp_misc_deregister, AMD_HSMP);
385
386struct hsmp_plat_device *get_hsmp_pdev(void)
387{
388 return &hsmp_pdev;
389}
390EXPORT_SYMBOL_NS_GPL(get_hsmp_pdev, AMD_HSMP);
391
387MODULE_DESCRIPTION("AMD HSMP Common driver");
388MODULE_VERSION(DRIVER_VERSION);
389MODULE_LICENSE("GPL");
392MODULE_DESCRIPTION("AMD HSMP Common driver");
393MODULE_VERSION(DRIVER_VERSION);
394MODULE_LICENSE("GPL");