Changeset View
Changeset View
Standalone View
Standalone View
head/sys/opencrypto/cryptodev.h
Show First 20 Lines • Show All 614 Lines • ▼ Show 20 Lines | |||||
MALLOC_DECLARE(M_CRYPTO_DATA); | MALLOC_DECLARE(M_CRYPTO_DATA); | ||||
extern int crypto_newsession(crypto_session_t *cses, | extern int crypto_newsession(crypto_session_t *cses, | ||||
const struct crypto_session_params *params, int hard); | const struct crypto_session_params *params, int hard); | ||||
extern void crypto_freesession(crypto_session_t cses); | extern void crypto_freesession(crypto_session_t cses); | ||||
#define CRYPTOCAP_F_HARDWARE CRYPTO_FLAG_HARDWARE | #define CRYPTOCAP_F_HARDWARE CRYPTO_FLAG_HARDWARE | ||||
#define CRYPTOCAP_F_SOFTWARE CRYPTO_FLAG_SOFTWARE | #define CRYPTOCAP_F_SOFTWARE CRYPTO_FLAG_SOFTWARE | ||||
#define CRYPTOCAP_F_SYNC 0x04000000 /* operates synchronously */ | #define CRYPTOCAP_F_SYNC 0x04000000 /* operates synchronously */ | ||||
#define CRYPTOCAP_F_ACCEL_SOFTWARE 0x08000000 | |||||
extern int32_t crypto_get_driverid(device_t dev, size_t session_size, | extern int32_t crypto_get_driverid(device_t dev, size_t session_size, | ||||
int flags); | int flags); | ||||
extern int crypto_find_driver(const char *); | extern int crypto_find_driver(const char *); | ||||
extern device_t crypto_find_device_byhid(int hid); | extern device_t crypto_find_device_byhid(int hid); | ||||
extern int crypto_getcaps(int hid); | extern int crypto_getcaps(int hid); | ||||
extern int crypto_kregister(u_int32_t, int, u_int32_t); | extern int crypto_kregister(u_int32_t, int, u_int32_t); | ||||
extern int crypto_unregister_all(u_int32_t driverid); | extern int crypto_unregister_all(u_int32_t driverid); | ||||
extern int crypto_dispatch(struct cryptop *crp); | extern int crypto_dispatch(struct cryptop *crp); | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |