58
//LAN Switch Sample Code
//------------------------------------------------------------------------
void SetStatusFlag(char PowerON, char PowerOFF, char WDT)
{
outportb(CMOS_INDX_PORT, LAN_STATUS_FLAG_PWRON);
outportb(CMOS_DATA_PORT, PowerON);
outportb(CMOS_INDX_PORT, LAN_STATUS_FLAG_PWROFF);
outportb(CMOS_DATA_PORT, PowerOFF);
outportb(CMOS_INDX_PORT, LAN_STATUS_FLAG_WDT);
outportb(CMOS_DATA_PORT, WDT);
}
//------------------------------------------------------------------------
void SetBit(char *Data, char Bit)
{
switch(Bit)
{
case 0:
*Data |= 0x01;
break;
case 1:
*Data |= 0x02;
break;
case 2:
*Data |= 0x04;
break;
case 3:
*Data |= 0x08;
break;
case 4:
*Data |= 0x10;
break;
case 5:
*Data |= 0x20;
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...