亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲精品国产a| 日韩一级片网站| 欧美日韩精品系列| 制服丝袜激情欧洲亚洲| 久久精品夜夜夜夜久久| 亚洲精品你懂的| 麻豆国产精品777777在线| 国产成人福利片| 欧美视频日韩视频在线观看| 欧美成人性战久久| 亚洲欧洲一区二区在线播放| 日韩av在线发布| 成人一区在线看| 欧美一区二区三区免费大片| 中文字幕第一区| 美女网站一区二区| 99re这里只有精品6| 欧美一区国产二区| 亚洲男同性恋视频| 精品无人码麻豆乱码1区2区| 91社区在线播放| 欧美xxxxx裸体时装秀| 亚洲欧洲制服丝袜| 精品亚洲aⅴ乱码一区二区三区| 91蜜桃网址入口| 精品美女在线观看| 亚洲国产成人av| eeuss国产一区二区三区| 日韩免费高清电影| 亚洲激情欧美激情| 成人成人成人在线视频| 日韩一卡二卡三卡| 亚洲制服欧美中文字幕中文字幕| 国产乱国产乱300精品| 欧美三级欧美一级| 综合久久国产九一剧情麻豆| 精品一区二区免费| 91麻豆精品久久久久蜜臀| 亚洲美女免费视频| 粉嫩高潮美女一区二区三区| 91精品国产麻豆| 亚洲综合成人在线| 97精品久久久午夜一区二区三区 | 中文文精品字幕一区二区| 香蕉久久夜色精品国产使用方法| 成人少妇影院yyyy| 精品日韩一区二区三区| 污片在线观看一区二区| 一本大道综合伊人精品热热| 中文字幕电影一区| 国产成人精品免费看| 精品福利一二区| 奇米色777欧美一区二区| 欧美日产国产精品| 一卡二卡三卡日韩欧美| av网站免费线看精品| 国产农村妇女毛片精品久久麻豆 | 欧美成人欧美edvon| 午夜精品久久久久久久久| 在线精品视频免费观看| 国产精品福利一区| av电影天堂一区二区在线| 国产亚洲欧洲997久久综合 | 欧美一区二视频| 日日摸夜夜添夜夜添国产精品| 91国在线观看| 亚洲精品综合在线| 日本国产一区二区| 亚洲乱码国产乱码精品精小说| 成人黄色小视频| 综合久久综合久久| 一本久久a久久免费精品不卡| 亚洲欧美日韩国产手机在线 | 国产精品麻豆网站| 懂色av中文字幕一区二区三区| 国产欧美日韩另类视频免费观看| 国产自产视频一区二区三区| 精品免费视频.| 国产成都精品91一区二区三| 久久久久9999亚洲精品| 国产xxx精品视频大全| 中国色在线观看另类| 97久久精品人人爽人人爽蜜臀| 亚洲色图欧洲色图婷婷| 欧美网站大全在线观看| 国产乱对白刺激视频不卡| 精品奇米国产一区二区三区| 精品一区二区久久久| 久久久www成人免费毛片麻豆| 成人精品鲁一区一区二区| 中文字幕在线不卡一区 | 日韩二区三区四区| 日韩欧美激情一区| 国产伦理精品不卡| 国产精品乱人伦中文| 91小视频在线观看| 日韩黄色小视频| 精品粉嫩超白一线天av| 成人黄色777网| 亚洲欧美另类综合偷拍| 欧美精品日韩综合在线| 美女在线视频一区| 国产日产欧美一区| 在线看不卡av| 精品在线一区二区| 欧美国产日韩一二三区| 91成人免费在线| 麻豆精品一区二区三区| 国产精品久久久久久久久搜平片| 日本道色综合久久| 裸体在线国模精品偷拍| 亚洲国产精品成人综合| 欧美日韩视频在线第一区| 久久99精品久久久久久国产越南| 国产精品激情偷乱一区二区∴| 在线观看网站黄不卡| 老司机午夜精品99久久| 中文字幕在线不卡一区二区三区| 欧美日韩高清影院| 国产精品自在在线| 一二三四区精品视频| 精品久久久久香蕉网| 91在线视频观看| 久久99九九99精品| 亚洲精选一二三| 久久一日本道色综合| 欧美影院一区二区三区| 国产精品系列在线观看| 午夜精品福利在线| 中文av一区二区| 欧美一区二区三区思思人| 成a人片国产精品| 免费成人在线网站| 亚洲少妇中出一区| 久久亚洲精品小早川怜子| 在线视频中文字幕一区二区| 国产一区二区成人久久免费影院| 夜夜嗨av一区二区三区四季av| 久久久www成人免费毛片麻豆| 欧美三区在线观看| 99久久精品国产导航| 麻豆精品在线观看| 午夜精品福利视频网站| 国产精品福利一区| 久久精品视频在线免费观看| 欧美天天综合网| 91色.com| 成人性生交大片免费看在线播放 | 日韩欧美资源站| 在线观看亚洲精品| 99精品视频中文字幕| 韩国中文字幕2020精品| 日日摸夜夜添夜夜添国产精品| 亚洲欧美日韩电影| 国产精品福利影院| 久久精品亚洲精品国产欧美kt∨| 欧美美女一区二区在线观看| 91在线观看一区二区| 国产伦精品一区二区三区免费迷| 日韩高清在线电影| 亚洲综合色噜噜狠狠| 日韩一区有码在线| 日本一区二区在线不卡| 久久夜色精品一区| 日韩精品一区国产麻豆| 欧美老年两性高潮| 欧美性感一类影片在线播放| 91啪在线观看| 99精品在线观看视频| www.久久精品| 99天天综合性| 成人黄色片在线观看| 成人高清视频免费观看| 国产盗摄女厕一区二区三区| 久久se精品一区二区| 蜜桃视频在线观看一区| 人人狠狠综合久久亚洲| 日韩中文字幕亚洲一区二区va在线 | 一区二区三区在线播| 亚洲人成小说网站色在线| 亚洲欧美在线视频观看| 国产精品成人免费| 一区免费观看视频| 亚洲免费高清视频在线| 尤物在线观看一区| 一区二区三区波多野结衣在线观看| 最新中文字幕一区二区三区| 亚洲人成网站在线| 亚洲高清在线视频| 五月婷婷综合激情| 秋霞午夜鲁丝一区二区老狼| 日本美女视频一区二区| 久久99九九99精品| 国产精品综合视频| a亚洲天堂av| 欧美亚洲一区二区在线观看| 欧美色偷偷大香| 日韩一区二区三| 精品久久久久久久久久久久包黑料| 欧美精品一区二区三区蜜臀|