Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
smil.h File Reference

Go to the source code of this file.

Data Structures

struct  SSFDCTYPE
 
struct  SSFDCTYPE_T
 
struct  ADDRESS
 
struct  ADDRESS_T
 
struct  CIS_AREA
 

Macros

#define K_BYTE   1024 /* Kilo Byte */
 
#define SECTSIZE   512 /* Sector buffer size */
 
#define REDTSIZE   16 /* Redundant buffer size */
 
#define DUMMY_DATA   0xFF /* No Assign Sector Read Data */
 
#define MAX_ZONENUM   128 /* Max Zone Numbers in a SmartMedia */
 
#define MAX_BLOCKNUM   0x0400 /* Max Block Numbers in a Zone */
 
#define MAX_SECTNUM   0x20 /* Max Sector Numbers in a Block */
 
#define MAX_LOGBLOCK   1000 /* Max Logical Block Numbers in a Zone */
 
#define CIS_SEARCH_SECT   0x08 /* Max CIS Search Sector Number */
 
#define NO_ASSIGN   0xFFFF /* No Assign Logical Block Address */
 
#define COMPLETED   0 /* Sector Copy Completed */
 
#define REQ_ERASE   1 /* Request Read Block Erase */
 
#define REQ_FAIL   2 /* Request Read Block Failed */
 
#define RDERR_REASSIGN   1 /* Reassign with Read Error */
 
#define L2P_ERR_ERASE   1 /* BlockErase for Contradicted L2P Table */
 
#define HW_ECC_SUPPORTED   1 /* Hardware ECC Supported */
 
#define WRDATA   0x80
 
#define READ_REDT   0x50
 
#define RDSTATUS   0x70
 
#define READ1   0x00 /* NO */
 
#define READ2   0x01 /* NO */
 
#define READ3   0x50 /* NO */
 
#define RST_CHIP   0xFF
 
#define ERASE1   0x60
 
#define ERASE2   0xD0
 
#define READ_ID_1   0x90
 
#define READ_ID_2   0x91
 
#define READ_ID_3   0x9A
 
#define SM_CMD_RESET   0x00 /* 0xFF */
 
#define SM_CMD_READ_ID_1   0x10 /* 0x90 */
 
#define SM_CMD_READ_ID_2   0x20 /* 0x91 */
 
#define SM_CMD_READ_STAT   0x30 /* 0x70 */
 
#define SM_CMD_RDMULTPL_STAT   0x40 /* 0x71 */
 
#define SM_CMD_READ_1   0x50 /* 0x00 */
 
#define SM_CMD_READ_2   0x60 /* 0x01 */
 
#define SM_CMD_READ_3   0x70 /* 0x50 */
 
#define SM_CMD_PAGPRGM_TRUE   0x80 /* {0x80, 0x10} */
 
#define SM_CMD_PAGPRGM_DUMY   0x90 /* {0x80, 0x11} */
 
#define SM_CMD_PAGPRGM_MBLK   0xA0 /* {0x80, 0x15} */
 
#define SM_CMD_BLKERASE   0xB0 /* {0x60, 0xD0} */
 
#define SM_CMD_BLKERASE_MULTPL   0xC0 /* {0x60-0x60, 0xD0} */
 
#define SM_CRADDTCT_DEBNCETIMER_EN   0x02
 
#define SM_CMD_START_BIT   0x01
 
#define SM_WaitCmdDone   { while (!SM_CmdDone); }
 
#define SM_WaitDmaDone   { while (!SM_DmaDone); }
 
#define WR_FAIL   0x01 /* 0:Pass, 1:Fail */
 
#define SUSPENDED   0x20 /* 0:Not Suspended, 1:Suspended */
 
#define READY   0x40 /* 0:Busy, 1:Ready */
 
#define WR_PRTCT   0x80 /* 0:Protect, 1:Not Protect */
 
#define BUSY_PROG   200 /* tPROG : 20ms ----- Program Time old : 200 */
 
#define BUSY_ERASE   4000 /* tBERASE : 400ms ----- Block Erase Time old : 4000 */
 
#define BUSY_READ   200 /* tR : 20ms ----- Data transfer Time old : 1 */
 
