|
Last change
on this file since 363 was
263,
checked in by alain, 12 years ago
|
|
Introducing support for TSAR fixed format cluster index (cluster_xy)
We have now 4 parameters defined in map.xml:
- X_WIDTH, Y_WIDTH define the fixed format (typically X_WIDTH = 4 / Y_WIDTH = 4)
- X_SIZE, Y_SIZE define the actual TSAR 2D mesh variable size (from 1 to 16)
|
|
File size:
1.6 KB
|
| Line | |
|---|
| 1 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 2 | // File : icu_driver.h |
|---|
| 3 | // Date : 01/11/2013 |
|---|
| 4 | // Author : alain greiner |
|---|
| 5 | // Copyright (c) UPMC-LIP6 |
|---|
| 6 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 7 | |
|---|
| 8 | #ifndef _GIET_ICU_DRIVER_H_ |
|---|
| 9 | #define _GIET_ICU_DRIVER_H_ |
|---|
| 10 | |
|---|
| 11 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 12 | // ICU registers offsets |
|---|
| 13 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 14 | |
|---|
| 15 | enum ICU_registers |
|---|
| 16 | { |
|---|
| 17 | ICU_INT = 0, |
|---|
| 18 | ICU_MASK = 1, |
|---|
| 19 | ICU_MASK_SET = 2, |
|---|
| 20 | ICU_MASK_CLEAR = 3, |
|---|
| 21 | ICU_IT_VECTOR = 4, |
|---|
| 22 | /**/ |
|---|
| 23 | ICU_END = 5, |
|---|
| 24 | ICU_SPAN = 8, |
|---|
| 25 | }; |
|---|
| 26 | |
|---|
| 27 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 28 | // ICU and XICU access functions |
|---|
| 29 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 30 | |
|---|
| 31 | extern unsigned int _icu_get_index( unsigned int cluster_xy, |
|---|
| 32 | unsigned int proc_id, |
|---|
| 33 | unsigned int * buffer ); |
|---|
| 34 | |
|---|
| 35 | extern unsigned int _icu_set_mask( unsigned int cluster_xy, |
|---|
| 36 | unsigned int proc_id, |
|---|
| 37 | unsigned int value ); |
|---|
| 38 | |
|---|
| 39 | /////////////////////////////////////////////////////////////////////////////////// |
|---|
| 40 | |
|---|
| 41 | #endif |
|---|
| 42 | |
|---|
| 43 | // Local Variables: |
|---|
| 44 | // tab-width: 4 |
|---|
| 45 | // c-basic-offset: 4 |
|---|
| 46 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
|---|
| 47 | // indent-tabs-mode: nil |
|---|
| 48 | // End: |
|---|
| 49 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
|---|
| 50 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.