54
if(GetBit(PowerOn, LAN3_PWRON_FLAG)) strcpy(Lan3PowerON, BP);
else strcpy(Lan3PowerON, PT);
if(GetBit(PowerOff, LAN3_PWROFF_FLAG)) strcpy(Lan3PowerOFF, BP);
else strcpy(Lan3PowerOFF, PT);
if(GetBit(PowerOn, LAN4_PWRON_FLAG)) strcpy(Lan4PowerON, BP);
else strcpy(Lan4PowerON, PT);
if(GetBit(PowerOff, LAN4_PWROFF_FLAG)) strcpy(Lan4PowerOFF, BP);
else strcpy(Lan4PowerOFF, PT);
if(WDT == 0x00) strcpy(LAN_WDT, Rst);
else strcpy(LAN_WDT, BP);
printf("[LAN 1]\n");
printf("Power ON:%s\n", Lan1PowerON); printf("Power OFF:%s\n", Lan1PowerOFF);
printf("[LAN 2]\n");
printf("Power ON:%s\n", Lan2PowerON); printf("Power OFF:%s\n", Lan2PowerOFF);
printf("[LAN 3]\n");
printf("Power ON:%s\n", Lan3PowerON); printf("Power OFF:%s\n", Lan3PowerOFF);
printf("[LAN 4]\n");
printf("Power ON:%s\n", Lan4PowerON); printf("Power OFF:%s\n", Lan4PowerOFF);
printf("[WDT]\n");
printf("WDT Event:%s\n", LAN_WDT);
}
void LanSetup(int group, char cmd, char state){
char
PowerOn, PowerOff, WDT, bitoffset;
outportb(CMOS_INDX_PORT, LAN_STATUS_FLAG_PWRON);
PowerOn = inportb(CMOS_DATA_PORT);
outportb(CMOS_INDX_PORT, LAN_STATUS_FLAG_PWROFF);
PowerOff = inportb(CMOS_DATA_PORT);
outportb(CMOS_INDX_PORT, LAN_STATUS_FLAG_WDT);
WDT = inportb(CMOS_DATA_PORT);
switch(group){
case 0x01 :
bitoffset = 0;
break;
Содержание NSP-2C30
Страница 1: ...1 Network Security System NSP 2C30 Always at the forefront of innovation User Manual...
Страница 7: ...7 Chapter 1 General Information...
Страница 11: ...11 Figure 1 1 System Layout of NSP 2C30 1 4 System Layout...
Страница 12: ...12 Front View With different combination of LAN Modules Rear View 1 5 Indicators Features...
Страница 13: ...13 Chapter 2 Preparation...
Страница 24: ...24 Chapter 3 Operation...
Страница 29: ...29 Chapter 4 BIOS Setup...
Страница 47: ...47 Chapter 5 Programming Guide...
Страница 63: ...63 Chapter 6 Q A...