MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_max10_version

Function check_max10_version

dpdk/drivers/raw/ifpga/base/opae_intel_max10.c:956–972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956static int check_max10_version(struct intel_max10_device *dev)
957{
958 unsigned int v;
959
960 if (!max10_reg_read(dev, MAX10_SEC_BASE_ADDR + MAX10_BUILD_VER,
961 &v)) {
962 if (v != 0xffffffff) {
963 dev_info(dev, "secure MAX10 detected\n");
964 dev->flags |= MAX10_FLAGS_SECURE;
965 } else {
966 dev_info(dev, "non-secure MAX10 detected\n");
967 }
968 return 0;
969 }
970
971 return -ENODEV;
972}
973
974static int max10_staging_area_init(struct intel_max10_device *dev)
975{

Callers 1

intel_max10_device_initFunction · 0.85

Calls 1

max10_reg_readFunction · 0.85

Tested by

no test coverage detected