亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sysinit.c

?? 這是單板上DPRAM的驅(qū)動程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* @(#) pSOSystem PowerPC/V2.2.2: configs/sysinit.c (ppc) 3.203 97/11/10 10:08:57 */
/***********************************************************************/
/*                                                                     */
/*   MODULE:  configs/std/sysinit.c                                    */
/*   DATE:    97/11/10                                                 */
/*   PURPOSE: Main system configuration file                           */
/*                                                                     */
 /*-------------------------------------------------------------------*/
/*                                                                     */
/*           Copyright 1991 - 1997, Integrated Systems, Inc.           */
/*                      all RIGHTS RESERVED                            */
/*                                                                     */
/*   Permission is hereby granted to licensees of Integrated Systems,  */
/*   Inc. products to use or abstract this computer program for the    */
/*   sole purpose of implementing a product based on Integrated        */
/*   Systems, Inc. products.   No other rights to reproduce, use,      */
/*   or disseminate this computer program, whether in part or in       */
/*   whole, are granted.                                               */
/*                                                                     */
/*   Integrated Systems, Inc. makes no representation or warranties    */
/*   with respect to the performance of this computer program, and     */
/*   specifically disclaims any responsibility for any damages,        */
/*   special or consequential, connected with the use of this program. */
/*                                                                     */
/*---------------------------------------------------------------------*/
/*                                                                     */
/*   This code in this module controls the configuration of the        */
/*   operating system.  Many configurations are possible, based on     */
/*   these inputs:                                                     */
/*     * Options selected in "sys_conf.h"                              */
/*     * The capabilities of the board-support package being used,     */
/*       as defined in "bsp.h"                                         */
/*     * Answers given to questions in the startup configuration       */
/*       dialog, if it is enabled                                      */
/*                                                                     */
/***********************************************************************/
#if __cplusplus
extern "C" {
#endif

#define _SYSINIT_C 1
#include "sys_conf.h"
#include "bsp.h"
#include <bspfuncs.h>
#include <pna.h>
#include <configs.h>
#include <sysvars.h>
#include <apdialog.h>
#include <version.h>
#include <machine.h>


#if (VERSION != BSP_VERSION)
    #error "BSP_VERSION and pSOSystem VERSION do not match!"
#endif

#if SC_PSOS && SC_PSOSM
    #error "Cannot use both pSOS+ and pSOS+m!"
#endif


#if SC_PSOSM
     #define PSOS_INIT pSOSm_Init
#else
     #define PSOS_INIT pSOS_Init
#endif

static void Delay5sec(void);

extern ULONG Dialog(void);

/*---------------------------------------------------------------------*/
/* Compile-time checks                                                 */
/*---------------------------------------------------------------------*/
#if (SC_DEV_SERIAL && BSP_SERIAL)
    #if(SC_DEV_SERIAL > SC_DEVMAX)
        #error "SC_DEV_SERIAL cannot be > SC_DEVMAX"
    #endif
#endif
#if SC_DEV_TIMER
    #if(SC_DEV_TIMER > SC_DEVMAX)
        #error "SC_DEV_TIMER cannot be > SC_DEVMAX"
    #endif
    #if (!SC_PSOS && !SC_PSOSM)
        #error "Must have pSOS+ or pSOS+m in system to use tick timer!"
    #endif
#endif
#if SC_DEV_RAMDISK
    #if(SC_DEV_RAMDISK > SC_DEVMAX)
        #error "SC_DEV_RAMDISK cannot be > SC_DEVMAX"
    #endif
#endif
#if (SC_DEV_SCSI && BSP_SCSI)
    #if(SC_DEV_SCSI > SC_DEVMAX)
        #error "SC_DEV_SCSI cannot be > SC_DEVMAX"
    #endif
#endif
#if (SC_DEV_TFTP)
    #if(SC_DEV_TFTP > SC_DEVMAX)
        #error "SC_DEV_TFTP cannot be > SC_DEVMAX"
    #endif
#endif

/*---------------------------------------------------------------------*/
/* External function declarations                                      */
/*---------------------------------------------------------------------*/
extern ULONG Print(char *format, ...);

#if !BSP_NEW_SERIAL
    extern void SerialSetup(ULONG, ULONG, ULONG);
#endif

#define MAGIC 0x05291989
#define ALIGN(addr, boundary) ((addr + boundary - 1) & ~(boundary - 1))

extern UCHAR FreeMemStart[];
#if (GHS || __DIAB)
extern UCHAR TextEnd[];
extern UCHAR DataStart[];
extern UCHAR DataEnd[];
#endif	/* GHS || __DIAB */

extern const char MemErrMsg[] =
  "System Initialization Failed: insufficient memory available!";

NV_Parms NVVars;

#define  PROBE_CON_SER_PORT  SC_PROBE_CONSOLE

#if BSP_NEW_SERIAL
    /*-----------------------------------------------------------------*/
    /* Set up the non pSOS port array.                                 */
    /*-----------------------------------------------------------------*/
    int Non_pSOSChan[SC_NumNon_pSOSChan+2];
    int NumNon_pSOSChan;
    int SysBaud;
    int SysConsole;
#endif

extern UCHAR *PnaSetup(UCHAR *,  NODE_CT *);
extern UCHAR *PrepcSetup(UCHAR *,  NODE_CT *);
extern UCHAR *PsosSetup(UCHAR *,  NODE_CT *);
extern UCHAR *PhileSetup(UCHAR *,  NODE_CT *);
extern UCHAR *PrpcSetup(UCHAR *,  NODE_CT *);
extern UCHAR *ProbeSetup(UCHAR *,  NODE_CT *);
extern UCHAR *PmontSetup(UCHAR *, NODE_CT *);
extern UCHAR *PseSetup(UCHAR *,  NODE_CT *);
#if (SC_PX)
extern UCHAR *PxSetup(UCHAR *,  NODE_CT *);
#endif

#if ((SC_PSOS == USEROM) || (SC_PSOSM == USEROM))

#if (SC_BOOT_ROM == YES)
#error "Must not use SC_PSOS or SC_PSOSM USEROM with SC_BOOT_ROM code"
#endif /* SC_BOOT_ROM */

ULONG (*pSOS_tmp)(void);
#else
extern void PSOS_INIT(void);
#endif

#if (SC_PROBE == USEROM)

#if (SC_BOOT_ROM == YES)
#error "Must not use SC_PROBE USEROM with SC_BOOT_ROM code"
#endif /* SC_BOOT_ROM */

ULONG (*pROBE_tmp)(void);
#endif

static const struct SD_parms SysVarsDefaults =
    {
    SC_SD_DEBUG_MODE,
    0, 0, 0,
    SD_STARTUP_DELAY,
    SD_DEF_BAUD,
    SD_VME_BASE_ADDR,
    SD_DEF_GTWY_IP,
    SD_LAN1,
    0, 0, 0,
    SD_LAN1_IP,
    SD_LAN1_SUBNET_MASK,
    SD_SM_NODE,
    SD_NISM,
    0, 0, 0,
    SD_NISM_IP,
    SD_NISM_SUBNET_MASK,
    SD_NISM_DIRADDR,
    SD_KISM,
    SD_KISM_DIRADDR,
    };

#if BSP_NEW_SERIAL
    #if (BSP_MMU == YES)
        UCHAR *gGsBlkArea;          /* Start address of the GS block area */
        ULONG  gGsBlkAreaSize = 0;  /* Size of the allocated region */
    #endif
                                                    
    extern UCHAR *GSblkSetup(UCHAR *, ULONG, ULONG *);
    extern void SerialInit(void);

    /*-----------------------------------------------------------------*/
    /* Global variables set here used by dipi                          */
    /*-----------------------------------------------------------------*/
    int ProbeCon, ProbeHst;

#endif

#if !BSP_NEW_SERIAL && BSP_PARALLEL
        extern UCHAR *GSblkSetup(UCHAR *, ULONG, ULONG *);
    #if (BSP_MMU == YES)
        UCHAR *gGsBlkArea;          /* Start address of the GS block area */
        ULONG  gGsBlkAreaSize = 0;  /* Size of the allocated region */
    #endif
#endif
 
NODE_CT *oldanchor;

/*---------------------------------------------------------------------*/
/* Node anchor and node configuration table.  The anchor address is    */
/* defined in the linker command file.  The anchor is a pointer to the */
/* node configuration table, which in turn points to the configuration */
/* tables for the various components.                                  */
/*---------------------------------------------------------------------*/
extern NODE_CT *anchor;
extern NODE_CT *rom_anchor;
NODE_CT NodeCfg;


/*******************************************************************/
/*    CheckSum: Calculate the checksum for a STORAGE structure     */
/*                                                                 */
/*      INPUTS: StructPtr - ptr to structure to checksum           */
/*              StructSize - size of structure in bytes            */
/*     RETURNS: Checksum for the structure                         */
/*        NOTE: We consider the "checksum" to be simply the sum of */
/*              the individual bytes in the structure              */
/*                                                                 */
/*******************************************************************/
ULONG CheckSum(void *StructPtr, int StructSize)
{
UCHAR *p = (UCHAR *)StructPtr;
USHORT tot = 0;

while(StructSize--)
    tot += *p++ & 0xFF;
return tot;
}


/***********************************************************************/
/* AdjustSysVars: Make any run-time adjustments necessary to the       */
/*                system variables                                     */
/*                                                                     */
/*        NOTE: This should be called after the system variables have  */
/*              been "finalized" by reading from parameter storage and */
/*              possibly being changed by the startup dialog           */
/*                                                                     */
/***********************************************************************/
static void AdjustSysVars(void)
{
#if (!SC_PSOS && !SC_PSOSM)
    if (SysVars.DebugMode == DBG_AP)
        {
        #if SC_STARTUP_DIALOG
            Print("Configured to run application, but pSOS+ not "
              "present, so setting to stand-alone pROBE+\n");
        #endif
        SysVars.DebugMode = DBG_SA;
        }
#endif

#if !SC_PNA
    if (SysVars.DebugMode == DBG_XN)
        {
        #if SC_STARTUP_DIALOG
            Print("Operating mode was remote debug/networked, "
              "but pNA not present\n");
            Print("Setting pROBE+ mode to standalone!\n");
        #endif
        SysVars.DebugMode = DBG_SA;
        }
#endif

#if !SC_RBUG_PORT
    if (SysVars.DebugMode == DBG_XS)
        {
        #if SC_STARTUP_DIALOG
            Print("Operating mode was remote debug/Serial, but "
              "SC_RBUG_PORT is not set.\n");
            Print("Setting pROBE+ mode to standalone!\n");
        #endif
        SysVars.DebugMode = DBG_SA;
        }
#endif

#if !BSP_LAN1
    if (SysVars.Lan1)
        {
        #if SC_STARTUP_DIALOG
            Print("LAN interface requested, but BSP does not "
              "support it\n");
        #endif
        SysVars.Lan1 = 0;
        }
#endif
}

/***********************************************************************/
/* BuildConfigTables: Build the component configuration tables, using  */
/*                    information from the system variables (SysVars). */
/*                                                                     */
/*       INPUT: FreeMemPtr - Pointer to first byte of available memory */
/*                                                                     */
/***********************************************************************/
static UCHAR *BuildConfigTables(UCHAR *FreeMemPtr)
{

#if (SC_BOOT_ROM == YES)
    oldanchor = (void *)0;
#else /* SC_BOOT_ROM */
    oldanchor = rom_anchor;
#endif /* SC_BOOT_ROM */

/* This is where the component's configuration functions are called */
#if SC_PROBE
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = ProbeSetup(FreeMemPtr, &NodeCfg);
#endif
#if SC_PNA
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = PnaSetup(FreeMemPtr, &NodeCfg);
#endif
#if SC_PREPC
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = PrepcSetup(FreeMemPtr, &NodeCfg);
#endif
#if (SC_PHILE || SC_DEV_RAMDISK || SC_DEV_SCSI)
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = PhileSetup(FreeMemPtr, &NodeCfg);
#endif
#if SC_PRPC
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = PrpcSetup(FreeMemPtr, &NodeCfg);
#endif
#if SC_PX
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = PxSetup(FreeMemPtr, &NodeCfg);
#endif
#if SC_PSE
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = PseSetup(FreeMemPtr, &NodeCfg);
#endif
#if SC_PMONT
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = PmontSetup(FreeMemPtr, &NodeCfg);
#endif

/*---------------------------------------------------------------------*/
/* Perform any BSP specific configuration functions. Most of the node  */
/* configuration table can be used by BspSetup(). Only PsosSetup has   */
/* not been done when BspSetup is called. BspSetup may rely on this.   */
/*---------------------------------------------------------------------*/
FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
FreeMemPtr = (UCHAR *)BspSetup(FreeMemPtr, &NodeCfg);

#if (BSP_MMU == YES)
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = BspMmuInit((ULONG) FreeMemPtr);
#endif
 
#if (SC_PSOS || SC_PSOSM)
    /*-----------------------------------------------------------------*/
    /* PsosSetup() must be called after all other Setup functions.     */
    /*                                                                 */
    /* If pSOS+ has been configured into the system, the FreeMemPtr is */
    /* now part of pSOS+ region zero!  So it can't be used to allocate */
    /* any more memory after this.                                     */
    /*-----------------------------------------------------------------*/
    FreeMemPtr = (UCHAR *)ALIGN((ULONG)FreeMemPtr, 4);
    FreeMemPtr = PsosSetup(FreeMemPtr, &NodeCfg);
#endif

/*---------------------------------------------------------------------*/
/* Finally, finish up node configuration table and set node anchor to  */
/* point to it.                                                        */
/*---------------------------------------------------------------------*/
NodeCfg.cputype = BspCpuType();
if( ((NodeCfg.cputype & 0xff) == PPC603e) ||
    ((NodeCfg.cputype & 0xff) == PPC603p) )
     NodeCfg.cputype =  (NodeCfg.cputype & ~0xff) | PPC603;
else if( ((NodeCfg.cputype & 0xff) == PPC604e) ||
         ((NodeCfg.cputype & 0xff) == PPC604r) ||
         ((NodeCfg.cputype & 0xff) == PPC604p) )
     NodeCfg.cputype =  (NodeCfg.cputype & ~0xff) | PPC604;
else if( (NodeCfg.cputype & 0xff) == PPC860) 
     NodeCfg.cputype =  (NodeCfg.cputype & ~0xff) | PPC821;

#if (BSP_MMU == YES)
    NodeCfg.cputype |= 0x200;
#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜在线电影| 亚洲国产精品t66y| 水野朝阳av一区二区三区| 精品婷婷伊人一区三区三| 亚洲成人午夜影院| 欧美美女网站色| 蜜桃在线一区二区三区| 26uuu久久天堂性欧美| 国产**成人网毛片九色| 136国产福利精品导航| 欧美日韩一区二区三区在线看| 天天色天天爱天天射综合| 欧美一区二区三区视频在线| 国产乱理伦片在线观看夜一区| 国产精品系列在线| 欧美色大人视频| 精品一区二区三区在线播放视频| 欧美国产精品一区二区| 日本福利一区二区| 精品一区二区久久| 国产精品成人网| 在线播放国产精品二区一二区四区 | 玉足女爽爽91| 欧美一区三区四区| eeuss鲁一区二区三区| 一二三区精品福利视频| 久久综合九色综合欧美98| 91在线云播放| 国产在线国偷精品免费看| 亚洲黄色性网站| 久久久不卡网国产精品二区| 91九色02白丝porn| 国产精品亚洲专一区二区三区| 亚洲综合在线观看视频| 久久久国产午夜精品| 欧美精品久久一区二区三区| 成人午夜电影小说| 蜜桃精品视频在线观看| 亚洲综合免费观看高清完整版 | 国产女同互慰高潮91漫画| 91丨九色丨蝌蚪丨老版| 精品一区二区在线免费观看| 一区二区三区国产精华| 国产视频视频一区| 日韩一区二区在线看| 91成人在线观看喷潮| 国产成人精品影视| 麻豆精品在线看| 亚洲成人av一区| 亚洲视频一区二区在线| 国产欧美日韩麻豆91| 亚洲精品一区二区三区在线观看 | 狠狠狠色丁香婷婷综合激情| 亚洲高清在线精品| 亚洲精品少妇30p| 国产精品看片你懂得| 久久这里只有精品首页| 欧美一二区视频| 91精品婷婷国产综合久久性色| 欧美亚洲动漫精品| 91蜜桃免费观看视频| www.久久久久久久久| 国产夫妻精品视频| 国产在线看一区| 久久精品国产99| 精品一区二区三区日韩| 久久精品国产亚洲5555| 美脚の诱脚舐め脚责91| 免费成人av在线| 久久99久久99小草精品免视看| 亚洲国产成人tv| 日本不卡视频在线| 国产成人精品一区二区三区四区 | 中文文精品字幕一区二区| 久久亚区不卡日本| 久久这里只有精品6| 久久久激情视频| 亚洲国产经典视频| 中文字幕永久在线不卡| 国产精品久久久久久久裸模| 欧美国产日本视频| 国产精品久久久99| 亚洲欧美在线观看| 亚洲一区二区综合| 日韩国产欧美在线播放| 久久精品国产99| 高清在线成人网| aaa国产一区| 欧美中文字幕一区二区三区| 欧美无砖砖区免费| 日韩欧美国产三级电影视频| 欧美精品一区二区高清在线观看| 久久免费的精品国产v∧| 国产精品少妇自拍| 一区二区三区精品在线观看| 午夜精品一区二区三区免费视频| 三级欧美在线一区| 韩国中文字幕2020精品| 处破女av一区二区| 欧美性猛交xxxxxxxx| 欧美一区二区三区视频在线 | 欧美极品美女视频| 一区二区免费在线| 免费精品99久久国产综合精品| 极品美女销魂一区二区三区免费| 国产成人精品免费| 欧美性感一区二区三区| 欧美白人最猛性xxxxx69交| 日本一区二区电影| 亚洲一区二区精品3399| 久久草av在线| 97久久精品人人做人人爽| 制服丝袜av成人在线看| 日本一区二区三级电影在线观看 | 免费人成网站在线观看欧美高清| 国产一区不卡在线| 欧美视频完全免费看| 久久久久99精品一区| 午夜精品久久久久久久蜜桃app| 国产精品综合视频| 欧美福利视频导航| 国产精品久久久久9999吃药| 午夜久久久影院| 99精品偷自拍| 久久久亚洲综合| 青娱乐精品视频| 91久久精品网| 国产精品沙发午睡系列990531| 免费黄网站欧美| 欧美无砖专区一中文字| 国产精品美女久久久久av爽李琼| 亚洲国产精品人人做人人爽| 波多野结衣亚洲一区| 2024国产精品视频| 日韩精品1区2区3区| 99精品国产99久久久久久白柏| 欧美精品一区二区三区高清aⅴ | 3d动漫精品啪啪| 亚洲免费观看高清| 国产91精品免费| 欧美www视频| 日本不卡一二三区黄网| 欧美视频在线观看一区| 亚洲色图视频免费播放| 成人免费看的视频| 国产亲近乱来精品视频 | 日韩高清一区在线| 日本丶国产丶欧美色综合| 国产欧美日韩在线看| 精品一区二区国语对白| 日韩午夜激情电影| 日韩主播视频在线| 欧美精品久久久久久久久老牛影院| 亚洲欧美日韩人成在线播放| 不卡电影免费在线播放一区| 欧美精品一区二区高清在线观看 | 18涩涩午夜精品.www| 国产69精品久久久久777| 久久久不卡网国产精品二区| 精品在线播放免费| 日韩欧美精品在线| 九九在线精品视频| 26uuu久久综合| 国产精一品亚洲二区在线视频| 久久亚洲综合色一区二区三区 | 中文字幕在线不卡| aaa亚洲精品| 亚洲精品成人精品456| 91精品福利在线| 亚洲成a天堂v人片| 91精品国产黑色紧身裤美女| 青青草91视频| www国产精品av| 丰满少妇久久久久久久| 国产精品网曝门| 91成人网在线| 日韩av电影免费观看高清完整版| 在线播放国产精品二区一二区四区| 日本亚洲三级在线| 国产午夜精品久久久久久免费视| 国产成人精品aa毛片| 亚洲理论在线观看| 欧美一级xxx| 国产91色综合久久免费分享| 亚洲欧美日韩中文字幕一区二区三区| 欧洲精品一区二区| 日韩av中文字幕一区二区三区 | 色94色欧美sute亚洲线路一ni| 亚洲永久精品国产| 3d动漫精品啪啪1区2区免费| 国产精品综合久久| 亚洲视频中文字幕| 宅男噜噜噜66一区二区66| 国产美女视频91| 亚洲欧美另类综合偷拍| 日韩视频一区二区| 成人免费看视频| 日本在线不卡视频| 国产精品福利影院| 日韩欧美一区二区久久婷婷|