Mercurial > hg > Game > Cerium
view TaskManager/kernel/ppe/SimpleTask.h @ 1506:a7895ab4d0e3 draft
add flip flag and NDRange flag
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 10 Sep 2012 15:04:39 +0900 |
parents | 9ed1c4a877ca |
children |
line wrap: on
line source
#ifndef INCLUDED_SIPMLE_TASK #define INCLUDED_SIPMLE_TASK #include "base.h" #include "types.h" #define MAX_PARAMS 8 class SimpleTask { public: // variables BASE_NEW_DELETE(SimpleTask); int command; // 4 byte memaddr self; // 4 byte (or 8byte on 64bit mode) memaddr rbuf; memaddr wbuf; int r_size; int w_size; memaddr from; memaddr param; // sizeof(SimpleTask)==32 public: // functions SimpleTask() {}; SimpleTask(int r, memaddr read, int w, memaddr write) { r_size = r; rbuf = read; w_size = w; wbuf = write; }; void set_input(memaddr i,int size) { r_size = size; rbuf= i; } void set_output(memaddr o,int size) { w_size = size; wbuf= o; } void set_param(memaddr data) { param = data; } memaddr get_param() { return param; } } __attribute__ ((aligned (DEFAULT_ALIGNMENT))); typedef SimpleTask *SimpleTaskPtr; #endif