search for: chs_setup

Displaying 2 results from an estimated 2 matches for "chs_setup".

2013 Sep 17
1
[PATCH 2/4 v3] com32/disk: Code cleanup at disk_write_sectors and disk_read_sectors.
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 at gmail.com> --- com32/include/syslinux/disk.h | 7 ++ com32/lib/syslinux/disk.c | 173 +++++++++++++++++++++-------------------- 2 files changed, 97 insertions(+), 83 deletions(-) diff...
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
...ve to read from - * @v inreg Register data structure to be filled. - * @v lba The logical block address to begin reading at - * @v count The number of sectors to read - * @v op_code Code to write/read operation - * @ret lmalloc'd buf upon success, NULL upon failure - */ -static void *chs_setup(const struct disk_info *const diskinfo, com32sys_t *inreg, - uint64_t lba, uint8_t count, uint8_t op_code) -{ - unsigned int c, h, s, t; - void *buf; - - buf = lmalloc(count * diskinfo->bps); - if (!buf) - return NULL; - - /* - * if we passed lba + count check and we g...