c1d3e613d437e34555f483ad5cbb26e9a9ac2e46
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / Ps2KeyboardDxe / 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.
8 This software and associated documentation (if any) is furnished
9 under a license and may only be used or copied in accordance
10 with the terms of the license. Except as permitted by such
11 license, no part of this software or documentation may be
12 reproduced, stored in a retrieval system, or transmitted in any
13 form or by any means without the express written consent of
14 Intel Corporation.
15 **/
16
17
18 //
19 // Include common header file for this module.
20 //
21 #include "CommonHeader.h"
22
23 /**
24 The user Entry Point for module Ps2Keyboard. The user code starts with this function.
25
26 @param[in] ImageHandle The firmware allocated handle for the EFI image.
27 @param[in] SystemTable A pointer to the EFI System Table.
28
29 @retval EFI_SUCCESS The entry point is executed successfully.
30 @retval other Some error occurs when executing this entry point.
31
32 **/
33 EFI_STATUS
34 EFIAPI
35 InitializePs2Keyboard(
36 IN EFI_HANDLE ImageHandle,
37 IN EFI_SYSTEM_TABLE *SystemTable
38 )
39 {
40 EFI_STATUS Status;
41
42 //
43 // Install driver model protocol(s).
44 //
45 Status = EfiLibInstallAllDriverProtocols (
46 ImageHandle,
47 SystemTable,
48 &gKeyboardControllerDriver,
49 ImageHandle,
50 &gPs2KeyboardComponentName,
51 NULL,
52 NULL
53 );
54 ASSERT_EFI_ERROR (Status);
55
56
57 return Status;
58 }