!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/lib/   drwxr-xr-x
Free 318.33 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ide-std.c (2.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * IDE routines for typical pc-like standard configurations.
 *
 * Copyright (C) 1998, 1999, 2001 by Ralf Baechle
 */
#include <linux/sched.h>
#include <linux/ide.h>
#include <linux/ioport.h>
#include <linux/hdreg.h>
#include <asm/ptrace.h>
#include <asm/hdreg.h>

static int std_ide_default_irq(ide_ioreg_t base)
{
    switch (base) {
        case 0x1f0: return 14;
        case 0x170: return 15;
        case 0x1e8: return 11;
        case 0x168: return 10;
        case 0x1e0: return 8;
        case 0x160: return 12;
        default:
            return 0;
    }
}

static ide_ioreg_t std_ide_default_io_base(int index)
{
    switch (index) {
        case 0:    return 0x1f0;
        case 1:    return 0x170;
        case 2: return 0x1e8;
        case 3: return 0x168;
        case 4: return 0x1e0;
        case 5: return 0x160;
        default:
            return 0;
    }
}

static void std_ide_init_hwif_ports (hw_regs_t *hw, ide_ioreg_t data_port,
                                     ide_ioreg_t ctrl_port, int *irq)
{
    ide_ioreg_t reg = data_port;
    int i;

    for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
        hw->io_ports[i] = reg;
        reg += 1;
    }
    if (ctrl_port) {
        hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port;
    } else {
        hw->io_ports[IDE_CONTROL_OFFSET] = hw->io_ports[IDE_DATA_OFFSET] + 0x206;
    }
    if (irq != NULL)
        *irq = 0;
    hw->io_ports[IDE_IRQ_OFFSET] = 0;
}

static int std_ide_request_irq(unsigned int irq,
                                void (*handler)(int,void *, struct pt_regs *),
                                unsigned long flags, const char *device,
                                void *dev_id)
{
    return request_irq(irq, handler, flags, device, dev_id);
}            

static void std_ide_free_irq(unsigned int irq, void *dev_id)
{
    free_irq(irq, dev_id);
}

static int std_ide_check_region(ide_ioreg_t from, unsigned int extent)
{
    return check_region(from, extent);
}

static void std_ide_request_region(ide_ioreg_t from, unsigned int extent,
                                    const char *name)
{
    request_region(from, extent, name);
}

static void std_ide_release_region(ide_ioreg_t from, unsigned int extent)
{
    release_region(from, extent);
}

struct ide_ops std_ide_ops = {
    &std_ide_default_irq,
    &std_ide_default_io_base,
    &std_ide_init_hwif_ports,
    &std_ide_request_irq,
    &std_ide_free_irq,
    &std_ide_check_region,
    &std_ide_request_region,
    &std_ide_release_region
};

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