forked from mirrors/linux
		
	 113d1dd9c8
			
		
	
	
		113d1dd9c8
		
	
	
	
	
		
			
			Updates to the usual drivers (ufs, lpfc, qla2xxx, mpi3mr, libsas). The major update (which causes a conflict with block, see below) is Christoph removing the queue limits and their associated block helpers. The remaining patches are assorted minor fixes and deprecated function updates plus a bit of constification. Signed-off-by: James E.J. Bottomley <James.Bottomley@HansenPartnership.com> -----BEGIN PGP SIGNATURE----- iJwEABMIAEQWIQTnYEDbdso9F2cI+arnQslM7pishQUCZkOnWyYcamFtZXMuYm90 dG9tbGV5QGhhbnNlbnBhcnRuZXJzaGlwLmNvbQAKCRDnQslM7pishYe7AP93XRN/ xnccJbSTTUL4FFGobq2CYXv58Na+FM/b/+/kEAD+PNi0LmHDdDTOaFUblMd9l4lj mpvYLRvJ6ifnHX6WXAg= =PVnL -----END PGP SIGNATURE----- Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi Pull SCSI updates from James Bottomley: "Updates to the usual drivers (ufs, lpfc, qla2xxx, mpi3mr, libsas). The major update (which causes a conflict with block, see below) is Christoph removing the queue limits and their associated block helpers. The remaining patches are assorted minor fixes and deprecated function updates plus a bit of constification" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (141 commits) scsi: mpi3mr: Sanitise num_phys scsi: lpfc: Copyright updates for 14.4.0.2 patches scsi: lpfc: Update lpfc version to 14.4.0.2 scsi: lpfc: Add support for 32 byte CDBs scsi: lpfc: Change lpfc_hba hba_flag member into a bitmask scsi: lpfc: Introduce rrq_list_lock to protect active_rrq_list scsi: lpfc: Clear deferred RSCN processing flag when driver is unloading scsi: lpfc: Update logging of protection type for T10 DIF I/O scsi: lpfc: Change default logging level for unsolicited CT MIB commands scsi: target: Remove unused list 'device_list' scsi: iscsi: Remove unused list 'connlist_err' scsi: ufs: exynos: Add support for Tensor gs101 SoC scsi: ufs: exynos: Add some pa_dbg_ register offsets into drvdata scsi: ufs: exynos: Allow max frequencies up to 267Mhz scsi: ufs: exynos: Add EXYNOS_UFS_OPT_TIMER_TICK_SELECT option scsi: ufs: exynos: Add EXYNOS_UFS_OPT_UFSPR_SECURE option scsi: ufs: dt-bindings: exynos: Add gs101 compatible scsi: qla2xxx: Fix debugfs output for fw_resource_count scsi: qedf: Ensure the copied buf is NUL terminated scsi: bfa: Ensure the copied buf is NUL terminated ...
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| #ifndef _SCSI_SCSI_DRIVER_H
 | |
| #define _SCSI_SCSI_DRIVER_H
 | |
| 
 | |
| #include <linux/blk_types.h>
 | |
| #include <linux/device.h>
 | |
| #include <scsi/scsi_cmnd.h>
 | |
| 
 | |
| struct module;
 | |
| struct request;
 | |
| 
 | |
| struct scsi_driver {
 | |
| 	struct device_driver	gendrv;
 | |
| 
 | |
| 	int (*resume)(struct device *);
 | |
| 	void (*rescan)(struct device *);
 | |
| 	blk_status_t (*init_command)(struct scsi_cmnd *);
 | |
| 	void (*uninit_command)(struct scsi_cmnd *);
 | |
| 	int (*done)(struct scsi_cmnd *);
 | |
| 	int (*eh_action)(struct scsi_cmnd *, int);
 | |
| 	void (*eh_reset)(struct scsi_cmnd *);
 | |
| };
 | |
| #define to_scsi_driver(drv) \
 | |
| 	container_of((drv), struct scsi_driver, gendrv)
 | |
| 
 | |
| #define scsi_register_driver(drv) \
 | |
| 	__scsi_register_driver(drv, THIS_MODULE)
 | |
| int __scsi_register_driver(struct device_driver *, struct module *);
 | |
| #define scsi_unregister_driver(drv) \
 | |
| 	driver_unregister(drv);
 | |
| 
 | |
| extern int scsi_register_interface(struct class_interface *);
 | |
| #define scsi_unregister_interface(intf) \
 | |
| 	class_interface_unregister(intf)
 | |
| 
 | |
| /* make sure not to use it with passthrough commands */
 | |
| static inline struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd)
 | |
| {
 | |
| 	return to_scsi_driver(cmd->device->sdev_gendev.driver);
 | |
| }
 | |
| 
 | |
| #endif /* _SCSI_SCSI_DRIVER_H */
 |