1 /*++ 2 3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR> 4 5 6 This program and the accompanying materials are licensed and made available under 7 8 the terms and conditions of the BSD License that accompanies this distribution. 9 10 The full text of the license may be found at 11 12 http://opensource.org/licenses/bsd-license.php. 13 14 15 16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 17 18 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 19 20 21 22 23 --*/ 24 25 #ifndef _FSA_LIB_H 26 #define _FSA_LIB_H 27 #include <Uefi.h> 28 #include <Uefi/UefiSpec.h> 29 30 #define FSA_REG_DEVID 0x1 31 #define FSA_REG_CTRL 0x2 32 #define FSA_REG_INTR 0x3 33 #define FSA_REG_INTR_MSK 0x5 34 #define FSA_REG_RESISTOR_CODE 0x7 35 #define FSA_REG_TIMING_SET 0x8 36 #define FSA_REG_STATUS 0x9 37 #define FSA_REG_DEV_TYPE 0xA 38 #define FSA_REG_DAC_SAR 0xB 39 #define FSA_REG_MANUAL_SW 0x13 40 #define FSA_REG_MANUAL_CHG_CTRL 0x14 41 42 extern 43 EFI_STATUS 44 EFIAPI 45 FsaUsbDeviceMode ( 46 VOID 47 ); 48 49 50 extern 51 EFI_STATUS 52 EFIAPI 53 DisableFsaTimerHandler ( 54 VOID 55 ); 56 57 extern 58 EFI_STATUS 59 EFIAPI 60 FSAInit ( 61 IN UINT32 FFRDVer 62 ); 63 64 #endif 65