Two Port 10/100 Managed Ethernet Switch with 16-Bit Non-PCI CPU Interface

Datasheet

14.5.3.9Switch Engine VLAN Write Data Register (SWE_VLAN_WR_DATA)

Register #:

180Ch

Size:

32 bits

This register is used write the VLAN or Port VID tables.

BITS

 

 

 

 

DESCRIPTION

 

 

TYPE

DEFAULT

 

 

 

 

 

 

 

 

 

31:18

RESERVED

 

 

 

RO

-

 

 

 

 

 

 

 

 

17:0

Port Default VID and Priority

 

 

R/W

0b

 

When the port VID table is selected (PVIDnVLAN=1 of the Switch Engine

 

 

 

VLAN Command Register (SWE_VLAN_CMD)), bits 11:0 of this field specify

 

 

 

the default VID for the port and bits 14:12 specify the default priority. All

 

 

 

other bits of this field are reserved. These bits are used when a packet is

 

 

 

received without a VLAN tag or with a NULL VLAN ID. By default, the VID

 

 

 

and priority for all three ports is 0.

 

 

 

 

 

Note:

Values of 0 and FFFh should not be used since they are special

 

 

 

 

 

VLAN IDs per the IEEE 802.3Q specification.

 

 

 

 

 

VLAN Data

 

 

 

 

 

 

When the VLAN table is selected (PVIDnVLAN=0 of the Switch Engine

 

 

 

VLAN Command Register (SWE_VLAN_CMD)), the bits form the VLAN

 

 

 

table entry as follows:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BITS

 

 

DESCRIPTION

DEFAULT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

17

 

Member Port 2

0b

 

 

 

 

 

 

 

Indicates the configuration of Port 2 for this VLAN entry.

 

 

 

 

 

 

 

 

1 = Member - Packets with a VID that matches this entry

 

 

 

 

 

 

 

 

are allowed on ingress. The port is a member of the

 

 

 

 

 

 

 

 

broadcast domain on egress.

 

 

 

 

 

 

 

 

0 = Not a Member - Packets with a VID that matches this

 

 

 

 

 

 

 

 

entry are filtered on ingress unless the Admit Non Member

 

 

 

 

 

 

 

 

bit in the Switch Engine Admit Non Member Register

 

 

 

 

 

 

 

 

(SWE_ADMT_N_MEMBER) is set for this port. The port is

 

 

 

 

 

 

 

 

not a member of the broadcast domain on egress.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16

 

Un-Tag Port 2

0b

 

 

 

 

 

 

 

When this bit is set, packets received on Port 2 with a VID

 

 

 

 

 

 

 

 

that matches this entry will have their tag removed when re-

 

 

 

 

 

 

 

 

transmitted by egress ports that are designated as Hybrid

 

 

 

 

 

 

 

 

ports via the Buffer Manager Egress Port Type Register

 

 

 

 

 

 

 

 

(BM_EGRSS_PORT_TYPE).

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

 

Member Port 1

0b

 

 

 

 

 

 

 

See description for Member Port 2.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

14

 

Un-Tag Port 1

0b

 

 

 

 

 

 

 

See description for Un-Tag Port 2.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

13

 

Member Port 0 (Host MAC)

0b

 

 

 

 

 

 

 

See description for Member Port 2.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12

 

Un-Tag Port 0 (Host MAC)

0b

 

 

 

 

 

 

 

See description for Un-Tag Port 2.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11:0

 

VID

 

000h

 

 

 

 

 

 

 

These bits specify the VLAN ID associated with this VLAN

 

 

 

 

 

 

 

 

entry.

 

 

 

 

 

 

 

 

 

To disable a VLAN entry, a value of 0 should be used.

 

 

 

 

 

 

 

 

Note:

A value of 0 is considered a NULL VLAN and

 

 

 

 

 

 

 

 

 

should not normally be used other than to

 

 

 

 

 

 

 

 

Note:

disable a VLAN entry.

 

 

 

 

 

 

 

 

A value of 3FFh is considered reserved by IEEE

 

 

 

 

 

 

 

 

 

802.1Q and should not be used.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Revision 1.4 (08-19-08)

378

SMSC LAN9311/LAN9311i

 

DATASHEET