Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140037989
D33496.id100196.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
859 B
Referenced Files
None
Subscribers
None
D33496.id100196.diff
View Options
diff --git a/usr.sbin/bhyve/fwctl.c b/usr.sbin/bhyve/fwctl.c
--- a/usr.sbin/bhyve/fwctl.c
+++ b/usr.sbin/bhyve/fwctl.c
@@ -538,12 +538,32 @@
return (0);
}
-INOUT_PORT(fwctl_wreg, FWCTL_OUT, IOPORT_F_INOUT, fwctl_handler);
-INOUT_PORT(fwctl_rreg, FWCTL_IN, IOPORT_F_IN, fwctl_handler);
void
fwctl_init(void)
{
+ struct inout_port iop;
+ int error;
+
+ bzero(&iop, sizeof(iop));
+ iop.name = "fwctl_wreg";
+ iop.port = FWCTL_OUT;
+ iop.size = 1;
+ iop.flags = IOPORT_F_INOUT;
+ iop.handler = fwctl_handler;
+
+ error = register_inout(&iop);
+ assert(error == 0);
+
+ bzero(&iop, sizeof(iop));
+ iop.name = "fwctl_rreg";
+ iop.port = FWCTL_IN;
+ iop.size = 1;
+ iop.flags = IOPORT_F_IN;
+ iop.handler = fwctl_handler;
+
+ error = register_inout(&iop);
+ assert(error == 0);
ops[OP_GET_LEN] = &fgetlen_info;
ops[OP_GET] = &fgetval_info;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 20, 9:37 AM (4 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27094387
Default Alt Text
D33496.id100196.diff (859 B)
Attached To
Mode
D33496: bhyve: dynamically register FwCtl ports
Attached
Detach File
Event Timeline
Log In to Comment