1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-10-01 08:20:51 +00:00
gnss-sdr/src/core/libs/uio_fpga.h

37 lines
1.2 KiB
C
Raw Normal View History

/*!
* \file uio_fpga.h
* \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
*
* -----------------------------------------------------------------------------
*
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
*
* GNSS-SDR is a software defined Global Navigation
* Satellite Systems receiver
*
* This file is part of GNSS-SDR.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
* -----------------------------------------------------------------------------
*/
#ifndef GNSS_SDR_SIM_GNSS_UIO_FPGA_H
#define GNSS_SDR_SIM_GNSS_UIO_FPGA_H
#include <string> // string, memset()
const std::string uio_dir = "/sys/class/uio/";
const std::string uio_filename = "uio";
const std::string uio_subdir_name = "/name";
/*!
* \brief This function finds the uio device driver device file name out of the device name and the device number
*/
int32_t find_uio_dev_file_name(std::string &device_file_name, const std::string &device_name, uint32_t device_num);
#endif // GNSS_SDR_GNSS_UIO_FPGA_H