!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/alpha/kernel/   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-noop.c (2.65 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *    linux/arch/alpha/kernel/pci-noop.c
 *
 * Stub PCI interfaces for Jensen-specific kernels.
 */

#include <linux/pci.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/errno.h>
#include <linux/sched.h>

#include "proto.h"


/*
 * The PCI controller list.
 */

struct pci_controller *hose_head, **hose_tail = &hose_head;
struct pci_controller *pci_isa_hose;


struct pci_controller * __init
alloc_pci_controller(void)
{
    struct pci_controller *hose;

    hose = alloc_bootmem(sizeof(*hose));

    *hose_tail = hose;
    hose_tail = &hose->next;

    return hose;
}

struct resource * __init
alloc_resource(void)
{
    struct resource *res;

    res = alloc_bootmem(sizeof(*res));

    return res;
}

asmlinkage long
sys_pciconfig_iobase(long which, unsigned long bus, unsigned long dfn)
{
    struct pci_controller *hose;
    struct pci_dev *dev;

    /* from hose or from bus.devfn */
    if (which & IOBASE_FROM_HOSE) {
        for (hose = hose_head; hose; hose = hose->next) 
            if (hose->index == bus)
                break;
        if (!hose)
            return -ENODEV;
    } else {
        /* Special hook for ISA access.  */
        if (bus == 0 && dfn == 0)
            hose = pci_isa_hose;
        else
            return -ENODEV;
    }

    switch (which & ~IOBASE_FROM_HOSE) {
    case IOBASE_HOSE:
        return hose->index;
    case IOBASE_SPARSE_MEM:
        return hose->sparse_mem_base;
    case IOBASE_DENSE_MEM:
        return hose->dense_mem_base;
    case IOBASE_SPARSE_IO:
        return hose->sparse_io_base;
    case IOBASE_DENSE_IO:
        return hose->dense_io_base;
    case IOBASE_ROOT_BUS:
        return hose->bus->number;
    }

    return -EOPNOTSUPP;
}

asmlinkage long
sys_pciconfig_read(unsigned long bus, unsigned long dfn,
           unsigned long off, unsigned long len, void *buf)
{
    if (!capable(CAP_SYS_ADMIN))
        return -EPERM;
    else
        return -ENODEV;
}

asmlinkage long
sys_pciconfig_write(unsigned long bus, unsigned long dfn,
            unsigned long off, unsigned long len, void *buf)
{
    if (!capable(CAP_SYS_ADMIN))
        return -EPERM;
    else
        return -ENODEV;
}
/* stubs for the routines in pci_iommu.c */
void *
pci_alloc_consistent(struct pci_dev *pdev, size_t size, dma_addr_t *dma_addrp)
{
    return (void *)0;
}
void
pci_free_consistent(struct pci_dev *pdev, size_t size, void *cpu_addr,
            dma_addr_t dma_addr)
{
}
dma_addr_t
pci_map_single(struct pci_dev *pdev, void *cpu_addr, size_t size,
           int direction)
{
    return (dma_addr_t)0;
}
void
pci_unmap_single(struct pci_dev *pdev, dma_addr_t dma_addr, size_t size,
         int direction)
{
}
int
pci_map_sg(struct pci_dev *pdev, struct scatterlist *sg, int nents,
       int direction)
{
    return 0;
}
void
pci_unmap_sg(struct pci_dev *pdev, struct scatterlist *sg, int nents,
         int direction)
{
}
int
pci_dma_supported(struct pci_dev *hwdev, dma_addr_t mask)
{
    return 0;
}

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