-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci.h
28 lines (23 loc) · 754 Bytes
/
ci.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// ci.h
//
#ifndef _CI_H
#define _CI_H
// prototypes
void ciSectorsToRam(unsigned int ramaddr, unsigned int lba, unsigned int sectors);
void ciRamToSectors(unsigned int ramaddr, unsigned int lba, unsigned int sectors);
void ciReadSector(unsigned char *buf, unsigned int lba);
void ciWriteSector(unsigned char *buf, unsigned int lba);
void ciSetCycleTime(int cycletime);
int ciOptimizeCycleTime();
void ciSetByteSwap(int byteswap);
int ciGetMagic();
int ciGetRevision();
void ciSetSave(int savetype);
void ciStartUpgrade();
int ciGetUpgradeStatus();
void ciEnableRomWrites();
void ciDisableRomWrites();
void ciWriteEEPROMBuffer(unsigned char *buf, int start, int size);
void ciWriteLBAWBBuffer(unsigned char *buf, int start, int size);
#endif