09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Ethernet (ETH): media access control (MAC) with DMA controller <strong>RM0090</strong><br />

Ethernet MAC frame filter register (ETH_MACFFR)<br />

Address offset: 0x0004<br />

Reset value: 0x0000 0000<br />

The MAC frame filter register contains the filter controls for receiving frames. Some of the<br />

controls from this register go to the address check block of the MAC, which performs the first<br />

level of address filtering. The second level of filtering is performed on the incoming frame,<br />

based on other controls such as pass bad frames and pass control frames.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

HPF<br />

RA<br />

Reserved<br />

rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bit 31 RA: Receive all<br />

When this bit is set, the MAC receiver passes all received frames on to the application,<br />

irrespective of whether they have passed the address filter. The result of the SA/DA filtering<br />

is updated (pass or fail) in the corresponding bits in the receive status word. When this bit is<br />

reset, the MAC receiver passes on to the application only those frames that have passed the<br />

SA/DA address filter.<br />

Bits 30:11 Reserved, must be kept at reset value.<br />

Bit 10 HPF: Hash or perfect filter<br />

When this bit is set and if the HM or HU bit is set, the address filter passes frames that<br />

match either the perfect filtering or the hash filtering.<br />

When this bit is cleared and if the HU or HM bit is set, only frames that match the Hash filter<br />

are passed.<br />

Bit 9 SAF: Source address filter<br />

The MAC core compares the SA field of the received frames with the values programmed in<br />

the enabled SA registers. If the comparison matches, then the SAMatch bit in the RxStatus<br />

word is set high. When this bit is set high and the SA filter fails, the MAC drops the frame.<br />

When this bit is reset, the MAC core forwards the received frame to the application. It also<br />

forwards the updated SA Match bit in RxStatus depending on the SA address comparison.<br />

Bit 8 SAIF: Source address inverse filtering<br />

When this bit is set, the address check block operates in inverse filtering mode for the SA<br />

address comparison. The frames whose SA matches the SA registers are marked as failing<br />

the SA address filter.<br />

When this bit is reset, frames whose SA does not match the SA registers are marked as<br />

failing the SA address filter.<br />

971/1416 Doc ID 018909 Rev 3<br />

SAF<br />

SAIF<br />

PCF<br />

BFD<br />

PAM<br />

DAIF<br />

HM<br />

HU<br />

PM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!