Files
kernel_common_drivers/drivers/pci/controller/main.h
T
Yu Tu 75d44dfe97 pcie: sc2 pcie bringup kernel6.12 [1/1]
PD#SWPL-188391

Problem:
sc2 pcie bringup kernel6.12

Solution:
sc2 pcie bringup kernel6.12

Verify:
sc2_ah212

Change-Id: Ie220eb341e98bf27f51b7311afa0c06eaa9b00ee
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-16 04:58:46 -07:00

64 lines
1.0 KiB
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __PCIE_MAIN_H_
#define __PCIE_MAIN_H_
#if IS_ENABLED(CONFIG_AMLOGIC_PCIE_V2_HOST)
int aml_pcie_rc_v2_init(void);
void aml_pcie_rc_v2_exit(void);
#else
static inline int aml_pcie_rc_v2_init(void)
{
return 0;
}
static inline void aml_pcie_rc_v2_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_PCIE_V3_HOST)
int aml_pcie_rc_v3_init(void);
void aml_pcie_rc_v3_exit(void);
#else
static inline int aml_pcie_rc_v3_init(void)
{
return 0;
}
static inline void aml_pcie_rc_v3_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_PCIE_V3_EP)
int aml_pcie_ep_v3_init(void);
void aml_pcie_ep_v3_exit(void);
int aml_pcie_ep_test_init(void);
void aml_pcie_ep_test_exit(void);
#else
static inline int aml_pcie_ep_v3_init(void)
{
return 0;
}
static inline void aml_pcie_ep_v3_exit(void)
{
}
static inline int aml_pcie_ep_test_init(void)
{
return 0;
}
static inline void aml_pcie_ep_test_exit(void)
{
}
#endif
#endif /*__PCIE_MAIN_H_*/