Mercurial > hg > Game > Cerium
annotate include/TaskManager/ListData.h @ 332:5950b6ff7fec draft
change bin/cerium
author | aaa |
---|---|
date | Fri, 12 Jun 2009 17:03:18 +0900 |
parents | 7f991471d43f |
children |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_LIST_DATA |
2 #define INCLUDED_LIST_DATA | |
3 | |
301
7f991471d43f
remove deprecated source. not work.
tkaito@localhost.localdomain
parents:
109
diff
changeset
|
4 #include "base.h" |
109 | 5 |
6 #define MAX_LIST_DMA_SIZE 8 | |
7 | |
8 class ListElement { | |
9 public: | |
10 BASE_NEW_DELETE(ListElement); | |
11 | |
12 int size; | |
13 unsigned int addr; | |
14 }; | |
15 | |
16 typedef ListElement* ListElementPtr; | |
17 | |
18 class ListData { | |
19 public: | |
20 BASE_NEW_DELETE(ListData); | |
21 | |
22 int length; // The number of data (4) | |
23 int size; // Total size of data (4) | |
24 int a[2]; // for alignment | |
25 int bound[MAX_LIST_DMA_SIZE]; // (4 * MAX_LIST_DMA_SIZE) | |
26 ListElement element[MAX_LIST_DMA_SIZE]; // (8 * MAX_LIST_DMA_SIZE) | |
27 | |
28 void clear(void) { | |
29 length = 0; | |
30 size = 0; | |
31 } | |
32 }; | |
33 | |
34 typedef ListData* ListDataPtr; | |
35 | |
36 #endif |