From 2ff6d76f5100404efc1cfd3eab74b99d76274255 Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 29 Jun 2018 13:02:02 +0800 Subject: Remove F81866 FAN3 Support --- Board/IO/F81866/BSP/F81866HwmOemHooks.c | 54 ++++++++++++++++----------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'Board') diff --git a/Board/IO/F81866/BSP/F81866HwmOemHooks.c b/Board/IO/F81866/BSP/F81866HwmOemHooks.c index 22d80b9..a48d0eb 100644 --- a/Board/IO/F81866/BSP/F81866HwmOemHooks.c +++ b/Board/IO/F81866/BSP/F81866HwmOemHooks.c @@ -378,33 +378,33 @@ GetAndUpdateFan2Speed ( // //------------------------------------------------------------------------- // -void -GetAndUpdateFan3Speed ( - IN OUT HWM_DATA * Data - ) -{ - UINTN Speed; - UINTN Divisor; - - Data->Token = STRING_TOKEN(STR_F81866_FAN3_SPEED_VALUE); - Data->Type = FAN_SPEED; - Data->OddPos = 0x00; - - //OEM_TODO:Get value with HWM IO interface - GetValueWithIO(0x00,0xC0,&Speed); // Register 0xA0 - Divisor = (UINT8)Speed << 8; - GetValueWithIO(0x00,0xC1,&Speed); // Register 0xA1 - Divisor |= (UINT8) Speed; - - if( (Divisor == 0xFFFF) || (Divisor == 0x0FFF) || (Divisor == 0 )) { - Speed = 0; - } else { - Speed = (UINTN)1500000/Divisor; - } - Data->Value = (UINT16)Speed; - - return; -} +//void +//GetAndUpdateFan3Speed ( +// IN OUT HWM_DATA * Data +// ) +//{ +// UINTN Speed; +// UINTN Divisor; +// +// Data->Token = STRING_TOKEN(STR_F81866_FAN3_SPEED_VALUE); +// Data->Type = FAN_SPEED; +// Data->OddPos = 0x00; +// +// //OEM_TODO:Get value with HWM IO interface +// GetValueWithIO(0x00,0xC0,&Speed); // Register 0xA0 +// Divisor = (UINT8)Speed << 8; +// GetValueWithIO(0x00,0xC1,&Speed); // Register 0xA1 +// Divisor |= (UINT8) Speed; +// +// if( (Divisor == 0xFFFF) || (Divisor == 0x0FFF) || (Divisor == 0 )) { +// Speed = 0; +// } else { +// Speed = (UINTN)1500000/Divisor; +// } +// Data->Value = (UINT16)Speed; +// +// return; +//} // -- cgit v1.2.3