1/*====================================================================2* os_eeprom.h3*4* Copyright 1995, Silicon Graphics, Inc.5* All Rights Reserved.6*7* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics,8* Inc.; the contents of this file may not be disclosed to third9* parties, copied or duplicated in any form, in whole or in part,10* without the prior written permission of Silicon Graphics, Inc.11*12* RESTRICTED RIGHTS LEGEND:13* Use, duplication or disclosure by the Government is subject to14* restrictions as set forth in subdivision (c)(1)(ii) of the Rights15* in Technical Data and Computer Software clause at DFARS16* 252.227-7013, and/or in similar or successor clauses in the FAR,17* DOD or NASA FAR Supplement. Unpublished - rights reserved under the18* Copyright Laws of the United States.19*====================================================================*/2021/*---------------------------------------------------------------------*22Copyright (C) 1998 Nintendo. (Originated by SGI)2324$RCSfile: os_eeprom.h,v $25$Revision: 1.1 $26$Date: 1998/10/09 08:01:06 $27*---------------------------------------------------------------------*/2829#ifndef _OS_EEPROM_H_30#define _OS_EEPROM_H_3132#ifdef _LANGUAGE_C_PLUS_PLUS33extern "C" {34#endif3536#include <PR/ultratypes.h>37#include "os_message.h"383940#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)4142/**************************************************************************43*44* Type definitions45*46*/474849#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */5051/**************************************************************************52*53* Global definitions54*55*/5657/* EEPROM TYPE */5859#define EEPROM_TYPE_4K 0x0160#define EEPROM_TYPE_16K 0x026162/* definition for EEPROM */6364#define EEPROM_MAXBLOCKS 6465#define EEP16K_MAXBLOCKS 25666#define EEPROM_BLOCK_SIZE 8676869#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)7071/**************************************************************************72*73* Macro definitions74*75*/767778/**************************************************************************79*80* Extern variables81*82*/838485/**************************************************************************86*87* Function prototypes88*89*/9091/* EEPROM interface */9293extern s32 osEepromProbe(OSMesgQueue *);94extern s32 osEepromRead(OSMesgQueue *, u8, u8 *);95extern s32 osEepromWrite(OSMesgQueue *, u8, u8 *);96extern s32 osEepromLongRead(OSMesgQueue *, u8, u8 *, int);97extern s32 osEepromLongWrite(OSMesgQueue *, u8, u8 *, int);9899100#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */101102#ifdef _LANGUAGE_C_PLUS_PLUS103}104#endif105106#endif /* !_OS_EEPROM_H_ */107108109