Section 14.5.3.9, Datasheet – SMSC LAN9312 User Manual

Page 376

Advertising
background image

High Performance Two Port 10/100 Managed Ethernet Switch with 32-Bit Non-PCI CPU Interface

Datasheet

Revision 1.4 (08-19-08)

376

SMSC LAN9312

DATASHEET

14.5.3.9

Switch Engine VLAN Write Data Register (SWE_VLAN_WR_DATA)

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

Register #:

180Ch

Size:

32 bits

BITS

DESCRIPTION

TYPE

DEFAULT

31:18

RESERVED

RO

-

17:0

Port Default VID and Priority
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:

R/W

0b

BITS

DESCRIPTION

DEFAULT

17

Member Port 2
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.

0b

16

Un-Tag Port 2
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)

.

0b

15

Member Port 1
See description for Member Port 2.

0b

14

Un-Tag Port 1
See description for Un-Tag Port 2.

0b

13

Member Port 0 (Host MAC)
See description for Member Port 2.

0b

12

Un-Tag Port 0 (Host MAC)
See description for Un-Tag Port 2.

0b

11:0

VID
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
disable a VLAN entry.

Note:

A value of 3FFh is considered reserved by IEEE
802.1Q and should not be used.

000h

Advertising