zfcp_ext.h (daab7fc734a53fdeaf844b7c03053118ad1769da) | zfcp_ext.h (1daa4eb50fa5cd4c8f9c55452606e786fd42053b) |
---|---|
1/* 2 * zfcp device driver 3 * 4 * External function declarations. 5 * 6 * Copyright IBM Corporation 2002, 2010 7 */ 8 9#ifndef ZFCP_EXT_H 10#define ZFCP_EXT_H 11 12#include <linux/types.h> 13#include <scsi/fc/fc_els.h> 14#include "zfcp_def.h" 15#include "zfcp_fc.h" 16 17/* zfcp_aux.c */ | 1/* 2 * zfcp device driver 3 * 4 * External function declarations. 5 * 6 * Copyright IBM Corporation 2002, 2010 7 */ 8 9#ifndef ZFCP_EXT_H 10#define ZFCP_EXT_H 11 12#include <linux/types.h> 13#include <scsi/fc/fc_els.h> 14#include "zfcp_def.h" 15#include "zfcp_fc.h" 16 17/* zfcp_aux.c */ |
18extern struct zfcp_unit *zfcp_get_unit_by_lun(struct zfcp_port *, u64); | |
19extern struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *, u64); 20extern struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *); 21extern struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *, u64, u32, 22 u32); | 18extern struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *, u64); 19extern struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *); 20extern struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *, u64, u32, 21 u32); |
23extern struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *, u64); | |
24extern void zfcp_sg_free_table(struct scatterlist *, int); 25extern int zfcp_sg_setup_table(struct scatterlist *, int); 26extern void zfcp_device_unregister(struct device *, 27 const struct attribute_group *); 28extern void zfcp_adapter_release(struct kref *); 29extern void zfcp_adapter_unregister(struct zfcp_adapter *); 30 31/* zfcp_ccw.c */ --- 126 unchanged lines hidden (view full) --- 158extern struct zfcp_data zfcp_data; 159extern int zfcp_adapter_scsi_register(struct zfcp_adapter *); 160extern void zfcp_adapter_scsi_unregister(struct zfcp_adapter *); 161extern struct fc_function_template zfcp_transport_functions; 162extern void zfcp_scsi_rport_work(struct work_struct *); 163extern void zfcp_scsi_schedule_rport_register(struct zfcp_port *); 164extern void zfcp_scsi_schedule_rport_block(struct zfcp_port *); 165extern void zfcp_scsi_schedule_rports_block(struct zfcp_adapter *); | 22extern void zfcp_sg_free_table(struct scatterlist *, int); 23extern int zfcp_sg_setup_table(struct scatterlist *, int); 24extern void zfcp_device_unregister(struct device *, 25 const struct attribute_group *); 26extern void zfcp_adapter_release(struct kref *); 27extern void zfcp_adapter_unregister(struct zfcp_adapter *); 28 29/* zfcp_ccw.c */ --- 126 unchanged lines hidden (view full) --- 156extern struct zfcp_data zfcp_data; 157extern int zfcp_adapter_scsi_register(struct zfcp_adapter *); 158extern void zfcp_adapter_scsi_unregister(struct zfcp_adapter *); 159extern struct fc_function_template zfcp_transport_functions; 160extern void zfcp_scsi_rport_work(struct work_struct *); 161extern void zfcp_scsi_schedule_rport_register(struct zfcp_port *); 162extern void zfcp_scsi_schedule_rport_block(struct zfcp_port *); 163extern void zfcp_scsi_schedule_rports_block(struct zfcp_adapter *); |
166extern void zfcp_scsi_scan(struct zfcp_unit *); 167extern void zfcp_scsi_scan_work(struct work_struct *); | |
168extern void zfcp_scsi_set_prot(struct zfcp_adapter *); 169extern void zfcp_scsi_dif_sense_error(struct scsi_cmnd *, int); 170 171/* zfcp_sysfs.c */ 172extern struct attribute_group zfcp_sysfs_unit_attrs; 173extern struct attribute_group zfcp_sysfs_adapter_attrs; 174extern struct attribute_group zfcp_sysfs_port_attrs; 175extern struct device_attribute *zfcp_sysfs_sdev_attrs[]; 176extern struct device_attribute *zfcp_sysfs_shost_attrs[]; 177 | 164extern void zfcp_scsi_set_prot(struct zfcp_adapter *); 165extern void zfcp_scsi_dif_sense_error(struct scsi_cmnd *, int); 166 167/* zfcp_sysfs.c */ 168extern struct attribute_group zfcp_sysfs_unit_attrs; 169extern struct attribute_group zfcp_sysfs_adapter_attrs; 170extern struct attribute_group zfcp_sysfs_port_attrs; 171extern struct device_attribute *zfcp_sysfs_sdev_attrs[]; 172extern struct device_attribute *zfcp_sysfs_shost_attrs[]; 173 |
174/* zfcp_unit.c */ 175extern int zfcp_unit_add(struct zfcp_port *, u64); 176extern int zfcp_unit_remove(struct zfcp_port *, u64); 177extern struct zfcp_unit *zfcp_unit_find(struct zfcp_port *, u64); 178extern struct scsi_device *zfcp_unit_sdev(struct zfcp_unit *unit); 179extern void zfcp_unit_scsi_scan(struct zfcp_unit *); 180extern void zfcp_unit_queue_scsi_scan(struct zfcp_port *); 181extern unsigned int zfcp_unit_sdev_status(struct zfcp_unit *); 182 |
|
178#endif /* ZFCP_EXT_H */ | 183#endif /* ZFCP_EXT_H */ |