Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ow/ow.c
Show First 20 Lines • Show All 501 Lines • ▼ Show 20 Lines | for (i = 0; i < 64; i++) { | ||||
* not updated prior yet, we can just jump to | * not updated prior yet, we can just jump to | ||||
* the top of the loop for a re-do of this step. | * the top of the loop for a re-do of this step. | ||||
*/ | */ | ||||
printf("oops, starting over\n"); | printf("oops, starting over\n"); | ||||
if (++retries > 5) | if (++retries > 5) | ||||
return (EIO); | return (EIO); | ||||
goto again; | goto again; | ||||
default: /* NOTREACHED */ | default: /* NOTREACHED */ | ||||
__unreachable(); | __assert_unreachable(); | ||||
} | } | ||||
if (dir) { | if (dir) { | ||||
OWLL_WRITE_ONE(lldev, &timing_regular); | OWLL_WRITE_ONE(lldev, &timing_regular); | ||||
probed |= 1ull << i; | probed |= 1ull << i; | ||||
} else { | } else { | ||||
OWLL_WRITE_ZERO(lldev, &timing_regular); | OWLL_WRITE_ZERO(lldev, &timing_regular); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |