Line data Source code
1 :
2 : struct device;
3 :
4 : void *ldv_dev_get_drvdata(const struct device *dev);
5 : int ldv_dev_set_drvdata(struct device *dev, void *data);
6 :
7 : struct spi_master;
8 : struct device;
9 : struct spi_master *ldv_spi_alloc_master(struct device *host, unsigned size);
10 :
11 : #include <linux/ldv/err.h>
12 :
13 : #include <linux/types.h>
14 : void *ldv_kzalloc(size_t size, gfp_t flags);
15 :
16 : struct clk;
17 :
18 : extern void ldv_clk_disable(struct clk *clk);
19 : extern int ldv_clk_enable(void);
20 :
21 : #include <linux/ldv/common.h>
22 : #include <linux/ldv/irq.h>
23 : #include <verifier/common.h>
24 : #include <verifier/nondet.h>
25 : #include <verifier/memory.h>
26 : #include <verifier/thread.h>
27 :
28 : #include <linux/device.h>
29 : #include <linux/platform_device.h>
30 : #include <linux/pm.h>
31 :
32 :
33 : struct ldv_struct_platform_instance_2 {
34 : int signal_pending;
35 : };
36 :
37 : /* EMG Function declarations */
38 :
39 : /* EMG variable declarations */
40 :
41 : /* EMG variable initialization */
42 :
43 : /* EMG function definitions */
44 :
45 : /* AUX_FUNC ERR_PTR */
46 : static inline void *ERR_PTR (long int error)
47 : {
48 :
49 : return ldv_err_ptr(error);
50 : }
51 :
52 : /* AUX_FUNC PTR_ERR */
53 : static inline long int PTR_ERR (void const *ptr)
54 : {
55 :
56 : return ldv_ptr_err(ptr);
57 : }
58 :
59 : /* AUX_FUNC IS_ERR */
60 : static inline long int IS_ERR (void const *ptr)
61 : {
62 :
63 : return ldv_is_err(ptr);
64 : }
65 :
66 : /* AUX_FUNC IS_ERR_OR_NULL */
67 : static inline long int IS_ERR_OR_NULL (void const *ptr)
68 : {
69 :
70 : return ldv_is_err_or_null(ptr);
71 : }
72 :
73 : /* AUX_FUNC kzalloc */
74 : static inline void *kzalloc (size_t size, gfp_t flags)
75 : {
76 :
77 : return ldv_kzalloc(size, flags);
78 : }
79 :
80 : /* AUX_FUNC ldv_dev_get_drvdata_6 */
81 : void *ldv_dev_get_drvdata_6 (struct device const *dev)
82 : {
83 0 :
84 0 : return ldv_dev_get_drvdata(dev);
85 : }
86 :
87 : /* AUX_FUNC ldv_dev_get_drvdata_7 */
88 : void *ldv_dev_get_drvdata_7 (struct device const *dev)
89 : {
90 :
91 : return ldv_dev_get_drvdata(dev);
92 : }
|