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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [raid1.h] - Blame information for rev 1633

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _RAID1_H
2
#define _RAID1_H
3
 
4
#include <linux/md.h>
5
 
6
struct mirror_info {
7
        int             number;
8
        int             raid_disk;
9
        kdev_t          dev;
10
        int             operational;
11
        int             next;
12
        int             sect_limit;
13
};
14
 
15
struct raid1_data {
16
        struct md_dev *mddev;
17
        struct mirror_info mirrors[MD_SB_DISKS];        /* RAID1 devices, 2 to MD_SB_DISKS */
18
        int raid_disks;
19
        int working_disks;                      /* Number of working disks */
20
        int last_used;
21
        unsigned long   next_sect;
22
        int             sect_count;
23
};
24
 
25
/*
26
 * this is our 'private' 'collective' RAID1 buffer head.
27
 * it contains information about what kind of IO operations were started
28
 * for this RAID5 operation, and about their status:
29
 */
30
 
31
struct raid1_bh {
32
        unsigned int remaining;
33
        unsigned int state;
34
        int cmd;
35
        struct md_dev *mddev;                    /* we could use bh->personality? */
36
        struct buffer_head *master_bh;
37
        struct buffer_head *mirror_bh [MD_SB_DISKS];
38
        struct buffer_head *next_retry;
39
};
40
 
41
#endif

powered by: WebSVN 2.1.0

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