Examples of PCIHeaderType0


Examples of org.jnode.driver.bus.pci.PCIHeaderType0

    public NVidiaCore(NVidiaDriver driver, int architecture, String model, PCIDevice device)
        throws ResourceNotFreeException, DriverException {
        super(640, 480);
        this.driver = driver;
        this.architecture = architecture;
        final PCIHeaderType0 pciCfg = device.getConfig().asHeaderType0();
        final PCIBaseAddress ioAddr = pciCfg.getBaseAddresses()[0];
        final PCIBaseAddress fbAddr = pciCfg.getBaseAddresses()[1];
        log.info("Found NVidia " + model + ", chipset 0x" + NumberUtils.hex(pciCfg.getRevision()));
        try {
            final ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
            final int ioBase = (int) ioAddr.getMemoryBase() & 0xFF800000;
            final int ioSize = ioAddr.getSize();
            final int fbBase = (int) fbAddr.getMemoryBase() & 0xFF800000;
View Full Code Here

Examples of org.jnode.driver.bus.pci.PCIHeaderType0

            PCIDevice device) throws ResourceNotFreeException, DriverException {

        super(640, 480);
        this.driver = driver;

        final PCIHeaderType0 pciCfg = device.getConfig().asHeaderType0();

        final PCIBaseAddress fbAddr = pciCfg.getBaseAddresses()[0];
        final PCIBaseAddress mmioAddr = pciCfg.getBaseAddresses()[1];

        log.info("Found "
                + model
                + ", chipset 0x"
                + NumberUtils.hex(pciCfg.getRevision())
                + ", device-vendor ID 0x"
                + NumberUtils.hex(pciCfg.getDeviceID() << 16 + pciCfg
                        .getVendorID()));

        try {
            final ResourceManager rm = (ResourceManager) InitialNaming
                    .lookup(ResourceManager.NAME);
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.