Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/adb/adb_kbd.c
Show All 12 Lines | |||||
adb_write_register(dev, 0, 3, buf); | adb_write_register(dev, 0, 3, buf); | ||||
} | } | ||||
adb_write_register(dev, 1, 2, &(uint16_t){0}); | adb_write_register(dev, 1, 2, &(uint16_t){0}); | ||||
ctx = device_get_sysctl_ctx(dev); | ctx = device_get_sysctl_ctx(dev); | ||||
tree = device_get_sysctl_tree(dev); | tree = device_get_sysctl_tree(dev); | ||||
SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | ||||
"fn_keys_function_as_primary", CTLTYPE_INT | CTLFLAG_RW, sc, | "fn_keys_function_as_primary", | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, | |||||
0, adb_fn_keys, "I", | 0, adb_fn_keys, "I", | ||||
"Set the Fn keys to be their F-key type as default"); | "Set the Fn keys to be their F-key type as default"); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
Show All 12 Lines |