aboutsummaryrefslogtreecommitdiff
path: root/src/disk.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-01-19 15:44:44 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-01-19 15:44:44 -0500
commit35ae726530432c478a0955532e7e6c8b32c4bfef (patch)
treec9a6fc65917f572bc272367c9d76a7b9d93cc2ee /src/disk.c
parenta9e286d47ff1872b2d992b246f4bb8d2d2d8f498 (diff)
downloadseabios-hppa-35ae726530432c478a0955532e7e6c8b32c4bfef.zip
seabios-hppa-35ae726530432c478a0955532e7e6c8b32c4bfef.tar.gz
seabios-hppa-35ae726530432c478a0955532e7e6c8b32c4bfef.tar.bz2
Rename MAKE_FARPTR (and similar) to MAKE_FLATPTR.
The term "far pointer" is used in many 16bit specs, and it is different from what MAKE_FARPTR creates. So, use the term "flat pointer" in the code to distinguish between the two meanings. Also, use the suffix "_fl" consistently when working with "flat pointers".
Diffstat (limited to 'src/disk.c')
-rw-r--r--src/disk.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/disk.c b/src/disk.c
index 762d5a4..248c839 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -44,12 +44,12 @@ static int
__send_disk_op(struct disk_op_s *op_p, u16 op_s)
{
struct disk_op_s dop;
- memcpy_far(MAKE_FARPTR(GET_SEG(SS), &dop)
- , MAKE_FARPTR(op_s, op_p)
- , sizeof(dop));
+ memcpy_fl(MAKE_FLATPTR(GET_SEG(SS), &dop)
+ , MAKE_FLATPTR(op_s, op_p)
+ , sizeof(dop));
dprintf(DEBUG_HDL_13, "disk_op d=%d lba=%d buf=%p count=%d cmd=%d\n"
- , dop.driveid, (u32)dop.lba, dop.far_buffer
+ , dop.driveid, (u32)dop.lba, dop.buf_fl
, dop.count, dop.command);
irq_enable();
@@ -132,7 +132,7 @@ basic_access(struct bregs *regs, u8 device, u16 command)
u16 segment = regs->es;
u16 offset = regs->bx;
- dop.far_buffer = MAKE_FARPTR(segment, offset);
+ dop.buf_fl = MAKE_FLATPTR(segment, offset);
int status = send_disk_op(&dop);
@@ -176,7 +176,7 @@ extended_access(struct bregs *regs, u8 device, u16 command)
u16 segment = GET_INT13EXT(regs, segment);
u16 offset = GET_INT13EXT(regs, offset);
- dop.far_buffer = MAKE_FARPTR(segment, offset);
+ dop.buf_fl = MAKE_FLATPTR(segment, offset);
dop.count = GET_INT13EXT(regs, count);
int status = send_disk_op(&dop);
@@ -486,7 +486,7 @@ disk_1348(struct bregs *regs, u8 device)
SET_EBDA2(ebda_seg, dpte.reserved, 0);
SET_EBDA2(ebda_seg, dpte.revision, 0x11);
- u8 *p = MAKE_FARPTR(ebda_seg
+ u8 *p = MAKE_FLATPTR(ebda_seg
, offsetof(struct extended_bios_data_area_s, dpte));
SET_EBDA2(ebda_seg, dpte.checksum, -checksum(p, 15));
@@ -522,7 +522,7 @@ disk_1348(struct bregs *regs, u8 device)
SET_INT13DPT(regs, device_path, slave);
- SET_INT13DPT(regs, checksum, -checksum(MAKE_FARPTR(regs->ds, 30), 35));
+ SET_INT13DPT(regs, checksum, -checksum(MAKE_FLATPTR(regs->ds, 30), 35));
disk_ret(regs, DISK_RET_SUCCESS);
}