1 #include <linux/slab.h>
61 static DWORD SectCopyMode;
64 static BYTE BitData[] = { 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80 } ;
65 #define Set_D_Bit(a,b) (a[(BYTE)((b)/8)]|= BitData[(b)%8])
66 #define Clr_D_Bit(a,b) (a[(BYTE)((b)/8)]&=~BitData[(b)%8])
67 #define Chk_D_Bit(a,b) (a[(BYTE)((b)/8)] & BitData[(b)%8])
104 if (Log2Phy[i]!=
NULL)
106 pr_info(
"Free Zone = %x, Addr = %p\n", i, Log2Phy[i]);
746 temp = addr/
Ssfdc.MaxSectors;
793 Media.LogBlock = LogBlock;
867 #ifdef RDERR_REASSIGN
876 for(retry=0; retry<2; retry++)
1337 for(retry=0; retry<2; retry++)
1352 { err=
ERROR;
break; }
1404 for(retry=0; retry<2; retry++)
1612 WORD phyblock,logblock;
1672 phyblock =
Media.PhyBlock;
1673 logblock =
Media.LogBlock;
1681 if (
Media.LogBlock==logblock)
1683 Media.PhyBlock=Log2Phy[
Media.Zone][logblock];
1688 Media.PhyBlock=phyblock;
1692 if (
Media.LogBlock!=logblock)
1694 Media.PhyBlock=Log2Phy[
Media.Zone][logblock];
1695 Log2Phy[
Media.Zone][logblock]=phyblock;
1700 Media.PhyBlock=Log2Phy[
Media.Zone][logblock];
1701 Log2Phy[
Media.Zone][logblock]=phyblock;
1727 Media.PhyBlock=phyblock;
1731 AssignStart[
Media.Zone]=0;