Module Name: src
Committed By: nisimura
Date: Tue Jan 11 06:57:35 UTC 2011
Modified Files:
src/sys/arch/sandpoint/include: bootinfo.h
Log Message:
add btinfo_modulelist for MODULAR component loading.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/sandpoint/include/bootinfo.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sandpoint/include/bootinfo.h
diff -u src/sys/arch/sandpoint/include/bootinfo.h:1.7 src/sys/arch/sandpoint/include/bootinfo.h:1.8
--- src/sys/arch/sandpoint/include/bootinfo.h:1.7 Thu May 20 19:27:25 2010
+++ src/sys/arch/sandpoint/include/bootinfo.h Tue Jan 11 06:57:35 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: bootinfo.h,v 1.7 2010/05/20 19:27:25 phx Exp $ */
+/* $NetBSD: bootinfo.h,v 1.8 2011/01/11 06:57:35 nisimura Exp $ */
/*
* Copyright (c) 1997
@@ -44,6 +44,7 @@
#define BTINFO_ROOTDEVICE 6
#define BTINFO_NET 7
#define BTINFO_PRODFAMILY 8
+#define BTINFO_MODULELIST 9
struct btinfo_magic {
struct btinfo_common common;
@@ -90,6 +91,22 @@
char name[24];
};
+struct btinfo_modulelist {
+ struct btinfo_common common;
+ int num;
+ uint32_t endpa;
+ /* bi_modulelist_entry follows as an array */
+};
+
+struct bi_modulelist_entry {
+ char kmod[80];
+ int type;
+#define BI_MODULE_NONE 0x00
+#define BI_MODULE_ELF 0x01
+ int len;
+ uint32_t base;
+};
+
#define BOOTINFO_MAXSIZE 4096
#ifdef _KERNEL