| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Pulled common code out of these functions into new ones.
The functions chs_setup and ebios_setup were created for this purpose.
Signed-off-by: Raphael S.Carvalho <raphael.scarv@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Functions disk_write_sector() and disk_write_verify_sector()
take 64bit lba as an argument now - similary to disk_read_sectors().
Structure disk_info additionally provides cylinders, besides head and sector.
Sanity checks during lba -> chs conversions have been adjusted to use
cylinders.
CX in cbios read/write code was not calculated properly.
Minor signed/unsigned changes.
Signed-off-by: Michal Soltys <soltys@ziu.info>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
|
| |
Also moved gpt_sig_magic as disk_gpt_sig_magic.
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
There might be a better header for these to belong to.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
There might be a better header for guid_le_walk_map to belong to.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
There might be a better header for struct guid to belong to.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
|
| |
Also move mbr_sig_magic as disk_mbr_sig_magic macro.
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Add const qualifier because we can.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
|
| |
Also moved struct diskinfo as disk_info.
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| |
|
|
|
|
| |
Moving portions of chain.c32 into libcom32.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
|
|
An effort to move significant portions out of chain.c32 and
into library is underway. We begin by simply moving
SECTOR into a header and building a disk module.
Note that some of this work will essentially duplicate
some of what's found in Pierre-Alexandre Meyer's fine
work in com32/gpllib/disk/. A difference would be the
licensing, of course.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|