LBA to CHS conversion
Posted: Sun Jan 25, 2004 12:00 am
I have a few questions:
1.When converting How do i get the sectors per cylnder and number of heads
2.do i just write the CHS value it gives me like this:
void Read_one_sector_LBA(int drv,int sect,word *buffer)
{
int cyln,head,sect;
/*do LBA CHS conversion*/
Read_one_sector_CHS(cyln,head,sect,drv,buffer);
}
Thanks
1.When converting How do i get the sectors per cylnder and number of heads
2.do i just write the CHS value it gives me like this:
void Read_one_sector_LBA(int drv,int sect,word *buffer)
{
int cyln,head,sect;
/*do LBA CHS conversion*/
Read_one_sector_CHS(cyln,head,sect,drv,buffer);
}
Thanks