#define BUSY_RESET   600 /* tRST : 60ms ----- Device Resetting Time old : 60 */
 
#define TIME_PON   3000 /* 300ms ------ Power On Wait Time */
 
#define TIME_CDCHK   200 /* 20ms ------ Card Check Interval Timer */
 
#define TIME_WPCHK   50 /* 5ms ------ WP Check Interval Timer */
 
#define TIME_5VCHK   10 /* 1ms ------ 5V Check Interval Timer */
 
#define REDT_DATA   0x04
 
#define REDT_BLOCK   0x05
 
#define REDT_ADDR1H   0x06
 
#define REDT_ADDR1L   0x07
 
#define REDT_ADDR2H   0x0B
 
#define REDT_ADDR2L   0x0C
 
#define REDT_ECC10   0x0D
 
#define REDT_ECC11   0x0E
 
#define REDT_ECC12   0x0F
 
#define REDT_ECC20   0x08
 
#define REDT_ECC21   0x09
 
#define REDT_ECC22   0x0A
 
#define NOWP   0x00 /* 0... .... No Write Protect */
 
#define WP   0x80 /* 1... .... Write Protected */
 
#define MASK   0x00 /* .00. .... NAND MASK ROM Model */
 
#define FLASH   0x20 /* .01. .... NAND Flash ROM Model */
 
#define AD3CYC   0x00 /* ...0 .... Address 3-cycle */
 
#define AD4CYC   0x10 /* ...1 .... Address 4-cycle */
 
#define BS16   0x00 /* .... 00.. 16page/block */
 
#define BS32   0x04 /* .... 01.. 32page/block */
 
#define PS256   0x00 /* .... ..00 256byte/page */
 
#define PS512   0x01 /* .... ..01 512byte/page */
 
#define MWP   0x80 /* WriteProtect mask */
 
#define MFLASH   0x60 /* Flash Rom mask */
 
#define MADC   0x10 /* Address Cycle */
 
#define MBS   0x0C /* BlockSize mask */
 
#define MPS   0x03 /* PageSize mask */
 
#define NOSSFDC   0x00 /* NO SmartMedia */
 
#define SSFDC1MB   0x01 /* 1MB SmartMedia */
 
#define SSFDC2MB   0x02 /* 2MB SmartMedia */
 
#define SSFDC4MB   0x03 /* 4MB SmartMedia */
 
#define SSFDC8MB   0x04 /* 8MB SmartMedia */
 
#define SSFDC16MB   0x05 /* 16MB SmartMedia */
 
#define SSFDC32MB   0x06 /* 32MB SmartMedia */
 
#define SSFDC64MB   0x07 /* 64MB SmartMedia */
 
#define SSFDC128MB   0x08 /*128MB SmartMedia */
 
#define SSFDC256MB   0x09
 
#define SSFDC512MB   0x0A
 
#define SSFDC1GB   0x0B
 
#define SSFDC2GB   0x0C
 

Typedefs

typedef struct SSFDCTYPE_TSSFDCTYPE_T
 
typedef struct ADDRESS_TADDRESS_T
 

Functions

int Init_D_SmartMedia (void)
 
int Pwoff_D_SmartMedia (void)
 
int Check_D_SmartMedia (void)
 
int Check_D_Parameter (struct us_data *, WORD *, BYTE *, BYTE *)
 
int Media_D_ReadSector (struct us_data *, DWORD, WORD, BYTE *)
 
int Media_D_WriteSector (struct us_data *, DWORD, WORD, BYTE *)
 
int Media_D_CopySector (struct us_data *, DWORD, WORD, BYTE *)
 
int Media_D_EraseBlock (struct us_data *, DWORD, WORD)
 
int Media_D_EraseAll (struct us_data *)
 
int Media_D_OneSectWriteStart (struct us_data *, DWORD, BYTE *)
 
int Media_D_OneSectWriteNext (struct us_data *, BYTE *)
 
int Media_D_OneSectWriteFlush (struct us_data *)
 
int SM_FreeMem (void)
 
void SM_EnableLED (struct us_data *, BOOLEAN)
 
void Led_D_TernOn (void)
 
void Led_D_TernOff (void)
 
int Media_D_EraseAllRedtData (DWORD Index, BOOLEAN CheckBlock)
 
int Check_D_DataBlank (BYTE *)
 
int Check_D_FailBlock (BYTE *)
 
int Check_D_DataStatus (BYTE *)
 
int Load_D_LogBlockAddr (BYTE *)
 
void Clr_D_RedundantData (BYTE *)
 
void Set_D_LogBlockAddr (BYTE *)
 
void Set_D_FailBlock (BYTE *)
 
void Set_D_DataStaus (BYTE *)
 
void Ssfdc_D_Reset (struct us_data *)
 
int Ssfdc_D_ReadCisSect (struct us_data *, BYTE *, BYTE *)
 
void Ssfdc_D_WriteRedtMode (void)
 
void Ssfdc_D_ReadID (BYTE *, BYTE)
 
int Ssfdc_D_ReadSect (struct us_data *, BYTE *, BYTE *)
 
int Ssfdc_D_ReadBlock (struct us_data *, WORD, BYTE *, BYTE *)
 
int Ssfdc_D_WriteSect (struct us_data *, BYTE *, BYTE *)
 
int Ssfdc_D_WriteBlock (struct us_data *, WORD, BYTE *, BYTE *)
 
int Ssfdc_D_CopyBlock (struct us_data *, WORD, BYTE *, BYTE *)
 
int Ssfdc_D_WriteSectForCopy (struct us_data *, BYTE *, BYTE *)
 
int Ssfdc_D_EraseBlock (struct us_data *)
 
int Ssfdc_D_ReadRedtData (struct us_data *, BYTE *)
 
int Ssfdc_D_WriteRedtData (struct us_data *, BYTE *)
 
int Ssfdc_D_CheckStatus (void)
 
int Set_D_SsfdcModel (BYTE)
 
void Cnt_D_Reset (void)
 
int Cnt_D_PowerOn (void)
 
void Cnt_D_PowerOff (void)
 
void Cnt_D_LedOn (void)
 
void Cnt_D_LedOff (void)
 
int Check_D_CntPower (void)
 
int Check_D_CardExist (void)
 
int Check_D_CardStsChg (void)
 
int Check_D_SsfdcWP (void)
 
int SM_ReadBlock (struct us_data *, BYTE *, BYTE *)
 
int Ssfdc_D_ReadSect_DMA (struct us_data *, BYTE *, BYTE *)
 
int Ssfdc_D_ReadSect_PIO (struct us_data *, BYTE *, BYTE *)
 
int Ssfdc_D_WriteSect_DMA (struct us_data *, BYTE *, BYTE *)
 
int Ssfdc_D_WriteSect_PIO (struct us_data *, BYTE *, BYTE *)
 
int Check_D_ReadError (BYTE *)
 
int Check_D_Correct (BYTE *, BYTE *)
 
int Check_D_CISdata (BYTE *, BYTE *)
 
void Set_D_RightECC (BYTE *)
 
void calculate_ecc (BYTE *, BYTE *, BYTE *, BYTE *, BYTE *)
 
BYTE correct_data (BYTE *, BYTE *, BYTE, BYTE, BYTE)
 
int _Correct_D_SwECC (BYTE *, BYTE *, BYTE *)
 
void _Calculate_D_SwECC (BYTE *, BYTE *)
 
void SM_Init (void)
 

Variables

BYTE IsSSFDCCompliance
 
BYTE IsXDCompliance
 
DWORD ErrXDCode
 
DWORD ErrCode
 
WORD ReadBlock
 
WORD WriteBlock
 
DWORD MediaChange
 
struct SSFDCTYPE Ssfdc
 
struct ADDRESS Media
 
struct CIS_AREA CisArea
 

Macro Definition Documentation

#define AD3CYC   0x00 /* ...0 .... Address 3-cycle */

Definition at line 141 of file smil.h.

#define AD4CYC   0x10 /* ...1 .... Address 4-cycle */

Definition at line 142 of file smil.h.

#define BS16   0x00 /* .... 00.. 16page/block */

Definition at line 143 of file smil.h.

#define BS32   0x04 /* .... 01.. 32page/block */

