123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- /*++
- Copyright (c) 2014 Minoca Corp. All Rights Reserved
- Module Name:
- integfw.h
- Abstract:
- This header contains definitions for the Integrator/CP
- Author:
- Evan Green 4-Apr-2014
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- //
- // ---------------------------------------------------------------- Definitions
- //
- #define INTEGRATOR_RAM_START 0x80000000
- #define INTEGRATOR_RAM_SIZE (1024 * 1024 * 16)
- #define INTEGRATOR_CM_BASE 0x10000000
- #define INTEGRATOR_CM_CONTROL 0x0C
- #define INTEGRATOR_CM_CONTROL_RESET 0x08
- #define INTEGRATOR_CM_SIZE 0x1000
- //
- // Define the location of the PL031 Real Time Clock.
- //
- #define INTEGRATOR_PL031_RTC_BASE 0x15000000
- #define INTEGRATOR_PL031_RTC_SIZE 0x1000
- //
- // Define the serial port address.
- //
- #define INTEGRATOR_UART_BASE 0x16000000
- #define INTEGRATOR_PL110_BASE 0xC0000000
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- //
- // -------------------------------------------------------------------- Globals
- //
- //
- // -------------------------------------------------------- Function Prototypes
- //
- EFI_STATUS
- EfipIntegratorEnumerateVideo (
- VOID
- );
- /*++
- Routine Description:
- This routine enumerates the display on the Integrator/CP.
- Arguments:
- None.
- Return Value:
- EFI status code.
- --*/
- EFI_STATUS
- EfipEnumerateRamDisks (
- VOID
- );
- /*++
- Routine Description:
- This routine enumerates any RAM disks embedded in the firmware.
- Arguments:
- None.
- Return Value:
- EFI Status code.
- --*/
- EFI_STATUS
- EfipIntegratorEnumerateSerial (
- VOID
- );
- /*++
- Routine Description:
- This routine enumerates the serial port on the Integrator board.
- Arguments:
- None.
- Return Value:
- EFI status code.
- --*/
- EFI_STATUS
- EfipIntegratorCreateSmbiosTables (
- VOID
- );
- /*++
- Routine Description:
- This routine creates the SMBIOS tables.
- Arguments:
- None.
- Return Value:
- EFI Status code.
- --*/
- EFI_STATUS
- EfipPlatformSetInterruptLineState (
- UINT32 LineNumber,
- BOOLEAN Enabled,
- BOOLEAN EdgeTriggered
- );
- /*++
- Routine Description:
- This routine enables or disables an interrupt line.
- Arguments:
- LineNumber - Supplies the line number to enable or disable.
- Enabled - Supplies a boolean indicating if the line should be enabled or
- disabled.
- EdgeTriggered - Supplies a boolean indicating if the interrupt is edge
- triggered (TRUE) or level triggered (FALSE).
- Return Value:
- EFI Status code.
- --*/
- //
- // Runtime services
- //
- EFI_STATUS
- EfipIntegratorInitializeRtc (
- VOID
- );
- /*++
- Routine Description:
- This routine initializes support for the EFI time runtime services.
- Arguments:
- None.
- Return Value:
- EFI status code.
- --*/
- VOID
- EfipIntegratorRtcVirtualAddressChange (
- VOID
- );
- /*++
- Routine Description:
- This routine is called when the firmware is converting to virtual address
- mode. It converts any pointers it's got. This routine is called after
- ExitBootServices, so no EFI boot services are available.
- Arguments:
- None.
- Return Value:
- EFI status code.
- --*/
- EFIAPI
- EFI_STATUS
- EfipIntegratorGetTime (
- EFI_TIME *Time,
- EFI_TIME_CAPABILITIES *Capabilities
- );
- /*++
- Routine Description:
- This routine returns the current time and dat information, and
- timekeeping capabilities of the hardware platform.
- Arguments:
- Time - Supplies a pointer where the current time will be returned.
- Capabilities - Supplies an optional pointer where the capabilities will be
- returned on success.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if the time parameter was NULL.
- EFI_DEVICE_ERROR if there was a hardware error accessing the device.
- --*/
- EFIAPI
- EFI_STATUS
- EfipIntegratorSetTime (
- EFI_TIME *Time
- );
- /*++
- Routine Description:
- This routine sets the current local time and date information.
- Arguments:
- Time - Supplies a pointer to the time to set.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if a time field is out of range.
- EFI_DEVICE_ERROR if there was a hardware error accessing the device.
- --*/
- EFIAPI
- EFI_STATUS
- EfipIntegratorGetWakeupTime (
- BOOLEAN *Enabled,
- BOOLEAN *Pending,
- EFI_TIME *Time
- );
- /*++
- Routine Description:
- This routine gets the current wake alarm setting.
- Arguments:
- Enabled - Supplies a pointer that receives a boolean indicating if the
- alarm is currently enabled or disabled.
- Pending - Supplies a pointer that receives a boolean indicating if the
- alarm signal is pending and requires acknowledgement.
- Time - Supplies a pointer that receives the current wake time.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if any parameter is NULL.
- EFI_DEVICE_ERROR if there was a hardware error accessing the device.
- EFI_UNSUPPORTED if the wakeup timer is not supported on this platform.
- --*/
- EFIAPI
- EFI_STATUS
- EfipIntegratorSetWakeupTime (
- BOOLEAN Enable,
- EFI_TIME *Time
- );
- /*++
- Routine Description:
- This routine sets the current wake alarm setting.
- Arguments:
- Enable - Supplies a boolean enabling or disabling the wakeup timer.
- Time - Supplies an optional pointer to the time to set. This parameter is
- only optional if the enable parameter is FALSE.
- Return Value:
- EFI_SUCCESS on success.
- EFI_INVALID_PARAMETER if a time field is out of range.
- EFI_DEVICE_ERROR if there was a hardware error accessing the device.
- EFI_UNSUPPORTED if the wakeup timer is not supported on this platform.
- --*/
|