27 #define IORN_IOPORT 0x1
28 #define IORN_IOMEM 0x2
30 typedef struct rt_ioregion_placeholder {
32 } RT_IOREGION_PLACEHOLDER;
34 #if defined(__KERNEL__) || defined(__XENO_SIM__)
38 #define XENO_IOREGION_MAGIC 0x55550b0b
40 typedef struct rt_ioregion {
50 char name[XNOBJECT_NAME_LEN];
58 #define rlink2ioregion(ln) container_of(ln, RT_IOREGION, rlink)
64 int rt_ioregion_delete(RT_IOREGION *iorn);
66 static inline void __native_ioregion_flush_rq(xnqueue_t *rq)
68 #ifdef CONFIG_XENO_OPT_PERVASIVE
69 xeno_flush_rq(RT_IOREGION, rq, ioregion);
73 static inline int __native_misc_pkg_init(
void)
78 static inline void __native_misc_pkg_cleanup(
void)
80 #ifdef CONFIG_XENO_OPT_PERVASIVE
81 __native_ioregion_flush_rq(&__native_global_rholder.ioregionq);
87 typedef RT_IOREGION_PLACEHOLDER RT_IOREGION;
95 int rt_io_get_region(RT_IOREGION *iorn,
101 int rt_io_put_region(RT_IOREGION *iorn);
This file is part of the Xenomai project.
This file is part of the Xenomai project.