1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>OSGetConsoleType</TITLE> 9</HEAD> 10<BODY> 11<H1>OSGetConsoleType</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/os.h> 16 17#define OS_CONSOLE_MASK 0xf0000000 18#define OS_CONSOLE_RETAIL 0x00000000 19#define OS_CONSOLE_DEVELOPMENT 0x10000000 20#define OS_CONSOLE_TDEV 0x20000000 21 22#define OS_CONSOLE_RVL_NDEV1_0 0x10000010 23#define OS_CONSOLE_RVL_NDEV1_1 0x10000011 24 25#define OS_CONSOLE_RETAIL4 0x00000004 26#define OS_CONSOLE_RETAIL3 0x00000003 27#define OS_CONSOLE_RETAIL2 0x00000002 28#define OS_CONSOLE_RETAIL1 0x00000001 29#define OS_CONSOLE_TDEVHW4 0x20000007 30#define OS_CONSOLE_TDEVHW3 0x20000006 31#define OS_CONSOLE_TDEVHW2 0x20000005 32#define OS_CONSOLE_TDEVHW1 0x20000004 33#define OS_CONSOLE_DEVHW4 0x10000007 34#define OS_CONSOLE_DEVHW3 0x10000006 35#define OS_CONSOLE_DEVHW2 0x10000005 36#define OS_CONSOLE_DEVHW1 0x10000004 37#define OS_CONSOLE_MINNOW 0x10000003 38#define OS_CONSOLE_ARTHUR 0x10000002 39#define OS_CONSOLE_PC_EMULATOR 0x10000001 40#define OS_CONSOLE_EMULATOR 0x10000000 41 42u32 OSGetConsoleType(void); 43</pre></dd></dl> 44 45<H2>Arguments</H2> 46<P>None.</P> 47 48<H2>Return Values</H2> 49<P>Returns one value of <CODE>OS_CONSOLE_*</CODE>. The table below gives a summary of the types of consoles currently being used.</P> 50 51<TABLE class="arguments" border="1" > 52 <TBODY> 53 <TR> 54 <TD bgcolor="#cccccc">Macros</TD> 55 <TD bgcolor="#cccccc">Value</TD> 56 <TD bgcolor="#cccccc">Description</TD> 57 </TR> 58 <TR> 59 <TH>OS_CONSOLE_RVL_NDEV1_0</TH> 60 <TD><CODE>0x10000010</CODE></TD> 61 <TD>NDEV 1.0</TD> 62 </TR> 63 <TR> 64 <TH>OS_CONSOLE_RVL_NDEV1_1</TH> 65 <TD><CODE>0x10000011</CODE></TD> 66 <TD>NDEV 1.1</TD> 67 </TR> 68 <TR> 69 <TH>OS_CONSOLE_XXXXXX</TH> 70 <TD><CODE>0x????????</CODE></TD> 71 <TD>NDEV 2.0</TD> 72 </TR> 73 <TR> 74 <TH>OS_CONSOLE_XXXXXX</TH> 75 <TD><CODE>0x????????</CODE></TD> 76 <TD>Mass-produced model</TD> 77 </TR> 78 <TR> 79<TH>OS_CONSOLE_RETAIL4</TH> 80<TD><CODE>0x00000004</CODE></TD> 81<TD>(For backward compatibility)</TD> 82 </TR> 83 <TR> 84<TH>OS_CONSOLE_RETAIL3</TH> 85<TD><CODE>0x00000003</CODE></TD> 86<TD>(For backward compatibility)</TD> 87 </TR> 88 <TR> 89<TH>OS_CONSOLE_RETAIL2</TH> 90<TD><CODE>0x00000002</CODE></TD> 91<TD>(For backward compatibility)</TD> 92 </TR> 93 <TR> 94<TH>OS_CONSOLE_DEVHW4</TH> 95<TD><CODE>0x10000007</CODE></TD> 96<TD>(For backward compatibility)</TD> 97 </TR> 98 <TR> 99<TH>OS_CONSOLE_DEVHW3</TH> 100<TD><CODE>0x10000006</CODE></TD> 101<TD>(For backward compatibility)</TD> 102 </TR> 103 <TR> 104<TH>OS_CONSOLE_DEVHW2</TH> 105<TD><CODE>0x10000005</CODE></TD> 106<TD>(For backward compatibility)</TD> 107 </TR> 108 <TR> 109<TH>OS_CONSOLE_TDEVHW4</TH> 110<TD><CODE>0x20000007</CODE></TD> 111<TD>(For backward compatibility)</TD> 112 </TR> 113 <TR> 114<TH>OS_CONSOLE_TDEVHW3</TH> 115<TD><CODE>0x20000006</CODE></TD> 116<TD>(For backward compatibility)</TD> 117 </TR> 118 <TR> 119<TH>OS_CONSOLE_TDEVHW2</TH> 120<TD><code>0x20000005</code></TD> 121<TD>(For backward compatibility)</TD> 122 </TR> 123 <TR> 124<TH>OS_CONSOLE_EMULATOR</TH> 125<TD><CODE>0x10000000</CODE></TD> 126<TD>(For backward compatibility)</TD> 127 </TR> 128 </TBODY> 129</TABLE> 130 131<H2>Description</H2> 132<P>Checks the console type. The uppermost four bits of the return value are used to distinguish production version systems from development systems. The upper four bits are 0x0 in the commercial product system and 0x1 in the development system. The other 28 bits show the minor revision number of the Revolution. (Note: Since the console type information was undetermined as of SDK 1.0, these definitions are subject to change.)</P> 133 134<H2>See Also</H2> 135<P class="reference"> 136<A href="../toc.html#Initialization" target="contents">Initialization functions</A>, <A href="OSInit.html">OSInit</A> 137</P> 138 139<H2>Revision History</H2> 140<P> 1412006/03/01 Initial version.<br> 142</P> 143 144<hr><p>CONFIDENTIAL</p></body> 145</HTML>