From ec74256a8e11d3410d60101a07650e1bb5220896 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Sun, 9 Mar 2008 14:25:02 +0000 Subject: MFC: sys/conf/files.sparc64 1.94; sys/sparc64/include/md_var.h 1.17; sys/sparc64/sparc64/ata_machdep.c 1.1 The Sun disk label only uses 16-bit fields for cylinders, heads and sectors so the geometry of large IDE disks has to be adjusted. --- sys/conf/files.sparc64 | 1 + sys/sparc64/include/md_var.h | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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_ */ -- cgit v1.3