Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sfxge/common/hunt_vpd.c
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | ef10_vpd_verify( | ||||
_NOTE(CONSTANTCONDITION) | _NOTE(CONSTANTCONDITION) | ||||
while (1) { | while (1) { | ||||
if ((rc = efx_vpd_hunk_next(data, size, &dtag, | if ((rc = efx_vpd_hunk_next(data, size, &dtag, | ||||
&dkey, NULL, NULL, &dcont)) != 0) | &dkey, NULL, NULL, &dcont)) != 0) | ||||
goto fail2; | goto fail2; | ||||
if (dcont == 0) | if (dcont == 0) | ||||
break; | break; | ||||
/* | |||||
* Skip the RV keyword. It should be present in both the static | |||||
* and dynamic cfg sectors. | |||||
*/ | |||||
if (dtag == EFX_VPD_RO && dkey == EFX_VPD_KEYWORD('R', 'V')) | |||||
continue; | |||||
scont = 0; | scont = 0; | ||||
_NOTE(CONSTANTCONDITION) | _NOTE(CONSTANTCONDITION) | ||||
while (1) { | while (1) { | ||||
if ((rc = efx_vpd_hunk_next( | if ((rc = efx_vpd_hunk_next( | ||||
enp->en_arch.ef10.ena_svpd, | enp->en_arch.ef10.ena_svpd, | ||||
enp->en_arch.ef10.ena_svpd_length, &stag, &skey, | enp->en_arch.ef10.ena_svpd_length, &stag, &skey, | ||||
NULL, NULL, &scont)) != 0) | NULL, NULL, &scont)) != 0) | ||||
goto fail3; | goto fail3; | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |