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

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

?? syslib.c

?? 三星官方基于VXWORKS的S3C2510的BSP
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* sysLib.c - Samsung SNDS100 system-dependent routines */

#include "copyright_wrs.h"

/*
modification history
--------------------
01b,25nov99,knp changed name "end" to "secEnd"
01a,26aug99,ak/knp adapted for Samsung's snds100 board
*/

/*
DESCRIPTION
This library provides board-specific routines for the Samsung SNDS100
Ver 1.0 Development Board BSP.

It #includes the following chip drivers:
    nullVme.c -         dummy VMEbus routines
    sndsTimer.c -       SNDS timer driver
    sndsIntrCtl.c -     SNDS interrupt controller driver
    nullNvRam.c -	dummy NVRAM routines

It #includes the following BSP files:
    sysSerial.c -	serial device initialisation routines
    sysEnd.c -		END network driver support routines.

INCLUDE FILES: sysLib.h string.h intLib.h taskLib.h vxLib.h muxLib.h

SEE ALSO:
.pG "Configuration"
.I "ARM Architecture Reference Manual,"
.I "Samsung KS32C50100 Microcontroller User's Manual,"
.I "Samsung KS32C5000(A)/50100 Microcontroller Application Notes."
*/

/* includes */

#include "vxWorks.h"
#include "config.h"

#include "sysLib.h"
#include "string.h"
#include "intLib.h"
#include "taskLib.h"
#include "vxLib.h"
#include "muxLib.h"
#if (CPU == ARM710A)
#include "cacheLib.h"
#include "arch/arm/mmuArmLib.h"
#include "private/vmLibP.h"
#endif /* CPU == ARM710A */

/* imports */

IMPORT char end;		  /* end of system, created by ld */
IMPORT VOIDFUNCPTR _func_armIntStackSplit;	/* ptr to fn to split stack */


/* globals */

#if (CPU == ARM710A)
/*
 * The following structure describes the various different parts of the
 * memory map to be used only during initialisation by
 * vm(Base)GlobalMapInit() when INCLUDE_MMU_BASIC or INCLUDE_MMU_FULL are
 * defined.
 *
 * Clearly, this structure is only needed if the CPU has an MMU!
 *
 * The following are not the smallest areas that could be allocated for a
 * working system. If the amount of memory used by the page tables is
 * critical, they could be reduced.
 */

PHYS_MEM_DESC sysPhysMemDesc [] =
    {
    /* adrs and length parameters must be page-aligned (multiples of 0x1000) */
	
    /* DRAM */
    {
    (void *) LOCAL_MEM_LOCAL_ADRS,	/* virtual address */
    (void *) LOCAL_MEM_LOCAL_ADRS,	/* physical address */
    ROUND_UP (LOCAL_MEM_SIZE, PAGE_SIZE), /* length, then initial state: */
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE,
    VM_STATE_VALID	| VM_STATE_WRITABLE	 | VM_STATE_CACHEABLE
    },

    /*
     * ROM is normally marked as uncacheable by VxWorks. We leave it like that
     * for the time being, even though this has a severe impact on execution
     * speed from ROM.
     */
    {
    (void *) ROM_BASE_ADRS,
    (void *) ROM_BASE_ADRS,
    ROUND_UP (ROM_SIZE_TOTAL, PAGE_SIZE),
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE,
#ifdef INCLUDE_FLASH
    /* needs to be writable */

    VM_STATE_VALID	| VM_STATE_WRITABLE	 | VM_STATE_CACHEABLE_NOT
#else
    VM_STATE_VALID	| VM_STATE_WRITABLE_NOT  | VM_STATE_CACHEABLE_NOT
#endif
    },

    /*
     * I/O space:
     * Do not map in all I/O space, only that which has something there.
     * Otherwise we will use all of RAM allocating page tables!
     */
#ifdef INCLUDE_SERIAL
    {
    (void *) SERIAL_A_BASE_ADR,	/* KS32C50100 DUART */
    (void *) SERIAL_B_BASE_ADR,
    PAGE_SIZE,
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE,
  	  VM_STATE_VALID	| VM_STATE_WRITABLE	 | VM_STATE_CACHEABLE_NOT
    },
#endif /* INCLUDE_SERIAL */
    {
    (void *) ASIC_BASE,		/* Interrupt controller */
    (void *) ASIC_BASE,
    PAGE_SIZE,
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE,
    VM_STATE_VALID	| VM_STATE_WRITABLE	 | VM_STATE_CACHEABLE_NOT
    },
    {
    (void *) SNDS_TIMER_BASE,	/* Counter/Timer */
    (void *) SNDS_TIMER_BASE,
    PAGE_SIZE,
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE,
    VM_STATE_VALID	| VM_STATE_WRITABLE	 | VM_STATE_CACHEABLE_NOT
    },
#ifdef INCLUDE_OLI_END
    /* PCMCIA address areas */
    {
    (void *) NISA_BASE,		/* PCMCIA I/O space */
    (void *) NISA_BASE,
    PAGE_SIZE,
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE,
    VM_STATE_VALID	| VM_STATE_WRITABLE	 | VM_STATE_CACHEABLE_NOT
    },
    {
    (void *) NISA_PCMEM,	/* PCMCIA memory (and attribute memory */
    (void *) NISA_PCMEM,
    0x24000,			/*
				 * (64 kB memory + (4 kB attribute memory for
				 * each of two slots) ) * 2 because it is
				 * sparsely-addressed.
				 */
    VM_STATE_MASK_VALID | VM_STATE_MASK_WRITABLE | VM_STATE_MASK_CACHEABLE,
    VM_STATE_VALID	| VM_STATE_WRITABLE	 | VM_STATE_CACHEABLE_NOT
    },
#endif	/* INCLUDE_OLI_END */
    };

int sysPhysMemDescNumEnt = NELEMENTS (sysPhysMemDesc);
#endif /* CPU == ARM710A */

int	sysBus	     = BUS;		/* system bus type (VME_BUS, etc) */
int	sysCpu	     = CPU;		/* system cpu type */
char *	sysBootLine = BOOT_LINE_ADRS; 	/* address of boot line */
char *	sysExcMsg   = EXC_MSG_ADRS;	/* catastrophic message area */
int	sysProcNum;			/* proc	essor number of this cpu */
int	sysFlags;			/* boot flags */
char	sysBootHost [BOOT_FIELD_LEN];	/* name of host from which we booted */
char	sysBootFile [BOOT_FIELD_LEN];	/* name of file from which we booted */


/* locals */


#if SNDS_INT_NUM_LEVELS != 21
#   error sndsIntLvlMask is wrong size for number of levels
#endif


/* defines */

	
/* externals */

IMPORT void   sndsIntDevInit (void);
IMPORT void   sysIntStackSplit (char *, long);

/*local defines*/
#ifndef SNDS_CTRL_REG_READ
#   define SNDS_CTRL_REG_READ(x,result) \
	    ((result) = *(volatile UINT32 *)(x))
#endif	/*SNDS_READ*/

#ifndef SNDS_CTRL_REG_WRITE
#   define SNDS_CTRL_REG_WRITE(x,data) \
	    (*((volatile UINT32 *)(x)) = (data))
#endif /*SNDS_WRITE*/



/* globals */


/* forward LOCAL functions declarations */


/* forward declarations */

char *	sysPhysMemTop (void);
void sndsCacheFlush(void);  
void sndsCacheEnable(int cachesize);
void sndsCacheDisable(void);

/* included source files */

#ifdef INCLUDE_FLASH
#include "nvRamToFlash.c"
#include "mem/flashMem.c"
#endif  /* INCLUDE_FLASH */

#include "vme/nullVme.c"
#include "sysSerial.c"
#include "sndsIIC.c"
#include "sndsSio.c"
#include "sndsTimer.c"
#include "sndsIntrCtl.c"
#include "sysEnd.c"
/*******************************************************************************
*
* sysModel - return the model name of the CPU board
*
* This routine returns the model name of the CPU board.
* 
* RETURNS: A pointer to a string identifying the board and CPU.
*/

char *sysModel (void)
    {
#if	(CPU == ARM7TDMI_T)
    return	"ARM PID - ARM7TDMI (Thumb)";
#elif	(CPU == ARM7TDMI)
    return	"KS32C50100 FOR SNDS100 Ver 1.0";
#elif	(CPU == ARM710A)
    return	"ARM PID - ARM710A";
#endif	/* (CPU == ARM7TDMI_T) */
    }

