Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/adb/adb_mouse.c
Show All 12 Lines | |||||
} | } | ||||
/* | /* | ||||
* Set up sysctl | * Set up sysctl | ||||
*/ | */ | ||||
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, "tapping", | SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "tapping", | ||||
CTLTYPE_INT | CTLFLAG_RW, sc, 0, adb_tapping_sysctl, | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
sc, 0, adb_tapping_sysctl, | |||||
"I", "Tapping the pad causes button events"); | "I", "Tapping the pad causes button events"); | ||||
return; | return; | ||||
} | } | ||||
static u_int | static u_int | ||||
adb_mouse_receive_packet(device_t dev, u_char status, u_char command, | adb_mouse_receive_packet(device_t dev, u_char status, u_char command, | ||||
u_char reg, int len, u_char *data) | u_char reg, int len, u_char *data) | ||||
{ | { | ||||
Show All 12 Lines |