| 86 | ""); |
| 87 | |
| 88 | static unsigned |
| 89 | piix_get_timecount(struct timecounter *tc) |
| 90 | { |
| 91 | unsigned u1, u2, u3; |
| 92 | |
| 93 | u2 = inl(piix_timecounter_address); |
| 94 | u3 = inl(piix_timecounter_address); |
| 95 | do { |
| 96 | u1 = u2; |
| 97 | u2 = u3; |
| 98 | u3 = inl(piix_timecounter_address); |
| 99 | } while (u1 > u2 || u2 > u3); |
| 100 | return (u2); |
| 101 | } |
| 102 | |
| 103 | static int |
| 104 | piix_probe(device_t dev) |