25#ifndef __RTCFG_EVENT_H_
26#define __RTCFG_EVENT_H_
28#include <linux/if_ether.h>
29#include <linux/netdevice.h>
31#include <rtcfg_chrdev.h>
33#include <rtnet_internal.h>
34#include <rtnet_rtpc.h>
36#define FLAG_TIMER_STARTED 16
37#define FLAG_TIMER_SHUTDOWN 17
38#define FLAG_TIMER_PENDING 18
40#define _FLAG_TIMER_STARTED (1 << FLAG_TIMER_STARTED)
41#define _FLAG_TIMER_SHUTDOWN (1 << FLAG_TIMER_SHUTDOWN)
42#define _FLAG_TIMER_PENDING (1 << FLAG_TIMER_PENDING)
46 RTCFG_MAIN_SERVER_RUNNING,
49 RTCFG_MAIN_CLIENT_ANNOUNCED,
50 RTCFG_MAIN_CLIENT_ALL_KNOWN,
51 RTCFG_MAIN_CLIENT_ALL_FRAMES,
53 RTCFG_MAIN_CLIENT_READY
57 u8 mac_addr[ETH_ALEN];
62 RTCFG_MAIN_STATE state;
66 rtdm_mutex_t dev_mutex;
67 struct list_head event_calls;
71 unsigned int burstrate;
72#ifdef CONFIG_XENO_OPT_VFILE
73 struct xnvfile_directory proc_entry;
74 struct xnvfile_regular proc_state_vfile;
75 struct xnvfile_regular proc_stations_vfile;
80 unsigned int addr_type;
82#if IS_ENABLED(CONFIG_XENO_DRIVERS_NET_RTIPV4)
86 u8 srv_mac_addr[MAX_ADDR_LEN];
90 unsigned int packet_counter;
92 struct rtskb *stage2_chain;
94 struct rtcfg_station *station_addr_list;
98 u32 clients_configured;
99 struct list_head conn_list;
101 u64 heartbeat_timeout;
106extern struct rtcfg_device device[MAX_RT_DEVICES];
107extern const char *rtcfg_event[];
108extern const char *rtcfg_main_state[];
110int rtcfg_do_main_event(
int ifindex, RTCFG_EVENT event_id,
void *event_data);
111void rtcfg_next_main_state(
int ifindex, RTCFG_MAIN_STATE state);
113void rtcfg_queue_blocking_call(
int ifindex,
struct rt_proc_call *call);
114struct rt_proc_call *rtcfg_dequeue_blocking_call(
int ifindex);
115void rtcfg_complete_cmd(
int ifindex, RTCFG_EVENT event_id,
int result);
116void rtcfg_reset_device(
int ifindex);
118void rtcfg_init_state_machines(
void);
119void rtcfg_cleanup_state_machines(
void);
pipeline_spinlock_t rtdm_lock_t
Lock variable.
Definition driver.h:552