Moved all NIC related stuff into rl8168.c/h from testing. Cleaned up nic code
[akaros.git] / include / rl8168.h
1 #ifndef ROS_INC_REALTEK_H
2 #define ROS_INC_REALTEK_H
3
4 #include <arch/types.h>
5 #include <trap.h>
6
7 void init_nic(void);
8 void nic_interrupt_handler(trapframe_t *tf, void* data);
9 int scan_pci(void);
10 void read_mac(void);
11 void setup_interrupts(void);
12 void setup_rx_descriptors(void);
13 void configure_nic(void);
14 void poll_rx_descriptors(void);
15 void nic_handle_rx_packet(void);
16
17
18 #endif /* !ROS_INC_REALTEK_H */