Mario Kart 64
Loading...
Searching...
No Matches
os_eeprom.h
Go to the documentation of this file.
1
2/*====================================================================
3 * os_eeprom.h
4 *
5 * Copyright 1995, Silicon Graphics, Inc.
6 * All Rights Reserved.
7 *
8 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics,
9 * Inc.; the contents of this file may not be disclosed to third
10 * parties, copied or duplicated in any form, in whole or in part,
11 * without the prior written permission of Silicon Graphics, Inc.
12 *
13 * RESTRICTED RIGHTS LEGEND:
14 * Use, duplication or disclosure by the Government is subject to
15 * restrictions as set forth in subdivision (c)(1)(ii) of the Rights
16 * in Technical Data and Computer Software clause at DFARS
17 * 252.227-7013, and/or in similar or successor clauses in the FAR,
18 * DOD or NASA FAR Supplement. Unpublished - rights reserved under the
19 * Copyright Laws of the United States.
20 *====================================================================*/
21
22/*---------------------------------------------------------------------*
23 Copyright (C) 1998 Nintendo. (Originated by SGI)
24
25 $RCSfile: os_eeprom.h,v $
26 $Revision: 1.1 $
27 $Date: 1998/10/09 08:01:06 $
28 *---------------------------------------------------------------------*/
29
30#ifndef _OS_EEPROM_H_
31#define _OS_EEPROM_H_
32
33#ifdef _LANGUAGE_C_PLUS_PLUS
34extern "C" {
35#endif
36
37#include <PR/ultratypes.h>
38#include "os_message.h"
39
40#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
41
42/**************************************************************************
43 *
44 * Type definitions
45 *
46 */
47
48#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
49
50/**************************************************************************
51 *
52 * Global definitions
53 *
54 */
55
56/* EEPROM TYPE */
57
58#define EEPROM_TYPE_4K 0x01
59#define EEPROM_TYPE_16K 0x02
60
61/* definition for EEPROM */
62
63#define EEPROM_MAXBLOCKS 64
64#define EEP16K_MAXBLOCKS 256
65#define EEPROM_BLOCK_SIZE 8
66
67#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
68
69/**************************************************************************
70 *
71 * Macro definitions
72 *
73 */
74
75/**************************************************************************
76 *
77 * Extern variables
78 *
79 */
80
81/**************************************************************************
82 *
83 * Function prototypes
84 *
85 */
86
87/* EEPROM interface */
88
89extern s32 osEepromProbe(OSMesgQueue*);
90extern s32 osEepromRead(OSMesgQueue*, u8, u8*);
91extern s32 osEepromWrite(OSMesgQueue*, u8, u8*);
92extern s32 osEepromLongRead(OSMesgQueue*, u8, u8*, int);
93extern s32 osEepromLongWrite(OSMesgQueue*, u8, u8*, int);
94
95#endif /* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
96
97#ifdef _LANGUAGE_C_PLUS_PLUS
98}
99#endif
100
101#endif /* !_OS_EEPROM_H_ */
s32 osEepromLongRead(OSMesgQueue *mq, u8 address, u8 *buffer, s32 nbytes)
Definition osEepromLongRead.c:10
s32 osEepromLongWrite(OSMesgQueue *mq, u8 address, u8 *buffer, s32 nbytes)
Definition osEepromLongWrite.c:10
s32 osEepromProbe(OSMesgQueue *mq)
Definition osEepromProbe.c:6
s32 osEepromRead(OSMesgQueue *mq, u8 address, u8 *buffer)
Definition osEepromRead.c:12
s32 osEepromWrite(OSMesgQueue *mq, u8 address, u8 *buffer)
Definition osEepromWrite.c:12
signed int s32
Definition ultratypes.h:15
unsigned char u8
Definition ultratypes.h:12