2020-06-18 16:55:50 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright (c) 2015-2019 Amazon.com, Inc. or its affiliates.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
2017-04-21 10:43:26 +00:00
|
|
|
|
|
|
|
#ifndef ENA_PLAT_H_
|
|
|
|
#define ENA_PLAT_H_
|
|
|
|
|
|
|
|
#if defined(ENA_IPXE)
|
2020-06-18 16:55:50 +00:00
|
|
|
#include <ena_plat_ipxe.h>
|
2017-04-21 10:43:26 +00:00
|
|
|
#elif defined(__linux__)
|
|
|
|
#if defined(__KERNEL__)
|
2020-06-18 16:55:50 +00:00
|
|
|
#include <ena_plat_linux.h>
|
2017-04-21 10:43:26 +00:00
|
|
|
#else
|
2020-06-18 16:55:50 +00:00
|
|
|
#include <ena_plat_dpdk.h>
|
2017-04-21 10:43:26 +00:00
|
|
|
#endif
|
|
|
|
#elif defined(__FreeBSD__)
|
2019-06-25 11:12:58 +00:00
|
|
|
#if defined(_KERNEL)
|
2020-06-18 16:55:50 +00:00
|
|
|
#include <ena_plat_fbsd.h>
|
2019-06-25 11:12:58 +00:00
|
|
|
#else
|
2020-06-18 16:55:50 +00:00
|
|
|
#include <ena_plat_dpdk.h>
|
2019-06-25 11:12:58 +00:00
|
|
|
#endif
|
2017-04-21 10:43:26 +00:00
|
|
|
#elif defined(_WIN32)
|
2020-06-18 16:55:50 +00:00
|
|
|
#include <ena_plat_windows.h>
|
2017-04-21 10:43:26 +00:00
|
|
|
#else
|
|
|
|
#error "Invalid platform"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ENA_PLAT_H_ */
|