25c8802a2e
The E822 device clock might come from a variety of different sources, called TIME_REFs. The firmware reports the current TIME_REF as part of its function capabilities, which the driver caches when it loads. Add an accessor function to look up the current TIME_REF from the capabilities. This reduces line length significantly and also avoids a tight coupling to the capabilities structure. In some cases, TIME_REF might change at run time. This can occur in the event that the CGU registers are updated. When this happens, its possible that the capabilities structure can be out of date until the capabilities are re-read. Add a setter function to update the TIME_REF when this occurs. The driver can call this function after updating the CGU to ensure that the TIME_REF in the capabilities structure is up to date, without needing to re-read the entire capabilities from firmware. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Junfeng Guo <junfeng.guo@intel.com> |
||
---|---|---|
.ci | ||
.github/workflows | ||
app | ||
buildtools | ||
config | ||
devtools | ||
doc | ||
drivers | ||
examples | ||
kernel | ||
lib | ||
license | ||
usertools | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
ABI_VERSION | ||
MAINTAINERS | ||
Makefile | ||
meson_options.txt | ||
meson.build | ||
README | ||
VERSION |
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are GPL-2.0 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org