kernels/linux-2.4.0/drivers/scsi/cpqfcTSinit.c
/* This function determines the bios parameters for a given
   harddisk. These tend to be numbers that are made up by the
   host adapter.  Parameters:
   size, device number, list (heads, sectors,cylinders).
   (from hosts.h)
*/
This function determines the bios parameters for a given
harddisk. These tend to be numbers that are made up by the
host adapter.  Parameters:
size, device number, list (heads, sectors,cylinders).
This function determines the bios parameters for a given harddisk . These tend to be numbers that are made up by the host adapter . Parameters : size device number list ( heads sectors cylinders ) .
int cpqfcTS_biosparam(Disk *disk, kdev_t n, int ip[])
{
  int size = disk->capacity;
  ENTER("cpqfcTS_biosparam");
  ip[0] = 64;
  ip[1] = 32;
  ip[2] = size >> 11;
  if( ip[2] > 1024 )
  {
    ip[0] = 255;
    ip[1] = 63;
    ip[2] = size / (ip[0] * ip[1]);
  }
  LEAVE("cpqfcTS_biosparam");
  return 0;
}
int cpqfcTS_biosparam ( Disk * disk , kdev_t n , int ip [ ] ) { int size = disk -> capacity ; ENTER ( " " ) ; ip [ 0 ] = 64 ; ip [ 1 ] = 32 ; ip [ 2 ] = size >> 11 ; if ( ip [ 2 ] > 1024 ) { ip [ 0 ] = 255 ; ip [ 1 ] = 63 ; ip [ 2 ] = size / ( ip [ 0 ] * ip [ 1 ] ) ; } LEAVE ( " " ) ; return 0 ; }
This function determines the bios parameters for a given
harddisk.
This function determines the bios parameters for a given harddisk .