NetBSD/sys/dev/ic/spicvar.h

30 lines
583 B
C

/* $NetBSD: spicvar.h,v 1.3 2007/12/17 19:51:10 christos Exp $ */
#include <dev/sysmon/sysmonvar.h>
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;
#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];
};
void spic_attach(struct spic_softc *);
bool spic_suspend(device_t);
bool spic_resume(device_t);
int spic_intr(void *);