Ronak Kanabar | 1ae366f | 2023-06-07 01:21:56 +0530 | [diff] [blame^] | 1 | /** @file |
| 2 | Stall Services that perform stalls and also enable the Stall operatation |
| 3 | to be replayed during an S3 resume. This library class maps directly on top |
| 4 | of the Timer class. |
| 5 | |
| 6 | Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> |
| 7 | |
| 8 | SPDX-License-Identifier: BSD-2-Clause-Patent |
| 9 | |
| 10 | **/ |
| 11 | |
| 12 | #ifndef __S3_STALL_LIB_H__ |
| 13 | #define __S3_STALL_LIB_H__ |
| 14 | |
| 15 | /** |
| 16 | Stalls the CPU for at least the given number of microseconds and saves |
| 17 | the value in the S3 script to be replayed on S3 resume. |
| 18 | |
| 19 | Stalls the CPU for the number of microseconds specified by MicroSeconds. |
| 20 | |
| 21 | @param[in] MicroSeconds The minimum number of microseconds to delay. |
| 22 | |
| 23 | @return MicroSeconds. |
| 24 | |
| 25 | **/ |
| 26 | UINTN |
| 27 | EFIAPI |
| 28 | S3Stall ( |
| 29 | IN UINTN MicroSeconds |
| 30 | ); |
| 31 | |
| 32 | #endif |