ACPI: pci_root: simplify list traversals
[linux-2.6/linux-acpi-2.6.git] / drivers / md / linear.h
blobbf8179587f950b2ace4eba54a73abaf4960463ab
1 #ifndef _LINEAR_H
2 #define _LINEAR_H
4 struct dev_info {
5 mdk_rdev_t *rdev;
6 sector_t num_sectors;
7 sector_t start_sector;
8 };
10 typedef struct dev_info dev_info_t;
12 struct linear_private_data
14 struct linear_private_data *prev; /* earlier version */
15 dev_info_t **hash_table;
16 sector_t spacing;
17 sector_t array_sectors;
18 int sector_shift; /* shift before dividing
19 * by spacing
21 dev_info_t disks[0];
25 typedef struct linear_private_data linear_conf_t;
27 #define mddev_to_conf(mddev) ((linear_conf_t *) mddev->private)
29 #endif