📄 window.c
字号:
/*
Copyright(c) 1998,1999 SIC/Hitachi,Ltd.
Module Name:
window.c
Revision History:
26th April 1999 Released
23rd September 1999 Released
*/
#include <windows.h>
#include <types.h>
#include <cardserv.h>
#include <sockserv.h>
#include <memory.h>
#include "shx.h"
#include "cc.h"
#include "platform.h"
#include "drv_glob.h"
#include "pcmciapd.h"
#define BCR2 *(volatile USHORT * const)(BSC_REGBASE + BSC_BCR2_OFFSET)
BOOL ChangeBusSize(BOOL bSocketZero,BOOL b16Bit)
{
USHORT BSC_BCR_VALUE;
if (b16Bit)
if (bSocketZero)
BCR2 =((BCR2 & (~BSC_BCR2_A5SZ)) | BSC_BCR2_A5SZ_16);
else
BCR2 =((BCR2 & (~BSC_BCR2_A5SZ)) | BSC_BCR2_A5SZ_16);
else
if (bSocketZero)
BCR2 =((BCR2 & (~BSC_BCR2_A6SZ)) | BSC_BCR2_A6SZ_8);
else
BCR2 =((BCR2 & (~BSC_BCR2_A5SZ)) | BSC_BCR2_A5SZ_8);
BSC_BCR_VALUE = BCR2;
DEBUGMSG(ZONE_PDD,(TEXT("PCMCIA : BCR2 = 0x%x\r\n"), BSC_BCR_VALUE));
return TRUE;
}
#include "hd465window.c"
//
// isSh4Area6(UINT32 uWIndow);
//
// @func BOOL | isSh4Area6 | Report current window is in area6 or not
// @rdesc Returns TRUE if uWindow is in Area 6, Otherwise FALSE.
//
BOOL
isSh4Area6(
UINT32 uWindow// @parm Window number (the first window is 0)
)
{
if (uWindow < PCMCIA_NUM_WINDOWS) {
if (v_WinState[uWindow].uBase>=AREA_6)
return TRUE;
}
return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -