diff options
author | Labun Marcin <Marcin.Labun@intel.com> | 2011-01-25 07:44:11 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-01-26 02:06:55 +0100 |
commit | a8e5382a54aec050e72775d0605466076ef8a4b8 (patch) | |
tree | 0e9313e29e9bf534028be3f993dfb940d15650a8 /platform-intel.h | |
parent | FIX: Reset disk state if disk is missing (diff) | |
download | mdadm-a8e5382a54aec050e72775d0605466076ef8a4b8.tar.xz mdadm-a8e5382a54aec050e72775d0605466076ef8a4b8.zip |
imsm platform: support for Intel(R) SAS controller.
This patch adds platform support for SAS controller(s) built in Intel(R) Patsburg
chipset.
Signed-off-by: Marcin Labun <marcin.labun@intel.com>
Signed-off-by: Artur Wojcik <artur.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'platform-intel.h')
-rw-r--r-- | platform-intel.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/platform-intel.h b/platform-intel.h index 90884361..82cc85e7 100644 --- a/platform-intel.h +++ b/platform-intel.h @@ -115,6 +115,7 @@ static inline int imsm_orom_has_chunk(const struct imsm_orom *orom, int chunk) return !!(orom->sss & (1 << (fs - 1))); } + /** * fls - find last (most-significant) bit set * @x: the word to search @@ -164,15 +165,30 @@ static inline int imsm_orom_default_chunk(const struct imsm_orom *orom) return min(512, (1 << fs)); } + +enum sys_dev_type { + SYS_DEV_UNKNOWN = 0, + SYS_DEV_SAS, + SYS_DEV_SATA, + SYS_DEV_MAX +}; + + struct sys_dev { + enum sys_dev_type type; char *path; + char *pci_id; struct sys_dev *next; }; +char *diskfd_to_devpath(int fd); struct sys_dev *find_driver_devices(const char *bus, const char *driver); +struct sys_dev *find_intel_devices(void); __u16 devpath_to_vendor(const char *dev_path); void free_sys_dev(struct sys_dev **list); const struct imsm_orom *find_imsm_orom(void); int disk_attached_to_hba(int fd, const char *hba_path); char *devt_to_devpath(dev_t dev); int path_attached_to_hba(const char *disk_path, const char *hba_path); +const char *get_sys_dev_type(enum sys_dev_type); + |