Definition at line 144 of file smil.h.

#define BUSY_ERASE   4000 /* tBERASE : 400ms ----- Block Erase Time old : 4000 */

Definition at line 99 of file smil.h.

#define BUSY_PROG   200 /* tPROG : 20ms ----- Program Time old : 200 */

Definition at line 98 of file smil.h.

#define BUSY_READ   200 /* tR : 20ms ----- Data transfer Time old : 1 */

Definition at line 105 of file smil.h.

#define BUSY_RESET   600 /* tRST : 60ms ----- Device Resetting Time old : 60 */

Definition at line 109 of file smil.h.

#define CIS_SEARCH_SECT   0x08 /* Max CIS Search Sector Number */

Definition at line 24 of file smil.h.

#define COMPLETED   0 /* Sector Copy Completed */

Definition at line 34 of file smil.h.

#define DUMMY_DATA   0xFF /* No Assign Sector Read Data */

Definition at line 13 of file smil.h.

#define ERASE1   0x60

Definition at line 64 of file smil.h.

#define ERASE2   0xD0

Definition at line 65 of file smil.h.

#define FLASH   0x20 /* .01. .... NAND Flash ROM Model */

Definition at line 140 of file smil.h.

#define HW_ECC_SUPPORTED   1 /* Hardware ECC Supported */

Definition at line 47 of file smil.h.

#define K_BYTE   1024 /* Kilo Byte */

Definition at line 8 of file smil.h.

#define L2P_ERR_ERASE   1 /* BlockErase for Contradicted L2P Table */

Definition at line 42 of file smil.h.

#define MADC   0x10 /* Address Cycle */

Definition at line 149 of file smil.h.

#define MASK   0x00 /* .00. .... NAND MASK ROM Model */

Definition at line 139 of file smil.h.

#define MAX_BLOCKNUM   0x0400 /* Max Block Numbers in a Zone */

Definition at line 19 of file smil.h.

#define MAX_LOGBLOCK   1000 /* Max Logical Block Numbers in a Zone */

Definition at line 21 of file smil.h.

#define MAX_SECTNUM   0x20 /* Max Sector Numbers in a Block */

Definition at line 20 of file smil.h.

#define MAX_ZONENUM   128 /* Max Zone Numbers in a SmartMedia */

Definition at line 18 of file smil.h.

#define MBS   0x0C /* BlockSize mask */

Definition at line 150 of file smil.h.

#define MFLASH   0x60 /* Flash Rom mask */

Definition at line 148 of file smil.h.

#define MPS   0x03 /* PageSize mask */

Definition at line 151 of file smil.h.

#define MWP   0x80 /* WriteProtect mask */

Definition at line 147 of file smil.h.

#define NO_ASSIGN   0xFFFF /* No Assign Logical Block Address */

Definition at line 29 of file smil.h.

#define NOSSFDC   0x00 /* NO SmartMedia */

Definition at line 154 of file smil.h.

#define NOWP   0x00 /* 0... .... No Write Protect */

Definition at line 137 of file smil.h.

#define PS256   0x00 /* .... ..00 256byte/page */

Definition at line 145 of file smil.h.

#define PS512   0x01 /* .... ..01 512byte/page */

Definition at line 146 of file smil.h.

#define RDERR_REASSIGN   1 /* Reassign with Read Error */

Definition at line 41 of file smil.h.

#define RDSTATUS   0x70

Definition at line 58 of file smil.h.

#define READ1   0x00 /* NO */

Definition at line 60 of file smil.h.

#define READ2   0x01 /* NO */

Definition at line 61 of file smil.h.

#define READ3   0x50 /* NO */

Definition at line 62 of file smil.h.

#define READ_ID_1   0x90

Definition at line 66 of file smil.h.

#define READ_ID_2   0x91

Definition at line 67 of file smil.h.

#define READ_ID_3   0x9A

Definition at line 68 of file smil.h.

#define READ_REDT   0x50

Definition at line 56 of file smil.h.

#define READY   0x40 /* 0:Busy, 1:Ready */

Definition at line 94 of file smil.h.

#define REDT_ADDR1H   0x06

