!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/sh/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:     io_ec3104.c (1.69 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * linux/arch/sh/kernel/io_ec3104.c
 *  EC3104 companion chip support
 *
 * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org>
 *
 */
/* EC3104 note:
 * This code was written without any documentation about the EC3104 chip.  While
 * I hope I got most of the basic functionality right, the register names I use
 * are most likely completely different from those in the chip documentation.
 *
 * If you have any further information about the EC3104, please tell me
 * (prumpf@tux.org).
 */

#include <linux/kernel.h>
#include <linux/types.h>
#include <asm/io.h>
#include <asm/page.h>
#include <asm/ec3104.h>

/*
 * EC3104 has a real ISA bus which we redirect low port accesses to (the
 * actual device on mine is a ESS 1868, and I don't want to hack the driver
 * more than strictly necessary).  I am not going to duplicate the
 * hard coding of PC addresses (for the 16550s aso) here though;  it's just
 * too ugly.
 */

#define low_port(port) ((port) < 0x10000)

static inline unsigned long port2addr(unsigned long port)
{
    switch(port >> 16) {
    case 0:
        return EC3104_ISA_BASE + port * 2;

        /* XXX hack. it's unclear what to do about the serial ports */
    case 1:
        return EC3104_BASE + (port&0xffff) * 4;

    default:
        /* XXX PCMCIA */
        return 0;
    }
}

unsigned char ec3104_inb(unsigned long port)
{
    u8 ret;

    ret = *(volatile u8 *)port2addr(port);

    return ret;
}

unsigned short ec3104_inw(unsigned long port)
{
    BUG();
}

unsigned long ec3104_inl(unsigned long port)
{
    BUG();
}

void ec3104_outb(unsigned char data, unsigned long port)
{
    *(volatile u8 *)port2addr(port) = data;
}

void ec3104_outw(unsigned short data, unsigned long port)
{
    BUG();
}

void ec3104_outl(unsigned long data, unsigned long port)
{
    BUG();
}

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