OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [block/] [genhd.c] - Diff between revs 199 and 582

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 199 Rev 582
Line 771... Line 771...
        extern void console_map_init(void);
        extern void console_map_init(void);
        extern void cpqarray_init(void);
        extern void cpqarray_init(void);
        struct gendisk *p;
        struct gendisk *p;
        int nr=0;
        int nr=0;
 
 
printk("device_setup1\n");
 
        chr_dev_init();
        chr_dev_init();
printk("device_setup2\n");
 
        blk_dev_init();
        blk_dev_init();
printk("device_setup3\n");
 
        sti();
        sti();
#ifdef CONFIG_BLK_DEV_DAC960
#ifdef CONFIG_BLK_DEV_DAC960
        DAC960_Initialize();
        DAC960_Initialize();
#endif
#endif
#ifdef CONFIG_SCSI
#ifdef CONFIG_SCSI
Line 789... Line 786...
        cpqarray_init();
        cpqarray_init();
#endif
#endif
#ifdef CONFIG_INET
#ifdef CONFIG_INET
        net_dev_init();
        net_dev_init();
#endif
#endif
printk("device_setup4\n");
 
#ifdef CONFIG_CONSOLE
#ifdef CONFIG_CONSOLE
        console_map_init();
        console_map_init();
#endif
#endif
printk("device_setup6\n");
 
 
 
        for (p = gendisk_head ; p ; p=p->next) {
        for (p = gendisk_head ; p ; p=p->next) {
                setup_dev(p);
                setup_dev(p);
                nr += p->nr_real;
                nr += p->nr_real;
        }
        }
printk("device_setup7\n");
 
#ifdef CONFIG_BLK_DEV_RAM
#ifdef CONFIG_BLK_DEV_RAM
#ifdef CONFIG_BLK_DEV_INITRD
#ifdef CONFIG_BLK_DEV_INITRD
printk("device_setup8\n");
 
        if (initrd_start && mount_initrd) initrd_load();
        if (initrd_start && mount_initrd) initrd_load();
        else
        else
#endif
#endif
        rd_load();
        rd_load();
#endif
#endif
printk("device_setup9\n");
 
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.