Definition at line 122 of file smil.h.

#define REDT_ADDR1L   0x07

Definition at line 123 of file smil.h.

#define REDT_ADDR2H   0x0B

Definition at line 124 of file smil.h.

#define REDT_ADDR2L   0x0C

Definition at line 125 of file smil.h.

#define REDT_BLOCK   0x05

Definition at line 121 of file smil.h.

#define REDT_DATA   0x04

Definition at line 120 of file smil.h.

#define REDT_ECC10   0x0D

Definition at line 126 of file smil.h.

#define REDT_ECC11   0x0E

Definition at line 127 of file smil.h.

#define REDT_ECC12   0x0F

Definition at line 128 of file smil.h.

#define REDT_ECC20   0x08

Definition at line 129 of file smil.h.

#define REDT_ECC21   0x09

Definition at line 130 of file smil.h.

#define REDT_ECC22   0x0A

Definition at line 131 of file smil.h.

#define REDTSIZE   16 /* Redundant buffer size */

Definition at line 10 of file smil.h.

#define REQ_ERASE   1 /* Request Read Block Erase */

Definition at line 35 of file smil.h.

#define REQ_FAIL   2 /* Request Read Block Failed */

Definition at line 36 of file smil.h.

#define RST_CHIP   0xFF

Definition at line 63 of file smil.h.

#define SECTSIZE   512 /* Sector buffer size */

Definition at line 9 of file smil.h.

#define SM_CMD_BLKERASE   0xB0 /* {0x60, 0xD0} */

Definition at line 82 of file smil.h.

#define SM_CMD_BLKERASE_MULTPL   0xC0 /* {0x60-0x60, 0xD0} */

Definition at line 83 of file smil.h.

#define SM_CMD_PAGPRGM_DUMY   0x90 /* {0x80, 0x11} */

Definition at line 80 of file smil.h.

#define SM_CMD_PAGPRGM_MBLK   0xA0 /* {0x80, 0x15} */

Definition at line 81 of file smil.h.

#define SM_CMD_PAGPRGM_TRUE   0x80 /* {0x80, 0x10} */

Definition at line 79 of file smil.h.

#define SM_CMD_RDMULTPL_STAT   0x40 /* 0x71 */

Definition at line 75 of file smil.h.

#define SM_CMD_READ_1   0x50 /* 0x00 */

Definition at line 76 of file smil.h.

#define SM_CMD_READ_2   0x60 /* 0x01 */

Definition at line 77 of file smil.h.

#define SM_CMD_READ_3   0x70 /* 0x50 */

Definition at line 78 of file smil.h.

#define SM_CMD_READ_ID_1   0x10 /* 0x90 */

Definition at line 72 of file smil.h.

#define SM_CMD_READ_ID_2   0x20 /* 0x91 */

Definition at line 73 of file smil.h.

#define SM_CMD_READ_STAT   0x30 /* 0x70 */

Definition at line 74 of file smil.h.

#define SM_CMD_RESET   0x00 /* 0xFF */

Definition at line 71 of file smil.h.

#define SM_CMD_START_BIT   0x01

Definition at line 86 of file smil.h.

#define SM_CRADDTCT_DEBNCETIMER_EN   0x02

Definition at line 85 of file smil.h.

#define SM_WaitCmdDone   { while (!SM_CmdDone); }

Definition at line 88 of file smil.h.

#define SM_WaitDmaDone   { while (!SM_DmaDone); }

Definition at line 89 of file smil.h.

#define SSFDC128MB   0x08 /*128MB SmartMedia */

Definition at line 162 of file smil.h.

#define SSFDC16MB   0x05 /* 16MB SmartMedia */

Definition at line 159 of file smil.h.

#define SSFDC1GB   0x0B

Definition at line 165 of file smil.h.

#define SSFDC1MB   0x01 /* 1MB SmartMedia */

Definition at line 155 of file smil.h.

#define SSFDC256MB   0x09

Definition at line 163 of file smil.h.

#define SSFDC2GB   0x0C

Definition at line 166 of file smil.h.

#define SSFDC2MB   0x02 /* 2MB SmartMedia */

Definition at line 156 of file smil.h.

