53 lines
1.8 KiB
C
53 lines
1.8 KiB
C
//*****************************************************************************
|
|
//
|
|
//
|
|
// Copyright (c) 2012 - 2015, Hefei LCFC Information Technology Co.Ltd.
|
|
// And/or its affiliates. All rights reserved.
|
|
// Hefei LCFC Information Technology Co.Ltd. PROPRIETARY/CONFIDENTIAL.
|
|
// Use is subject to license terms.
|
|
//
|
|
//******************************************************************************
|
|
|
|
#ifndef _LFC_PROJECT_PEI_GENESYS_LOGIC_CARDREADER_CFG_LIB_H_
|
|
#define _LFC_PROJECT_PEI_GENESYS_LOGIC_CARDREADER_CFG_LIB_H_
|
|
#include <Library/IoLib.h> // For MmioWrite32
|
|
#include <Library/DebugLib.h>
|
|
#include <Library/PciExpressLib.h>
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Structure Defination
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Marco Defination
|
|
//---------------------------------------------------------------------------
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Device Information
|
|
//---------------------------------------------------------------------------
|
|
#define GenesysLogic_Card_Reader_VID 0x17A0 // GenesysLogic Card Reader VID
|
|
#define GenesysLogic_Card_Reader_DID 0x9750 // GenesysLogic Card Reader DID
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Card Reader Root Bridge
|
|
//-
|
|
|
|
|
|
// this function will be executed right after end of pei (project speific code here)
|
|
EFI_STATUS
|
|
EFIAPI
|
|
CheckAndProgramGenesysLogicCardReader (
|
|
IN EFI_PEI_SERVICES **PeiServices,
|
|
UINT8 BrgBusNum,
|
|
UINT8 BrgDevNum,
|
|
UINT8 BrgFunNum,
|
|
UINT8 BusNum,
|
|
UINTN MemBaseAddr,
|
|
UINT16 VendorId,
|
|
UINT16 DeviceId
|
|
);
|
|
|
|
#endif
|
|
|