kernel/eka/drivers/medlfs/flash_media.cpp
branchRCL_3
changeset 294 039a3e647356
parent 249 a179b74831c9
equal deleted inserted replaced
268:345b1ca54e88 294:039a3e647356
   161 	TInt r=KErrNotSupported;
   161 	TInt r=KErrNotSupported;
   162 	TInt id=m.Id();
   162 	TInt id=m.Id();
   163 	__KTRACE_OPT(KLOCDRV,Kern::Printf(">DMediaDriverFlash::Request %d",id));
   163 	__KTRACE_OPT(KLOCDRV,Kern::Printf(">DMediaDriverFlash::Request %d",id));
   164 	if (id==DLocalDrive::ECaps)
   164 	if (id==DLocalDrive::ECaps)
   165 		{
   165 		{
   166   		TLocalDriveCapsV4& c=*(TLocalDriveCapsV4*)m.RemoteDes();
   166   		TLocalDriveCapsV2& c=*(TLocalDriveCapsV2*)m.RemoteDes();
   167 		r=Caps(c);
   167 		r=Caps(c);
   168 		c.iSize=m.Drive()->iPartitionLen;
   168 		c.iSize=m.Drive()->iPartitionLen;
   169 		c.iPartitionType=m.Drive()->iPartitionType;
   169 		c.iPartitionType=m.Drive()->iPartitionType;
   170 		SetTotalSizeInBytes(c);
       
   171 		return r;
   170 		return r;
   172 		}
   171 		}
   173 	switch (id)
   172 	switch (id)
   174 		{
   173 		{
   175 		case DLocalDrive::ERead:
   174 		case DLocalDrive::ERead: