Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ppbus/lpt.c
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | #define LP_ENABLE_EXT 0x10 /* we shall use advanced mode when possible */ | ||||
struct callout sc_timer; | struct callout sc_timer; | ||||
struct resource *sc_intr_resource; /* interrupt resource */ | struct resource *sc_intr_resource; /* interrupt resource */ | ||||
void *sc_intr_cookie; /* interrupt cookie */ | void *sc_intr_cookie; /* interrupt cookie */ | ||||
}; | }; | ||||
#define LPT_NAME "lpt" /* our official name */ | #define LPT_NAME "lpt" /* our official name */ | ||||
static timeout_t lptout; | static callout_func_t lptout; | ||||
static int lpt_port_test(device_t dev, u_char data, u_char mask); | static int lpt_port_test(device_t dev, u_char data, u_char mask); | ||||
static int lpt_detect(device_t dev); | static int lpt_detect(device_t dev); | ||||
#define DEVTOSOFTC(dev) \ | #define DEVTOSOFTC(dev) \ | ||||
((struct lpt_data *)device_get_softc(dev)) | ((struct lpt_data *)device_get_softc(dev)) | ||||
static void lptintr(void *arg); | static void lptintr(void *arg); | ||||
▲ Show 20 Lines • Show All 853 Lines • Show Last 20 Lines |