Package org.jnode.driver

Examples of org.jnode.driver.DeviceException


            // Register floppy controller device
            Device fdcDev = new FloppyControllerDevice(bus);
            fdcDev.setDriver(new FloppyControllerDriver());
            devMan.register(fdcDev);
        } catch (DriverException ex) {
            throw new DeviceException(ex);
        }
    }
View Full Code Here


     */
    public void findDevices(DeviceManager devMan, Bus bus) throws DeviceException {
        try {
            devMan.register(new LoopbackDevice(bus));
        } catch (DriverException ex) {
            throw new DeviceException(ex);
        }
    }
View Full Code Here

            dev.setDriver(new VirtualDeviceDriver());
            final DeviceManager dm = DeviceUtils.getDeviceManager();
            dm.register(dev);
            return dev;
        } catch (Exception x) {
            throw new DeviceException(x);
        }
    }
View Full Code Here

            dev = new Device(bus, "serial1");
            dev.setDriver(new SerialPortDriver(0x2f8));
            devMan.register(dev);

        } catch (DriverException ex) {
            throw new DeviceException(ex);
        }
    }
View Full Code Here

        try {
            final Device bios = new Device(bus, "bios");
            bios.setDriver(new BiosDriver());
            devMan.register(bios);
        } catch (DriverException ex) {
            throw new DeviceException(ex);
        }
    }
View Full Code Here

     */
    public void findDevices(DeviceManager devMan, Bus bus) throws DeviceException {
        try {
            devMan.register(new PCSpeakerDevice(bus));
        } catch (DriverException dex) {
            throw new DeviceException(dex);
        }
    }
View Full Code Here

                try {
                    this.surface = kernel.open((Mach64Configuration) config);
                    this.currentConfig = config;
                    return surface;
                } catch (ResourceNotFreeException ex) {
                    throw new DeviceException(ex);
                }
            }
        }
        throw new UnknownConfigurationException();
    }
View Full Code Here

                devMan.register(pDev);
            }
            log.debug("ps2stat 0x" + NumberUtils.hex(ps2.readStatus(), 2));
        } catch (DriverException ex) {
            log.debug("Error searching for PS2 devices: " + ex);
            throw new DeviceException(ex);
        }
    }
View Full Code Here

            } else {
                count++;
                Thread.yield();
            }
        }
        throw new DeviceException("InputBuffer full");
    }
View Full Code Here

        try {
            writeController(CCMD_READ_MODE);
            if (waitRead()) {
                return readData();
            } else {
                throw new DeviceException("Not return data from READ_MODE");
            }
        } finally {
            processQueues();
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.driver.DeviceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.