Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / dev / ic / spicvar.h
blob2b8a8ab8a283b138e22b14cc262db26adc17f59d
1 /* $NetBSD: spicvar.h,v 1.4 2008/02/29 06:17:36 dyoung Exp $ */
3 #include <dev/sysmon/sysmonvar.h>
5 struct spic_softc {
6 device_t sc_dev;
8 bus_space_tag_t sc_iot;
9 bus_space_handle_t sc_ioh;
11 struct callout sc_poll;
13 int sc_buttons;
14 char sc_enabled;
16 device_t sc_wsmousedev;
18 #define SPIC_PSWITCH_LID 0
19 #define SPIC_PSWITCH_SUSPEND 1
20 #define SPIC_PSWITCH_HIBERNATE 2
21 #define SPIC_NPSWITCH 3
22 struct sysmon_pswitch sc_smpsw[SPIC_NPSWITCH];
25 void spic_attach(struct spic_softc *);
26 bool spic_suspend(device_t PMF_FN_PROTO);
27 bool spic_resume(device_t PMF_FN_PROTO);
29 int spic_intr(void *);