| 712 | } |
| 713 | |
| 714 | int |
| 715 | vatpic_master_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, |
| 716 | uint32_t *eax) |
| 717 | { |
| 718 | struct vatpic *vatpic; |
| 719 | struct atpic *atpic; |
| 720 | |
| 721 | vatpic = vm_atpic(vm); |
| 722 | atpic = &vatpic->atpic[0]; |
| 723 | |
| 724 | if (bytes != 1) |
| 725 | return (-1); |
| 726 | |
| 727 | if (in) { |
| 728 | return (vatpic_read(vatpic, atpic, in, port, bytes, eax)); |
| 729 | } |
| 730 | |
| 731 | return (vatpic_write(vatpic, atpic, in, port, bytes, eax)); |
| 732 | } |
| 733 | |
| 734 | int |
| 735 | vatpic_slave_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, |
nothing calls this directly
no test coverage detected