|
Lines 975-983
static int ata_set_max_sectors(struct at
Link Here
|
| 975 |
tf.hob_lbal = (new_sectors >> 24) & 0xff; |
975 |
tf.hob_lbal = (new_sectors >> 24) & 0xff; |
| 976 |
tf.hob_lbam = (new_sectors >> 32) & 0xff; |
976 |
tf.hob_lbam = (new_sectors >> 32) & 0xff; |
| 977 |
tf.hob_lbah = (new_sectors >> 40) & 0xff; |
977 |
tf.hob_lbah = (new_sectors >> 40) & 0xff; |
| 978 |
} else |
978 |
} else { |
| 979 |
tf.command = ATA_CMD_SET_MAX; |
979 |
tf.command = ATA_CMD_SET_MAX; |
| 980 |
|
980 |
|
|
|
981 |
tf.device |= (new_sectors >> 24) & 0xf; |
| 982 |
} |
| 983 |
|
| 981 |
tf.protocol |= ATA_PROT_NODATA; |
984 |
tf.protocol |= ATA_PROT_NODATA; |
| 982 |
tf.device |= ATA_LBA; |
985 |
tf.device |= ATA_LBA; |
| 983 |
|
986 |
|