2006-06-20 19:35:11 +04:00
|
|
|
/* $NetBSD: spicvar.h,v 1.2 2006/06/20 15:35:11 jmcneill Exp $ */
|
|
|
|
|
|
|
|
#include <dev/sysmon/sysmonvar.h>
|
|
|
|
|
2002-04-22 16:42:11 +04:00
|
|
|
struct spic_softc {
|
|
|
|
struct device sc_dev;
|
|
|
|
|
|
|
|
bus_space_tag_t sc_iot;
|
|
|
|
bus_space_handle_t sc_ioh;
|
|
|
|
|
|
|
|
struct callout sc_poll;
|
|
|
|
|
|
|
|
int sc_buttons;
|
|
|
|
char sc_enabled;
|
|
|
|
|
|
|
|
struct device *sc_wsmousedev;
|
2006-06-20 19:35:11 +04:00
|
|
|
|
|
|
|
#define SPIC_PSWITCH_LID 0
|
|
|
|
#define SPIC_PSWITCH_SUSPEND 1
|
|
|
|
#define SPIC_PSWITCH_HIBERNATE 2
|
|
|
|
#define SPIC_NPSWITCH 3
|
|
|
|
struct sysmon_pswitch sc_smpsw[SPIC_NPSWITCH];
|
2002-04-22 16:42:11 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
void spic_attach(struct spic_softc *);
|
|
|
|
|
|
|
|
int spic_intr(void *);
|