Datasheet
37 Software examples
Wake on LAN (Ethernet)
The following example shows the configuration procedure that enables a Wake-On-LAN wake-up event.
1. Verify that the Network peripheral is enabled in the BIOS.
2. Detect the MAC address of your CPU-1450 Ethernet adapter, this may be done using the DIAGS
SW utility available from Intel or using the “An0065_SW_Package” available in the download area @
www.eurotech.it (“Tools” section of the CPU-1450).
3. Configure the register PMCSR of the Ethernet controller. You need to enable the PME generation.
Use a program like Bustrek to set bit 8 of PCI Configuration Register Bus 1, Device 8, Function 0,
offset E1h. Here an example of the command line for Bustrek:
C:\>Bustrek
-pwb 1 8 0 E1 41
4. Execute the same code of the "Wake on Ring Indicator Pulse " example, and put to sleep the CPU.
The CPU is now in a low power consumption state, waiting for the Magic Packet event to wake-up.
An0065. CPU-1450 Soft Power Management
#include <stdio.h>
#include <conio.h>
#include <i86.h>
/* Eurotech SpA */
/* version 0.5 , date 07-02-2006 */
void main()
{
printf("Eurotech S.p.a. CPU-1450 Wake On LAN\n");
printf("Put to sleep a Cpu1450 with pme and ring enabled\n");
printf("\npress any key to continue\n");
getch();
outp(0x2E, 0x2D);
outp(0x2F, 0x19); /* set acpi mode in SIO */
outp(0x602B, 0x9); /* set pme_en e ri_en */
outpw (0x6000, 0xFFFF); /* clr wake status and others into PM1_STS */
outpw (0x6028, 0xFFFF); /* clr pme_sts and others into GPE0_STS */
_disable(); /* disable interrupts */
outpw (0x6004, 0x1C00); /* set slp_type = slp_to_s5 */
outpw (0x6004, 0x3C00); /* set slp */
}