Examples of PCIDevice


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

        int irq = (primary ? IDE0_IRQ : IDE1_IRQ);
        boolean nativeMode = false;

        // Detect PCI IDE Controller, look for enhanced mode
        if (device instanceof PCIDevice) {
            final PCIDevice pciDev = (PCIDevice) device;
            final PCIDeviceConfig pciCfg = pciDev.getConfig();
            final int pIntf = pciCfg.getMinorClass();
            final int progMask = 0x02 | 0x08;
            final int enhModeMask = 0x01 | 0x04;
            if ((pIntf & progMask) == progMask) {
                // Mode is programmable, set enhanced mode
View Full Code Here

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

    public Driver findDriver(Device device) {
        if (!(device instanceof PCIDevice)) {
            return null;
        }
        final PCIDevice dev = (PCIDevice) device;
        final PCIDeviceConfig config = dev.getConfig();

        if (config.getVendorID() != PCI_IDs.PCI_VENDOR_ID_INTEL)
            return null;

        switch (config.getDeviceID()) {
View Full Code Here

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

     */
    public Driver findDriver(Device device) {
        if (!(device instanceof PCIDevice)) {
            return null;
        }
        final PCIDevice dev = (PCIDevice) device;
        final PCIDeviceConfig config = dev.getConfig();

        if (config.getVendorID() != PCI_IDs.PCI_VENDOR_ID_VIATEC) {
            return null;
        }

View Full Code Here

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

        //PCI device needed
        if (!(device instanceof PCIDevice))
            return null;

        //checking display controller device class
        final PCIDevice pciDev = (PCIDevice) device;
        final PCIDeviceConfig cfg = pciDev.getConfig();
        if ((cfg.getBaseClass() & 0xFFFFFF) != DISPLAY_CONTROLLER_PCI_DEVICE_CLASS)
            return null;

        //checking the VESA mode set up by GRUB
        Address vbeControlInfo = UnsafeX86.getVbeControlInfos();
View Full Code Here

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

     * @throws DriverException
     */
    protected void startDevice() throws DriverException {
        // TODO apply io-apic quirk

        final PCIDevice dev = (PCIDevice) getDevice();
        for (int i = 0x55; i <= 0x58; i++) {
            final int v = dev.readConfigByte(i);
            log.debug("PCI[" + NumberUtils.hex(i, 2) + "] " + NumberUtils.hex(v, 2));
        }

    }
View Full Code Here

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

     * @param dev
     * @param log
     */
    public static void applyLatencyFix(PCIDevice dev, Logger log) {

        PCIDevice d = dev.getPCIBusAPI().findDevice(PCI_IDs.PCI_VENDOR_ID_VIATEC, 0x686);
        if (d != null) {
            // For revision 0x40-0x42 we have a buggy southbridge.
            final int rev = d.getConfig().getRevision();

            if ((rev >= 0x40) && (rev <= 0x42)) {
                /*
                     * Ok we have the problem. Now set the PCI master grant to occur every master
                     * grant. The apparent bug is that under high PCI load (quite common in Linux of
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.