/[pcsx2_0.9.7]/trunk/pcsx2/Gif.h
ViewVC logotype

Diff of /trunk/pcsx2/Gif.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by william, Tue Sep 7 03:24:11 2010 UTC revision 280 by william, Thu Dec 23 12:02:12 2010 UTC
# Line 26  enum gifstate_t Line 26  enum gifstate_t
26    
27  enum GSTransferModes //0 = Image Mode (DirectHL), 1 = transferring, 2 = Stopped at End of Packet  enum GSTransferModes //0 = Image Mode (DirectHL), 1 = transferring, 2 = Stopped at End of Packet
28  {  {
29          IMAGE_MODE = 0,          WAITING_MODE = 0,
30          TRANSFER_MODE = 1,          IMAGE_MODE = 1,
31          STOPPED_MODE = 2          TRANSFER_MODE = 2,
32            PENDINGSTOP_MODE = 3,
33            IDLE_MODE = 4,
34            STOPPED_MODE = 5
35  };  };
36    
37  union tGSTransferStatus {  union tGSTransferStatus {
38          struct {          struct {
39                  u32 PTH1 : 2; // Resets Vif(0/1) when written.                  u32 PTH1 : 4; // Resets Vif(0/1) when written.
40                  u32 PTH2 : 2; // Causes a Forcebreak to Vif((0/1) when true. (Stall)                  u32 PTH2 : 4; // Causes a Forcebreak to Vif((0/1) when true. (Stall)
41                  u32 PTH3 : 2; // Stops after the end of the Vifcode in progress when true. (Stall)                  u32 PTH3 : 4; // Stops after the end of the Vifcode in progress when true. (Stall)
42                  u32 reserved : 26;                  u32 reserved : 20;
43          };          };
44          u32 _u32;          u32 _u32;
45    
# Line 274  struct GIFregisters Line 277  struct GIFregisters
277          u32 padding9[3];          u32 padding9[3];
278  };  };
279    
280  #define gifRegs ((GIFregisters*)(PS2MEM_HW+0x3000))  static GIFregisters& gifRegs = (GIFregisters&)eeHw[0x3000];
281    
282  extern tGSTransferStatus GSTransferStatus;  extern tGSTransferStatus GSTransferStatus;
283    
# Line 285  extern void dmaGIF(); Line 288  extern void dmaGIF();
288  extern void mfifoGIFtransfer(int qwc);  extern void mfifoGIFtransfer(int qwc);
289  extern void gifMFIFOInterrupt();  extern void gifMFIFOInterrupt();
290    
291    //Just some temporary bits to store Path1 transfers if another is in progress.
292    extern void gsPath1Interrupt();
293    extern __aligned16 u8 Path1Buffer[0x1000000];
294    extern u32 Path1WritePos;
295    extern u32 Path1ReadPos;
296  #endif  #endif

Legend:
Removed from v.31  
changed lines
  Added in v.280

  ViewVC Help
Powered by ViewVC 1.1.22