Examples of asHeaderType0()


Examples of org.jnode.driver.bus.pci.PCIDeviceConfig.asHeaderType0()

                // Mode is programmable, set enhanced mode
                //pciCfg.setMinorClass(pIntf | enhModeMask);               
            }
            if ((pciCfg.getMinorClass() & enhModeMask) == enhModeMask) {
                // Use enhanced mode
                final PCIBaseAddress[] baseAddrs = pciCfg.asHeaderType0().getBaseAddresses();
                final int idx = (primary ? 0 : 2);
                cmdBlockStart = baseAddrs[idx].getIOBase();
                cmdBlockSize = 8;
                ctrlBlockStart = baseAddrs[idx + 1].getIOBase();
                ctrlBlockSize = 4;
View Full Code Here

Examples of org.jnode.driver.bus.pci.PCIDeviceConfig.asHeaderType0()

                cmdBlockStart = baseAddrs[idx].getIOBase();
                cmdBlockSize = 8;
                ctrlBlockStart = baseAddrs[idx + 1].getIOBase();
                ctrlBlockSize = 4;
                altStatusPort = ctrlBlockStart + 0x02;
                irq = pciCfg.asHeaderType0().getInterruptLine();
                nativeMode = true;
            }
        }

        log.info("Using PCI IDE " + (nativeMode ? "Native" : "Compatibility") + " mode [irq=" + irq + "]");
View Full Code Here

Examples of org.jnode.driver.bus.pci.PCIDeviceConfig.asHeaderType0()

        int cmd = pciCfg.getCommand();
        cmd &= ~PCIConstants.PCI_COMMAND_IO;
        cmd |= PCIConstants.PCI_COMMAND_MEMORY;
        pciCfg.setCommand(cmd);

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

        log.info("Found ATI " + model + ", pci " + pciCfg);

        try {
            final ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
View Full Code Here

Examples of org.jnode.driver.bus.pci.PCIDeviceConfig.asHeaderType0()

            this.bus = new USBBus(device, this);
            this.rootHub = new UHCIRootHub(io, bus);
            final Schedule schedule = new Schedule(rm);
            this.pipeMgr = new UHCIPipeManager(rm, schedule);

            final int irqNr = cfg.asHeaderType0().getInterruptLine() & 0xF;
            // Workaround for some VIA chips
            cfg.asHeaderType0().setInterruptLine(irqNr);
            this.irq = rm.claimIRQ(device, irqNr, this, true);
            log.debug("Using IRQ " + irqNr);
View Full Code Here

Examples of org.jnode.driver.bus.pci.PCIDeviceConfig.asHeaderType0()

            final Schedule schedule = new Schedule(rm);
            this.pipeMgr = new UHCIPipeManager(rm, schedule);

            final int irqNr = cfg.asHeaderType0().getInterruptLine() & 0xF;
            // Workaround for some VIA chips
            cfg.asHeaderType0().setInterruptLine(irqNr);
            this.irq = rm.claimIRQ(device, irqNr, this, true);
            log.debug("Using IRQ " + irqNr);

            // Reset the HC
            resetHC();
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.