* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-
+#include <linux/config.h>
#include <linux/init.h>
#include <linux/major.h>
#include <linux/fs.h>
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( 0xc0800000, 3*1024*1024 );
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
#endif
}
fixup_anakin(struct machine_desc *desc, struct param_struct *unused,
char **cmdline, struct meminfo *mi)
{
- ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR, 0);
setup_ramdisk(1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE);
setup_initrd(0xc0800000, 4 * 1024 * 1024);
}
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <linux/config.h>
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
mi->bank[0].node = 0;
/*
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd(0xc0200000, 6*1024*1024);
*/
* published by the Free Software Foundation.
*
*/
-
+#include <linux/config.h>
#include <linux/init.h>
#include <linux/major.h>
#include <linux/fs.h>
#elif defined(CONFIG_BLK_DEV_INITRD)
setup_ramdisk( 1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE );
setup_initrd( 0xc0800000, 4*1024*1024 );
- ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0); /* /dev/ram */
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR, 0); /* /dev/ram */
#endif
}
*
* Extra MM routines for L7200 architecture
*/
+#include <linux/config.h>
#include <linux/init.h>
#include <asm/hardware.h>
mi->bank[0].size = (32*1024*1024);
mi->bank[0].node = 0;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, CONFIG_BLK_DEV_RAM_SIZE);
setup_initrd( __phys_to_virt(0xf1000000), 0x005dac7b);
#include <asm/mach/map.h>
#include <asm/mach/serial_sa1100.h>
-#include <asm/arch/irq.h>
-
#include "generic.h"
#include "sa1111.h"
SET_BANK( 0, 0xc0000000, 32*1024*1024 );
mi->nr_banks = 1;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
}
SET_BANK( 3, 0xd8000000, 4*1024*1024 );
mi->nr_banks = 4;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( __phys_to_virt(0xd8000000), 3*1024*1024 );
}
/*
* linux/arch/arm/mach-sa1100/cerf.c
*/
-
+#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/tty.h>
#error "Undefined memory size for Cerfboard."
#endif
-// ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+// ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
// setup_ramdisk(1, 0, 0, 8192);
// // Save 2Meg for RAMDisk
// setup_initrd(0xc0500000, 3*1024*1024);
SET_BANK( 1, 0xc8000000, 4*1024*1024 );
mi->nr_banks = 2;
- ROOT_DEV = MKDEV( 3, 1 ); /* /dev/hda1 */
+ ROOT_DEV = mk_kdev( 3, 1 ); /* /dev/hda1 */
setup_ramdisk( 1, 0, 0, 4096 );
setup_initrd( 0xd0000000+((1024-320)*1024), (320*1024) );
}
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-
-#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sched.h>
*
* get_mctrl : set state of modem control lines
* set_mctrl : set the modem control lines
- * enable_ms : enable modem-status interrupts
* pm : power-management. Turn device on/off.
*
*/
{
set_mctrl : flexanet_set_mctrl,
get_mctrl : flexanet_get_mctrl,
- enable_ms : NULL,
pm : NULL,
};
mi->nr_banks = 1;
/* setup ramdisk */
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( 0xc0800000, 3*1024*1024 );
}
#ifdef CONFIG_SA1100_FREEBIRD_OLD
SET_BANK( 0, 0xc0000000, 32*1024*1024 );
mi->nr_banks = 1;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0 ,0 , 8192 );
setup_initrd( 0xc0800000, 3*1024*1024 );
#endif
SET_BANK( 1, 0xc8000000, 16*1024*1024 );
mi->nr_banks = 2;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
}
SET_BANK( 1, 0xc8000000, 16*1024*1024 );
mi->nr_banks = 2;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
}
* linux/arch/arm/mach-sa1100/huw_webpanel.c
*
*/
-
-#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
**/
SET_BANK( 0, 0xc0000000, ((32*1024 - (256 + 32)) * 1024));
mi->nr_banks = 1;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( __phys_to_virt(0xc0800000), 8*1024*1024 );
}
SET_BANK( 0, 0xc0000000, 32*1024*1024 );
mi->nr_banks = 1;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
SET_BANK( 0, 0xc0000000, 16*1024*1024 );
mi->nr_banks = 1;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( __phys_to_virt(0xd0000000), 0x00400000 );
}
/*
* linux/arch/arm/mach-sa1100/pangolin.c
*/
-
+#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/tty.h>
SET_BANK( 0, 0xc0000000, 128*1024*1024 );
mi->nr_banks = 1;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 16384 );
setup_initrd( 0xc0800000, 3*1024*1024 );
}
/*
* linux/arch/arm/mach-sa1100/pfs168.c
*/
-
+#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/tty.h>
SET_BANK( 0, 0xc0000000, 16*1024*1024 );
mi->nr_banks = 1;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( 0xc0800000, 3*1024*1024 );
}
/* make it 1 if a 16MB memory card is used */
mi->nr_banks = 2; /* Default 32MB */
- ROOT_DEV = MKDEV(RAMDISK_MAJOR, 0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR, 0);
setup_ramdisk(1, 0, 0, 8192);
setup_initrd(0xc0400000, 4*1024*1024);
}
SET_BANK( 1, 0xc8000000, 64*1024*1024 );
mi->nr_banks = 2;
- ROOT_DEV = MKDEV( 60, 2 );
+ ROOT_DEV = mk_kdev( 60, 2 );
setup_ramdisk( 1, 0, 0, 8192 );
// setup_initrd( 0xc0400000, 8*1024*1024 );
}
SET_BANK( 0, 0xc0000000, 32*1024*1024 );
#endif
mi->nr_banks = 1;
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
}
#include <asm/mach/irq.h>
#include <asm/mach/serial_sa1100.h>
-#include <asm/arch/irq.h>
-
#include <linux/serial_core.h>
#include "generic.h"
{
DPRINTK( "%s\n", "START" );
- ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
+ ROOT_DEV = mk_kdev(RAMDISK_MAJOR,0);
setup_ramdisk( 1, 0, 0, 8192 );
setup_initrd( 0xc0800000, 8*1024*1024 );
}
SET_BANK( 0, 0xc0000000, 4*1024*1024 );
mi->nr_banks = 1;
- ROOT_DEV = MKDEV( 60, 2 );
+ ROOT_DEV = mk_kdev( 60, 2 );
/* Get command line parameters passed from the loader (if any) */
if( *((char*)0xc0000000) )