!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:     setup_7751se.c (3.3 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* 
 * linux/arch/sh/kernel/setup_7751se.c
 *
 * Copyright (C) 2000  Kazumoto Kojima
 *
 * Hitachi SolutionEngine Support.
 *
 * Modified for 7751 Solution Engine by
 * Ian da Silva and Jeremy Siegel, 2001.
 */

#include <linux/config.h>
#include <linux/init.h>
#include <linux/irq.h>

#include <linux/hdreg.h>
#include <linux/ide.h>
#include <asm/io.h>
#include <asm/hitachi_7751se.h>

/*
 * Configure the Super I/O chip
 */
#if 0
/* Leftover code from regular Solution Engine, for reference. */
/* The SH7751 Solution Engine has a different SuperIO. */
static void __init smsc_config(int index, int data)
{
    outb_p(index, INDEX_PORT);
    outb_p(data, DATA_PORT);
}

static void __init init_smsc(void)
{
    outb_p(CONFIG_ENTER, CONFIG_PORT);
    outb_p(CONFIG_ENTER, CONFIG_PORT);

    /* FDC */
    smsc_config(CURRENT_LDN_INDEX, LDN_FDC);
    smsc_config(ACTIVATE_INDEX, 0x01);
    smsc_config(IRQ_SELECT_INDEX, 6); /* IRQ6 */

    /* IDE1 */
    smsc_config(CURRENT_LDN_INDEX, LDN_IDE1);
    smsc_config(ACTIVATE_INDEX, 0x01);
    smsc_config(IRQ_SELECT_INDEX, 14); /* IRQ14 */

    /* AUXIO (GPIO): to use IDE1 */
    smsc_config(CURRENT_LDN_INDEX, LDN_AUXIO);
    smsc_config(GPIO46_INDEX, 0x00); /* nIOROP */
    smsc_config(GPIO47_INDEX, 0x00); /* nIOWOP */

    /* COM1 */
    smsc_config(CURRENT_LDN_INDEX, LDN_COM1);
    smsc_config(ACTIVATE_INDEX, 0x01);
    smsc_config(IO_BASE_HI_INDEX, 0x03);
    smsc_config(IO_BASE_LO_INDEX, 0xf8);
    smsc_config(IRQ_SELECT_INDEX, 4); /* IRQ4 */

    /* COM2 */
    smsc_config(CURRENT_LDN_INDEX, LDN_COM2);
    smsc_config(ACTIVATE_INDEX, 0x01);
    smsc_config(IO_BASE_HI_INDEX, 0x02);
    smsc_config(IO_BASE_LO_INDEX, 0xf8);
    smsc_config(IRQ_SELECT_INDEX, 3); /* IRQ3 */

    /* RTC */
    smsc_config(CURRENT_LDN_INDEX, LDN_RTC);
    smsc_config(ACTIVATE_INDEX, 0x01);
    smsc_config(IRQ_SELECT_INDEX, 8); /* IRQ8 */

    /* XXX: PARPORT, KBD, and MOUSE will come here... */
    outb_p(CONFIG_EXIT, CONFIG_PORT);
}
#endif

/*
 * Initialize IRQ setting
 */
void __init init_7751se_IRQ(void)
{

  /* Leave old Solution Engine code in for reference. */
#if defined(CONFIG_SH_SOLUTION_ENGINE)
    /*
     * Super I/O (Just mimic PC):
     *  1: keyboard
     *  3: serial 0
     *  4: serial 1
     *  5: printer
     *  6: floppy
     *  8: rtc
     * 12: mouse
     * 14: ide0
     */
    make_ipr_irq(14, BCR_ILCRA, 2, 0x0f-14);
    make_ipr_irq(12, BCR_ILCRA, 1, 0x0f-12); 
    make_ipr_irq( 8, BCR_ILCRB, 1, 0x0f- 8); 
    make_ipr_irq( 6, BCR_ILCRC, 3, 0x0f- 6);
    make_ipr_irq( 5, BCR_ILCRC, 2, 0x0f- 5);
    make_ipr_irq( 4, BCR_ILCRC, 1, 0x0f- 4);
    make_ipr_irq( 3, BCR_ILCRC, 0, 0x0f- 3);
    make_ipr_irq( 1, BCR_ILCRD, 3, 0x0f- 1);

    make_ipr_irq(10, BCR_ILCRD, 1, 0x0f-10); /* LAN */

    make_ipr_irq( 0, BCR_ILCRE, 3, 0x0f- 0); /* PCIRQ3 */
    make_ipr_irq(11, BCR_ILCRE, 2, 0x0f-11); /* PCIRQ2 */
    make_ipr_irq( 9, BCR_ILCRE, 1, 0x0f- 9); /* PCIRQ1 */
    make_ipr_irq( 7, BCR_ILCRE, 0, 0x0f- 7); /* PCIRQ0 */

    /* #2, #13 are allocated for SLOT IRQ #1 and #2 (for now) */
    /* NOTE: #2 and #13 are not used on PC */
    make_ipr_irq(13, BCR_ILCRG, 1, 0x0f-13); /* SLOTIRQ2 */
    make_ipr_irq( 2, BCR_ILCRG, 0, 0x0f- 2); /* SLOTIRQ1 */

#elif defined(CONFIG_SH_7751_SOLUTION_ENGINE)

    make_ipr_irq(13, BCR_ILCRD, 3, 2);

    /* Add additional calls to make_ipr_irq() as drivers are added
     * and tested.
     */
#endif

}


/*
 * Initialize the board
 */
void __init setup_7751se(void)
{
    /* Call init_smsc() replacement to set up SuperIO. */
    /* XXX: RTC setting comes here */
}

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