MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vatpic_master_handler

Function vatpic_master_handler

freebsd/amd64/vmm/io/vatpic.c:714–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714int
715vatpic_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
734int
735vatpic_slave_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes,

Callers

nothing calls this directly

Calls 3

vm_atpicFunction · 0.85
vatpic_readFunction · 0.85
vatpic_writeFunction · 0.85

Tested by

no test coverage detected