Mercurial > hg > Game > Cerium
view include/TaskManager/ListData.h @ 175:1268e1a9a7db draft
add file "ChangeLog"
author | gongo@localhost.localdomain |
---|---|
date | Fri, 12 Dec 2008 17:48:42 +0900 |
parents | 028ffc9c0375 |
children | 7f991471d43f |
line wrap: on
line source
#ifndef INCLUDED_LIST_DATA #define INCLUDED_LIST_DATA #ifndef INCLUDED_BASE_H_ # include "base.h" #endif #define MAX_LIST_DMA_SIZE 8 class ListElement { public: BASE_NEW_DELETE(ListElement); int size; unsigned int addr; }; typedef ListElement* ListElementPtr; class ListData { public: BASE_NEW_DELETE(ListData); int length; // The number of data (4) int size; // Total size of data (4) int a[2]; // for alignment int bound[MAX_LIST_DMA_SIZE]; // (4 * MAX_LIST_DMA_SIZE) ListElement element[MAX_LIST_DMA_SIZE]; // (8 * MAX_LIST_DMA_SIZE) void clear(void) { length = 0; size = 0; } }; typedef ListData* ListDataPtr; #endif