Kernel: PCI checks if ethernet device is E1000 before initialization

I used to treat all ethernet deivices as E1000 but now it is actually
verified before initialization
This commit is contained in:
2023-10-16 01:39:37 +03:00
parent 73b9c28457
commit 1312a9dad2
3 changed files with 43 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ namespace Kernel
class E1000 final : public NetworkDriver
{
public:
static bool probe(PCI::Device&);
static BAN::ErrorOr<BAN::UniqPtr<E1000>> create(PCI::Device&);
~E1000();