Functonal webserver with supporting code changes. WIP COMMIT
[akaros.git] / kern / arch / i386 / nic_common.c
1 /** @file
2  * @brief Common Nic Variables
3  *
4  * See Info below 
5  *
6  * @author Paul Pearce <pearce@eecs.berkeley.edu>
7  *
8  */
9
10 #ifdef __SHARC__
11 #pragma nosharc
12 #endif
13
14 #include <arch/nic_common.h>
15
16 uint8_t eth_up = 0; 
17
18 // Hacky stuff for syscall hack. Go away.
19 uint32_t packet_buffer_count = 0;
20 char* packet_buffer[PACKET_BUFFER_SIZE];
21 uint32_t packet_buffer_sizes[PACKET_BUFFER_SIZE];
22 uint32_t packet_buffer_head = 0;
23 uint32_t packet_buffer_tail = 0;
24 spinlock_t packet_buffer_lock = SPINLOCK_INITIALIZER;
25
26
27 char* (*packet_wrap)(const char *CT(len) data, size_t len);
28 int (*send_frame)(const char *CT(len) data, size_t len);