AAEON FWS-2200 User Manual

Page 93

Advertising
background image

N e t w o r k Ap p l i a n c e

F W S - 2 2 0 0

Appendix C Standard Firewall Platform Setting

C-7

C.3 LAN Bypass Mode Sample Code

#define LANBP_BASE_ADDR

0x48C

#define PAIR_SEL_BASE_ADDR

0x4B8

/*

Select LAN Pair I or II

PAIR_NUM =

0x00 - PAIR I

0x01 - PAIR II

*/

VOID SEL_PAIR(

IN

UINT8 PAIR_NUM;

)

{

UINT8 TEMP8;

PAIR_NUM = PAIR_NUM << 5;

TEMP8 = IoIn8(PAIR_SEL_BASE_ADDR) & 0xDF;

TEMP8 |= PAIR_NUM;

IoOut8(PAIR_SEL_BASE_ADDR, TEMP8);

}

/*

Execute LAN ByPass Settings

Advertising