1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-15 14:25:00 +00:00
gnss-sdr/src/core/libs/uio_fpga.h

45 lines
1.2 KiB
C
Raw Normal View History

/*!
* \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.
* \author Marc Majoral, 2020. mmajoral(at)cttc.es
*
* -----------------------------------------------------------------------------
*
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
* This file is part of GNSS-SDR.
*
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
* 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-29 10:49:19 +00:00
#include <cstdint>
#include <string>
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-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-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-29 12:41:30 +00:00
/** \} */
/** \} */
2020-11-29 10:49:19 +00:00
#endif // GNSS_SDR_UIO_FPGA_H