| 419 | } |
| 420 | |
| 421 | int |
| 422 | vatpit_nmisc_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, |
| 423 | uint32_t *eax) |
| 424 | { |
| 425 | struct vatpit *vatpit; |
| 426 | |
| 427 | vatpit = vm_atpit(vm); |
| 428 | |
| 429 | if (in) { |
| 430 | VATPIT_LOCK(vatpit); |
| 431 | if (vatpit_get_out(vatpit, 2)) |
| 432 | *eax = TMR2_OUT_STS; |
| 433 | else |
| 434 | *eax = 0; |
| 435 | |
| 436 | VATPIT_UNLOCK(vatpit); |
| 437 | } |
| 438 | |
| 439 | return (0); |
| 440 | } |
| 441 | |
| 442 | struct vatpit * |
| 443 | vatpit_init(struct vm *vm) |
nothing calls this directly
no test coverage detected