11f43dfd |
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 | #include "IsaFloppy.h"\r |
19 | \r |
20 | /**\r |
21 | The user Entry Point for module IsaFloppy. The user code starts with this function.\r |
22 | \r |
23 | @param[in] ImageHandle The firmware allocated handle for the EFI image. \r |
24 | @param[in] SystemTable A pointer to the EFI System Table.\r |
25 | \r |
26 | @retval EFI_SUCCESS The entry point is executed successfully.\r |
27 | @retval other Some error occurs when executing this entry point.\r |
28 | \r |
29 | **/\r |
30 | EFI_STATUS\r |
31 | EFIAPI\r |
32 | InitializeIsaFloppy(\r |
33 | IN EFI_HANDLE ImageHandle,\r |
34 | IN EFI_SYSTEM_TABLE *SystemTable\r |
35 | )\r |
36 | {\r |
37 | EFI_STATUS Status;\r |
38 | \r |
39 | //\r |
40 | // Install driver model protocol(s).\r |
41 | //\r |
42 | Status = EfiLibInstallAllDriverProtocols (\r |
43 | ImageHandle,\r |
44 | SystemTable,\r |
45 | &gFdcControllerDriver,\r |
46 | ImageHandle,\r |
47 | &gIsaFloppyComponentName,\r |
48 | NULL,\r |
49 | NULL\r |
50 | );\r |
51 | ASSERT_EFI_ERROR (Status);\r |
52 | \r |
53 | \r |
54 | return Status;\r |
55 | }\r |