FreeBSD kernel CAM code
cam_compat.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ccb_hdr_0x17
 
struct  ccb_pathinq_0x17
 
struct  ccb_trans_settings_0x17
 
struct  ccb_hdr_0x18
 
struct  ccb_trans_settings_0x18
 
struct  dev_match_result_0x18
 

Macros

#define CAM_VERSION_0x16   0x16
 
#define CAMIOCOMMAND_0x16   _IOC(IOC_INOUT, CAM_VERSION_0x16, 2, CAM_0X17_LEN)
 
#define CAMGETPASSTHRU_0x16   _IOC(IOC_INOUT, CAM_VERSION_0x16, 3, CAM_0X17_LEN)
 
#define CAM_SCATTER_VALID_0x16   0x00000010
 
#define CAM_SG_LIST_PHYS_0x16   0x00040000
 
#define CAM_DATA_PHYS_0x16   0x00200000
 
#define CAM_VERSION_0x17   0x17
 
#define CAM_0X17_DATA_LEN   CAM_0X18_DATA_LEN
 
#define CAM_0X17_LEN   (sizeof(struct ccb_hdr_0x17) + CAM_0X17_DATA_LEN)
 
#define CAMIOCOMMAND_0x17   _IOC(IOC_INOUT, CAM_VERSION_0x17, 2, CAM_0X17_LEN)
 
#define CAMGETPASSTHRU_0x17   _IOC(IOC_INOUT, CAM_VERSION_0x17, 3, CAM_0X17_LEN)
 
#define CAM_VERSION_0x18   0x18
 
#define CAM_0X18_DATA_LEN   (sizeof(union ccb) - 2*sizeof(void *) - sizeof(struct ccb_hdr))
 
#define CAM_0X18_LEN   (sizeof(struct ccb_hdr_0x18) + CAM_0X18_DATA_LEN)
 
#define CAMIOCOMMAND_0x18   _IOC(IOC_INOUT, CAM_VERSION_0x18, 2, CAM_0X18_LEN)
 
#define CAMGETPASSTHRU_0x18   _IOC(IOC_INOUT, CAM_VERSION_0x18, 3, CAM_0X18_LEN)
 
#define CAM_VERSION_0x19   0x19
 
#define CAMIOCOMMAND_0x19   _IOWR(CAM_VERSION_0x19, 2, union ccb)
 
#define CAMGETPASSTHRU_0x19   _IOWR(CAM_VERSION_0x19, 3, union ccb)
 
#define CAMIOQUEUE_0x19   _IO(CAM_VERSION_0x19, 4)
 
#define CAMIOGET_0x19   _IO(CAM_VERSION_0x19, 5)
 

Enumerations

enum  ccb_xflags_0x18 { CAM_EXTLUN_VALID_0x18 = 0x00000001 }
 

Functions

int cam_compat_ioctl (struct cdev *dev, u_long cmd, caddr_t addr, int flag, struct thread *td, int(*cbfnp)(struct cdev *, u_long, caddr_t, int, struct thread *))
 

Macro Definition Documentation

◆ CAM_0X17_DATA_LEN

#define CAM_0X17_DATA_LEN   CAM_0X18_DATA_LEN

Definition at line 136 of file cam_compat.h.

◆ CAM_0X17_LEN

#define CAM_0X17_LEN   (sizeof(struct ccb_hdr_0x17) + CAM_0X17_DATA_LEN)

Definition at line 137 of file cam_compat.h.

◆ CAM_0X18_DATA_LEN

#define CAM_0X18_DATA_LEN   (sizeof(union ccb) - 2*sizeof(void *) - sizeof(struct ccb_hdr))

Definition at line 217 of file cam_compat.h.

◆ CAM_0X18_LEN

#define CAM_0X18_LEN   (sizeof(struct ccb_hdr_0x18) + CAM_0X18_DATA_LEN)

Definition at line 218 of file cam_compat.h.

◆ CAM_DATA_PHYS_0x16

#define CAM_DATA_PHYS_0x16   0x00200000

Definition at line 52 of file cam_compat.h.

◆ CAM_SCATTER_VALID_0x16

#define CAM_SCATTER_VALID_0x16   0x00000010

Definition at line 50 of file cam_compat.h.

◆ CAM_SG_LIST_PHYS_0x16

#define CAM_SG_LIST_PHYS_0x16   0x00040000

Definition at line 51 of file cam_compat.h.

◆ CAM_VERSION_0x16

#define CAM_VERSION_0x16   0x16

Definition at line 44 of file cam_compat.h.

◆ CAM_VERSION_0x17

#define CAM_VERSION_0x17   0x17

Definition at line 55 of file cam_compat.h.

◆ CAM_VERSION_0x18

#define CAM_VERSION_0x18   0x18

Definition at line 143 of file cam_compat.h.

◆ CAM_VERSION_0x19

#define CAM_VERSION_0x19   0x19

Definition at line 224 of file cam_compat.h.

◆ CAMGETPASSTHRU_0x16

#define CAMGETPASSTHRU_0x16   _IOC(IOC_INOUT, CAM_VERSION_0x16, 3, CAM_0X17_LEN)

Definition at line 48 of file cam_compat.h.

◆ CAMGETPASSTHRU_0x17

#define CAMGETPASSTHRU_0x17   _IOC(IOC_INOUT, CAM_VERSION_0x17, 3, CAM_0X17_LEN)

Definition at line 140 of file cam_compat.h.

◆ CAMGETPASSTHRU_0x18

#define CAMGETPASSTHRU_0x18   _IOC(IOC_INOUT, CAM_VERSION_0x18, 3, CAM_0X18_LEN)

Definition at line 221 of file cam_compat.h.

◆ CAMGETPASSTHRU_0x19

#define CAMGETPASSTHRU_0x19   _IOWR(CAM_VERSION_0x19, 3, union ccb)

Definition at line 226 of file cam_compat.h.

◆ CAMIOCOMMAND_0x16

#define CAMIOCOMMAND_0x16   _IOC(IOC_INOUT, CAM_VERSION_0x16, 2, CAM_0X17_LEN)

Definition at line 47 of file cam_compat.h.

◆ CAMIOCOMMAND_0x17

#define CAMIOCOMMAND_0x17   _IOC(IOC_INOUT, CAM_VERSION_0x17, 2, CAM_0X17_LEN)

Definition at line 139 of file cam_compat.h.

◆ CAMIOCOMMAND_0x18

#define CAMIOCOMMAND_0x18   _IOC(IOC_INOUT, CAM_VERSION_0x18, 2, CAM_0X18_LEN)

Definition at line 220 of file cam_compat.h.

◆ CAMIOCOMMAND_0x19

#define CAMIOCOMMAND_0x19   _IOWR(CAM_VERSION_0x19, 2, union ccb)

Definition at line 225 of file cam_compat.h.

◆ CAMIOGET_0x19

#define CAMIOGET_0x19   _IO(CAM_VERSION_0x19, 5)

Definition at line 228 of file cam_compat.h.

◆ CAMIOQUEUE_0x19

#define CAMIOQUEUE_0x19   _IO(CAM_VERSION_0x19, 4)

Definition at line 227 of file cam_compat.h.

Enumeration Type Documentation

◆ ccb_xflags_0x18

Enumerator
CAM_EXTLUN_VALID_0x18 

Definition at line 168 of file cam_compat.h.

Function Documentation

◆ cam_compat_ioctl()

int cam_compat_ioctl ( struct cdev *  dev,
u_long  cmd,
caddr_t  addr,
int  flag,
struct thread *  td,
int(*)(struct cdev *, u_long, caddr_t, int, struct thread *)  cbfnp 
)