2020-11-26 16:07:15 +00:00
|
|
|
/*!
|
|
|
|
* \file uio_fpga.h
|
2020-11-29 10:49:19 +00:00
|
|
|
* \brief This library contains functions to determine the uio device driver
|
|
|
|
* file that corresponds to a hardware accelerator device name in the FPGA.
|
2020-11-26 16:07:15 +00:00
|
|
|
* \author Marc Majoral, 2020. mmajoral(at)cttc.es
|
|
|
|
*
|
|
|
|
* -----------------------------------------------------------------------------
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2020-11-26 16:07:15 +00:00
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2020-11-26 16:07:15 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*
|
|
|
|
* -----------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2020-11-29 10:49:19 +00:00
|
|
|
#ifndef GNSS_SDR_UIO_FPGA_H
|
|
|
|
#define GNSS_SDR_UIO_FPGA_H
|
2020-11-26 16:07:15 +00:00
|
|
|
|
2020-11-29 10:49:19 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
2020-11-26 16:07:15 +00:00
|
|
|
|
2020-11-29 12:41:30 +00:00
|
|
|
/** \addtogroup Core
|
|
|
|
* \{ */
|
|
|
|
/** \addtogroup Core_Receiver_Library
|
|
|
|
* \{ */
|
|
|
|
|
2020-11-29 10:49:19 +00:00
|
|
|
const std::string uio_dir("/sys/class/uio/");
|
|
|
|
const std::string uio_filename("uio");
|
|
|
|
const std::string uio_subdir_name("/name");
|
2020-11-26 16:07:15 +00:00
|
|
|
|
|
|
|
/*!
|
2020-11-29 10:49:19 +00:00
|
|
|
* \brief This function finds the uio device driver device file name out of the
|
|
|
|
* device name and the device number.
|
2020-11-26 16:07:15 +00:00
|
|
|
*/
|
2020-11-29 10:49:19 +00:00
|
|
|
int32_t find_uio_dev_file_name(std::string &device_file_name,
|
|
|
|
const std::string &device_name,
|
|
|
|
uint32_t device_num);
|
2020-11-26 16:07:15 +00:00
|
|
|
|
|
|
|
|
2020-11-29 12:41:30 +00:00
|
|
|
/** \} */
|
|
|
|
/** \} */
|
2020-11-29 10:49:19 +00:00
|
|
|
#endif // GNSS_SDR_UIO_FPGA_H
|