/*++ Copyright (c) 2015 Minoca Corp. This file is licensed under the terms of the GNU General Public License version 3. Alternative licensing terms are available. Contact info@minocacorp.com for details. See the LICENSE file at the root of this project for complete licensing information. Module Name: init.c Abstract: This module implements initialization support for the BCM2709 UEFI device library. Author: Chris Stevens 19-Mar-2015 Environment: Firmware --*/ // // ------------------------------------------------------------------- Includes // #include #include // // --------------------------------------------------------------------- Macros // // // ---------------------------------------------------------------- Definitions // // // ------------------------------------------------------ Data Type Definitions // // // ----------------------------------------------- Internal Function Prototypes // // // -------------------------------------------------------------------- Globals // // // Store the base address of the BCM2709 device registers. // VOID *EfiBcm2709Base; // // Store whether or not the BCM2709 device library has been initialized. // BOOLEAN EfiBcm2709Initialized = FALSE; // // ------------------------------------------------------------------ Functions // EFI_STATUS EfipBcm2709Initialize ( VOID *PlatformBase ) /*++ Routine Description: This routine initializes the BCM2709 UEFI device library. Arguments: PlatformBase - Supplies the base address for the BCM2709 device registers. Return Value: Status code. --*/ { if (PlatformBase == NULL) { return EFI_INVALID_PARAMETER; } EfiBcm2709Base = PlatformBase; EfiBcm2709Initialized = TRUE; return EFI_SUCCESS; } // // --------------------------------------------------------- Internal Functions //