mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add firmware major, minor and micro revsions to the ISP_FC_GETHINFO ioctl
structure.
This commit is contained in:
parent
fbedaa8f05
commit
a556b68e3a
2 changed files with 7 additions and 0 deletions
|
|
@ -394,6 +394,9 @@ ispioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td)
|
|||
struct isp_hba_device *hba = (struct isp_hba_device *) addr;
|
||||
MEMZERO(hba, sizeof (*hba));
|
||||
ISP_LOCK(isp);
|
||||
hba->fc_fw_major = ISP_FW_MAJORX(isp->isp_fwrev);
|
||||
hba->fc_fw_minor = ISP_FW_MINORX(isp->isp_fwrev);
|
||||
hba->fc_fw_micro = ISP_FW_MICROX(isp->isp_fwrev);
|
||||
hba->fc_speed = FCPARAM(isp)->isp_gbspeed;
|
||||
hba->fc_scsi_supported = 1;
|
||||
hba->fc_topology = FCPARAM(isp)->isp_topo + 1;
|
||||
|
|
|
|||
|
|
@ -143,6 +143,10 @@ struct isp_hba_device {
|
|||
fc_scsi_supported : 1,
|
||||
fc_topology : 3,
|
||||
fc_loopid : 8;
|
||||
u_int8_t fc_fw_major;
|
||||
u_int8_t fc_fw_minor;
|
||||
u_int8_t fc_fw_micro;
|
||||
u_int8_t reserved;
|
||||
u_int64_t nvram_node_wwn;
|
||||
u_int64_t nvram_port_wwn;
|
||||
u_int64_t active_node_wwn;
|
||||
|
|
|
|||
Loading…
Reference in a new issue