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


Viewing file:     iomv.c (1.89 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.
 *
 * Copyright (C) 2000 Silicon Graphics, Inc.
 * Copyright (C) 2000 by Jack Steiner (steiner@sgi.com)
 * Copyright (C) 2000 Kanoj Sarcar (kanoj@sgi.com)
 */

#include <asm/io.h>
#include <linux/pci.h>

static inline void *
sn1_io_addr(unsigned long port)
{
    if (!IS_RUNNING_ON_SIMULATOR()) {
        return( (void *)  (port | __IA64_UNCACHED_OFFSET));
    } else {
        unsigned long io_base;
        unsigned long addr;
 
        /*
          * word align port, but need more than 10 bits
          * for accessing registers in bedrock local block
          * (so we don't do port&0xfff)
          */
        if (port >= 0x1f0 && port <= 0x1f7 ||
            port == 0x3f6 || port == 0x3f7) {
            io_base = __IA64_UNCACHED_OFFSET | 0x00000FFFFC000000;
            addr = io_base | ((port >> 2) << 12) | (port & 0xfff);
        } else {
            addr = __ia64_get_io_port_base() | ((port >> 2) << 2);
        }
        return(void *) addr;
    }
}

unsigned int
sn1_inb (unsigned long port)
{
    volatile unsigned char *addr = sn1_io_addr(port);
    unsigned char ret;

    ret = *addr;
    __ia64_mf_a();
    return ret;
}

unsigned int
sn1_inw (unsigned long port)
{
    volatile unsigned short *addr = sn1_io_addr(port);
    unsigned short ret;

    ret = *addr;
    __ia64_mf_a();
    return ret;
}

unsigned int
sn1_inl (unsigned long port)
{
    volatile unsigned int *addr = sn1_io_addr(port);
    unsigned int ret;

    ret = *addr;
    __ia64_mf_a();
    return ret;
}

void
sn1_outb (unsigned char val, unsigned long port)
{
    volatile unsigned char *addr = sn1_io_addr(port);

    *addr = val;
    __ia64_mf_a();
}

void
sn1_outw (unsigned short val, unsigned long port)
{
    volatile unsigned short *addr = sn1_io_addr(port);

    *addr = val;
    __ia64_mf_a();
}

void
sn1_outl (unsigned int val, unsigned long port)
{
    volatile unsigned int *addr = sn1_io_addr(port);

    *addr = val;
    __ia64_mf_a();
}

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