/*
 *               Copyright (C) 2005, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  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 BroadOn Communications Corp.
 *
 */
#include <iostypes.h>
#include "thread.h"
#include "memory.h"

void
iosGetOSVersion(u32 *major, u16 *minor)
{
    IOSError rv;
    CHECK_WRITABLE_BUFFER(major, sizeof(u32), 0);
    CHECK_WRITABLE_BUFFER(minor, sizeof(u16), 0);
#if defined(BOOT2)
    *major = 0;
#else
    *major = 3;
#endif
    *minor = 0;
end:
    return;
}

void
iosGetBootVersion(u32 *major, u16 *minor)
{
    IOSError rv;
    CHECK_WRITABLE_BUFFER(major, sizeof(u32), 0);
    CHECK_WRITABLE_BUFFER(minor, sizeof(u16), 0);
    *major = 1;
    *minor = 0;
end:
    return;
}
