Examples of claimMemoryResource()


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

            log.debug("Found NVidia, FB at 0x" + NumberUtils.hex(fbBase) + "s0x" +
                    NumberUtils.hex(fbSize) + ", MMIO at 0x" + NumberUtils.hex(ioBase));

            this.mmio =
                    rm.claimMemoryResource(device, Address.fromIntZeroExtend(ioBase), ioSize,
                            ResourceManager.MEMMODE_NORMAL);
            this.videoRam =
                    rm.claimMemoryResource(device, Address.fromIntZeroExtend(fbBase), fbSize,
                            ResourceManager.MEMMODE_NORMAL);
            this.vgaIO = new NVidiaVgaIO(mmio, videoRam);
View Full Code Here

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

            this.mmio =
                    rm.claimMemoryResource(device, Address.fromIntZeroExtend(ioBase), ioSize,
                            ResourceManager.MEMMODE_NORMAL);
            this.videoRam =
                    rm.claimMemoryResource(device, Address.fromIntZeroExtend(fbBase), fbSize,
                            ResourceManager.MEMMODE_NORMAL);
            this.vgaIO = new NVidiaVgaIO(mmio, videoRam);

        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException(ex);
View Full Code Here

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

                    + NumberUtils.hex(mmioSize));

            // TODO: support move of videoRam to an upper bank for byte swapping
            // (i.e. non LE)

            this.mmio = rm.claimMemoryResource(device, Address
                    .fromIntZeroExtend(mmioBase), mmioSize,
                    ResourceManager.MEMMODE_NORMAL);
            this.videoRam = rm.claimMemoryResource(device, Address
                    .fromIntZeroExtend(fbBase), fbSize,
                    ResourceManager.MEMMODE_NORMAL);
View Full Code Here

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

            // (i.e. non LE)

            this.mmio = rm.claimMemoryResource(device, Address
                    .fromIntZeroExtend(mmioBase), mmioSize,
                    ResourceManager.MEMMODE_NORMAL);
            this.videoRam = rm.claimMemoryResource(device, Address
                    .fromIntZeroExtend(fbBase), fbSize,
                    ResourceManager.MEMMODE_NORMAL);

            this.vgaIO = new CirrusMMIO(mmio, ports);
View Full Code Here

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

    private final VgaState oldState;

    public StandardVGA(ResourceOwner owner, IndexColorModel cm) throws ResourceNotFreeException {
        try {
            ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
            vgaMem = rm.claimMemoryResource(owner, Address.fromIntZeroExtend(0xa0000), 0x9600,
                ResourceManager.MEMMODE_NORMAL);
            state640x480x16 = new VgaState(seq, crt, gra, att, 0xe3, cm);
            oldState = new VgaState();
        } catch (NameNotFoundException ex) {
            throw new ResourceNotFreeException("ResourceManager not found", ex);
View Full Code Here

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

    MemoryRawData(int size) {
        try {
            final ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
            final ResourceOwner owner = new SimpleResourceOwner("java.nio");
            this.resource = rm.claimMemoryResource(owner, null, size,
                ResourceManager.MEMMODE_NORMAL);
            this.address = resource.getAddress();
        } catch (NameNotFoundException ex) {
            throw new Error("Cannot find ResourceManager", ex);
        } catch (ResourceNotFreeException 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.