/*******************************************************************************
*
* sysBspRev - return the bsp version with the revision eg 1.1/<x>
*
* This function returns a pointer to a bsp version with the revision.
* for eg. 1.1/<x>. BSP_REV is concatanated to BSP_VERSION to form the
* BSP identification string.
*
* RETURNS: A pointer to the BSP version/revision string.
*/

char * sysBspRev (void)
    {
    return (BSP_VERSION BSP_REV);
    }

/*******************************************************************************
*
* sysHwInit - initialize the CPU board hardware
*
* This routine initializes various features of the hardware.
* Normally, it is called from usrInit() in usrConfig.c.
*
* NOTE: This routine should not be called directly by the user.
*
* RETURNS: N/A
*/

void sysHwInit (void)
    {
    /* install the IRQ/SVC interrupt stack splitting routine */

    _func_armIntStackSplit = sysIntStackSplit;

#ifdef  INCLUDE_CACHE_SUPPORT
    sndsCacheEnable(SNDS_CACHE_8K);		/* enable  cache */
#endif	/* INCLUDE_CACHE_ENABLE */

    sysSerialHwInit ();      /* initialise serial data structure */
	sndsIICDevInit();
    }

/*******************************************************************************
*
* sysHwInit2 - additional system configuration and initialization
*
* This routine connects system interrupts and does any additional
* configuration necessary.
*
* RETURNS: N/A
*
* NOMANUAL
*
* Note: this is called from sysClkConnect() in the timer driver.
*/

void sysHwInit2 (void)
    {
    /* initialise the interrupt library and interrupt driver */

    intLibInit (SNDS_INT_NUM_LEVELS, SNDS_INT_NUM_LEVELS, INT_MODE);
    sndsIntDevInit();

    /* connect sys clock interrupt and auxiliary clock interrupt */

    (void)intConnect (INUM_TO_IVEC (INT_VEC_TIMER0), sysClkInt, 0);
    (void)intConnect (INUM_TO_IVEC (INT_VEC_TIMER1), sysAuxClkInt, 0);

    /* connect serial interrupt */
    sysSerialHwInit2();
	sndsIICDevInit2();
    }

