!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_hd64461.c (3.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *    $Id: io_hd64461.c,v 1.6 2000/11/16 23:28:44 yaegashi Exp $
 *    Copyright (C) 2000 YAEGASHI Takeshi
 *    Typical I/O routines for HD64461 system.
 */

#include <linux/config.h>
#include <asm/io.h>
#include <asm/hd64461.h>

static __inline__ unsigned long PORT2ADDR(unsigned long port)
{
    /* 16550A: HD64461 internal */
    if (0x3f8<=port && port<=0x3ff)
        return CONFIG_HD64461_IOBASE + 0x8000 + ((port-0x3f8)<<1);
    if (0x2f8<=port && port<=0x2ff)
        return CONFIG_HD64461_IOBASE + 0x7000 + ((port-0x2f8)<<1);

#ifdef CONFIG_HD64461_ENABLER
    /* NE2000: HD64461 PCMCIA channel 0 (I/O) */
    if (0x300<=port && port<=0x31f)
        return 0xba000000 + port;

    /* ide0: HD64461 PCMCIA channel 1 (memory) */
    /* On HP690, CF in slot 1 is configured as a memory card
       device.  See CF+ and CompactFlash Specification for the
       detail of CF's memory mapped addressing. */
    if (0x1f0<=port && port<=0x1f7)    return 0xb5000000 + port;
    if (port == 0x3f6) return 0xb50001fe;
    if (port == 0x3f7) return 0xb50001ff;

    /* ide1 */
    if (0x170<=port && port<=0x177)    return 0xba000000 + port;
    if (port == 0x376) return 0xba000376;
    if (port == 0x377) return 0xba000377;
#endif

    /* ??? */
    if (port < 0x10000) return 0xa0000000 + port;

    /* HD64461 internal devices (0xb0000000) */
    if (port < 0x20000) return CONFIG_HD64461_IOBASE + port - 0x10000;

    /* PCMCIA channel 0, I/O (0xba000000) */
    if (port < 0x30000) return 0xba000000 + port - 0x20000;

    /* PCMCIA channel 1, memory (0xb5000000) */
    if (port < 0x40000) return 0xb5000000 + port - 0x30000;

    /* Whole physical address space (0xa0000000) */
    return 0xa0000000 + (port & 0x1fffffff);
}

static inline void delay(void)
{
    ctrl_inw(0xa0000000);
}

unsigned char hd64461_inb(unsigned long port)
{
    return *(volatile unsigned char*)PORT2ADDR(port);
}

unsigned char hd64461_inb_p(unsigned long port)
{
    unsigned long v = *(volatile unsigned char*)PORT2ADDR(port);
    delay();
    return v;
}

unsigned short hd64461_inw(unsigned long port)
{
    return *(volatile unsigned short*)PORT2ADDR(port);
}

unsigned int hd64461_inl(unsigned long port)
{
    return *(volatile unsigned long*)PORT2ADDR(port);
}

void hd64461_insb(unsigned long port, void *buffer, unsigned long count)
{
    unsigned char *buf=buffer;
    while(count--) *buf++=inb(port);
}

void hd64461_insw(unsigned long port, void *buffer, unsigned long count)
{
    unsigned short *buf=buffer;
    while(count--) *buf++=inw(port);
}

void hd64461_insl(unsigned long port, void *buffer, unsigned long count)
{
    unsigned long *buf=buffer;
    while(count--) *buf++=inl(port);
}

void hd64461_outb(unsigned char b, unsigned long port)
{
    *(volatile unsigned char*)PORT2ADDR(port) = b;
}

void hd64461_outb_p(unsigned char b, unsigned long port)
{
    *(volatile unsigned char*)PORT2ADDR(port) = b;
    delay();
}

void hd64461_outw(unsigned short b, unsigned long port)
{
    *(volatile unsigned short*)PORT2ADDR(port) = b;
}

void hd64461_outl(unsigned int b, unsigned long port)
{
        *(volatile unsigned long*)PORT2ADDR(port) = b;
}

void hd64461_outsb(unsigned long port, const void *buffer, unsigned long count)
{
    const unsigned char *buf=buffer;
    while(count--) outb(*buf++, port);
}

void hd64461_outsw(unsigned long port, const void *buffer, unsigned long count)
{
    const unsigned short *buf=buffer;
    while(count--) outw(*buf++, port);
}

void hd64461_outsl(unsigned long port, const void *buffer, unsigned long count)
{
    const unsigned long *buf=buffer;
    while(count--) outl(*buf++, port);
}

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