Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sandpoint/include add btinfo_modulelist for MODULAR...



details:   https://anonhg.NetBSD.org/src/rev/af6705050d79
branches:  trunk
changeset: 760690:af6705050d79
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Tue Jan 11 06:57:35 2011 +0000

description:
add btinfo_modulelist for MODULAR component loading.

diffstat:

 sys/arch/sandpoint/include/bootinfo.h |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r bd12b1cbc181 -r af6705050d79 sys/arch/sandpoint/include/bootinfo.h
--- a/sys/arch/sandpoint/include/bootinfo.h     Tue Jan 11 01:21:32 2011 +0000
+++ b/sys/arch/sandpoint/include/bootinfo.h     Tue Jan 11 06:57:35 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index