[258] | 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 | |
---|
| 15 | enum 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 | |
---|