#define SSFDC32MB   0x06 /* 32MB SmartMedia */

Definition at line 160 of file smil.h.

#define SSFDC4MB   0x03 /* 4MB SmartMedia */

Definition at line 157 of file smil.h.

#define SSFDC512MB   0x0A

Definition at line 164 of file smil.h.

#define SSFDC64MB   0x07 /* 64MB SmartMedia */

Definition at line 161 of file smil.h.

#define SSFDC8MB   0x04 /* 8MB SmartMedia */

Definition at line 158 of file smil.h.

#define SUSPENDED   0x20 /* 0:Not Suspended, 1:Suspended */

Definition at line 93 of file smil.h.

#define TIME_5VCHK   10 /* 1ms ------ 5V Check Interval Timer */

Definition at line 115 of file smil.h.

#define TIME_CDCHK   200 /* 20ms ------ Card Check Interval Timer */

Definition at line 113 of file smil.h.

#define TIME_PON   3000 /* 300ms ------ Power On Wait Time */

Definition at line 112 of file smil.h.

#define TIME_WPCHK   50 /* 5ms ------ WP Check Interval Timer */

Definition at line 114 of file smil.h.

#define WP   0x80 /* 1... .... Write Protected */

Definition at line 138 of file smil.h.

#define WR_FAIL   0x01 /* 0:Pass, 1:Fail */

Definition at line 92 of file smil.h.

#define WR_PRTCT   0x80 /* 0:Protect, 1:Not Protect */

Definition at line 95 of file smil.h.

#define WRDATA   0x80

Definition at line 54 of file smil.h.

Typedef Documentation

Function Documentation

void _Calculate_D_SwECC ( BYTE ,
BYTE  
)

Definition at line 206 of file smilecc.c.

int _Correct_D_SwECC ( BYTE ,
BYTE ,
BYTE  
)

Definition at line 191 of file smilecc.c.

void calculate_ecc ( BYTE ,
BYTE ,
BYTE ,
BYTE ,
BYTE  
)

Definition at line 98 of file smilecc.c.

int Check_D_CardExist ( void  )
int Check_D_CardStsChg ( void  )
int Check_D_CISdata ( BYTE ,
BYTE  
)

Definition at line 660 of file smilsub.c.

int Check_D_CntPower ( void  )
int Check_D_Correct ( BYTE ,
BYTE  
)

Definition at line 654 of file smilsub.c.

int Check_D_DataBlank ( BYTE )

Definition at line 56 of file smilsub.c.

int Check_D_DataStatus ( BYTE )

Definition at line 83 of file smilsub.c.

int Check_D_FailBlock ( BYTE )

Definition at line 68 of file smilsub.c.

int Check_D_Parameter ( struct us_data ,
WORD ,
BYTE ,
BYTE  
)
int Check_D_ReadError ( BYTE )

Definition at line 648 of file smilsub.c.

int Check_D_SmartMedia ( void  )
int Check_D_SsfdcWP ( void  )
void Clr_D_RedundantData ( BYTE )

Definition at line 134 of file smilsub.c.

void Cnt_D_LedOff ( void  )
void Cnt_D_LedOn ( void  )
void Cnt_D_PowerOff ( void  )
int Cnt_D_PowerOn ( void  )
void Cnt_D_Reset ( void  )
BYTE correct_data ( BYTE ,
BYTE ,
BYTE  ,
BYTE  ,
BYTE   
)

Definition at line 130 of file smilecc.c.

int Init_D_SmartMedia ( void  )
void Led_D_TernOff ( void  )
void Led_D_TernOn ( void  )
int Load_D_LogBlockAddr ( BYTE )

Definition at line 102 of file smilsub.c.

int Media_D_CopySector ( struct us_data ,
DWORD  ,
WORD  ,
BYTE  
)

Definition at line 189 of file smilmain.c.

int Media_D_EraseAll ( struct us_data )
int Media_D_EraseAllRedtData ( DWORD  Index,
BOOLEAN  CheckBlock 
)
int Media_D_EraseBlock ( struct us_data ,
DWORD  ,
WORD   
)
int Media_D_OneSectWriteFlush ( struct us_data )
int Media_D_OneSectWriteNext ( struct us_data ,
BYTE  
)
int Media_D_OneSectWriteStart ( struct us_data ,
DWORD  ,
BYTE  
)
int Media_D_ReadSector ( struct us_data ,
DWORD  ,
WORD  ,
BYTE  
)

