summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:19:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:19:39 +0000
commitb3099b4a9cd903bc2c0088e84a4e97d7cc072f1d (patch)
tree4de44db30324d1793a5b7ed6fdf32113fe7135ce /config.h
parentInitial commit. (diff)
downloaddmidecode-b3099b4a9cd903bc2c0088e84a4e97d7cc072f1d.tar.xz
dmidecode-b3099b4a9cd903bc2c0088e84a4e97d7cc072f1d.zip
Adding upstream version 3.5.upstream/3.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'config.h')
-rw-r--r--config.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..4237355
--- /dev/null
+++ b/config.h
@@ -0,0 +1,34 @@
+/*
+ * Configuration
+ */
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+/* Default memory device file */
+#if defined(__BEOS__) || defined(__HAIKU__)
+#define DEFAULT_MEM_DEV "/dev/misc/mem"
+#else
+#ifdef __sun
+#define DEFAULT_MEM_DEV "/dev/xsvc"
+#else
+#define DEFAULT_MEM_DEV "/dev/mem"
+#endif
+#endif
+
+/* Use mmap or not */
+#ifndef __BEOS__
+#define USE_MMAP
+#endif
+
+/* Use memory alignment workaround or not */
+#ifdef __ia64__
+#define ALIGNMENT_WORKAROUND
+#endif
+
+/* Avoid unaligned memcpy on /dev/mem */
+#ifdef __aarch64__
+#define USE_SLOW_MEMCPY
+#endif
+
+#endif