public RTL8139_Old(PCIDevice device) { if (device == null) { throw new ArgumentException("PCI Device is null. Unable to get RTL8139 card"); } pciCard = device; mem = device.GetAddressSpace(1) as Kernel.MemoryAddressSpace; valueReg = Register.ValueTypeRegisters.Load(mem); imr = Register.InterruptMaskRegister.Load(mem); isr = Register.InterruptStatusRegister.Load(mem); }