1 /*---------------------------------------------------------------------------*
2   Project: Write gather pipe definitions
3   File:    PPCWGPipe.h
4 
5   Copyright 1998, 1999 Nintendo.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Log: PPCWGPipe.h,v $
14   Revision 1.2  2006/02/04 11:56:45  hashida
15   (none)
16 
17   Revision 1.1.1.1  2005/12/29 06:53:27  hiratsu
18   Initial import.
19 
20   Revision 1.1.1.1  2005/05/12 02:41:07  yasuh-to
21   Ported from dolphin source tree.
22 
23 
24     3     2001/05/07 6:45p Tian
25     Fixes for SN compiler.
26 
27     2     2000/11/01 3:55p Shiki
28     Removed #ifdef EPPC.
29 
30     1     1999/07/14 6:59p Yoshya01
31     Initial version.
32   $NoKeywords: $
33  *---------------------------------------------------------------------------*/
34 #ifndef __PPCWGPIPE_H__
35 #define __PPCWGPIPE_H__
36 
37 #ifdef  __cplusplus
38 extern  "C" {
39 #endif
40 
41 #include <revolution/types.h>
42 
43 /*---------------------------------------------------------------------------*
44     PPC Write Gather Pipe
45 
46     Write Gather Pipe is defined as:
47         PPCWGPipe wgpipe : <Write Gathered Address>;
48 
49     Then, used as:
50         wgpipe.u8  = 0xff;
51         wgpipe.s16 = -5;
52         wgpipe.f32 = 0.10f;
53  *---------------------------------------------------------------------------*/
54 typedef union uPPCWGPipe
55 {
56     u8  u8;
57     u16 u16;
58     u32 u32;
59     u64 u64;
60     s8  s8;
61     s16 s16;
62     s32 s32;
63     s64 s64;
64     f32 f32;
65     f64 f64;
66 } PPCWGPipe;
67 
68 #ifdef  __cplusplus
69 }
70 #endif
71 
72 #endif  //__PPCWGPIPE_H__
73