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