!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/arch/mips/gt64120/momenco_ocelot/   drwxr-xr-x
Free 318.37 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pci.c (2.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Copyright 2001 MontaVista Software Inc.
 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
 *
 * arch/mips/gt64120/momenco_ocelot/pci.c
 *     Board-specific PCI routines for gt64120 controller.
 *
 * This program is free software; you can redistribute  it and/or modify it
 * under  the terms of  the GNU General  Public License as published by the
 * Free Software Foundation;  either version 2 of the  License, or (at your
 * option) any later version.
 */
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/init.h>
#include <asm/pci.h>


void __init gt64120_board_pcibios_fixup_bus(struct pci_bus *bus)
{
    struct pci_bus *current_bus = bus;
    struct pci_dev *devices;
    struct list_head *devices_link;
    u16 cmd;

    list_for_each(devices_link, &(current_bus->devices)) {

        devices = pci_dev_b(devices_link);
        if (devices == NULL)
            continue;

        if (PCI_SLOT(devices->devfn) == 1) {
            /*
             * Slot 1 is primary ether port, i82559
             * we double-check against that assumption
             */
            if ((devices->vendor != 0x8086) ||
                (devices->device != 0x1209) ) {
                panic("gt64120_board_pcibios_fixup_bus: found "
                      "unexpected PCI device in slot 1.");
            }
            devices->irq = 2;       /* irq_nr is 2 for INT0 */
        } else if (PCI_SLOT(devices->devfn) == 2) {
            /*
             * Slot 2 is secondary ether port, i21143 
             * we double-check against that assumption
             */
            if ((devices->vendor != 0x1011) ||
                (devices->device != 0x19) ) {
                panic("galileo_pcibios_fixup_bus: "
                      "found unexpected PCI device in slot 2.");
            }
            devices->irq = 3;       /* irq_nr is 3 for INT1 */
        } else if (PCI_SLOT(devices->devfn) == 4) {
            /* PMC Slot 1 */
            devices->irq = 8;       /* irq_nr is 8 for INT6 */
        } else if (PCI_SLOT(devices->devfn) == 5) {
            /* PMC Slot 1 */
            devices->irq = 9;       /* irq_nr is 9 for INT7 */
        } else {
            /* We don't have assign interrupts for other devices. */
            devices->irq = 0xff;
        }

        /* Assign an interrupt number for the device */
        bus->ops->write_byte(devices, PCI_INTERRUPT_LINE, devices->irq);

        /* enable master */
        bus->ops->read_word(devices, PCI_COMMAND, &cmd);
        cmd |= PCI_COMMAND_MASTER;
        bus->ops->write_word(devices, PCI_COMMAND, cmd);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0046 ]--