1 /* Copyright (c) 2009 The Regents of the University of California.
2 * See the COPYRIGHT files at the top of this source tree for full
5 * Kevin Klues <klueska@cs.berkeley.edu>
11 #include <ros/error.h>
12 #include <ros/ring_buffer.h>
15 SYS_begofevents, //Should always be first
17 SYS_shared_page_alloc_event,
18 SYS_shared_page_free_event,
20 SYS_endofevents //Should always be last
23 #define NUM_SYSEVENT_ARGS 6
24 typedef struct sysevent {
26 uint32_t args[NUM_SYSEVENT_ARGS];
29 typedef struct sysevent_rsp {
33 // Generic Sysevent Ring Buffer
34 #define SYSEVENTRINGSIZE PGSIZE
35 DEFINE_RING_TYPES_WITH_SIZE(sysevent, sysevent_t, sysevent_rsp_t, SYSEVENTRINGSIZE);
37 #endif //ROS_SYSEVENT_H