Examples of AcpiDevice


Examples of org.jnode.driver.system.firmware.AcpiDevice

        dev.registerAPI(FirmwareAPI.class, this);

        // Start an ACPI device if we found the info for it.
        if (info != null) {
            log.info("Start ACPI device");
            acpiDevice = new AcpiDevice(dev.getBus(), "acpi", info);
            try {
                dev.getManager().register(acpiDevice);
            } catch (DeviceAlreadyRegisteredException ex) {
                log.error("Cannot register ACPI device", ex);
            }
View Full Code Here

Examples of org.jnode.driver.system.firmware.AcpiDevice

    /**
     * @see org.jnode.driver.Driver#startDevice()
     */
    protected void startDevice() throws DriverException {
        final AcpiDevice dev = (AcpiDevice) getDevice();
        try {
            final ResourceManager rm;
            rm = InitialNaming.lookup(ResourceManager.NAME);
            mmapAcpiRegion();
            AcpiRSDPInfo acpiInfo = dev.getRsdpInfo();
            loadRootTable(rm, acpiInfo);
        } catch (NameNotFoundException ex) {
            throw new DriverException("Could not find ResourceManager", ex);
        } catch (ResourceNotFreeException ex) {
            throw new DriverException("Cannot load ACPI info", ex);
        }

        // Register the API's
        dev.registerAPI(AcpiAPI.class, this);
    }
View Full Code Here

Examples of org.jnode.driver.system.firmware.AcpiDevice

    /**
     * @see org.jnode.driver.Driver#stopDevice()
     */
    protected void stopDevice() throws DriverException {
        final AcpiDevice dev = (AcpiDevice) getDevice();

        // Unregister the API's
        dev.unregisterAPI(AcpiAPI.class);

        // Reset the values
        root = null;
        if (sdt != null) {
            sdt.release();
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.