Searched refs:sectors (Results 1 - 2 of 2) sorted by relevance

/gem5/util/
H A Dgem5img.py30 # Figure out cylinders, heads and sectors from a size in blocks.
37 sectors = sizeInBlocks
39 sectors = 63
41 headSize = sizeInBlocks / sectors
46 cylinders = sizeInBlocks / (sectors * heads)
48 return (cylinders, heads, sectors)
139 assert(lines[1] == 'unit: sectors')
143 # The fourth chunk is the offset of the partition in sectors followed by
145 sectors = string.atoi(chunks[3][:-1])
148 return sectors * BlockSiz
[all...]
/gem5/src/dev/storage/
H A Dide_disk.cc89 uint8_t sectors; local
95 sectors = 63;
98 sectors = 63;
102 sectors = lba_size;
104 if ((lba_size / sectors) >= 16)
107 heads = (lba_size / sectors);
109 cylinders = lba_size / (heads * sectors);
123 driveID.atap_sectors = sectors;
128 // Number of sectors on disk

Completed in 7 milliseconds