mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 21:44:06 +08:00
cdf2e9419d
This patch includes three source files that represent some basic "main program" code for the IPA driver. They are: - "ipa.h" defines the top-level IPA structure which represents an IPA device throughout the code. - "ipa_main.c" contains the platform driver probe function, along with some general code used during initialization. - "ipa_reg.h" defines the offsets of the 32-bit registers used for the IPA device, along with masks that define the position and width of fields within these registers. - "version.h" defines some symbolic IPA version numbers. Each file includes some documentation that provides a little more overview of how the code is organized and used. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
24 lines
625 B
C
24 lines
625 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
|
|
* Copyright (C) 2019-2020 Linaro Ltd.
|
|
*/
|
|
#ifndef _IPA_VERSION_H_
|
|
#define _IPA_VERSION_H_
|
|
|
|
/**
|
|
* enum ipa_version
|
|
*
|
|
* Defines the version of IPA (and GSI) hardware present on the platform.
|
|
* It seems this might be better defined elsewhere, but having it here gets
|
|
* it where it's needed.
|
|
*/
|
|
enum ipa_version {
|
|
IPA_VERSION_3_5_1, /* GSI version 1.3.0 */
|
|
IPA_VERSION_4_0, /* GSI version 2.0 */
|
|
IPA_VERSION_4_1, /* GSI version 2.1 */
|
|
IPA_VERSION_4_2, /* GSI version 2.2 */
|
|
};
|
|
|
|
#endif /* _IPA_VERSION_H_ */
|