g_mouse_detach
static device_detach_t g_mouse_detach;
DEVMETHOD(device_detach, g_mouse_detach),
g_mouse_detach(dev);