]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Console/TerminalDxe/EntryPoint.c
a8feebb1d1ce08f8d4cc6371a29d5347891b88ef
[mirror_edk2.git] / MdeModulePkg / Universal / Console / TerminalDxe / EntryPoint.c
1 /**@file
2 Entry Point Source file.
3
4 This file contains the user entry point
5
6 Copyright (c) 2006 - 2007, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 **/
14
15
16 //
17 // Include common header file for this module.
18 //
19 #include "CommonHeader.h"
20
21 /**
22 The user Entry Point for module Terminal. The user code starts with this function.
23
24 @param[in] ImageHandle The firmware allocated handle for the EFI image.
25 @param[in] SystemTable A pointer to the EFI System Table.
26
27 @retval EFI_SUCCESS The entry point is executed successfully.
28 @retval other Some error occurs when executing this entry point.
29
30 **/
31 EFI_STATUS
32 EFIAPI
33 InitializeTerminal(
34 IN EFI_HANDLE ImageHandle,
35 IN EFI_SYSTEM_TABLE *SystemTable
36 )
37 {
38 EFI_STATUS Status;
39
40 //
41 // Install driver model protocol(s).
42 //
43 Status = EfiLibInstallAllDriverProtocols (
44 ImageHandle,
45 SystemTable,
46 &gTerminalDriverBinding,
47 ImageHandle,
48 &gTerminalComponentName,
49 NULL,
50 NULL
51 );
52 ASSERT_EFI_ERROR (Status);
53
54
55 return Status;
56 }