1 | /* |
---|
2 | * This file is produced automatically. |
---|
3 | * Do not modify anything in here by hand. |
---|
4 | * |
---|
5 | * Created from source file |
---|
6 | * opencrypto/cryptodev_if.m |
---|
7 | * with |
---|
8 | * makeobjops.awk |
---|
9 | * |
---|
10 | * See the source file for legal information |
---|
11 | */ |
---|
12 | |
---|
13 | |
---|
14 | #ifndef _cryptodev_if_h_ |
---|
15 | #define _cryptodev_if_h_ |
---|
16 | |
---|
17 | /** @brief Unique descriptor for the CRYPTODEV_NEWSESSION() method */ |
---|
18 | extern struct kobjop_desc cryptodev_newsession_desc; |
---|
19 | /** @brief A function implementing the CRYPTODEV_NEWSESSION() method */ |
---|
20 | typedef int cryptodev_newsession_t(device_t dev, uint32_t *sid, |
---|
21 | struct cryptoini *cri); |
---|
22 | |
---|
23 | static __inline int CRYPTODEV_NEWSESSION(device_t dev, uint32_t *sid, |
---|
24 | struct cryptoini *cri) |
---|
25 | { |
---|
26 | kobjop_t _m; |
---|
27 | KOBJOPLOOKUP(((kobj_t)dev)->ops,cryptodev_newsession); |
---|
28 | return ((cryptodev_newsession_t *) _m)(dev, sid, cri); |
---|
29 | } |
---|
30 | |
---|
31 | /** @brief Unique descriptor for the CRYPTODEV_FREESESSION() method */ |
---|
32 | extern struct kobjop_desc cryptodev_freesession_desc; |
---|
33 | /** @brief A function implementing the CRYPTODEV_FREESESSION() method */ |
---|
34 | typedef int cryptodev_freesession_t(device_t dev, uint64_t sid); |
---|
35 | |
---|
36 | static __inline int CRYPTODEV_FREESESSION(device_t dev, uint64_t sid) |
---|
37 | { |
---|
38 | kobjop_t _m; |
---|
39 | KOBJOPLOOKUP(((kobj_t)dev)->ops,cryptodev_freesession); |
---|
40 | return ((cryptodev_freesession_t *) _m)(dev, sid); |
---|
41 | } |
---|
42 | |
---|
43 | /** @brief Unique descriptor for the CRYPTODEV_PROCESS() method */ |
---|
44 | extern struct kobjop_desc cryptodev_process_desc; |
---|
45 | /** @brief A function implementing the CRYPTODEV_PROCESS() method */ |
---|
46 | typedef int cryptodev_process_t(device_t dev, struct cryptop *op, int flags); |
---|
47 | |
---|
48 | static __inline int CRYPTODEV_PROCESS(device_t dev, struct cryptop *op, |
---|
49 | int flags) |
---|
50 | { |
---|
51 | kobjop_t _m; |
---|
52 | KOBJOPLOOKUP(((kobj_t)dev)->ops,cryptodev_process); |
---|
53 | return ((cryptodev_process_t *) _m)(dev, op, flags); |
---|
54 | } |
---|
55 | |
---|
56 | /** @brief Unique descriptor for the CRYPTODEV_KPROCESS() method */ |
---|
57 | extern struct kobjop_desc cryptodev_kprocess_desc; |
---|
58 | /** @brief A function implementing the CRYPTODEV_KPROCESS() method */ |
---|
59 | typedef int cryptodev_kprocess_t(device_t dev, struct cryptkop *op, int flags); |
---|
60 | |
---|
61 | static __inline int CRYPTODEV_KPROCESS(device_t dev, struct cryptkop *op, |
---|
62 | int flags) |
---|
63 | { |
---|
64 | kobjop_t _m; |
---|
65 | KOBJOPLOOKUP(((kobj_t)dev)->ops,cryptodev_kprocess); |
---|
66 | return ((cryptodev_kprocess_t *) _m)(dev, op, flags); |
---|
67 | } |
---|
68 | |
---|
69 | #endif /* _cryptodev_if_h_ */ |
---|