Lines Matching defs:sectors
512 * Read sectors from an attached AHCI device.
527 DBG_AHCI("%s: %u sectors @ LBA %lu, device %d, port %d\n", __func__,
544 * Write sectors to an attached AHCI device.
559 DBG_AHCI("%s: %u sectors @ LBA %lu, device %d, port %d\n", __func__,
601 DBG_AHCI("%s: reading %u %u-byte sectors\n", __func__,
692 uint32_t sectors;
713 sectors = *(uint32_t *)(abBuffer+(60*2)); // word 60 and word 61
715 /** @todo update sectors to be a 64 bit number (also lba...). */
716 if (sectors == 0x0FFFFFFF) /* For disks bigger than ~128GB */
717 sectors = *(uint32_t *)(abBuffer+(100*2)); // words 100 to 103 (someday)
719 DBG_AHCI("AHCI: %ld sectors\n", sectors);
728 bios_dsk->devices[hd_index].sectors = sectors;
759 set_geom_lba(&lgeo, sectors); /* Default EDD-style translated LBA geometry. */
761 BX_INFO("AHCI %d-P#%d: PCHS=%u/%u/%u LCHS=%u/%u/%u %lu sectors\n", devcount_ahci,
762 u8Port, cylinders, heads, spt, lgeo.cylinders, lgeo.heads, lgeo.spt, sectors);
878 * blocks from 2048-byte CD sectors.