mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-04 03:29:37 +00:00
155b8cdad9
The total size needs to have 3 factors cylinders, heads, & sectors. Imagine a disk having a total size with 3 prime factors 3 x 5 x 11. 15 cannot be assigned to heads because that would only leave 11 for sectors and cylinders. Therefore, test all heads and sectors combinations. If the third factor for cylinders is not found, then choose 16 heads, then the minimum number of sectors, and finally the maximum number of cylinders. The loop could be changed to skip values of heads that are not a factor, but it doesn't take any time to try them all. |
||
---|---|---|
.. | ||
adb | ||
ata | ||
i2c | ||
pci | ||
scsi | ||
dbdma.cpp | ||
dbdma.h | ||
dmacore.h | ||
hwcomponent.h | ||
hwinterrupt.h | ||
machineid.h | ||
mmiodevice.h | ||
nvram.cpp | ||
nvram.h | ||
ofnvram.cpp | ||
ofnvram.h | ||
viacuda.cpp | ||
viacuda.h |