Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177957357
D62006.1795646740.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62006.1795646740.diff
View Options
diff --git a/sys/dev/virtio/console/virtio_console.c b/sys/dev/virtio/console/virtio_console.c
--- a/sys/dev/virtio/console/virtio_console.c
+++ b/sys/dev/virtio/console/virtio_console.c
@@ -153,6 +153,7 @@
static int vtcon_probe(device_t);
static int vtcon_attach(device_t);
+static int vtcon_attach_completed(device_t);
static int vtcon_detach(device_t);
static int vtcon_config_change(device_t);
@@ -252,6 +253,7 @@
DEVMETHOD(device_detach, vtcon_detach),
/* VirtIO methods. */
+ DEVMETHOD(virtio_attach_completed, vtcon_attach_completed),
DEVMETHOD(virtio_config_change, vtcon_config_change),
DEVMETHOD_END
@@ -373,9 +375,6 @@
vtcon_enable_interrupts(sc);
- vtcon_ctrl_send_control(sc, VIRTIO_CONSOLE_BAD_ID,
- VIRTIO_CONSOLE_DEVICE_READY, 1);
-
fail:
if (error)
vtcon_detach(dev);
@@ -383,6 +382,19 @@
return (error);
}
+static int
+vtcon_attach_completed(device_t dev)
+{
+ struct vtcon_softc *sc;
+
+ sc = device_get_softc(dev);
+
+ vtcon_ctrl_send_control(sc, VIRTIO_CONSOLE_BAD_ID,
+ VIRTIO_CONSOLE_DEVICE_READY, 1);
+
+ return (0);
+}
+
static int
vtcon_detach(device_t dev)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 10:45 PM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41997876
Default Alt Text
D62006.1795646740.diff (1 KB)
Attached To
Mode
D62006: virtio_console: Send events after device is ready
Attached
Detach File
Event Timeline