Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/schedule/ListData.h @ 449:4f11245e3504
get_segment fixed. and test_nogl rollback to 426. move!
author | kazz@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 25 Sep 2009 18:06:01 +0900 |
parents | 09f33c51a204 |
children | 1733f3cbfa28 |
line wrap: on
line source
#ifndef INCLUDED_LIST_DATA #define INCLUDED_LIST_DATA #include "base.h" #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