patch-2.2.18 linux/include/asm-arm/setup.h
Next file: linux/include/asm-arm/smplock.h
Previous file: linux/include/asm-arm/semaphore.h
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Fri Sep 15 23:32:34 2000
- Orig file:
v2.2.17/include/asm-arm/setup.h
- Orig date:
Fri Apr 21 12:46:49 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/asm-arm/setup.h linux/include/asm-arm/setup.h
@@ -1,13 +1,26 @@
/*
* include/asm/setup.h
*
- * Structure passed to kernel to tell it about the hardware it's running on
+ * Structure passed to kernel to tell it about the
+ * hardware it's running on. See linux/Documentation/arm/Setup
+ * for more info.
*
- * Copyright (C) 1997,1998 Russell King
+ * Copyright (C) 1997-1999 Russell King
*/
#ifndef __ASMARM_SETUP_H
#define __ASMARM_SETUP_H
+/*
+ * Usage:
+ * - do not go blindly adding fields, add them at the end
+ * - when adding fields, don't rely on the address until
+ * a patch from me has been released
+ * - unused fields should be zero (for future expansion)
+ * - this structure is relatively short-lived - only
+ * guaranteed to contain useful data in setup_arch()
+ */
+#define COMMAND_LINE_SIZE 1024
+
struct param_struct {
union {
struct {
@@ -33,6 +46,9 @@
unsigned long initrd_start; /* 64 */
unsigned long initrd_size; /* 68 */
unsigned long rd_start; /* 72 */
+ unsigned long system_rev; /* 76 */
+ unsigned long system_serial_low; /* 80 */
+ unsigned long system_serial_high; /* 84 */
} s;
char unused[256];
} u1;
@@ -43,7 +59,7 @@
char n[1024 - sizeof(unsigned long)];
} s;
} u2;
- char commandline[256];
+ char commandline[COMMAND_LINE_SIZE];
};
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)