#       $NetBSD: files.hyperv,v 1.3 2022/05/20 13:55:17 nonaka Exp $

define  hypervvmbus {}
device  vmbus: hypervvmbus
file    dev/hyperv/vmbus.c              vmbus needs-flag

attach  genfb at hypervvmbus with genfb_vmbus : splash
file    dev/hyperv/genfb_vmbus.c        genfb_vmbus

device  hvkbd: wskbddev
attach  hvkbd at hypervvmbus
file    dev/hyperv/hvkbd.c              hvkbd needs-flag

device  hvn: ether, ifnet, arp
attach  hvn at hypervvmbus
file    dev/hyperv/if_hvn.c             hvn
defparam opt_if_hvn.h   HVN_UDP_CKSUM_FIXUP_MTU_DEFAULT
                       HVN_CHANNEL_MAX_COUNT_DEFAULT
                       HVN_CHANNEL_COUNT_DEFAULT
                       HVN_TX_RING_COUNT_DEFAULT
                       HVN_LINK_STATE_CHANGE_DELAY

device  hvs: scsi
attach  hvs at hypervvmbus
file    dev/hyperv/hvs.c                hvs

device  hvheartbeat
attach  hvheartbeat at hypervvmbus
file    dev/hyperv/hvheartbeat.c        hvheartbeat

device  hvkvp
attach  hvkvp at hypervvmbus
file    dev/hyperv/hvkvp.c              hvkvp

device  hvshutdown: sysmon_power, sysmon_taskq
attach  hvshutdown at hypervvmbus
file    dev/hyperv/hvshutdown.c         hvshutdown

device  hvtimesync
attach  hvtimesync at hypervvmbus
file    dev/hyperv/hvtimesync.c         hvtimesync

file    dev/hyperv/vmbusic.c            hvheartbeat | hvkvp | hvshutdown |
                                       hvtimesync

file    dev/hyperv/hyperv_common.c      hyperv | vmbus