OpenSSD Cosmos+ Platform Firmware
0.0.2
The firmware of Cosmos+ OpenSSD Platform for TOSHIBA nand flash module.
|
#include "t4nsc_pm.h"
Go to the source code of this file.
Functions | |
void | nfc_set_dqs_delay (int channel, unsigned int newValue) |
void | nfc_set_dq_delay (int channel, unsigned int newValue) |
void | V2FInitializeHandle (T4REGS *t4regs, void *t4nscRegisterBaseAddress) |
void | V2FResetSync (T4REGS *t4regs, int way) |
void | V2FSetFeaturesSync (T4REGS *t4regs, int way, unsigned int feature0x02, unsigned int feature0x10, unsigned int feature0x01, unsigned int payLoadAddr) |
void | V2FReadPageTriggerAsync (T4REGS *t4regs, int way, unsigned int rowAddress) |
void | V2FReadPageTransferAsync (T4REGS *t4regs, int way, void *pageDataBuffer, void *spareDataBuffer, unsigned int *errorInformation, unsigned int *completion, unsigned int rowAddress) |
void | V2FReadPageTransferRawAsync (T4REGS *t4regs, int way, void *pageDataBuffer, unsigned int *completion) |
void | V2FProgramPageAsync (T4REGS *t4regs, int way, unsigned int rowAddress, void *pageDataBuffer, void *spareDataBuffer) |
void | V2FEraseBlockAsync (T4REGS *t4regs, int way, unsigned int rowAddress) |
void | V2FStatusCheckAsync (T4REGS *t4regs, int way, unsigned int *statusReport) |
void | V2FReadIdAsync (T4REGS *t4regs, int way, unsigned int *statusReport, unsigned int *completion) |
void | V2FReadIdSync (T4REGS *t4regs, int way, unsigned int *statusReport) |
unsigned int | V2FReadyBusyAsync (T4REGS *t4regs) |
#define T4NSC_CMD_END_OF_COMMON 824 |
Definition at line 88 of file nsc_driver.h.
#define T4NSC_CMD_END_OF_PLAINOPS (T4NSC_CMD_END_OF_COMMON + 1308) |
Definition at line 95 of file nsc_driver.h.
#define T4NSC_CMD_ERASE_BLOCK 352 |
Definition at line 73 of file nsc_driver.h.
#define T4NSC_CMD_FSP_PAGES (T4NSC_CMD_END_OF_COMMON + 960) |
Definition at line 94 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_CSB_COMMIT 4 |
Definition at line 371 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_CSB_COMMIT 4 |
Definition at line 371 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_CSB_PASSNEXT 5 |
Definition at line 370 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_CSB_PASSNEXT 5 |
Definition at line 370 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_LSB_COMMIT 2 |
Definition at line 369 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_LSB_COMMIT 2 |
Definition at line 369 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_LSB_PASSNEXT 3 |
Definition at line 368 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_LSB_PASSNEXT 3 |
Definition at line 368 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_MSB_COMMIT 6 |
Definition at line 372 of file nsc_driver.h.
#define T4NSC_CMD_FSP_TRANSFER_OPTION_MSB_COMMIT 6 |
Definition at line 372 of file nsc_driver.h.
#define T4NSC_CMD_GET_FEATUREST 204 |
Definition at line 69 of file nsc_driver.h.
#define T4NSC_CMD_GET_LUN_FEATUREST 192 |
Definition at line 68 of file nsc_driver.h.
#define T4NSC_CMD_GET_READYBUSY 108 |
Definition at line 64 of file nsc_driver.h.
#define T4NSC_CMD_MODE_CHANGE 32 |
Definition at line 63 of file nsc_driver.h.
#define T4NSC_CMD_NAND_RESET 4 |
Definition at line 62 of file nsc_driver.h.
#define T4NSC_CMD_PROGRAM_PAGE_PSLC (T4NSC_CMD_END_OF_COMMON + 112) |
Definition at line 91 of file nsc_driver.h.
#define T4NSC_CMD_PROGRAM_PAGE_RAW 568 |
Definition at line 84 of file nsc_driver.h.
#define T4NSC_CMD_PROGRAM_PAGE_RAW_PSLC 580 |
Definition at line 86 of file nsc_driver.h.
#define T4NSC_CMD_PROGRAM_PAGE_RAW_xSB 576 |
Definition at line 85 of file nsc_driver.h.
#define T4NSC_CMD_PROGRAM_PAGES (T4NSC_CMD_END_OF_COMMON + 616) |
Definition at line 93 of file nsc_driver.h.
#define T4NSC_CMD_READ_ID 756 |
Definition at line 87 of file nsc_driver.h.
#define T4NSC_CMD_READ_PAGE_TRIGGER 384 |
Definition at line 74 of file nsc_driver.h.
#define T4NSC_CMD_READ_PAGE_TRIGGER_CSB 436 |
Definition at line 80 of file nsc_driver.h.
#define T4NSC_CMD_READ_PAGE_TRIGGER_LSB 428 |
Definition at line 79 of file nsc_driver.h.
#define T4NSC_CMD_READ_PAGE_TRIGGER_MSB 444 |
Definition at line 81 of file nsc_driver.h.
#define T4NSC_CMD_READ_PAGE_TRIGGER_PSLC 452 |
Definition at line 82 of file nsc_driver.h.
#define T4NSC_CMD_READ_PAGE_TRIGGER_WRLPRE_CSB 412 |
Definition at line 77 of file nsc_driver.h.
#define T4NSC_CMD_READ_PAGE_TRIGGER_WRLPRE_LSB 404 |
Definition at line 76 of file nsc_driver.h.
#define T4NSC_CMD_READ_PAGE_TRIGGER_WRLPRE_MSB 420 |
Definition at line 78 of file nsc_driver.h.
#define T4NSC_CMD_READ_STATUS 304 |
Definition at line 72 of file nsc_driver.h.
#define T4NSC_CMD_READ_TRANSFER (T4NSC_CMD_END_OF_COMMON + 204) |
Definition at line 92 of file nsc_driver.h.
#define T4NSC_CMD_READ_TRANSFER_PSLC (T4NSC_CMD_END_OF_COMMON + 0) |
Definition at line 90 of file nsc_driver.h.
#define T4NSC_CMD_READ_TRANSFER_RAW 500 |
Definition at line 83 of file nsc_driver.h.
#define T4NSC_CMD_SET_FEATURESA 124 |
Definition at line 65 of file nsc_driver.h.
#define T4NSC_CMD_SET_FEATUREST 144 |
Definition at line 67 of file nsc_driver.h.
#define T4NSC_CMD_SET_LUN_FEATUREST 132 |
Definition at line 66 of file nsc_driver.h.
#define T4NSC_CMD_SET_SCRAMBLER_DISABLE 264 |
Definition at line 70 of file nsc_driver.h.
#define T4NSC_CMD_SET_SCRAMBLER_ENABLE 284 |
Definition at line 71 of file nsc_driver.h.
#define T4NSC_CMD_SINGLE_STATE_READ_PAGE_TRIGGER 392 |
Definition at line 75 of file nsc_driver.h.
#define V2FCrcValid | ( | errorInformation | ) | !!(*((uint32_t *)(errorInformation)) & 0x10000000) |
Definition at line 104 of file nsc_driver.h.
#define V2FEliminateReportDoneFlag | ( | statusReport | ) | ((statusReport) >> 1) |
Definition at line 114 of file nsc_driver.h.
#define V2FEnterToggleMode | ( | dev, | |
way, | |||
payLoadAddr | |||
) | V2FSetFeaturesSync(dev, way, 0x17, 0x06, 0, payLoadAddr) |
Definition at line 109 of file nsc_driver.h.
#define V2FFillRegisters | ( | t4regs, | |
cmdtype, | |||
cmdpayload | |||
) | (*((volatile cmdtype *)((t4regs)->t4regSP)) = (cmdpayload)) |
Definition at line 97 of file nsc_driver.h.
#define V2FGetFreeQueueCount | ( | t4regs | ) | (32 - ((t4regs)->t4regID->queueCount)) |
Definition at line 101 of file nsc_driver.h.
#define V2FGetNANDReadyBusy | ( | t4regs, | |
way | |||
) | !!((t4regs)->t4regBP->nandReadyBusy & (1 << (way))) |
Definition at line 102 of file nsc_driver.h.
#define V2FIsControllerBusy | ( | t4regs | ) | ((t4regs)->t4regID->queueNotFull == 0) |
Definition at line 100 of file nsc_driver.h.
#define V2FIssueCommand | ( | t4regs | ) | (((t4regs)->t4regCC)->issueCmd = 1) |
Definition at line 98 of file nsc_driver.h.
#define V2FPageDecodeSuccess | ( | secErrorInformation | ) | ((*((uint32_t *)(secErrorInformation)) & 0xFFFFFFFF) == 0xFFFFFFFF) |
Definition at line 106 of file nsc_driver.h.
#define V2FRequestComplete | ( | statusReport | ) | (((statusReport)&0x60) == 0x60) |
Definition at line 115 of file nsc_driver.h.
#define V2FRequestFail | ( | statusReport | ) | ((statusReport)&3) |
Definition at line 116 of file nsc_driver.h.
#define V2FRequestReportDone | ( | statusReport | ) | ((statusReport)&1) |
Definition at line 113 of file nsc_driver.h.
#define V2FTransferComplete | ( | completeFlag | ) | ((completeFlag)&1) |
Definition at line 112 of file nsc_driver.h.
#define V2FWayReady | ( | readyBusy, | |
wayNo | |||
) | (((readyBusy) >> (wayNo)) & 1) |
Definition at line 111 of file nsc_driver.h.
#define V2FWorstChunkErrorCount | ( | errorInformation | ) | ((*((uint32_t *)(errorInformation)) & 0x00FF0000) >> 16) |
Definition at line 105 of file nsc_driver.h.
void nfc_set_dq_delay | ( | int | channel, |
unsigned int | newValue | ||
) |
Definition at line 78 of file nsc_driver.c.
void nfc_set_dqs_delay | ( | int | channel, |
unsigned int | newValue | ||
) |
Definition at line 59 of file nsc_driver.c.
void V2FEraseBlockAsync | ( | T4REGS * | t4regs, |
int | way, | ||
unsigned int | rowAddress | ||
) |
void V2FInitializeHandle | ( | T4REGS * | t4regs, |
void * | t4nscRegisterBaseAddress | ||
) |
Definition at line 100 of file nsc_driver.c.
void V2FProgramPageAsync | ( | T4REGS * | t4regs, |
int | way, | ||
unsigned int | rowAddress, | ||
void * | pageDataBuffer, | ||
void * | spareDataBuffer | ||
) |
void V2FReadIdAsync | ( | T4REGS * | t4regs, |
int | way, | ||
unsigned int * | statusReport, | ||
unsigned int * | completion | ||
) |
Definition at line 316 of file nsc_driver.c.
void V2FReadIdSync | ( | T4REGS * | t4regs, |
int | way, | ||
unsigned int * | statusReport | ||
) |
Definition at line 333 of file nsc_driver.c.
void V2FReadPageTransferAsync | ( | T4REGS * | t4regs, |
int | way, | ||
void * | pageDataBuffer, | ||
void * | spareDataBuffer, | ||
unsigned int * | errorInformation, | ||
unsigned int * | completion, | ||
unsigned int | rowAddress | ||
) |
void V2FReadPageTransferRawAsync | ( | T4REGS * | t4regs, |
int | way, | ||
void * | pageDataBuffer, | ||
unsigned int * | completion | ||
) |
void V2FReadPageTriggerAsync | ( | T4REGS * | t4regs, |
int | way, | ||
unsigned int | rowAddress | ||
) |
unsigned int V2FReadyBusyAsync | ( | T4REGS * | t4regs | ) |
void V2FResetSync | ( | T4REGS * | t4regs, |
int | way | ||
) |
void V2FSetFeaturesSync | ( | T4REGS * | t4regs, |
int | way, | ||
unsigned int | feature0x02, | ||
unsigned int | feature0x10, | ||
unsigned int | feature0x01, | ||
unsigned int | payLoadAddr | ||
) |
void V2FStatusCheckAsync | ( | T4REGS * | t4regs, |
int | way, | ||
unsigned int * | statusReport | ||
) |