Examples of DeviceException


Examples of org.jnode.driver.DeviceException

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

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

Examples of org.jnode.driver.DeviceException

        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

Examples of org.jnode.driver.DeviceException

     */
    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

Examples of org.jnode.driver.DeviceException

                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

Examples of org.jnode.driver.DeviceException

                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

Examples of org.jnode.driver.DeviceException

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

Examples of org.jnode.driver.DeviceException

        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

Examples of org.jnode.driver.DeviceException

                vga = new VGASurface(this);
                currentConfig = config;
                vga.open(config);
                return vga;
            } catch (ResourceNotFreeException ex) {
                throw new DeviceException(ex);
            } catch (DriverException ex) {
                throw new DeviceException(ex);
            }
        } else {
            throw new UnknownConfigurationException();
        }
    }
View Full Code Here

Examples of org.jnode.driver.DeviceException

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

Examples of org.jnode.driver.DeviceException

            final Device pciBusDevice = new Device(bus, "pcibus");
            final PCIDriver pciDriver = new PCIDriver(pciBusDevice);
            pciBusDevice.setDriver(pciDriver);
            devMan.register(pciBusDevice);
        } catch (DriverException ex) {
            throw new DeviceException(ex);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.