!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/include/asm-sparc64/   drwxr-xr-x
Free 318.39 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:     auxio.h (3.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* $Id: auxio.h,v 1.3 2001/06/05 08:16:34 davem Exp $
 * auxio.h:  Definitions and code for the Auxiliary I/O register.
 *
 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
 */
#ifndef _SPARC64_AUXIO_H
#define _SPARC64_AUXIO_H

#include <asm/system.h>
#include <asm/io.h>

/* FIXME: All of this should be checked for sun4u. It has /sbus/auxio, but
   I don't know whether it is the same and don't have a floppy */

extern unsigned long auxio_register;

/* This register is an unsigned char in IO space.  It does two things.
 * First, it is used to control the front panel LED light on machines
 * that have it (good for testing entry points to trap handlers and irq's)
 * Secondly, it controls various floppy drive parameters.
 */
#define AUXIO_ORMEIN      0xf0    /* All writes must set these bits. */
#define AUXIO_ORMEIN4M    0xc0    /* sun4m - All writes must set these bits. */
#define AUXIO_FLPY_DENS   0x20    /* Floppy density, high if set. Read only. */
#define AUXIO_FLPY_DCHG   0x10    /* A disk change occurred.  Read only. */
#define AUXIO_EDGE_ON     0x10    /* sun4m - On means Jumper block is in. */
#define AUXIO_FLPY_DSEL   0x08    /* Drive select/start-motor. Write only. */
#define AUXIO_LINK_TEST   0x08    /* sun4m - On means TPE Carrier detect. */

/* Set the following to one, then zero, after doing a pseudo DMA transfer. */
#define AUXIO_FLPY_TCNT   0x04    /* Floppy terminal count. Write only. */

/* Set the following to zero to eject the floppy. */
#define AUXIO_FLPY_EJCT   0x02    /* Eject floppy disk.  Write only. */
#define AUXIO_LED         0x01    /* On if set, off if unset. Read/Write */

#define AUXREG   (auxio_register)

/* These are available on sun4c */
#define TURN_ON_LED   \
do {    if (AUXREG) \
        sbus_writeb(sbus_readb(AUXREG) | \
                (AUXIO_ORMEIN | AUXIO_LED), AUXREG); \
} while(0)
#define TURN_OFF_LED  \
do {    if (AUXREG) \
        sbus_writeb((sbus_readb(AUXREG) | \
                 AUXIO_ORMEIN) & (~AUXIO_LED), \
                AUXREG); \
} while(0)
#define FLIP_LED    \
do {    if (AUXREG)  \
        sbus_writeb((sbus_readb(AUXREG) | \
                 AUXIO_ORMEIN) ^ AUXIO_LEN, \
                AUXREG); \
} while(0)
#define FLPY_MOTORON    \
do {    if (AUXREG) \
        sbus_writeb(sbus_readb(AUXREG) | \
                (AUXIO_ORMEIN | AUXIO_FLPY_DSEL), \
                AUXREG); \
} while(0)
#define FLPY_MOTOROFF    \
do {    if (AUXREG) \
        sbus_writeb((sbus_readb(AUXREG) | \
                 AUXIO_ORMEIN) & (~AUXIO_FLPY_DSEL), \
                AUXREG); \
} while(0)
#define FLPY_TCNTON    \
do {    if (AUXREG) \
        sbus_writeb((sbus_readb(AUXREG) | \
                 AUXIO_ORMEIN) | AUXIO_FLPY_TCNT, \
                AUXREG); \
} while(0)
#define FLPY_TCNTOFF    \
do {    if (AUXREG) \
        sbus_writeb((sbus_readb(AUXREG) | \
                 AUXIO_ORMEIN) & (~AUXIO_FLPY_TCNT), \
                AUXREG); \
} while(0)

#ifndef __ASSEMBLY__
extern __inline__ void set_auxio(unsigned char bits_on, unsigned char bits_off)
{
    unsigned char regval;
    unsigned long flags;

    save_flags(flags); cli();

    if(AUXREG) {
        unsigned char newval;

        regval = sbus_readb(AUXREG);
        newval  = regval | bits_on;
        newval &= ~bits_off;
        newval |= AUXIO_ORMEIN4M;
        sbus_writeb(newval, AUXREG);
    }
    restore_flags(flags);
}
#endif /* !(__ASSEMBLY__) */


/* AUXIO2 (Power Off Control) */
extern __volatile__ unsigned char * auxio_power_register;

#define    AUXIO_POWER_DETECT_FAILURE    32
#define    AUXIO_POWER_CLEAR_FAILURE    2
#define    AUXIO_POWER_OFF            1


#endif /* !(_SPARC_AUXIO_H) */

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