838
6437E–ATARM–23-Apr-13
SAM9M11
38.4.10
Type ID Checking
The contents of the type_id register are compared against the length/type ID of received frames
(i.e., bytes 13 and 14). Bit 22 in the receive buffer descriptor status is set if there is a match. The
reset state of this register is zero which is unlikely to match the length/type ID of any valid Ether-
net frame.
Note:
A type ID match does not affect whether a frame is copied to memory.
38.4.11
VLAN Support
An Ethernet encoded 802.1Q VLAN tag looks like this:
The VLAN tag is inserted at the 13th byte of the frame, adding an extra four bytes to the frame. If
the VID (VLAN identifier) is null (0x000), this indicates a priority-tagged frame. The MAC can
support frame lengths up to 1536 bytes, 18 bytes more than the original Ethernet maximum
frame length of 1518 bytes. This is achieved by setting bit 8 in the network configuration register.
The following bits in the receive buffer descriptor status word give information about VLAN
tagged frames:
Bit 21 set if receive frame is VLAN tagged (i.e. type id of 0x8100)
Bit 20 set if receive frame is priority tagged (i.e. type id of 0x8100 and null VID). (If bit 20 is
set bit 21 is set also.)
Bit 19, 18 and 17 set to priority if bit 21 is set
Bit 16 set to CFI if bit 21 is set
38.4.12
Wake-on-LAN Support
The receive block supports Wake-on-LAN by detecting the following events on incoming receive
frames:
Magic packet
ARP request to the device IP address
Specific address 1 filter match
Multicast hash filter match
If one of these events occurs Wake-on-LAN detection is indicated by asserting the wol output
pin for 64 rx_clk cycles. These events can be individually enabled through bits[19:16] of the
Wake-on-LAN register. Also, for Wake-on-LAN detection to occur, receive enable must be set in
the network control register, however a receive buffer does not have to be available. wol asser-
tion due to ARP request, specific address 1 or multicast filter events occurs even if the frame is
errored. For magic packet events, the frame must be correctly formed and error free.
A magic packet event is detected if all of the following are true:
magic packet events are enabled through bit 16 of the Wake-on-LAN register
the frame’s destination address matches specific address 1
the frame is correctly formed with no errors
the frame contains at least 6 bytes of 0xFF for synchronization
Table 38-4.
802.1Q VLAN Tag
TPID (Tag Protocol Identifier) 16 bits
TCI (Tag Control Information) 16 bits
0x8100
First 3 bits priority, then CFI bit, last 12 bits VID