~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: 50cf3199857b9c0f7139e66ec4095400be6a05f5 CTU-FEE-B0B35APO-Semestral-project/lib-pheripherals/include/mzapo_phys.h -rw-r--r-- 1.0 KiB
50cf3199 — František Boháček refactor: commands size and count types 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************
  Simple program to check LCD functionality on MicroZed
  based MZ_APO board designed by Petr Porazil at PiKRON

  mzapo_phys.h      - mapping of the physical address to process

  (C) Copyright 2017 by Pavel Pisa
      e-mail:   pisa@cmp.felk.cvut.cz
      homepage: http://cmp.felk.cvut.cz/~pisa
      company:  http://www.pikron.com/
      license:  any combination of GPL, LGPL, MPL or BSD licenses

 *******************************************************************/

#ifndef MZAPO_PHYS_H
#define MZAPO_PHYS_H

#include <sys/types.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief Map physical address to virtual space to use pheripherals
 *
 * @param region_base start of the region to map
 * @param region_size Size of the whole region
 * @param opt_cached if false, synchronize data
 * @return void*
 */
void *map_phys_address(off_t region_base, size_t region_size, int opt_cached);

#ifdef __cplusplus
} /* extern "C"*/
#endif

#endif /*MZAPO_PHYS_H*/
Do not follow this link