/*******************************************************************************
*
* sysPhysMemTop - get the address of the top of physical memory

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区女| 日韩欧美国产一区二区在线播放| 久久精品一区二区三区不卡 | 一二三区精品视频| 欧美综合视频在线观看| 亚洲伦理在线精品| 欧美丝袜第三区| 精品一区二区三区欧美| 久久精品欧美一区二区三区不卡| 国产成人一区在线| 亚洲婷婷国产精品电影人久久| 色综合久久综合中文综合网| 亚洲最色的网站| 26uuu亚洲| 91在线播放网址| 秋霞成人午夜伦在线观看| 国产亚洲精品aa午夜观看| 色狠狠色狠狠综合| 韩国精品主播一区二区在线观看| 中文字幕二三区不卡| 欧美图片一区二区三区| 国产成人夜色高潮福利影视| 亚洲欧美经典视频| 日韩精品中文字幕在线不卡尤物| av在线一区二区三区| 韩国中文字幕2020精品| 亚洲一区二区欧美激情| 综合在线观看色| 久久久夜色精品亚洲| 欧美精品色一区二区三区| 成人黄色av网站在线| 国内精品视频一区二区三区八戒| 亚洲高清免费在线| 一区二区三区国产精华| 国产精品久久久久毛片软件| 日韩欧美国产不卡| 777xxx欧美| 国产免费观看久久| 久久久青草青青国产亚洲免观| 欧美精品电影在线播放| 欧美日韩美少妇| 91精品国产色综合久久ai换脸| 欧美日韩激情一区二区三区| 在线观看国产一区二区| 91国产精品成人| 日本久久电影网| 91传媒视频在线播放| 色婷婷亚洲婷婷| 欧美日本一区二区三区四区| 欧美日韩黄色一区二区| 日韩视频永久免费| 久久免费视频一区| 中文字幕亚洲视频| 亚洲一区在线视频| 麻豆一区二区三区| 国产成人欧美日韩在线电影| av在线不卡免费看| 欧洲中文字幕精品| 久久久精品tv| 亚洲一区二区三区三| 久久综合综合久久综合| 成人av在线播放网站| 欧美三级中文字| 久久婷婷国产综合精品青草| 亚洲欧美色图小说| 男女男精品网站| 94-欧美-setu| 日韩免费高清视频| 一区二区不卡在线视频 午夜欧美不卡在| 日本三级韩国三级欧美三级| 国产成人综合自拍| 欧美日韩高清在线播放| 国产午夜精品一区二区 | 日韩一级高清毛片| 亚洲精品亚洲人成人网| 麻豆freexxxx性91精品| 色999日韩国产欧美一区二区| 久久综合九色综合欧美98| 亚洲综合图片区| 不卡高清视频专区| 国产亚洲综合av| 激情综合网最新| 欧美一区二区三区免费视频| 国产精品国产三级国产| 国产久卡久卡久卡久卡视频精品| 在线播放亚洲一区| 亚洲高清视频中文字幕| 欧美日韩一区二区三区在线看| 国产精品麻豆视频| av影院午夜一区| 国产精品青草久久| 99精品视频免费在线观看| 国产精品久久毛片| 不卡av电影在线播放| 国产色产综合产在线视频| 精品一区二区免费视频| 欧美大肚乱孕交hd孕妇| 国产一区二区三区电影在线观看| 欧美xxxxx牲另类人与| 久久成人免费电影| 国产欧美一区二区精品性色 | 亚洲精品乱码久久久久久黑人 | 午夜精品一区在线观看| 欧美二区三区的天堂| 美腿丝袜在线亚洲一区| 26uuuu精品一区二区| 丁香啪啪综合成人亚洲小说| 自拍偷拍欧美激情| 欧美精品视频www在线观看| 麻豆成人综合网| 国产精品久久久爽爽爽麻豆色哟哟| 色综合视频一区二区三区高清| 亚洲一二三区视频在线观看| 欧美tickling网站挠脚心| 丁香一区二区三区| 亚洲综合一二区| 久久久夜色精品亚洲| 欧美在线你懂的| 懂色中文一区二区在线播放| 亚洲第一福利一区| 中文字幕中文字幕一区| 国产精品久久看| 欧美不卡一区二区三区四区| 91在线国产观看| 精品在线免费视频| 夜夜嗨av一区二区三区中文字幕| 欧美精品一区二区三区在线播放| 99久久99久久精品免费观看| 日韩福利电影在线| 亚洲一区二区精品3399| 亚洲欧美日韩国产另类专区| 久久嫩草精品久久久精品| 欧美一区二区免费视频| 色狠狠桃花综合| av中文字幕亚洲| 国产a久久麻豆| 懂色av一区二区夜夜嗨| 国产成人啪免费观看软件| 国产在线不卡一区| 久久成人免费网| 久久国产精品色婷婷| 免费成人av在线| 久久不见久久见免费视频1| 久久国产精品一区二区| 久久se这里有精品| 粉嫩高潮美女一区二区三区| 成人污污视频在线观看| 成人动漫一区二区三区| 成人三级伦理片| 91丨九色丨黑人外教| 欧美日韩午夜在线视频| 51精品国自产在线| 久久午夜老司机| 日韩久久一区二区| 日韩精品久久久久久| 久久国产综合精品| 91在线观看视频| 欧美大片一区二区| 国产精品美女久久久久久久网站| 欧美国产综合一区二区| 亚洲免费观看视频| 日韩成人免费看| 9久草视频在线视频精品| 91精品国产综合久久久久久漫画| 欧美一级二级在线观看| 欧美激情一区二区三区全黄| 亚洲成av人影院在线观看网| 国产精品中文有码| 制服视频三区第一页精品| 国产欧美精品区一区二区三区| 亚洲三级免费观看| 国产精品一线二线三线精华| 欧美三级日本三级少妇99| 国产午夜亚洲精品午夜鲁丝片| 日韩精品1区2区3区| 91蝌蚪porny九色| 国产日韩欧美在线一区| 日韩精品一二区| 欧美三级在线视频| 亚洲免费在线看| 不卡视频在线看| 欧美—级在线免费片| 久久 天天综合| 911精品国产一区二区在线| 一区二区三区高清在线| 成人av集中营| 国产精品天天摸av网| 不卡的av网站| 亚洲视频免费在线| 色综合久久久网| 亚洲午夜电影在线观看| 欧美中文字幕一区| 日日噜噜夜夜狠狠视频欧美人| 欧美日韩国产不卡| 欧美bbbbb| 久久精品视频在线免费观看| 国产91精品在线观看| 亚洲乱码中文字幕综合| 精品视频全国免费看| 免费成人在线观看|