19 unsigned int SysConfRegAddr;
22 if ((SysConfRegAddr = *(vu32 *)0xbc0003c0) != 0) {
24 ptr = (vu8 *)(0xbc000000 + SysConfRegAddr + 0xF);
26 for (i = 0; i < SysConfLen; i++)
27 SysConf->data[i] = ptr[i];
30 if ((SysConf->EEGS >> 6 & 7) == 0) {
31 SysConf->EEGS &= 0xFFFF02FFFFFFFFFF;
61static u8 OSDConfig2[128];
63void SetOsdConfigParam2(
void *config,
int size,
int offset)
65 unsigned int WriteEnd, i;
69 if ((WriteEnd = offset + size) >= 0x81) {
70 unsigned int AmountToWrite;
72 AmountToWrite = 0x80 - offset;
78 WriteEnd = AmountToWrite + offset;
81 for (i = 0; offset < WriteEnd; i++, offset++) {
82 OSDConfig2[offset] = ptr[i];
86int GetOsdConfigParam2(
void *config,
int size,
int offset)
88 unsigned int AmountToRead, ReadEnd, i;
92 if ((ReadEnd = offset + size) >= 0x81) {
94 AmountToRead = 0x80 - offset;
102 ReadEnd = AmountToRead + offset;
103 for (i = 0; offset < ReadEnd; i++, offset++) {
104 ptr[i] = OSDConfig2[offset];
107 return (((SystemConfiguration.EEGS >> 6 & 7) != 0) ? (SystemConfiguration.EEGS >> 44 & 0xF) : 0);