forked from truenas/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Early prototype: Admin command passthrough
- Loading branch information
Showing
4 changed files
with
199 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,9 @@ | |
#include "mpt3sas_trigger_diag.h" | ||
#include "mpt3sas_trigger_pages.h" | ||
|
||
#include <linux/nvme.h> | ||
#include <linux/nvme_ioctl.h> | ||
|
||
/* driver versioning info */ | ||
#define MPT3SAS_DRIVER_NAME "mpt3sas" | ||
#define MPT3SAS_AUTHOR "Avago Technologies <[email protected]>" | ||
|
@@ -1844,6 +1847,9 @@ mpt3sas_raid_device_find_by_handle(struct MPT3SAS_ADAPTER *ioc, u16 handle); | |
void mpt3sas_scsih_change_queue_depth(struct scsi_device *sdev, int qdepth); | ||
struct _sas_device * | ||
__mpt3sas_get_sdev_by_rphy(struct MPT3SAS_ADAPTER *ioc, struct sas_rphy *rphy); | ||
struct _pcie_device * | ||
__mpt3sas_get_pdev_from_target(struct MPT3SAS_ADAPTER *ioc, | ||
struct MPT3SAS_TARGET *tgt_priv); | ||
struct virtual_phy * | ||
mpt3sas_get_vphy_by_phy(struct MPT3SAS_ADAPTER *ioc, | ||
struct hba_port *port, u32 phy); | ||
|
@@ -2052,6 +2058,10 @@ void mpt3sas_setup_debugfs(struct MPT3SAS_ADAPTER *ioc); | |
void mpt3sas_destroy_debugfs(struct MPT3SAS_ADAPTER *ioc); | ||
void mpt3sas_init_debugfs(void); | ||
void mpt3sas_exit_debugfs(void); | ||
int mpt3_nvme_user_cmd64(struct scsi_device *sdev, | ||
struct nvme_passthru_cmd64 __user *ucmd); | ||
int mpt3_nvme_user_cmd(struct scsi_device *sdev, | ||
struct nvme_passthru_cmd __user *ucmd); | ||
|
||
/** | ||
* _scsih_is_pcie_scsi_device - determines if device is an pcie scsi device | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters