Lines Matching defs:vsc
91 struct virtio_softc *vsc = (struct virtio_softc *)parent;
94 if (vsc->sc_child != NULL)
97 vsc->sc_child = self;
98 vsc->sc_nvqs = 0;
99 vsc->sc_config_change = vmmci_config_change;
100 vsc->sc_ipl = IPL_NET;
101 sc->sc_virtio = vsc;
103 vsc->sc_driver_features = VMMCI_F_TIMESYNC | VMMCI_F_ACK |
105 if (virtio_negotiate_features(vsc, NULL) != 0)
108 if (virtio_has_feature(vsc, VMMCI_F_TIMESYNC)) {
120 if (virtio_attach_finish(vsc, va) != 0)
125 vsc->sc_child = VIRTIO_CHILD_ERROR;
132 struct virtio_softc *vsc = sc->sc_virtio;
134 if (virtio_has_feature(vsc, VMMCI_F_ACK) == 0)
148 virtio_write_device_config_4(vsc, VMMCI_CONFIG_COMMAND,
158 vmmci_config_change(struct virtio_softc *vsc)
160 struct vmmci_softc *sc = (struct vmmci_softc *)vsc->sc_child;
164 cmd = virtio_read_device_config_4(vsc, VMMCI_CONFIG_COMMAND);
189 if ((cmd != VMMCI_NONE) && virtio_has_feature(vsc, VMMCI_F_ACK))
190 virtio_write_device_config_4(vsc, VMMCI_CONFIG_COMMAND, cmd);
199 struct virtio_softc *vsc = sc->sc_virtio;
206 host.tv_sec = virtio_read_device_config_8(vsc, VMMCI_CONFIG_TIME_SEC);
207 host.tv_usec = virtio_read_device_config_8(vsc, VMMCI_CONFIG_TIME_USEC);