*/
protected void registerDevices()
throws FloppyException, DriverException, NamingException {
devMan = InitialNaming.lookup(DeviceManager.NAME);
final int max = fdc.getDriveCount();
final FloppyDeviceFactory factory = FloppyDriverUtils.getFloppyDeviceFactory();
for (int i = 0; i < max; i++) {
final FloppyDriveParameters dp = fdc.getDriveParams(i);
log.debug("For fd" + i + ", found CMOS type " + dp.getCmosType());
if (dp.isPresent()) {
try {
final FloppyDevice fd = factory.createDevice(bus, i, dp);
fd.setDriver(new FloppyDriver());
devMan.register(fd);
devices.add(fd);
log.debug("Registered fd" + i);
} catch (DeviceAlreadyRegisteredException ex) {