diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-09 22:42:09 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-10 09:06:58 +0200 |
commit | bceabc95c1c85d793200446fa85f1ddc6313ea29 (patch) | |
tree | 973c8bd8deca9fd69913f2895cc91e0e6114d46c /rtemsbsd/include/rtems/bsd/local/miibus_if.h | |
parent | Add FreeBSD sources as a submodule (diff) | |
download | rtems-libbsd-bceabc95c1c85d793200446fa85f1ddc6313ea29.tar.bz2 |
Move files to match FreeBSD layout
Diffstat (limited to 'rtemsbsd/include/rtems/bsd/local/miibus_if.h')
-rw-r--r-- | rtemsbsd/include/rtems/bsd/local/miibus_if.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/rtemsbsd/include/rtems/bsd/local/miibus_if.h b/rtemsbsd/include/rtems/bsd/local/miibus_if.h new file mode 100644 index 00000000..ec35ca19 --- /dev/null +++ b/rtemsbsd/include/rtems/bsd/local/miibus_if.h @@ -0,0 +1,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_ */ |