/*
 *               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.
 *
 */


#ifndef __EE_H__
#define __EE_H__


/* Basic EEPROM functions */
void        EE_GPIOSetup(void);
IOSError    EE_RdCmd(u32, u32 *);
IOSError    EE_WrCmd(u32, u32);
IOSError    EE_EraseCmd(u32);
IOSError    EE_WralCmd(u32);
IOSError    EE_EralCmd(void);
IOSError    EE_WenCmd(void);
IOSError    EE_WdsCmd(void);


/* EEPROM functions for manipulating version numbers */
s32         EE_GetOsVersion(void);
IOSError    EE_IncOsVersion(void);
s32         EE_GetCaCrlVersion(void);
IOSError    EE_IncCaCrlVersion(void);
s32         EE_GetSignerCrlVersion(void);
IOSError    EE_IncSignerCrlVersion(void);
s32         EE_GetSfsVersion(void);
IOSError    EE_IncSfsVersion(void);
s32         EE_GetRngState(void);
IOSError    EE_IncRngState(void);

#endif  /* __EE_H */