Definition at line 147 of file smilmain.c.

int Media_D_WriteSector ( struct us_data ,
DWORD  ,
WORD  ,
BYTE  
)
int Pwoff_D_SmartMedia ( void  )
void Set_D_DataStaus ( BYTE )

Definition at line 167 of file smilsub.c.

void Set_D_FailBlock ( BYTE )

Definition at line 159 of file smilsub.c.

void Set_D_LogBlockAddr ( BYTE )

Definition at line 143 of file smilsub.c.

void Set_D_RightECC ( BYTE )

Definition at line 687 of file smilsub.c.

int Set_D_SsfdcModel ( BYTE  )

Definition at line 510 of file smilsub.c.

void SM_EnableLED ( struct us_data ,
BOOLEAN   
)
int SM_FreeMem ( void  )

Definition at line 97 of file smilmain.c.

void SM_Init ( void  )
int SM_ReadBlock ( struct us_data ,
BYTE ,
BYTE  
)
int Ssfdc_D_CheckStatus ( void  )

Definition at line 500 of file smilsub.c.

int Ssfdc_D_CopyBlock ( struct us_data ,
WORD  ,
BYTE ,
BYTE  
)

Definition at line 307 of file smilsub.c.

int Ssfdc_D_EraseBlock ( struct us_data )

Definition at line 391 of file smilsub.c.

int Ssfdc_D_ReadBlock ( struct us_data ,
WORD  ,
BYTE ,
BYTE  
)

Definition at line 255 of file smilsub.c.

int Ssfdc_D_ReadCisSect ( struct us_data ,
BYTE ,
BYTE  
)

Definition at line 183 of file smilsub.c.

void Ssfdc_D_ReadID ( BYTE ,
BYTE   
)
int Ssfdc_D_ReadRedtData ( struct us_data ,
BYTE  
)

Definition at line 425 of file smilsub.c.

int Ssfdc_D_ReadSect ( struct us_data ,
BYTE ,
BYTE  
)

Definition at line 204 of file smilsub.c.

int Ssfdc_D_ReadSect_DMA ( struct us_data ,
BYTE ,
BYTE  
)
int Ssfdc_D_ReadSect_PIO ( struct us_data ,
BYTE ,
BYTE  
)
void Ssfdc_D_Reset ( struct us_data )

Definition at line 177 of file smilsub.c.

int Ssfdc_D_WriteBlock ( struct us_data ,
WORD  ,
BYTE ,
BYTE  
)
int Ssfdc_D_WriteRedtData ( struct us_data ,
BYTE  
)

Definition at line 465 of file smilsub.c.

void Ssfdc_D_WriteRedtMode ( void  )
int Ssfdc_D_WriteSect ( struct us_data ,
BYTE ,
BYTE  
)
int Ssfdc_D_WriteSect_DMA ( struct us_data ,
BYTE ,
BYTE  
)
int Ssfdc_D_WriteSect_PIO ( struct us_data ,
BYTE ,
BYTE  
)
int Ssfdc_D_WriteSectForCopy ( struct us_data ,
BYTE ,
BYTE  
)

Definition at line 353 of file smilsub.c.

Variable Documentation

struct CIS_AREA CisArea

Definition at line 38 of file smilsub.c.

DWORD ErrCode

Definition at line 49 of file smilmain.c.

DWORD ErrXDCode

Definition at line 48 of file smilmain.c.

BYTE IsSSFDCCompliance

Definition at line 70 of file smilmain.c.

BYTE IsXDCompliance

Definition at line 71 of file smilmain.c.

struct ADDRESS Media

Definition at line 37 of file smilsub.c.

DWORD MediaChange

Definition at line 60 of file smilmain.c.

WORD ReadBlock

Definition at line 58 of file smilmain.c.

Definition at line 36 of file smilsub.c.

WORD WriteBlock

Definition at line 59 of file smilmain.c.