|
Last change
on this file since 262 was
258,
checked in by alain, 12 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.7 KB
|
| Rev | Line | |
|---|
| [258] | 1 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 2 | // File : mwr_driver.h |
|---|
| 3 | // Date : 01/11/2013 |
|---|
| 4 | // Author : alain greiner |
|---|
| 5 | // Copyright (c) UPMC-LIP6 |
|---|
| 6 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 7 | |
|---|
| 8 | #ifndef _GIET_MWR_DRIVERS_H_ |
|---|
| 9 | #define _GIET_MWR_DRIVERS_H_ |
|---|
| 10 | |
|---|
| 11 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 12 | // MWMR controler registers offsets |
|---|
| 13 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 14 | |
|---|
| 15 | enum SoclibMwmrRegisters |
|---|
| 16 | { |
|---|
| 17 | MWMR_IOREG_MAX = 16, |
|---|
| 18 | MWMR_RESET = MWMR_IOREG_MAX, |
|---|
| 19 | MWMR_CONFIG_FIFO_WAY, |
|---|
| 20 | MWMR_CONFIG_FIFO_NO, |
|---|
| 21 | MWMR_CONFIG_STATUS_ADDR, |
|---|
| 22 | MWMR_CONFIG_DEPTH, |
|---|
| 23 | MWMR_CONFIG_BUFFER_ADDR, |
|---|
| 24 | MWMR_CONFIG_RUNNING, |
|---|
| 25 | MWMR_CONFIG_WIDTH, |
|---|
| 26 | MWMR_FIFO_FILL_STATUS, |
|---|
| 27 | }; |
|---|
| 28 | |
|---|
| 29 | enum SoclibMwmrWay |
|---|
| 30 | { |
|---|
| 31 | MWMR_TO_COPROC, |
|---|
| 32 | MWMR_FROM_COPROC, |
|---|
| 33 | }; |
|---|
| 34 | |
|---|
| 35 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 36 | // MWMR controller access functions |
|---|
| 37 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 38 | |
|---|
| 39 | extern unsigned int _mwmr_hw_init( unsigned int cluster_id, |
|---|
| 40 | unsigned int port_id, |
|---|
| 41 | unsigned int from_coproc, |
|---|
| 42 | unsigned long long channel_pbase); |
|---|
| 43 | |
|---|
| 44 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | #endif |
|---|
| 48 | |
|---|
| 49 | // Local Variables: |
|---|
| 50 | // tab-width: 4 |
|---|
| 51 | // c-basic-offset: 4 |
|---|
| 52 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
|---|
| 53 | // indent-tabs-mode: nil |
|---|
| 54 | // End: |
|---|
| 55 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
|---|
| 56 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.