source: soft/giet_vm/giet_drivers/cma_driver.h @ 260

Last change on this file since 260 was 258, checked in by alain, 11 years ago

This is a major release, including a deep restructuration of code.
The main evolutions are

  • use of the Tsar preloader to load the GIET boot-loader from disk
  • introduction of a FAT32 file system library,
  • use of this fat32 library by the boot-loader to load the map.bin data structure, and the various .elf files
  • reorganisation of drivers (one file per peripheral).
  • introduction of drivers for new peripherals: vci_chbuf_dma and vci_multi_ahci.
  • introduction of a new physical memory allocator in the boot code.

This release has been tested on the tsar_generic_iob architecture,
for the two following mappings: 4c_1p_iob_four.xml and 4c_1p_iob_sort.xml

File size: 1.6 KB
Line 
1///////////////////////////////////////////////////////////////////////////////////
2// File     : cma_driver.h
3// Date     : 01/11/2013
4// Author   : alain greiner
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7
8#ifndef _GIET_CMA_DRIVERS_H_
9#define _GIET_CMA_DRIVERS_H_
10
11///////////////////////////////////////////////////////////////////////////////////
12// CMA (vci_chbuf_dma) registers offsets
13///////////////////////////////////////////////////////////////////////////////////
14
15enum CMA_registers
16{
17    CHBUF_RUN           = 0,    // write-only : channel activated
18    CHBUF_STATUS        = 1,    // read-only  : channel fsm state
19    CHBUF_SRC_DESC      = 2,    // read/write : source chbuf : descriptor base address
20    CHBUF_DST_DESC      = 3,    // read/write : destination chbuf : descriptor base address,
21    CHBUF_SRC_NBUFS     = 4,    // read/write : source chbuf : number of buffers,
22    CHBUF_DST_NBUFS     = 5,    // read/write : destination chbuf : number of buffers,
23    CHBUF_BUF_SIZE      = 6,    // read/write : buffer size for both source & destination 
24    CHBUF_PERIOD        = 7,    // read/write : period for status polling
25    CHBUF_SRC_EXT       = 8,    // read/write : source chbuf : descriptor base address
26    CHBUF_DST_EXT       = 9,    // read/write : destination chbuf : descriptor base address,
27    /****/
28    CHBUF_CHANNEL_SPAN  = 1024,
29};
30
31#endif
32
33// Local Variables:
34// tab-width: 4
35// c-basic-offset: 4
36// c-file-offsets:((innamespace . 0)(inline-open . 0))
37// indent-tabs-mode: nil
38// End:
39// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
40
Note: See TracBrowser for help on using the repository browser.