Split headers up to reduce namespace pollution
[akaros.git] / kern / include / ros / ring_syscall.h
1 #ifndef _ROS_RING_SYSCALL_H
2 #define _ROS_RING_SYSCALL_H
3
4 #include <ros/common.h>
5 #include <ros/ring_buffer.h>
6 #include <ros/sysevent.h>
7
8 #define NUM_SYSCALL_ARGS 6
9 typedef struct syscall_req {
10         uint32_t num;
11         uint32_t flags;
12         uint32_t args[NUM_SYSCALL_ARGS];
13 } syscall_req_t;
14
15 typedef struct syscall_rsp {
16         int32_t retval;
17 } syscall_rsp_t;
18
19 // Generic Syscall Ring Buffer
20 #define SYSCALLRINGSIZE    PGSIZE
21 //DEFINE_RING_TYPES_WITH_SIZE(syscall, syscall_req_t, syscall_rsp_t,
22 //SYSCALLRINGSIZE);
23 DEFINE_RING_TYPES(syscall, syscall_req_t, syscall_rsp_t);
24
25 #endif