Examples of registerAPI()


Examples of org.jnode.driver.Device.registerAPI()

     */
    protected void startDevice() throws DriverException {
        final Device ideDev = getDevice();

        // Register my api's
        ideDev.registerAPI(SCSIHostControllerAPI.class, this);

        // Create the ATAPI bus
        this.atapiBus = new ATAPIBus(ideDev);

        // Create the generic SCSI device, attached to the ATAPI bus
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

    /**
     * Create and start the structures required by this driver.
     */
    private void startDriver() throws ResourceNotFreeException, DriverException {
        final Device dev = getDevice();
        dev.registerAPI(IDEControllerAPI.class, this);
        IDEDeviceFactory factory;
        try {
            factory = IDEDriverUtils.getIDEDeviceFactory();
        } catch (NamingException ex) {
            throw new DriverException(ex);
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

        this.locked = false;
        this.changed = true;
        this.capacity = null;
        this.blockAlignment.setAlignment(2048);

        dev.registerAPI(RemovableDeviceAPI.class, this);
        dev.registerAPI(FSBlockDeviceAPI.class, blockAlignment);
    }

    @Override
    protected void stopDevice() throws DriverException {
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

        this.changed = true;
        this.capacity = null;
        this.blockAlignment.setAlignment(2048);

        dev.registerAPI(RemovableDeviceAPI.class, this);
        dev.registerAPI(FSBlockDeviceAPI.class, blockAlignment);
    }

    @Override
    protected void stopDevice() throws DriverException {
        try {
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

        } catch (DeviceAlreadyRegisteredException ex) {
            log.error("Cannot rename device", ex);
        } catch (NameNotFoundException ex) {
            throw new DriverException("Cannot find DeviceManager", ex);
        }
        device.registerAPI(DeviceInfoAPI.class, this);
        device.registerAPI(NetDeviceAPI.class, this);
        txThread = new QueueProcessorThread<Object[]>(device.getId() + "-tx", txQueue, this);
        txThread.start();
    }
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

            log.error("Cannot rename device", ex);
        } catch (NameNotFoundException ex) {
            throw new DriverException("Cannot find DeviceManager", ex);
        }
        device.registerAPI(DeviceInfoAPI.class, this);
        device.registerAPI(NetDeviceAPI.class, this);
        txThread = new QueueProcessorThread<Object[]>(device.getId() + "-tx", txQueue, this);
        txThread.start();
    }

    /**
 
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

            throw new DriverException("Cannot rename device", ex);
        } catch (NameNotFoundException ex) {
            throw new DriverException("Cannot find DeviceManager", ex);
        }
        claimResources();
        device.registerAPI(USBHostControllerAPI.class, getAPIImplementation());
        // Create & start a monitor
        final USBHubAPI hubApi = getAPIImplementation().getRootHUB();
        this.rootHubMonitor = new USBHubMonitor(device, hubApi);
        rootHubMonitor.startMonitor();
    }
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

            log.error("Cannot set default rate", ex);
        }

        // start the deamon anyway, so we can register a mouse later
        startDispatcher(id);
        dev.registerAPI(PointerAPI.class, this);
        dev.registerAPI(DeviceInfoAPI.class, this);
    }

    protected PointerEvent handleScancode(byte scancode) {
        PointerEvent event = null;
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

        }

        // start the deamon anyway, so we can register a mouse later
        startDispatcher(id);
        dev.registerAPI(PointerAPI.class, this);
        dev.registerAPI(DeviceInfoAPI.class, this);
    }

    protected PointerEvent handleScancode(byte scancode) {
        PointerEvent event = null;
        if (interpreter != null) {
View Full Code Here

Examples of org.jnode.driver.Device.registerAPI()

        }

        final Device dev = getDevice();
        final String id = dev.getId();
        startDispatcher(id);
        dev.registerAPI(KeyboardAPI.class, this);
        dev.registerAPI(SystemTriggerAPI.class, this);

//        // If no inputstream has been defined, create and set one.
//        kis = null;
//        if (channel != null) {
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.