beautypg.com

Enable magic packet, Disable magic packet, Set magic packet mac address – Maxim Integrated 78Q8430 Software Driver User Manual

Page 23

background image

UG_8430_004

78Q8430 Software Driver Development Guidelines

Rev. 1.0

23

4.4.1 Enable Magic Packet

Use the following procedure to enable the Magic Packet feature:

STEP 1: Enable CAM rule 0x0F.

• Set the CAR Address field to 0x0F.

• Set the RMR Previous Hit Mask field to 0x7F.


STEP 2: Enable CAM rule 0x0E.

• Set the CAR Address field to 0x0E.

• Set the RMR Previous Hit Mask field to 0x7F.


STEP 3: Enable CAM rule 0x0D.

• Set the CAR Address field to 0x0D.

• Set the RMR Previous Hit Mask field to 0x7F.

4.4.2 Disable Magic Packet

Use the following procedure to disable the Magic Packet feature:

STEP 1: Disable CAM rule 0x0F.

• Set the CAR Address field to 0x0F.

• Set the RMR Previous Hit Mask field to 0x00.


STEP 2: Disable CAM rule 0x0E.

• Set the CAR Address field to 0x0E.

• Set the RMR Previous Hit Mask field to 0x00.


STEP 3: Disable CAM rule 0x0D.

• Set the CAR Address field to 0x0D.

• Set the RMR Previous Hit Mask field to 0x00.

4.4.3 Set Magic Packet MAC Address

Use the following procedure to set the MAC address that the Magic Packet pattern must contain:

STEP 1: Disable the Magic Packet feature.
Execute procedure

4.4.2

to disable the CAM from identifying Magic Packets. This prevents a frame

from incorrectly matching a partial MAC address while it is being set.

STEP 2: Write MAC address byte [0] to the both CAM rule 0x09 and rule 0x08.
Byte [0] is the only byte that is matched in two rules.

• Set the CAR ADDR field to 0x09.

• Replace the RMR Data Match field with MAC address byte [0].

• Set the CAR ADDR field to 0x08.

• Replace the RMR Data Match field with MAC address byte [0].


STEP 3: Write MAC address byte [1] through byte [5] to the CAM.
Replace the Data Match field of CAM rule 0x08-N with MAC address byte [N], for N=1 to N=5.
Complete the following 2 writes for N=1 to N=5.

• Set the CAR ADDR field to 0x08-N.

• Set the RMR Data Match field to MAC addresses byte [N].


STEP 4: Enable the Magic Packet feature.
Execute procedure

4.4.1

to enable the CAM to identify Magic Packets with the specified MAC

address.