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

Subversion Repositories or1k_old

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _RAID5_H
2
#define _RAID5_H
3
 
4
#include <linux/md.h>
5
#include <asm/atomic.h>
6
 
7
struct disk_info {
8
        kdev_t  dev;
9
        int     operational;
10
        int     number;
11
        int     raid_disk;
12
};
13
 
14
struct raid5_data {
15
        struct md_dev           *mddev;
16
        struct md_thread        *thread;
17
        struct disk_info        disks[MD_SB_DISKS];
18
        int                     buffer_size;
19
        int                     chunk_size, level, algorithm;
20
        int                     raid_disks, working_disks, failed_disks;
21
        int                     sector_count;
22
        unsigned long           next_sector;
23
        atomic_t                nr_handle;
24
};
25
 
26
/*
27
 * Our supported algorithms
28
 */
29
#define ALGORITHM_LEFT_ASYMMETRIC       0
30
#define ALGORITHM_RIGHT_ASYMMETRIC      1
31
#define ALGORITHM_LEFT_SYMMETRIC        2
32
#define ALGORITHM_RIGHT_SYMMETRIC       3
33
 
34
#endif

powered by: WebSVN 2.1.0

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