Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | |
| 3 | #define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */ |
| 4 | |
| 5 | /* 1 = load ramdisk, 0 = don't load */ |
| 6 | extern int rd_doload; |
| 7 | |
| 8 | /* 1 = prompt for ramdisk, 0 = don't prompt */ |
| 9 | extern int rd_prompt; |
| 10 | |
| 11 | /* starting block # of image */ |
| 12 | extern int rd_image_start; |
| 13 | |
Bart Van Assche | 287f3ca | 2017-07-10 15:51:10 -0700 | [diff] [blame] | 14 | /* size of a single RAM disk */ |
| 15 | extern unsigned long rd_size; |
| 16 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | /* 1 if it is not an error if initrd_start < memory_start */ |
| 18 | extern int initrd_below_start_ok; |
| 19 | |
| 20 | /* free_initrd_mem always gets called with the next two as arguments.. */ |
| 21 | extern unsigned long initrd_start, initrd_end; |
| 22 | extern void free_initrd_mem(unsigned long, unsigned long); |
| 23 | |
Florian Fainelli | b1ab95c | 2018-11-05 14:54:27 -0800 | [diff] [blame^] | 24 | extern phys_addr_t phys_initrd_start; |
| 25 | extern unsigned long phys_initrd_size; |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | extern unsigned int real_root_dev; |