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

Subversion Repositories or1k

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

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

Rev 199 Rev 582
Line 724... Line 724...
int blk_dev_init(void)
int blk_dev_init(void)
{
{
        struct request * req;
        struct request * req;
        struct blk_dev_struct *dev;
        struct blk_dev_struct *dev;
 
 
printk("blk_dev_init1\n");
 
        for (dev = blk_dev + MAX_BLKDEV; dev-- != blk_dev;) {
        for (dev = blk_dev + MAX_BLKDEV; dev-- != blk_dev;) {
                dev->request_fn      = NULL;
                dev->request_fn      = NULL;
                dev->current_request = NULL;
                dev->current_request = NULL;
                dev->plug.rq_status  = RQ_INACTIVE;
                dev->plug.rq_status  = RQ_INACTIVE;
                dev->plug.cmd        = -1;
                dev->plug.cmd        = -1;
Line 741... Line 740...
        while (--req >= all_requests) {
        while (--req >= all_requests) {
                req->rq_status = RQ_INACTIVE;
                req->rq_status = RQ_INACTIVE;
                req->next = NULL;
                req->next = NULL;
        }
        }
        memset(ro_bits,0,sizeof(ro_bits));
        memset(ro_bits,0,sizeof(ro_bits));
printk("blk_dev_init2\n");
 
#ifdef CONFIG_BLK_DEV_RAM
#ifdef CONFIG_BLK_DEV_RAM
        rd_init();
        rd_init();
#endif
#endif
printk("blk_dev_init3\n");
 
#ifdef CONFIG_BLK_DEV_BLKMEM
#ifdef CONFIG_BLK_DEV_BLKMEM
        blkmem_init();
        blkmem_init();
#endif
#endif
printk("blk_dev_init4\n");
 
#ifdef CONFIG_DEV_FLASH
#ifdef CONFIG_DEV_FLASH
        flash_init(); /* this also does the char dev if need be */
        flash_init(); /* this also does the char dev if need be */
#endif
#endif
#ifdef CONFIG_BLK_DEV_LOOP
#ifdef CONFIG_BLK_DEV_LOOP
        loop_init();
        loop_init();
Line 811... Line 807...
        sjcd_init();
        sjcd_init();
#endif CONFIG_SJCD
#endif CONFIG_SJCD
#ifdef CONFIG_BLK_DEV_MD
#ifdef CONFIG_BLK_DEV_MD
        md_init();
        md_init();
#endif CONFIG_BLK_DEV_MD
#endif CONFIG_BLK_DEV_MD
printk("blk_dev_init5\n");
 
        return 0;
        return 0;
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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