]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkSocPkg/QuarkSouthCluster/IohInit/Dxe/IohInit.c
QuarkSocPkg: Add new package for Quark SoC X1000
[mirror_edk2.git] / QuarkSocPkg / QuarkSouthCluster / IohInit / Dxe / IohInit.c
diff --git a/QuarkSocPkg/QuarkSouthCluster/IohInit/Dxe/IohInit.c b/QuarkSocPkg/QuarkSouthCluster/IohInit/Dxe/IohInit.c
new file mode 100644 (file)
index 0000000..8ab48bc
--- /dev/null
@@ -0,0 +1,43 @@
+/** @file\r
+QuarkSCSocId module initialization module\r
+\r
+Copyright (c) 2013-2015 Intel Corporation.\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+#include "CommonHeader.h"\r
+#include "IohBds.h"\r
+\r
+/**\r
+   The entry function for IohInit driver.\r
+\r
+   This function just call initialization function.\r
+\r
+   @param ImageHandle   The driver image handle for GmchInit driver\r
+   @param SystemTable   The pointer to System Table\r
+\r
+   @retval EFI_SUCCESS  Success to initialize every module.\r
+   @return EFI_STATUS   The status of initialization work.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+IohInit (\r
+  IN EFI_HANDLE         ImageHandle,\r
+  IN EFI_SYSTEM_TABLE   *SystemTable\r
+  )\r
+{\r
+\r
+  InitializeIohSsvidSsid(IOH_BUS, IOH_PCI_IOSF2AHB_0_DEV_NUM, 0);\r
+\r
+  InitializeIohSsvidSsid(IOH_BUS, IOH_PCI_IOSF2AHB_1_DEV_NUM, 0);\r
+\r
+  return EFI_SUCCESS;\r
+}\r