summaryrefslogtreecommitdiffstats
path: root/src/interface/linux
diff options
context:
space:
mode:
authorPiotr Jaroszyński2010-05-26 19:04:47 +0200
committerMichael Brown2010-08-19 13:38:34 +0200
commitaacd1d62fb042b1473ac7199ff7b3928bc7cf07c (patch)
tree08b9db4e623f97e9d5ced597c3f859be8da12051 /src/interface/linux
parent[linux] Add nap (diff)
downloadipxe-aacd1d62fb042b1473ac7199ff7b3928bc7cf07c.tar.gz
ipxe-aacd1d62fb042b1473ac7199ff7b3928bc7cf07c.tar.xz
ipxe-aacd1d62fb042b1473ac7199ff7b3928bc7cf07c.zip
[linux] Add empty smbios
There exists an smbios userspace library so implementing this is probably possible, but doesn't seem really important to have in userspace. Hence provide a dummy implementation returning an error. Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/linux')
-rw-r--r--src/interface/linux/linux_smbios.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/interface/linux/linux_smbios.c b/src/interface/linux/linux_smbios.c
new file mode 100644
index 00000000..f99120bf
--- /dev/null
+++ b/src/interface/linux/linux_smbios.c
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2010 Piotr Jaroszyński <p.jaroszynski@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+FILE_LICENCE(GPL2_OR_LATER);
+
+#include <errno.h>
+#include <ipxe/smbios.h>
+
+/**
+ * Find SMBIOS
+ *
+ * Not implemented currently.
+ *
+ * @v smbios SMBIOS entry point descriptor structure to fill in
+ * @ret rc Return status code
+ */
+static int linux_find_smbios(struct smbios *smbios __unused)
+{
+ return -ENODEV;
+}
+
+PROVIDE_SMBIOS(linux, find_smbios, linux_find_smbios);