Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/cryptodev.h
Show First 20 Lines • Show All 320 Lines • ▼ Show 20 Lines | |||||
#define CIOCCRYPT _IOWR('c', 103, struct crypt_op) | #define CIOCCRYPT _IOWR('c', 103, struct crypt_op) | ||||
#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 cryptotstat { | struct cryptotstat { | ||||
jhb: Can this be removed as well? | |||||
struct timespec acc; /* total accumulated time */ | struct timespec acc; /* total accumulated time */ | ||||
struct timespec min; /* min time */ | struct timespec min; /* min time */ | ||||
struct timespec max; /* max time */ | struct timespec max; /* max time */ | ||||
u_int32_t count; /* number of observations */ | u_int32_t count; /* number of observations */ | ||||
}; | }; | ||||
struct cryptostats { | struct cryptostats { | ||||
u_int32_t cs_ops; /* symmetric crypto ops submitted */ | u_int32_t cs_ops; /* symmetric crypto ops submitted */ | ||||
u_int32_t cs_errs; /* symmetric crypto ops that failed */ | u_int32_t cs_errs; /* symmetric crypto ops that failed */ | ||||
u_int32_t cs_kops; /* asymetric/key ops submitted */ | u_int32_t cs_kops; /* asymetric/key ops submitted */ | ||||
u_int32_t cs_kerrs; /* asymetric/key ops that failed */ | u_int32_t cs_kerrs; /* asymetric/key ops that failed */ | ||||
u_int32_t cs_intrs; /* crypto swi thread activations */ | u_int32_t cs_intrs; /* crypto swi thread activations */ | ||||
u_int32_t cs_rets; /* crypto return thread activations */ | u_int32_t cs_rets; /* crypto return thread activations */ | ||||
u_int32_t cs_blocks; /* symmetric op driver block */ | u_int32_t cs_blocks; /* symmetric op driver block */ | ||||
u_int32_t cs_kblocks; /* symmetric op driver block */ | u_int32_t cs_kblocks; /* symmetric op driver block */ | ||||
/* | |||||
* When CRYPTO_TIMING is defined at compile time and the | |||||
* sysctl debug.crypto is set to 1, the crypto system will | |||||
* accumulate statistics about how long it takes to process | |||||
* crypto requests at various points during processing. | |||||
*/ | |||||
struct cryptotstat cs_invoke; /* crypto_dipsatch -> crypto_invoke */ | |||||
struct cryptotstat cs_done; /* crypto_invoke -> crypto_done */ | |||||
struct cryptotstat cs_cb; /* crypto_done -> callback */ | |||||
struct cryptotstat cs_finis; /* callback -> callback return */ | |||||
}; | }; | ||||
#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 |
Can this be removed as well?