vumanager.h

00001 /*
00002 * "PS2" Application Framework
00003 *
00004 * University of Abertay Dundee
00005 * May be used for educational purposed only
00006 *
00007 * Author - Dr Henry S Fortuna
00008 *
00009 * $Revision: 1.2 $
00010 * $Date: 2007/08/19 12:45:14 $
00011 *
00012 */
00013 
00014 #ifndef __VUMANAGER_H__
00015 #define __VUMANAGER_H__
00016 
00017 #include "dma.h"
00018 
00019 class CVU1MicroProgram
00020 {
00021 public:
00022         // pCode is the start of the VU code, and pCodeEnd is the last DWord.
00023         // Offset can be used to upload the code further into VU1 micro memory.
00024         CVU1MicroProgram(uint64 * pCode, uint64 * pCodeEnd, int Offset = 0);
00025         ~CVU1MicroProgram(){}
00026 
00027         void Upload();  // Send the program to VU1 memory
00028 
00029         // Get the code size in double words (note that there are 2048 QWs in VU1 micro memory)
00030         // So you can have quite a few microprograms loaded at once.
00031         int GetCodeSizeDW()
00032         { return m_iOffset; }
00033 
00034 private:
00035         int m_iOffset;
00036         int m_pUploadPtr;
00037         int m_iSize;
00038 };
00039 
00040 #endif

Generated on Sun May 18 21:45:09 2008 for PS2X by  doxygen 1.5.4