!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:     kbd-std.c (1.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* $Id: kbd-std.c,v 1.2 1999/06/11 14:29:45 ralf Exp $
 *
 * 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.
 *
 * Routines for standard PC style keyboards accessible via I/O ports.
 *
 * Copyright (C) 1998, 1999 by Ralf Baechle
 */
#include <linux/ioport.h>
#include <linux/sched.h>
#include <linux/pc_keyb.h>
#include <asm/keyboard.h>
#include <asm/io.h>

#define KEYBOARD_IRQ 1
#define AUX_IRQ 12

static void std_kbd_request_region(void)
{
#ifdef CONFIG_MIPS_ITE8172
    request_region(0x14000060, 16, "keyboard");
#else
    request_region(0x60, 16, "keyboard");
#endif
}

static int std_kbd_request_irq(void (*handler)(int, void *, struct pt_regs *))
{
    return request_irq(KEYBOARD_IRQ, handler, 0, "keyboard", NULL);
}

static int std_aux_request_irq(void (*handler)(int, void *, struct pt_regs *))
{
    return request_irq(AUX_IRQ, handler, 0, "PS/2 Mouse", NULL);
}

static void std_aux_free_irq(void)
{
    free_irq(AUX_IRQ, NULL);
}

static unsigned char std_kbd_read_input(void)
{
    return inb(KBD_DATA_REG);
}

static void std_kbd_write_output(unsigned char val)
{
    int status;

    do {
        status = inb(KBD_CNTL_REG);
    } while (status & KBD_STAT_IBF);
    outb(val, KBD_DATA_REG);
}

static void std_kbd_write_command(unsigned char val)
{
    int status;

    do {
        status = inb(KBD_CNTL_REG);
    } while (status & KBD_STAT_IBF);
    outb(val, KBD_CNTL_REG);
}

static unsigned char std_kbd_read_status(void)
{
    return inb(KBD_STATUS_REG);
}

struct kbd_ops std_kbd_ops = {
    std_kbd_request_region,
    std_kbd_request_irq,

    std_aux_request_irq,
    std_aux_free_irq,

    std_kbd_read_input,
    std_kbd_write_output,
    std_kbd_write_command,
    std_kbd_read_status
};

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