diff options
author | Marvin Borner | 2020-11-21 13:13:00 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-21 13:13:00 +0100 |
commit | 5c0ab661d3af07186c1fb1c8a8b22d3a894b1be1 (patch) | |
tree | 2cc01ae6c1ba47b77bb49a7d403fbb0c8dd9b957 /kernel/inc | |
parent | ad5f905cd32af320fcf6e1bb2db0f18959e924e5 (diff) |
Added net_installed check
Diffstat (limited to 'kernel/inc')
-rw-r--r-- | kernel/inc/net.h | 1 | ||||
-rw-r--r-- | kernel/inc/rtl8139.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/kernel/inc/net.h b/kernel/inc/net.h index ddc2405..9a305a1 100644 --- a/kernel/inc/net.h +++ b/kernel/inc/net.h @@ -163,6 +163,7 @@ void net_send(struct socket *socket, void *data, u32 len); int net_receive(struct socket *socket, void *buf, u32 len); int net_data_available(struct socket *socket); +int net_installed(void); void net_install(void); #endif diff --git a/kernel/inc/rtl8139.h b/kernel/inc/rtl8139.h index faeb3f6..bbb904e 100644 --- a/kernel/inc/rtl8139.h +++ b/kernel/inc/rtl8139.h @@ -29,6 +29,7 @@ #define RTL_PORT_CONFIG 0x52 int rtl8139_install(void); +int rtl8139_installed(void); void rtl8139_send_packet(void *data, u32 len); u8 *rtl8139_get_mac(void); |