summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2860var.h
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-08-04 19:48:34 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-08-04 19:48:34 +0000
commit0126dd6fb799c4d32dff3b0e343b89e8ee793fbf (patch)
treefef8ca36c2a9a2e02f3e13be96afa8bfc45b73a5 /sys/dev/ic/rt2860var.h
parente1efbf1bbe92de81860c2803bda817a394fa24c3 (diff)
add suspend/resume support for PCI ral(4) devices.
ok deraadt@, sthen@ tested by matthew@ (RT2560), dcoppa@ (RT2790), okan@ (RT2860), todd@ (RT2560)
Diffstat (limited to 'sys/dev/ic/rt2860var.h')
-rw-r--r--sys/dev/ic/rt2860var.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/ic/rt2860var.h b/sys/dev/ic/rt2860var.h
index 1fd4a042010..5a1b538fe96 100644
--- a/sys/dev/ic/rt2860var.h
+++ b/sys/dev/ic/rt2860var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2860var.h,v 1.17 2010/07/19 19:47:52 damien Exp $ */
+/* $OpenBSD: rt2860var.h,v 1.18 2010/08/04 19:48:33 damien Exp $ */
/*-
* Copyright (c) 2007
@@ -123,13 +123,15 @@ struct rt2860_softc {
int sc_flags;
#define RT2860_ENABLED (1 << 0)
-#define RT2860_FWLOADED (1 << 1)
-#define RT2860_ADVANCED_PS (1 << 2)
-#define RT2860_PCIE (1 << 3)
+#define RT2860_ADVANCED_PS (1 << 1)
+#define RT2860_PCIE (1 << 2)
uint32_t sc_ic_flags;
int fixed_ridx;
+ u_char *ucode;
+ size_t ucsize;
+
struct rt2860_tx_ring txq[6];
struct rt2860_rx_ring rxq;
@@ -202,4 +204,6 @@ struct rt2860_softc {
int rt2860_attach(void *, int);
int rt2860_detach(void *);
+void rt2860_suspend(void *);
+void rt2860_resume(void *);
int rt2860_intr(void *);