#include <PR/os_internal.h>
#include <PR/os.h>
#include <PR/rcp.h>
Go to the source code of this file.
|
s32 | __osEepStatus (OSMesgQueue *, OSContStatus *) |
|
u16 | __osSumcalc (u8 *ptr, int length) |
|
s32 | __osIdCheckSum (u16 *ptr, u16 *csum, u16 *icsum) |
|
s32 | __osRepairPackId (OSPfs *pfs, __OSPackId *badid, __OSPackId *newid) |
|
s32 | __osCheckPackId (OSPfs *pfs, __OSPackId *temp) |
|
s32 | __osGetId (OSPfs *pfs) |
|
s32 | __osCheckId (OSPfs *pfs) |
|
s32 | __osPfsRWInode (OSPfs *pfs, __OSInode *inode, u8 flag, u8 bank) |
|
s32 | __osPfsSelectBank (OSPfs *pfs) |
|
s32 | __osPfsDeclearPage (OSPfs *pfs, __OSInode *inode, int file_size_in_pages, int *first_page, u8 bank, int *decleared, int *last_page) |
|
s32 | __osPfsReleasePages (OSPfs *pfs, __OSInode *inode, u8 start_page, u16 *sum, u8 bank, __OSInodeUnit *last_page, int flag) |
|
s32 | __osBlockSum (OSPfs *pfs, u8 page_no, u16 *sum, u8 bank) |
|
s32 | __osContRamRead (OSMesgQueue *mq, int channel, u16 address, u8 *buffer) |
|
s32 | __osContRamWrite (OSMesgQueue *mq, int channel, u16 address, u8 *buffer, int force) |
|
void | __osContGetInitData (u8 *bitpattern, OSContStatus *status) |
|
void | __osPackRequestData (u8 command) |
|
void | __osPfsRequestData (u8 cmd) |
|
void | __osPfsGetInitData (u8 *pattern, OSContStatus *data) |
|
u8 | __osContAddressCrc (u16 addr) |
|
u8 | __osContDataCrc (u8 *data) |
|
s32 | __osPfsGetStatus (OSMesgQueue *queue, int channel) |
|
◆ ARRLEN
#define ARRLEN |
( |
| x | ) |
((s32) (sizeof(x) / sizeof(x[0]))) |
◆ CHNL_ERR
#define CHNL_ERR |
( |
| format | ) |
((format.rxsize & CHNL_ERR_MASK) >> 4) |
◆ CONT_CMD_END
#define CONT_CMD_END 0xfe |
◆ CONT_CMD_EXE
◆ CONT_CMD_NOP
#define CONT_CMD_NOP 0xff |
◆ CONT_CMD_READ_BUTTON
#define CONT_CMD_READ_BUTTON 1 |
◆ CONT_CMD_READ_BUTTON_RX
#define CONT_CMD_READ_BUTTON_RX 4 |
◆ CONT_CMD_READ_BUTTON_TX
#define CONT_CMD_READ_BUTTON_TX 1 |
◆ CONT_CMD_READ_EEPROM
#define CONT_CMD_READ_EEPROM 4 |
◆ CONT_CMD_READ_EEPROM_RX
#define CONT_CMD_READ_EEPROM_RX 8 |
◆ CONT_CMD_READ_EEPROM_TX
#define CONT_CMD_READ_EEPROM_TX 2 |
◆ CONT_CMD_READ_MEMPACK
#define CONT_CMD_READ_MEMPACK 2 |
◆ CONT_CMD_READ_MEMPACK_RX
#define CONT_CMD_READ_MEMPACK_RX 33 |
◆ CONT_CMD_READ_MEMPACK_TX
#define CONT_CMD_READ_MEMPACK_TX 3 |
◆ CONT_CMD_REQUEST_STATUS
#define CONT_CMD_REQUEST_STATUS 0 |
◆ CONT_CMD_REQUEST_STATUS_RX
#define CONT_CMD_REQUEST_STATUS_RX 3 |
◆ CONT_CMD_REQUEST_STATUS_TX
#define CONT_CMD_REQUEST_STATUS_TX 1 |
◆ CONT_CMD_RESET
#define CONT_CMD_RESET 0xff |
◆ CONT_CMD_RESET_RX
#define CONT_CMD_RESET_RX 3 |
◆ CONT_CMD_RESET_TX
#define CONT_CMD_RESET_TX 1 |
◆ CONT_CMD_WRITE_EEPROM
#define CONT_CMD_WRITE_EEPROM 5 |
◆ CONT_CMD_WRITE_EEPROM_RX
#define CONT_CMD_WRITE_EEPROM_RX 1 |
◆ CONT_CMD_WRITE_EEPROM_TX
#define CONT_CMD_WRITE_EEPROM_TX 10 |
◆ CONT_CMD_WRITE_MEMPACK
#define CONT_CMD_WRITE_MEMPACK 3 |
◆ CONT_CMD_WRITE_MEMPACK_RX
#define CONT_CMD_WRITE_MEMPACK_RX 1 |
◆ CONT_CMD_WRITE_MEMPACK_TX
#define CONT_CMD_WRITE_MEMPACK_TX 35 |
◆ DIR_STATUS_EMPTY
#define DIR_STATUS_EMPTY 0 |
◆ DIR_STATUS_OCCUPIED
#define DIR_STATUS_OCCUPIED 2 |
◆ DIR_STATUS_UNKNOWN
#define DIR_STATUS_UNKNOWN 1 |
◆ ERRCK
Value: ret = fn; \
if (ret != 0) \
return ret;
◆ PFS_CHECK_ID
Value:
s32 __osCheckId(OSPfs *pfs)
Definition contpfs.c:188
#define PFS_ERR_NEW_PACK
Definition os.h:428
◆ PFS_CHECK_STATUS
Value:
#define PFS_INITIALIZED
Definition os.h:422
#define PFS_ERR_INVALID
Definition os.h:432
◆ PFS_GET_STATUS
Value:
__osSiRelAccess(); \
if (ret != 0) \
return ret;
void __osSiGetAccess(void)
Definition __osSiCreateAccessQueue.c:15
s32 __osPfsGetStatus(OSMesgQueue *queue, int channel)
Definition osPfsInit.c:27
◆ SET_ACTIVEBANK_TO_ZERO
#define SET_ACTIVEBANK_TO_ZERO |
Value: if (pfs->activebank != 0) { \
pfs->activebank = 0; \
}
s32 __osPfsSelectBank(OSPfs *pfs)
Definition contpfs.c:270
◆ __osBlockSum()
s32 __osBlockSum |
( |
OSPfs * | pfs, |
|
|
u8 | page_no, |
|
|
u16 * | sum, |
|
|
u8 | bank ) |
◆ __osCheckId()
s32 __osCheckId |
( |
OSPfs * | pfs | ) |
|
◆ __osCheckPackId()
◆ __osContAddressCrc()
u8 __osContAddressCrc |
( |
u16 | addr | ) |
|
◆ __osContDataCrc()
u8 __osContDataCrc |
( |
u8 * | data | ) |
|
◆ __osContGetInitData()
void __osContGetInitData |
( |
u8 * | bitpattern, |
|
|
OSContStatus * | status ) |
◆ __osContRamRead()
s32 __osContRamRead |
( |
OSMesgQueue * | mq, |
|
|
int | channel, |
|
|
u16 | address, |
|
|
u8 * | buffer ) |
◆ __osContRamWrite()
s32 __osContRamWrite |
( |
OSMesgQueue * | mq, |
|
|
int | channel, |
|
|
u16 | address, |
|
|
u8 * | buffer, |
|
|
int | force ) |
◆ __osEepStatus()
s32 __osEepStatus |
( |
OSMesgQueue * | mq, |
|
|
OSContStatus * | data ) |
|
extern |
◆ __osGetId()
s32 __osGetId |
( |
OSPfs * | pfs | ) |
|
- Todo
- remove magic constant
- Todo
- loads of magic constants..
◆ __osIdCheckSum()
◆ __osPackRequestData()
void __osPackRequestData |
( |
u8 | command | ) |
|
◆ __osPfsDeclearPage()
s32 __osPfsDeclearPage |
( |
OSPfs * | pfs, |
|
|
__OSInode * | inode, |
|
|
int | file_size_in_pages, |
|
|
int * | first_page, |
|
|
u8 | bank, |
|
|
int * | decleared, |
|
|
int * | last_page ) |
◆ __osPfsGetInitData()
void __osPfsGetInitData |
( |
u8 * | pattern, |
|
|
OSContStatus * | data ) |
◆ __osPfsGetStatus()
s32 __osPfsGetStatus |
( |
OSMesgQueue * | queue, |
|
|
int | channel ) |
◆ __osPfsReleasePages()
◆ __osPfsRequestData()
void __osPfsRequestData |
( |
u8 | cmd | ) |
|
◆ __osPfsRWInode()
- Todo
- don't like this =/ //maybe &inode->inode_table[j*PFS_ONE_PAGE].ipage or something
◆ __osPfsSelectBank()
s32 __osPfsSelectBank |
( |
OSPfs * | pfs | ) |
|
◆ __osRepairPackId()
- Todo
- fix magic number
- Todo
- remove magic constant
◆ __osSumcalc()
u16 __osSumcalc |
( |
u8 * | ptr, |
|
|
int | length ) |
◆ __osContLastCmd
◆ __osContPifRam
◆ __osEepPifRam
◆ __osEepromTimer
◆ __osEepromTimerMsg
OSMesg __osEepromTimerMsg |
|
extern |
◆ __osEepromTimerQ
OSMesgQueue __osEepromTimerQ |
|
extern |
◆ __osPfsPifRam
◆ _osContNumControllers