blob: ce59cb121bef8e05f0360793269b58a48bfbdce4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef RTL8139_H
#define RTL8139_H
#include "network.h"
#include "pci.h"
#include "port.h"
typedef struct {
network_t base;
port32_t MAC0_port;
port16_t MAC4_port;
interrupt_handler_t interrupt_handler;
} rtl8139_t;
typedef struct {
network_vtable_t base;
} rtl8139_vtable_t;
void rtl8139_init( rtl8139_t *rtl8139, pci_device_descriptor_t *descriptor, interrupt_t *interrupt, void *context );
void rtl8139_activate( void *obj );
void rtl8139_deactivate( void *obj );
void rtl8139_deinit( void *obj );
void rtl8139_print_info( void *obj );
uint32_t rtl8139_handle_interrupt( interrupt_handler_t *handler, uint32_t esp );
#endif // RTL8139_H
|