aboutsummaryrefslogtreecommitdiff
path: root/src/biosvar.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-03-30 21:46:53 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-03-30 21:46:53 -0400
commit438f63515c0fea19d2b2e1f1e5571920d12c6529 (patch)
tree669d754a4a5f7c7e92009c7e9a32c326dfbe4a5b /src/biosvar.h
parent838f08fcb9f76c99f0845949e60f934572117572 (diff)
downloadseabios-hppa-438f63515c0fea19d2b2e1f1e5571920d12c6529.zip
seabios-hppa-438f63515c0fea19d2b2e1f1e5571920d12c6529.tar.gz
seabios-hppa-438f63515c0fea19d2b2e1f1e5571920d12c6529.tar.bz2
Minor cleanups.
Rename EBDA_SEG to SEG_EBDA - it is more consistent with other defs. Introduce SEG_BDA definition and use it instead of 0x0000 wherea appropriate. Move ACPI_DATA_SIZE to CONFIG_ACPI_DATA_SIZE and move to config.h Use an alias (PORT_HD_DATA) for io port 0x03f6.
Diffstat (limited to 'src/biosvar.h')
-rw-r--r--src/biosvar.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/biosvar.h b/src/biosvar.h
index 494b6a8..fe957e5 100644
--- a/src/biosvar.h
+++ b/src/biosvar.h
@@ -102,9 +102,9 @@ struct bios_data_area_s {
// Accessor functions
#define GET_BDA(var) \
- GET_FARVAR(0x0000, ((struct bios_data_area_s *)0)->var)
+ GET_FARVAR(SEG_BDA, ((struct bios_data_area_s *)0)->var)
#define SET_BDA(var, val) \
- SET_FARVAR(0x0000, ((struct bios_data_area_s *)0)->var, (val))
+ SET_FARVAR(SEG_BDA, ((struct bios_data_area_s *)0)->var, (val))
#define CLEARBITS_BDA(var, val) do { \
typeof(((struct bios_data_area_s *)0)->var) __val = GET_BDA(var); \
SET_BDA(var, (__val & ~(val))); \
@@ -269,9 +269,9 @@ struct extended_bios_data_area_s {
// Accessor functions
#define GET_EBDA(var) \
- GET_FARVAR(EBDA_SEG, ((struct extended_bios_data_area_s *)0)->var)
+ GET_FARVAR(SEG_EBDA, ((struct extended_bios_data_area_s *)0)->var)
#define SET_EBDA(var, val) \
- SET_FARVAR(EBDA_SEG, ((struct extended_bios_data_area_s *)0)->var, (val))
+ SET_FARVAR(SEG_EBDA, ((struct extended_bios_data_area_s *)0)->var, (val))
/****************************************************************
@@ -331,8 +331,9 @@ extern struct bios_config_table_s BIOS_CONFIG_TABLE;
****************************************************************/
#define SEG_BIOS 0xf000
+#define SEG_EBDA 0x9fc0
+#define SEG_BDA 0x0000
-#define EBDA_SEG 0x9FC0
#define EBDA_SIZE 1 // In KiB
#define BASE_MEM_IN_K (640 - EBDA_SIZE)