blob: d77fe34fb00a0c23b36d6698ab385ea9553d282e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002
3#define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */
4
5/* 1 = load ramdisk, 0 = don't load */
6extern int rd_doload;
7
8/* 1 = prompt for ramdisk, 0 = don't prompt */
9extern int rd_prompt;
10
11/* starting block # of image */
12extern int rd_image_start;
13
Bart Van Assche287f3ca2017-07-10 15:51:10 -070014/* size of a single RAM disk */
15extern unsigned long rd_size;
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017/* 1 if it is not an error if initrd_start < memory_start */
18extern int initrd_below_start_ok;
19
20/* free_initrd_mem always gets called with the next two as arguments.. */
21extern unsigned long initrd_start, initrd_end;
22extern void free_initrd_mem(unsigned long, unsigned long);
23
Florian Fainellib1ab95c2018-11-05 14:54:27 -080024extern phys_addr_t phys_initrd_start;
25extern unsigned long phys_initrd_size;
26
Linus Torvalds1da177e2005-04-16 15:20:36 -070027extern unsigned int real_root_dev;
Shunyong Yang98a455d2018-12-18 14:02:45 +080028
29extern char __initramfs_start[];
30extern unsigned long __initramfs_size;