/*---------------------------------------------------------------------------*
  Project:  Revolution OS Hardware Revision API
  File:     OSHW.h

  Copyright 2006 Nintendo.  All rights reserved.

  These coded instructions, statements, and computer programs contain
  proprietary information of Nintendo of America Inc. and/or Nintendo
  Company Ltd., and are protected by Federal copyright law.  They may
  not be disclosed to third parties or copied or duplicated in any form,
  in whole or in part, without the prior written consent of Nintendo.

  $Log: OSHW.h,v $
  Revision 1.3  2006/03/28 02:08:41  hirose
  Added __OSGetIOSRev().

  Revision 1.2  2006/02/28 12:18:14  hirose
  Added __OSGetBroadwayRev(). / Added OS_HOLLYWOOD_ES1_2.

  Revision 1.1  2006/02/15 07:55:45  hirose
  Initial check in.


  $NoKeywords: $
 *---------------------------------------------------------------------------*/

#ifndef __OSHW_H__
#define __OSHW_H__

#ifdef __cplusplus
extern "C" {
#endif

/*---------------------------------------------------------------------------*
    Broadway revisions
 *---------------------------------------------------------------------------*/

#define     OS_BROADWAY_DD1_01      0x00087110      // DD1.01
#define     OS_BROADWAY_DD1_2       0x00087102      // DD1.2
#define     OS_NO_BROADWAY          0x80000000

u32     __OSGetBroadwayRev( void );


/*---------------------------------------------------------------------------*
    Hollywood revisions
 *---------------------------------------------------------------------------*/

#define     OS_HOLLYWOOD_ES1_0      0x00000000      // ES1.0
#define     OS_HOLLYWOOD_ES1_1      0x00000001      // ES1.1
#define     OS_HOLLYWOOD_ES1_2      0x00000002      // ES1.21
#define     OS_HOLLYWOOD_ES2_0      0x00000010      // ES2.0
#define     OS_NO_HOLLYWOOD         0x80000000

u32     __OSGetHollywoodRev( void );


/*---------------------------------------------------------------------------*
    IOS firmware revisions
 *---------------------------------------------------------------------------*/

typedef struct OSIOSRev
{
    u8      reserved;
    u8      major;
    u8      minor;
    u8      micro;
    u8      month;
    u8      date;
    u16     year;
} OSIOSRev;

void    __OSGetIOSRev( OSIOSRev* rev );




#ifdef __cplusplus
}
#endif

#endif  // __OSHW_H__

