2020-03-05 21:28:17 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
|
|
|
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
|
net: ipa: include some standard header files
Some IPA header files use types defined in <linux/types.h>, but do
not include that file:
- In "ipa_mem.h", the ipa_mem structure has u16 and u32 fields
- In "ipa_power.h", ipa_power_retention() takes a bool argument,
and ipa_core_clock_rate() returns u32
- In "ipa_version.h", ipa_version_supported() returns bool
Include it in these files to satisfy their dependencies.
The ipa_qmi structure (defined in "ipa_qmi.h") contains a work
structure, so include <linux/workqueue.h> in there.
All of the data and register definition files, as well as "reg.h",
use the ARRAY_SIZE() macro. Include <linux/array_size.h> everywhere
it's used.
Similarly, all register definition files (and a few others) use the
GENMASK() macro, so include <linux/bits.h> to ensure it's defined
where used. BIT() becomes available by including this file also.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-04-16 16:10:12 -07:00
|
|
|
* Copyright (C) 2019-2024 Linaro Ltd.
|
2020-03-05 21:28:17 -07:00
|
|
|
*/
|
|
|
|
#ifndef _IPA_VERSION_H_
|
|
|
|
#define _IPA_VERSION_H_
|
|
|
|
|
net: ipa: include some standard header files
Some IPA header files use types defined in <linux/types.h>, but do
not include that file:
- In "ipa_mem.h", the ipa_mem structure has u16 and u32 fields
- In "ipa_power.h", ipa_power_retention() takes a bool argument,
and ipa_core_clock_rate() returns u32
- In "ipa_version.h", ipa_version_supported() returns bool
Include it in these files to satisfy their dependencies.
The ipa_qmi structure (defined in "ipa_qmi.h") contains a work
structure, so include <linux/workqueue.h> in there.
All of the data and register definition files, as well as "reg.h",
use the ARRAY_SIZE() macro. Include <linux/array_size.h> everywhere
it's used.
Similarly, all register definition files (and a few others) use the
GENMASK() macro, so include <linux/bits.h> to ensure it's defined
where used. BIT() becomes available by including this file also.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-04-16 16:10:12 -07:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2020-03-05 21:28:17 -07:00
|
|
|
/**
|
|
|
|
* enum ipa_version
|
2021-03-24 06:15:24 -07:00
|
|
|
* @IPA_VERSION_3_0: IPA version 3.0/GSI version 1.0
|
2023-02-08 13:56:47 -07:00
|
|
|
* @IPA_VERSION_3_1: IPA version 3.1/GSI version 1.0
|
2021-03-24 06:15:24 -07:00
|
|
|
* @IPA_VERSION_3_5: IPA version 3.5/GSI version 1.2
|
|
|
|
* @IPA_VERSION_3_5_1: IPA version 3.5.1/GSI version 1.3
|
|
|
|
* @IPA_VERSION_4_0: IPA version 4.0/GSI version 2.0
|
|
|
|
* @IPA_VERSION_4_1: IPA version 4.1/GSI version 2.0
|
|
|
|
* @IPA_VERSION_4_2: IPA version 4.2/GSI version 2.2
|
|
|
|
* @IPA_VERSION_4_5: IPA version 4.5/GSI version 2.5
|
|
|
|
* @IPA_VERSION_4_7: IPA version 4.7/GSI version 2.7
|
|
|
|
* @IPA_VERSION_4_9: IPA version 4.9/GSI version 2.9
|
|
|
|
* @IPA_VERSION_4_11: IPA version 4.11/GSI version 2.11 (2.1.1)
|
2022-10-27 05:26:26 -07:00
|
|
|
* @IPA_VERSION_5_0: IPA version 5.0/GSI version 3.0
|
2023-02-08 13:56:47 -07:00
|
|
|
* @IPA_VERSION_5_1: IPA version 5.1/GSI version 3.0
|
|
|
|
* @IPA_VERSION_5_5: IPA version 5.5/GSI version 5.5
|
2022-09-09 18:11:28 -07:00
|
|
|
* @IPA_VERSION_COUNT: Number of defined IPA versions
|
2020-03-05 21:28:17 -07:00
|
|
|
*
|
|
|
|
* Defines the version of IPA (and GSI) hardware present on the platform.
|
2022-09-09 18:11:28 -07:00
|
|
|
* Please update ipa_version_string() whenever a new version is added.
|
2020-03-05 21:28:17 -07:00
|
|
|
*/
|
|
|
|
enum ipa_version {
|
2021-03-24 06:15:24 -07:00
|
|
|
IPA_VERSION_3_0,
|
|
|
|
IPA_VERSION_3_1,
|
|
|
|
IPA_VERSION_3_5,
|
|
|
|
IPA_VERSION_3_5_1,
|
|
|
|
IPA_VERSION_4_0,
|
|
|
|
IPA_VERSION_4_1,
|
|
|
|
IPA_VERSION_4_2,
|
|
|
|
IPA_VERSION_4_5,
|
|
|
|
IPA_VERSION_4_7,
|
|
|
|
IPA_VERSION_4_9,
|
|
|
|
IPA_VERSION_4_11,
|
2022-10-27 05:26:26 -07:00
|
|
|
IPA_VERSION_5_0,
|
2023-02-08 13:56:47 -07:00
|
|
|
IPA_VERSION_5_1,
|
|
|
|
IPA_VERSION_5_5,
|
2022-09-09 18:11:28 -07:00
|
|
|
IPA_VERSION_COUNT, /* Last; not a version */
|
2020-03-05 21:28:17 -07:00
|
|
|
};
|
|
|
|
|
2022-09-09 18:11:27 -07:00
|
|
|
/* Execution environment IDs */
|
|
|
|
enum gsi_ee_id {
|
|
|
|
GSI_EE_AP = 0x0,
|
|
|
|
GSI_EE_MODEM = 0x1,
|
|
|
|
GSI_EE_UC = 0x2,
|
|
|
|
GSI_EE_TZ = 0x3,
|
|
|
|
};
|
|
|
|
|
2020-03-05 21:28:17 -07:00
|
|
|
#endif /* _IPA_VERSION_H_ */
|