view include/TaskManager/task.h @ 70:178459e03f5c

*** empty log message ***
author gongo
date Mon, 18 Feb 2008 01:13:00 +0900
parents f50c74835a9b
children 3e331f7576a1
line wrap: on
line source

#ifndef INCLUDED_TASK
#define INCLUDED_TASK

#define TASK_MAX_SIZE 30

typedef struct task_queue TaskQueue, *TaskQueuePtr;
typedef struct htask      HTask, *HTaskPtr;

typedef struct task {
    int command;
    int in_size;           // DMA_GET size
    unsigned int in_addr;  // DMA_GET address
    unsigned int out_addr; // DMA_PUT address
    HTaskPtr self;
} Task, *TaskPtr;

typedef struct task_list {
    int length;
    struct task_list *next;
    //unsigned int next;
    Task tasks[TASK_MAX_SIZE];
} TaskList, *TaskListPtr;


#endif