Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/evdev/evdev_private.h
Show All 29 Lines | |||||
#ifndef _DEV_EVDEV_EVDEV_PRIVATE_H | #ifndef _DEV_EVDEV_EVDEV_PRIVATE_H | ||||
#define _DEV_EVDEV_EVDEV_PRIVATE_H | #define _DEV_EVDEV_EVDEV_PRIVATE_H | ||||
#include <sys/bitstring.h> | #include <sys/bitstring.h> | ||||
#include <sys/kbio.h> | #include <sys/kbio.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/selinfo.h> | #include <sys/selinfo.h> | ||||
#include <sys/sysctl.h> | |||||
#include <dev/evdev/evdev.h> | #include <dev/evdev/evdev.h> | ||||
#include <dev/evdev/input.h> | #include <dev/evdev/input.h> | ||||
#include <dev/kbd/kbdreg.h> | #include <dev/kbd/kbdreg.h> | ||||
#define NAMELEN 80 | #define NAMELEN 80 | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | struct evdev_dev | ||||
/* Counters: */ | /* Counters: */ | ||||
uint64_t ev_event_count; | uint64_t ev_event_count; | ||||
uint64_t ev_report_count; | uint64_t ev_report_count; | ||||
/* Parent driver callbacks: */ | /* Parent driver callbacks: */ | ||||
const struct evdev_methods * ev_methods; | const struct evdev_methods * ev_methods; | ||||
void * ev_softc; | void * ev_softc; | ||||
/* Sysctl: */ | |||||
struct sysctl_ctx_list ev_sysctl_ctx; | |||||
LIST_ENTRY(evdev_dev) ev_link; | LIST_ENTRY(evdev_dev) ev_link; | ||||
LIST_HEAD(, evdev_client) ev_clients; | LIST_HEAD(, evdev_client) ev_clients; | ||||
}; | }; | ||||
#define SYSTEM_CONSOLE_LOCK &Giant | #define SYSTEM_CONSOLE_LOCK &Giant | ||||
#define EVDEV_LOCK(evdev) mtx_lock((evdev)->ev_lock) | #define EVDEV_LOCK(evdev) mtx_lock((evdev)->ev_lock) | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |