aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/include/syslinux/disk.h8
-rw-r--r--com32/modules/chain.c12
2 files changed, 10 insertions, 10 deletions
diff --git a/com32/include/syslinux/disk.h b/com32/include/syslinux/disk.h
index f880a894..51af728e 100644
--- a/com32/include/syslinux/disk.h
+++ b/com32/include/syslinux/disk.h
@@ -48,6 +48,14 @@ struct disk_info {
int sect;
};
+struct disk_ebios_dapa {
+ uint16_t len;
+ uint16_t count;
+ uint16_t off;
+ uint16_t seg;
+ uint64_t lba;
+};
+
extern int disk_int13_retry(const com32sys_t * inreg, com32sys_t * outreg);
extern int disk_get_params(int disk, struct disk_info *diskinfo);
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 738d8c71..ea04b8b9 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -151,19 +151,11 @@ static struct disk_info diskinfo;
* Get a disk block and return a malloc'd buffer.
* Uses the disk number and information from diskinfo.
*/
-struct ebios_dapa {
- uint16_t len;
- uint16_t count;
- uint16_t off;
- uint16_t seg;
- uint64_t lba;
-};
-
/* Read count sectors from drive, starting at lba. Return a new buffer */
static void *read_sectors(uint64_t lba, uint8_t count)
{
com32sys_t inreg;
- struct ebios_dapa *dapa = __com32.cs_bounce;
+ struct disk_ebios_dapa *dapa = __com32.cs_bounce;
void *buf = (char *)__com32.cs_bounce + SECTOR;
void *data;
@@ -228,7 +220,7 @@ static void *read_sectors(uint64_t lba, uint8_t count)
static int write_sector(unsigned int lba, const void *data)
{
com32sys_t inreg;
- struct ebios_dapa *dapa = __com32.cs_bounce;
+ struct disk_ebios_dapa *dapa = __com32.cs_bounce;
void *buf = (char *)__com32.cs_bounce + SECTOR;
memcpy(buf, data, SECTOR);