summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2008-03-09 14:25:02 +0000
committerMarius Strobl <marius@FreeBSD.org>2008-03-09 14:25:02 +0000
commitec74256a8e11d3410d60101a07650e1bb5220896 (patch)
tree8417a20dacf69af2824f20fbc6e669ade23b8df3 /sys
parent0a2609448fd688530764b1074bbd444c07444210 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/files.sparc641
-rw-r--r--sys/sparc64/include/md_var.h13
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/conf/files.sparc64 b/sys/conf/files.sparc64
index 5f2918005f90..63494cabfbfa 100644
--- a/sys/conf/files.sparc64
+++ b/sys/conf/files.sparc64
@@ -88,6 +88,7 @@ sparc64/pci/psycho.c optional pci
sparc64/sbus/dma_sbus.c optional sbus
sparc64/sbus/sbus.c optional sbus
sparc64/sbus/lsi64854.c optional sbus
+sparc64/sparc64/ata_machdep.c optional atadisk
sparc64/sparc64/autoconf.c standard
sparc64/sparc64/bus_machdep.c standard
sparc64/sparc64/cache.c standard
diff --git a/sys/sparc64/include/md_var.h b/sys/sparc64/include/md_var.h
index 34a3437ac06a..69c6d698c5fb 100644
--- a/sys/sparc64/include/md_var.h
+++ b/sys/sparc64/include/md_var.h
@@ -60,4 +60,17 @@ cpu_block_zero_t spitfire_block_zero;
extern cpu_block_copy_t *cpu_block_copy;
extern cpu_block_zero_t *cpu_block_zero;
+/*
+ * Given that the Sun disk label only uses 16-bit fields for cylinders,
+ * heads and sectors we might need to adjust the geometry of large IDE
+ * disks.
+ * We have to have a knowledge that a device_t is a struct device * here
+ * to avoid including too many things from this file.
+ */
+struct disk;
+struct device;
+void sparc64_ad_firmware_geom_adjust(struct device *dev, struct disk *disk);
+#define ad_firmware_geom_adjust(dev, dsk) \
+ sparc64_ad_firmware_geom_adjust(dev, dsk)
+
#endif /* !_MACHINE_MD_VAR_H_ */