source: soft/giet_vm/giet_drivers/mmc_driver.h @ 258

Last change on this file since 258 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.5 KB
Line 
1///////////////////////////////////////////////////////////////////////////////////
2// File     : mmc_driver.h
3// Date     : 01/11/2013
4// Author   : alain greiner
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7
8#ifndef _GIET_MMC_DRIVERS_H_
9#define _GIET_MMC_DRIVERS_H_
10
11///////////////////////////////////////////////////////////////////////////////////
12// TSAR Memory Cache configuration registers offsets and commands
13///////////////////////////////////////////////////////////////////////////////////
14
15enum SoclibMemCacheConfigRegs
16{
17    MEMC_LOCK,
18    MEMC_ADDR_LO,
19    MEMC_ADDR_HI,
20    MEMC_BUF_LENGTH,
21    MEMC_CMD_TYPE
22};
23
24enum SoclibMemCacheConfigCmd
25{
26    MEMC_CMD_NOP,
27    MEMC_CMD_INVAL,
28    MEMC_CMD_SYNC
29};
30
31///////////////////////////////////////////////////////////////////////////////////
32// MEMC access functions (for TSAR architecture)
33///////////////////////////////////////////////////////////////////////////////////
34
35extern void _memc_inval( unsigned long long buf_paddr, 
36                         unsigned int buf_length );
37
38extern void _memc_sync(  unsigned long long buf_paddr, 
39                         unsigned int buf_length);
40
41///////////////////////////////////////////////////////////////////////////////////
42
43#endif
44
45// Local Variables:
46// tab-width: 4
47// c-basic-offset: 4
48// c-file-offsets:((innamespace . 0)(inline-open . 0))
49// indent-tabs-mode: nil
50// End:
51// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
52
Note: See TracBrowser for help on using the repository browser.