!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-sparc/   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:     sbi.h (3.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* $Id: sbi.h,v 1.2 1998/03/09 14:04:48 jj Exp $
 * sbi.h:  SBI (Sbus Interface on sun4d) definitions
 *
 * Copyright (C) 1997 Jakub Jelinek <jj@sunsite.mff.cuni.cz>
 */

#ifndef _SPARC_SBI_H
#define _SPARC_SBI_H

#include <asm/obio.h>

/* SBI */
struct sbi_regs {
/* 0x0000 */    u32        cid;        /* Component ID */
/* 0x0004 */    u32        ctl;        /* Control */
/* 0x0008 */    u32        status;        /* Status */
        u32        _unused1;
        
/* 0x0010 */    u32        cfg0;        /* Slot0 config reg */
/* 0x0014 */    u32        cfg1;        /* Slot1 config reg */
/* 0x0018 */    u32        cfg2;        /* Slot2 config reg */
/* 0x001c */    u32        cfg3;        /* Slot3 config reg */

/* 0x0020 */    u32        stb0;        /* Streaming buf control for slot 0 */
/* 0x0024 */    u32        stb1;        /* Streaming buf control for slot 1 */
/* 0x0028 */    u32        stb2;        /* Streaming buf control for slot 2 */
/* 0x002c */    u32        stb3;        /* Streaming buf control for slot 3 */

/* 0x0030 */    u32        intr_state;    /* Interrupt state */
/* 0x0034 */    u32        intr_tid;    /* Interrupt target ID */
/* 0x0038 */    u32        intr_diag;    /* Interrupt diagnostics */
};

#define SBI_CID            0x02800000
#define SBI_CTL            0x02800004
#define SBI_STATUS        0x02800008
#define SBI_CFG0        0x02800010
#define SBI_CFG1        0x02800014
#define SBI_CFG2        0x02800018
#define SBI_CFG3        0x0280001c
#define SBI_STB0        0x02800020
#define SBI_STB1        0x02800024
#define SBI_STB2        0x02800028
#define SBI_STB3        0x0280002c
#define SBI_INTR_STATE        0x02800030
#define SBI_INTR_TID        0x02800034
#define SBI_INTR_DIAG        0x02800038

/* Burst bits for 8, 16, 32, 64 are in cfgX registers at bits 2, 3, 4, 5 respectively */
#define SBI_CFG_BURST_MASK    0x0000001e

/* How to make devid from sbi no */
#define SBI2DEVID(sbino) ((sbino<<4)|2)

/* intr_state has 4 bits for slots 0 .. 3 and these bits are repeated for each sbus irq level
 *
 *           +-------+-------+-------+-------+-------+-------+-------+-------+
 *  SBUS IRQ LEVEL |   7   |   6   |   5   |   4   |   3   |   2   |   1   |       |
 *           +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Reser |
 *  SLOT #         |3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|3|2|1|0|  ved  |
 *                 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-------+
 *  Bits           31      27      23      19      15      11      7       3      0
 */


#ifndef __ASSEMBLY__

extern __inline__ int acquire_sbi(int devid, int mask)
{
    __asm__ __volatile__ ("swapa [%2] %3, %0" :
                  "=r" (mask) :
                  "0" (mask),
                  "r" (ECSR_DEV_BASE(devid) | SBI_INTR_STATE),
                  "i" (ASI_M_CTL));
    return mask;
}

extern __inline__ void release_sbi(int devid, int mask)
{
    __asm__ __volatile__ ("sta %0, [%1] %2" : :
                  "r" (mask),
                  "r" (ECSR_DEV_BASE(devid) | SBI_INTR_STATE),
                  "i" (ASI_M_CTL));
}

extern __inline__ void set_sbi_tid(int devid, int targetid)
{
    __asm__ __volatile__ ("sta %0, [%1] %2" : :
                  "r" (targetid),
                  "r" (ECSR_DEV_BASE(devid) | SBI_INTR_TID),
                  "i" (ASI_M_CTL));
}

extern __inline__ int get_sbi_ctl(int devid, int cfgno)
{
    int cfg;
    
    __asm__ __volatile__ ("lda [%1] %2, %0" :
                  "=r" (cfg) :
                  "r" ((ECSR_DEV_BASE(devid) | SBI_CFG0) + (cfgno<<2)),
                  "i" (ASI_M_CTL));
    return cfg;
}

extern __inline__ void set_sbi_ctl(int devid, int cfgno, int cfg)
{
    __asm__ __volatile__ ("sta %0, [%1] %2" : :
                  "r" (cfg),
                  "r" ((ECSR_DEV_BASE(devid) | SBI_CFG0) + (cfgno<<2)),
                  "i" (ASI_M_CTL));
}

#endif /* !__ASSEMBLY__ */

#endif /* !(_SPARC_SBI_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.0047 ]--