Specifications

AMD Geode™ GeodeROM Functional Specification 221
System Management Mode Software
32087C
15.10.1 SYS_REGISTER_EVENT
Unless a VSM is written specifically to perform an action at initialization with no runtime processing requirements, it must
invoke SYS_REGISTER_EVENT to request notification of desired events. Otherwise, the only events the VSM receives are
those broadcast by the System Manager or other VSMs.
The SYS_REGISTER_EVENT macro is used to control a VSM's access to the specified event. The parameters passed are
dependent on the event being registered. Reissuing the SYS_REGISTER_EVENT request, with Parameter0-Parameter2
containing the same values as the prior event registration, may change the priority of an event. Parameter3 would contain
the new priority. Event codes and parameters are listed in Table 15-3.
Parameter0: Event Code
Parameter1: Dependent on the event
Parameter2: Dependent on the event
Parameter3: Priority
Table 15-3. Event Registration Parameters
Event Code Parameter1 Parameter2
EVENT_TIMER Interval Handle (optional)
EVENT_AUDIO
1
1. Geode GX1 processor only. Not applicable to Geode GX processor or later processors.
EVENT_GRAPHICS
EVENT_EXT_VBLANK
1
EVENT_USB
EVENT_ACPI_TIMER
1
EVENT_ACPI
EVENT_IRQ
1
IRQ (3 or 4 only)
EVENT_A20
EVENT_GAMEPORT
1
EVENT_NMI
EVENT_IO_TRAP I/O base Length of range (bytes)
EVENT_IO_TIMEOUT I/O base 16 MSBs = Range (bytes)
16 LSBs = Interval (sec.)
EVENT_MEMORY_TRAP
1
Memory base Length of range (bytes)
EVENT_MEMORY_TIMEOUT
1
Memory base 16 MSBs = Range (bytes)
16 LSBs = Interval (sec.)
EVENT_VIDEO_INACTIVE Interval (seconds)
EVENT_GPIO GPIO pin number 0 = Falling edge
1 = Rising edge
EVENT_SOFTWARE_SMI S/W SMI code (EAX) Mask for AL (e.g., FFh = xx)
EVENT_GT1
1
Interval (seconds) Mask of reload events
EVENT_PCI_TRAP PCI Address Address mask
EVENT_VIRTUAL_REGISTER Virtual register class