source: rtems-libbsd/rtemsbsd/include/rtems/bsd/local/cryptodev_if.h @ c1205ee

55-freebsd-126-freebsd-12
Last change on this file since c1205ee was bceabc9, checked in by Sebastian Huber <sebastian.huber@…>, on 10/09/13 at 20:42:09

Move files to match FreeBSD layout

  • Property mode set to 100644
File size: 2.3 KB
Line 
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 */
18extern struct kobjop_desc cryptodev_newsession_desc;
19/** @brief A function implementing the CRYPTODEV_NEWSESSION() method */
20typedef int cryptodev_newsession_t(device_t dev, uint32_t *sid,
21                                   struct cryptoini *cri);
22
23static __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 */
32extern struct kobjop_desc cryptodev_freesession_desc;
33/** @brief A function implementing the CRYPTODEV_FREESESSION() method */
34typedef int cryptodev_freesession_t(device_t dev, uint64_t sid);
35
36static __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 */
44extern struct kobjop_desc cryptodev_process_desc;
45/** @brief A function implementing the CRYPTODEV_PROCESS() method */
46typedef int cryptodev_process_t(device_t dev, struct cryptop *op, int flags);
47
48static __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 */
57extern struct kobjop_desc cryptodev_kprocess_desc;
58/** @brief A function implementing the CRYPTODEV_KPROCESS() method */
59typedef int cryptodev_kprocess_t(device_t dev, struct cryptkop *op, int flags);
60
61static __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_ */
Note: See TracBrowser for help on using the repository browser.