summaryrefslogtreecommitdiff
path: root/Kernel/Net/E1000NetworkAdapter.h
diff options
context:
space:
mode:
authorPeter Elliott <pelliott@ualberta.ca>2020-06-24 14:07:28 -0600
committerAndreas Kling <kling@serenityos.org>2020-06-25 21:05:40 +0200
commitaf0b2d1d86761dd7dc89bb605794093968a0a74f (patch)
tree3c4cc42287c297f59d0229657039a796895a337f /Kernel/Net/E1000NetworkAdapter.h
parent2e8cfe5435f806538fe680235b2e9792ca34b201 (diff)
downloadserenity-af0b2d1d86761dd7dc89bb605794093968a0a74f.zip
Kernel: Harvest randomness from various drivers
Random now gets entropy from the following drivers: - KeyboardDevice - PATAChannel - PS2MouseDevice - E1000NetworkAdapter - RTL8139NetworkAdapter Of these devices, PS2MouseDevice and PATAChannel provide the vast majority of the entropy.
Diffstat (limited to 'Kernel/Net/E1000NetworkAdapter.h')
-rw-r--r--Kernel/Net/E1000NetworkAdapter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Net/E1000NetworkAdapter.h b/Kernel/Net/E1000NetworkAdapter.h
index 96214e9d6d..fd5f864879 100644
--- a/Kernel/Net/E1000NetworkAdapter.h
+++ b/Kernel/Net/E1000NetworkAdapter.h
@@ -28,11 +28,12 @@
#include <AK/NonnullOwnPtrVector.h>
#include <AK/OwnPtr.h>
+#include <Kernel/IO.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/PCI/Access.h>
#include <Kernel/PCI/Device.h>
-#include <Kernel/IO.h>
+#include <Kernel/Random.h>
namespace Kernel {
@@ -103,6 +104,7 @@ private:
u8 m_interrupt_line { 0 };
bool m_has_eeprom { false };
bool m_use_mmio { false };
+ EntropySource m_entropy_source;
static const size_t number_of_rx_descriptors = 32;
static const size_t number_of_tx_descriptors = 8;