1 // for user apps, make sure data size types are defined
5 #define CCPQFCTS_IOC_MAGIC 'Z'
12 } cpqfc_pci_info_struct
;
14 typedef __u32 DriverVer_type
;
18 struct // Peripheral Unit Device
24 struct // Volume Set Address
30 struct // Logical Unit Device (SCSI-3, SCC-2 defined)
43 SCSI3Addr_struct FCP_Nexus;
45 } PassThru_Command_struct;
48 /* this is nearly duplicated in idashare.h */
50 int lc
; /* Controller number */
51 int node
; /* Node (box) number */
52 int ld
; /* Logical Drive on this box, if required */
53 __u32 nexus
; /* SCSI Nexus */
54 void *argp
; /* Argument pointer */
59 char cdb
[16]; /* SCSI CDB for the pass-through */
60 ushort bus
; /* Target bus on the box */
61 ushort pdrive
; /* Physical drive on the box */
62 int len
; /* Length of the data area of the CDB */
63 int sense_len
; /* Length of the sense data */
64 char sense_data
[40]; /* Sense data */
65 void *bufp
; /* Data area for the CDB */
66 char rw_flag
; /* Read CDB or Write CDB */
70 ** Defines for the IOCTLS.
73 #define VENDOR_READ_OPCODE 0x26
74 #define VENDOR_WRITE_OPCODE 0x27
76 #define CPQFCTS_GETPCIINFO _IOR( CCPQFCTS_IOC_MAGIC, 1, cpqfc_pci_info_struct)
77 #define CPQFCTS_GETDRIVVER _IOR( CCPQFCTS_IOC_MAGIC, 9, DriverVer_type)
79 #define CPQFCTS_SCSI_PASSTHRU _IOWR( CCPQFCTS_IOC_MAGIC,11, VENDOR_IOCTL_REQ)
81 /* We would rather have equivalent generic, low-level driver agnostic
82 ioctls that do what CPQFC_IOCTL_FC_TARGET_ADDRESS and
83 CPQFC_IOCTL_FC_TDR 0x5388 do, but currently, we do not have them,
84 consequently applications would have to know they are talking to cpqfc. */
86 /* Used to get Fibre Channel WWN and port_id from device */
87 // #define CPQFC_IOCTL_FC_TARGET_ADDRESS 0x5387
88 #define CPQFC_IOCTL_FC_TARGET_ADDRESS \
89 _IOR( CCPQFCTS_IOC_MAGIC, 13, Scsi_FCTargAddress)
91 /* Used to invoke Target Defice Reset for Fibre Channel */
92 // #define CPQFC_IOCTL_FC_TDR 0x5388
93 #define CPQFC_IOCTL_FC_TDR _IO( CCPQFCTS_IOC_MAGIC, 15)