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