summaryrefslogtreecommitdiff
path: root/com32/lib/syslinux/config.c
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2010-09-28 17:33:25 +0200
committerMichal Soltys <soltys@ziu.info>2010-10-08 12:33:20 +0200
commita2046031ec132d3bbf12ad0472d39eb26a041540 (patch)
treec6d034295056180a01f5e866f15c5f10a82f0936 /com32/lib/syslinux/config.c
parent578bd203ba04816de56577c7589a69143178fc60 (diff)
downloadsyslinux-a2046031ec132d3bbf12ad0472d39eb26a041540.tar.gz
disklib: updates - lbacnt, bps, misc. things
With this commit, disk_info structure provides additional fields, namely: lbacnt - total amount of sectors, either returned by 13h/48h or calculated from valid (or faked - 1/1/1) geometry bps - bytes per sector - returned by 13h/48h or equal to SECTOR disk_get_params() has been adjusted to call int13h/48h to get extended drive parameters - mentioned lbacnt and bps. We don't use geometry data returned by 13h/48h, as it can be quite a bit different from the data returned by 13h/08h. disk_write_verify_sector() and disk_write_sector() can deal with more than 1 sector now. Suffix has been renamed to _sectors(). disk_read_sectors() and disk_write_sectors() have been updated to check if we don't overflow bounce buffer, and don't try to read beyond lbacnt. All disk.c functions use 'bps' now, instead of hardcoded SECTOR. struct disk_ebios_dapa - uses packed attribute now. Signed-off-by: Michal Soltys <soltys@ziu.info>
Diffstat (limited to 'com32/lib/syslinux/config.c')
0 files changed, 0 insertions, 0 deletions