Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }