Avoids nehalem keyboard issues, better monitors
[akaros.git] / kern / arch / i686 / frontend.h
1 /*
2  * Copyright (c) 2010 The Regents of the University of California
3  * See LICENSE for details.
4  */
5
6 #ifndef ROS_ARCH_FRONTEND_H
7 #define ROS_ARCH_FRONTEND_H
8
9 #define APPSERVER_MAX_PAYLOAD_SIZE 1024
10
11 #define APPSERVER_CMD_LOAD  0
12 #define APPSERVER_CMD_STORE 1
13 #define APPSERVER_CMD_ACK   2
14
15 int handle_appserver_packet(const char *buf, size_t len);
16
17 typedef struct
18 {
19         uint8_t dst_mac[6];
20         uint8_t src_mac[6];
21         uint16_t ethertype;
22         uint8_t cmd;
23         uint8_t seqno;
24         uint32_t payload_size;
25         uint32_t addr;
26 } appserver_packet_header_t;
27
28 typedef struct
29 {
30         appserver_packet_header_t header;
31         uint8_t payload[APPSERVER_MAX_PAYLOAD_SIZE];
32 } appserver_packet_t;
33
34 #endif