RTDM interface.
More...
Go to the source code of this file.
|
| #define | DEBUG_RTDM 0 |
| | Set to 1 to enable device operations debugging.
|
RTDM interface.
Definition in file rtdm_xenomai_v3.c.
◆ DEBUG_RTDM
Set to 1 to enable device operations debugging.
Definition at line 38 of file rtdm_xenomai_v3.c.
◆ ec_rtdm_open()
| int ec_rtdm_open |
( |
struct rtdm_fd * | fd, |
|
|
int | oflags ) |
|
static |
◆ ec_rtdm_close()
| void ec_rtdm_close |
( |
struct rtdm_fd * | fd | ) |
|
|
static |
◆ ec_rtdm_ioctl_rt_handler()
| int ec_rtdm_ioctl_rt_handler |
( |
struct rtdm_fd * | fd, |
|
|
unsigned int | request, |
|
|
void __user * | arg ) |
|
static |
◆ ec_rtdm_ioctl_nrt_handler()
| int ec_rtdm_ioctl_nrt_handler |
( |
struct rtdm_fd * | fd, |
|
|
unsigned int | request, |
|
|
void __user * | arg ) |
|
static |
◆ ec_rtdm_mmap()
| int ec_rtdm_mmap |
( |
struct rtdm_fd * | fd, |
|
|
struct vm_area_struct * | vma ) |
|
static |
◆ ec_rtdm_dev_init()
Initialize an RTDM device.
- Returns
- Zero on success, otherwise a negative error code.
- Parameters
-
| rtdm_dev | EtherCAT RTDM device. |
| master | EtherCAT master. |
Definition at line 147 of file rtdm_xenomai_v3.c.
◆ ec_rtdm_dev_clear()
Clear an RTDM device.
- Parameters
-
| rtdm_dev | EtherCAT RTDM device. |
Definition at line 183 of file rtdm_xenomai_v3.c.
◆ ec_rtdm_driver
| struct rtdm_driver ec_rtdm_driver |
|
static |
Initial value: = {
.profile_info = RTDM_PROFILE_INFO(ec_rtdm,
RTDM_CLASS_EXPERIMENTAL,
222,
0),
.device_flags = RTDM_NAMED_DEVICE,
.ops = {
},
}
#define EC_MAX_MASTERS
Maximum number of masters.
int ec_rtdm_mmap(ec_ioctl_context_t *ioctl_ctx, void **user_address)
Memory-map process data to user space.
static int ec_rtdm_close(struct rtdm_dev_context *, rtdm_user_info_t *)
Driver close.
static int ec_rtdm_ioctl_nrt_handler(struct rtdm_dev_context *, rtdm_user_info_t *, unsigned int, void __user *)
Driver ioctl.
static int ec_rtdm_open(struct rtdm_dev_context *, rtdm_user_info_t *, int)
Driver open.
static int ec_rtdm_ioctl_rt_handler(struct rtdm_dev_context *, rtdm_user_info_t *, unsigned int, void __user *)
Context structure for an open RTDM file handle.
Definition at line 128 of file rtdm_xenomai_v3.c.