Examples of claimIOResource()


Examples of org.jnode.system.resource.ResourceManager.claimIOResource()

     */
    public CMOS(ResourceOwner owner)
        throws ResourceNotFreeException {
        try {
            final ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
            this.cmosIO = rm.claimIOResource(owner, CMOS_FIRST_PORT, CMOS_LAST_PORT - CMOS_FIRST_PORT + 1);
        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException("Cannot find ResourceManager", ex);
        }
    }

View Full Code Here

Examples of org.jnode.system.resource.ResourceManager.claimIOResource()

        }

        this.irq = rm.claimIRQ(owner, irq_nr, this, true);

        try {
            io = rm.claimIOResource(owner, ioBase, io_length);
        } catch (ResourceNotFreeException ex) {
            this.irq.release();
            throw ex;
        }
View Full Code Here

Examples of org.jnode.system.resource.ResourceManager.claimIOResource()

        } catch (NameNotFoundException ex) {
            throw new DriverException("Cannot find ResourceManager");
        }
        this.irq = rm.claimIRQ(owner, irq, this, true);
        try {
            io = rm.claimIOResource(owner, iobase, iolength);
        } catch (ResourceNotFreeException ex) {
            this.irq.release();
            throw ex;
        }
        this.rxRing = new _3c90xRxRing(RX_FRAMES, rm);
View Full Code Here

Examples of org.jnode.system.resource.ResourceManager.claimIOResource()

    public PIC8259A() {
        final SimpleResourceOwner owner = new SimpleResourceOwner("PIC8259A");

        try {
            final ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
            io8259_A = rm.claimIOResource(owner, 0x20, 1); // 0xA0
            io8259_B = rm.claimIOResource(owner, 0xA0, 1);
        } catch (NameNotFoundException ex) {
            throw new Error("Cannot find ResourceManager", ex);
        } catch (ResourceNotFreeException ex) {
            throw new Error("Cannot claim PIC0-IO ports", ex);
View Full Code Here

Examples of org.jnode.system.resource.ResourceManager.claimIOResource()

        final SimpleResourceOwner owner = new SimpleResourceOwner("PIC8259A");

        try {
            final ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
            io8259_A = rm.claimIOResource(owner, 0x20, 1); // 0xA0
            io8259_B = rm.claimIOResource(owner, 0xA0, 1);
        } catch (NameNotFoundException ex) {
            throw new Error("Cannot find ResourceManager", ex);
        } catch (ResourceNotFreeException ex) {
            throw new Error("Cannot claim PIC0-IO ports", 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.