numam-dpdk/drivers/net/ena/base/ena_plat.h
Maciej Bielski 702928afeb net/ena: change license clause to SPDX tags
Signed-off-by: Maciej Bielski <mba@semihalf.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
2019-10-07 15:00:56 +02:00

30 lines
572 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2015-2019 Amazon.com, Inc. or its affiliates.
* All rights reserved.
*/
#ifndef ENA_PLAT_H_
#define ENA_PLAT_H_
#if defined(ENA_IPXE)
#include <ena_plat_ipxe.h>
#elif defined(__linux__)
#if defined(__KERNEL__)
#include <ena_plat_linux.h>
#else
#include <ena_plat_dpdk.h>
#endif
#elif defined(__FreeBSD__)
#if defined(_KERNEL)
#include <ena_plat_fbsd.h>
#else
#include <ena_plat_dpdk.h>
#endif
#elif defined(_WIN32)
#include <ena_plat_windows.h>
#else
#error "Invalid platform"
#endif
#endif /* ENA_PLAT_H_ */