Changeset View
Changeset View
Standalone View
Standalone View
head/sys/opencrypto/cryptodev.h
Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | |||||
#define CIOCKEY _IOWR('c', 104, struct crypt_kop) | #define CIOCKEY _IOWR('c', 104, struct crypt_kop) | ||||
#define CIOCASYMFEAT _IOR('c', 105, u_int32_t) | #define CIOCASYMFEAT _IOR('c', 105, u_int32_t) | ||||
#define CIOCGSESSION2 _IOWR('c', 106, struct session2_op) | #define CIOCGSESSION2 _IOWR('c', 106, struct session2_op) | ||||
#define CIOCKEY2 _IOWR('c', 107, struct crypt_kop) | #define CIOCKEY2 _IOWR('c', 107, struct crypt_kop) | ||||
#define CIOCFINDDEV _IOWR('c', 108, struct crypt_find_op) | #define CIOCFINDDEV _IOWR('c', 108, struct crypt_find_op) | ||||
#define CIOCCRYPTAEAD _IOWR('c', 109, struct crypt_aead) | #define CIOCCRYPTAEAD _IOWR('c', 109, struct crypt_aead) | ||||
struct cryptostats { | struct cryptostats { | ||||
u_int32_t cs_ops; /* symmetric crypto ops submitted */ | uint64_t cs_ops; /* symmetric crypto ops submitted */ | ||||
u_int32_t cs_errs; /* symmetric crypto ops that failed */ | uint64_t cs_errs; /* symmetric crypto ops that failed */ | ||||
u_int32_t cs_kops; /* asymetric/key ops submitted */ | uint64_t cs_kops; /* asymetric/key ops submitted */ | ||||
u_int32_t cs_kerrs; /* asymetric/key ops that failed */ | uint64_t cs_kerrs; /* asymetric/key ops that failed */ | ||||
u_int32_t cs_intrs; /* crypto swi thread activations */ | uint64_t cs_intrs; /* crypto swi thread activations */ | ||||
u_int32_t cs_rets; /* crypto return thread activations */ | uint64_t cs_rets; /* crypto return thread activations */ | ||||
u_int32_t cs_blocks; /* symmetric op driver block */ | uint64_t cs_blocks; /* symmetric op driver block */ | ||||
u_int32_t cs_kblocks; /* symmetric op driver block */ | uint64_t cs_kblocks; /* symmetric op driver block */ | ||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* | /* | ||||
* Return values for cryptodev_probesession methods. | * Return values for cryptodev_probesession methods. | ||||
*/ | */ | ||||
#define CRYPTODEV_PROBE_HARDWARE (-100) | #define CRYPTODEV_PROBE_HARDWARE (-100) | ||||
▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines |