summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2003-04-20 00:49:38 -0700
committerChristoph Hellwig <hch@lst.de>2003-04-20 00:49:38 -0700
commit4b28bcb37986cf817cbfa38f1fd82f320df8f357 (patch)
treef7da349a71792d0443e404ea8e6e591cb311a918 /include
parent835f446af6cb61e3bf3fec5194da9d9a8b1403e4 (diff)
[PATCH] initrd.h
split the initrd stuff out of blk.h, it's only needed in the boot code and the ramdisk driver.
Diffstat (limited to 'include')
-rw-r--r--include/linux/blk.h18
-rw-r--r--include/linux/initrd.h16
2 files changed, 16 insertions, 18 deletions
diff --git a/include/linux/blk.h b/include/linux/blk.h
index a09126ffdacc..8523e8f841e3 100644
--- a/include/linux/blk.h
+++ b/include/linux/blk.h
@@ -12,24 +12,6 @@ extern void set_disk_ro(struct gendisk *disk, int flag);
extern void add_disk_randomness(struct gendisk *disk);
extern void rand_initialize_disk(struct gendisk *disk);
-#ifdef CONFIG_BLK_DEV_RAM
-
-extern int rd_doload; /* 1 = load ramdisk, 0 = don't load */
-extern int rd_prompt; /* 1 = prompt for ramdisk, 0 = don't prompt */
-extern int rd_image_start; /* starting block # of image */
-
-#ifdef CONFIG_BLK_DEV_INITRD
-
-#define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */
-
-extern unsigned long initrd_start,initrd_end;
-extern int initrd_below_start_ok; /* 1 if it is not an error if initrd_start < memory_start */
-void initrd_init(void);
-
-#endif /* CONFIG_BLK_DEV_INITRD */
-
-#endif
-
/*
* end_request() and friends. Must be called with the request queue spinlock
* acquired. All functions called within end_request() _must_be_ atomic.
diff --git a/include/linux/initrd.h b/include/linux/initrd.h
new file mode 100644
index 000000000000..d1978c358b12
--- /dev/null
+++ b/include/linux/initrd.h
@@ -0,0 +1,16 @@
+
+#define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */
+
+/* 1 = load ramdisk, 0 = don't load */
+extern int rd_doload;
+
+/* 1 = prompt for ramdisk, 0 = don't prompt */
+extern int rd_prompt;
+
+/* starting block # of image */
+extern int rd_image_start;
+
+/* 1 if it is not an error if initrd_start < memory_start */
+extern int initrd_below_start_ok;
+
+extern unsigned long initrd_start, initrd_end;