URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 1765 |
Rev 1782 |
#ifndef _RAID0_H
|
#ifndef _RAID0_H
|
#define _RAID0_H
|
#define _RAID0_H
|
|
|
struct strip_zone
|
struct strip_zone
|
{
|
{
|
int zone_offset; /* Zone offset in md_dev */
|
int zone_offset; /* Zone offset in md_dev */
|
int dev_offset; /* Zone offset in real dev */
|
int dev_offset; /* Zone offset in real dev */
|
int size; /* Zone size */
|
int size; /* Zone size */
|
int nb_dev; /* Number of devices attached to the zone */
|
int nb_dev; /* Number of devices attached to the zone */
|
struct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
|
struct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
|
};
|
};
|
|
|
struct raid0_hash
|
struct raid0_hash
|
{
|
{
|
struct strip_zone *zone0, *zone1;
|
struct strip_zone *zone0, *zone1;
|
};
|
};
|
|
|
struct raid0_data
|
struct raid0_data
|
{
|
{
|
struct raid0_hash *hash_table; /* Dynamically allocated */
|
struct raid0_hash *hash_table; /* Dynamically allocated */
|
struct strip_zone *strip_zone; /* This one too */
|
struct strip_zone *strip_zone; /* This one too */
|
int nr_strip_zones;
|
int nr_strip_zones;
|
struct strip_zone *smallest;
|
struct strip_zone *smallest;
|
int nr_zones;
|
int nr_zones;
|
};
|
};
|
|
|
#endif
|
#endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.