1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/*
* This file is produced automatically.
* Do not modify anything in here by hand.
*
* Created from source file
* dev/mii/miibus_if.m
* with
* makeobjops.awk
*
* See the source file for legal information
*/
#ifndef _miibus_if_h_
#define _miibus_if_h_
/** @brief Unique descriptor for the MIIBUS_READREG() method */
extern struct kobjop_desc miibus_readreg_desc;
/** @brief A function implementing the MIIBUS_READREG() method */
typedef int miibus_readreg_t(device_t dev, int phy, int reg);
static __inline int MIIBUS_READREG(device_t dev, int phy, int reg)
{
kobjop_t _m;
KOBJOPLOOKUP(((kobj_t)dev)->ops,miibus_readreg);
return ((miibus_readreg_t *) _m)(dev, phy, reg);
}
/** @brief Unique descriptor for the MIIBUS_WRITEREG() method */
extern struct kobjop_desc miibus_writereg_desc;
/** @brief A function implementing the MIIBUS_WRITEREG() method */
typedef int miibus_writereg_t(device_t dev, int phy, int reg, int val);
static __inline int MIIBUS_WRITEREG(device_t dev, int phy, int reg, int val)
{
kobjop_t _m;
KOBJOPLOOKUP(((kobj_t)dev)->ops,miibus_writereg);
return ((miibus_writereg_t *) _m)(dev, phy, reg, val);
}
/** @brief Unique descriptor for the MIIBUS_STATCHG() method */
extern struct kobjop_desc miibus_statchg_desc;
/** @brief A function implementing the MIIBUS_STATCHG() method */
typedef void miibus_statchg_t(device_t dev);
static __inline void MIIBUS_STATCHG(device_t dev)
{
kobjop_t _m;
KOBJOPLOOKUP(((kobj_t)dev)->ops,miibus_statchg);
((miibus_statchg_t *) _m)(dev);
}
/** @brief Unique descriptor for the MIIBUS_LINKCHG() method */
extern struct kobjop_desc miibus_linkchg_desc;
/** @brief A function implementing the MIIBUS_LINKCHG() method */
typedef void miibus_linkchg_t(device_t dev);
static __inline void MIIBUS_LINKCHG(device_t dev)
{
kobjop_t _m;
KOBJOPLOOKUP(((kobj_t)dev)->ops,miibus_linkchg);
((miibus_linkchg_t *) _m)(dev);
}
/** @brief Unique descriptor for the MIIBUS_MEDIAINIT() method */
extern struct kobjop_desc miibus_mediainit_desc;
/** @brief A function implementing the MIIBUS_MEDIAINIT() method */
typedef void miibus_mediainit_t(device_t dev);
static __inline void MIIBUS_MEDIAINIT(device_t dev)
{
kobjop_t _m;
KOBJOPLOOKUP(((kobj_t)dev)->ops,miibus_mediainit);
((miibus_mediainit_t *) _m)(dev);
}
#endif /* _miibus_if_h_ */
|