!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/drivers/pci/   drwxr-xr-x
Free 318.35 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:     compat.c (1.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *    $Id: compat.c,v 1.1 1998/02/16 10:35:50 mj Exp $
 *
 *    PCI Bus Services -- Function For Backward Compatibility
 *
 *    Copyright 1998--2000 Martin Mares <mj@ucw.cz>
 */

#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/pci.h>

int
pcibios_present(void)
{
    return !list_empty(&pci_devices);
}

int
pcibios_find_class(unsigned int class, unsigned short index, unsigned char *bus, unsigned char *devfn)
{
    const struct pci_dev *dev = NULL;
    int cnt = 0;

    while ((dev = pci_find_class(class, dev)))
        if (index == cnt++) {
            *bus = dev->bus->number;
            *devfn = dev->devfn;
            return PCIBIOS_SUCCESSFUL;
        }
    return PCIBIOS_DEVICE_NOT_FOUND;
}


int
pcibios_find_device(unsigned short vendor, unsigned short device, unsigned short index,
            unsigned char *bus, unsigned char *devfn)
{
    const struct pci_dev *dev = NULL;
    int cnt = 0;

    while ((dev = pci_find_device(vendor, device, dev)))
        if (index == cnt++) {
            *bus = dev->bus->number;
            *devfn = dev->devfn;
            return PCIBIOS_SUCCESSFUL;
        }
    return PCIBIOS_DEVICE_NOT_FOUND;
}

#define PCI_OP(rw,size,type)                            \
int pcibios_##rw##_config_##size (unsigned char bus, unsigned char dev_fn,    \
                  unsigned char where, unsigned type val)    \
{                                        \
    struct pci_dev *dev = pci_find_slot(bus, dev_fn);            \
    if (!dev) return PCIBIOS_DEVICE_NOT_FOUND;                \
    return pci_##rw##_config_##size(dev, where, val);            \
}

PCI_OP(read, byte, char *)
PCI_OP(read, word, short *)
PCI_OP(read, dword, int *)
PCI_OP(write, byte, char)
PCI_OP(write, word, short)
PCI_OP(write, dword, int)

:: 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.009 ]--