?? postinit.c
字號:
/* openbios/arch/pallas/redwood5/postinit.c *//*-----------------------------------------------------------------------------+|| This source code has been made available to you by IBM on an AS-IS| basis. Anyone receiving this source is licensed under IBM| copyrights to use it in any way he or she deems fit, including| copying it, modifying it, compiling it, and redistributing it either| with or without modifications. No license under IBM patents or| patent applications is to be implied by the copyright license.|| Any user of this software should understand that IBM cannot provide| technical support for this software and will not be responsible for| any consequences resulting from the use of this software.|| Any person who transfers this source code or any derivative work| must include the IBM copyright notice, this paragraph, and the| preceding two paragraphs in the transferred software.|| COPYRIGHT I B M CORPORATION 1995| LICENSED MATERIAL - PROGRAM PROPERTY OF I B M+-----------------------------------------------------------------------------*//*-----------------------------------------------------------------------------+|| File Name: postinit.c|| Function: Do more board init before OPENBIOS is startup.|| Author: Yudong Yang|| Change Activity-|| Date Description of Change BY| --------- --------------------- ---| 26-Mar-02 Created YYD|+-----------------------------------------------------------------------------*/void board_post_init(void){ unsigned long XilinxBase; unsigned short *pX1, *pX2; XilinxBase = (unsigned long)0xF2040000; pX1 = (unsigned short *)(XilinxBase + 0xa); pX2 = (unsigned short *)(XilinxBase + 0xe); *pX1 = 0x01D1; *pX2 = 0x0008; usdelay(1000); *pX1 = 0x11D1; *pX2 = 0x0008; return; // not needed yet}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -