Update to BSD license header.
[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. 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
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
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 }