* @param flags
*/
public RTL8139Core(RTL8139Driver driver, ResourceOwner owner, PCIDevice device, Flags flags)
throws DriverException, ResourceNotFreeException {
if (!(flags instanceof RTL8139Flags))
throw new DriverException("Wrong flags to the RTL8139 driver");
this.driver = driver;
this.flags = (RTL8139Flags) flags;
final int irq = getIRQ(device, this.flags);
// Get the start of the IO address space
this.iobase = getIOBase(device, this.flags);
final int iolength = getIOLength(device, this.flags);
// log.debug("RTL8139 driver iobase "+iobase+" irq "+irq);
final ResourceManager rm;
try {
rm = InitialNaming.lookup(ResourceManager.NAME);
} catch (NameNotFoundException ex) {
throw new DriverException("Cannot find ResourceManager");
}
this.irq = rm.claimIRQ(owner, irq, this, true);
try {