* @param flags
*/
public BCM570xCore(BCM570xDriver driver, ResourceOwner owner, PCIDevice device, Flags flags)
throws DriverException, ResourceNotFreeException {
if (!(flags instanceof BCM570xFlags))
throw new DriverException("Wrong flags to the BCM570x driver");
this.driver = driver;
log.info(driver);
this.flags = (BCM570xFlags) flags;
final int irq = getIRQ(device, this.flags);
log.info("BCM570x driver irq " + irq);
// Get the start of the IO address space
this.iobase = getIOBase(device, this.flags);
final int iolength = getIOLength(device, this.flags);
log.info("BCM570x driver iobase " + iobase + " irq " + irq);
log.debug("BCM570x 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 {