summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dcreg.h
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2002-05-06 10:55:42 +0000
committeriwasaki <iwasaki@FreeBSD.org>2002-05-06 10:55:42 +0000
commitf42381b21e451afd59bae8a0d8456750f5f2131c (patch)
tree4ed59412ea566f5aa2db0a4f4b2ecd5d7a672d78 /sys/pci/if_dcreg.h
parent18274834278cef77879f1074640e4b4ce93416ee (diff)
downloadFreeBSD-src-f42381b21e451afd59bae8a0d8456750f5f2131c.zip
FreeBSD-src-f42381b21e451afd59bae8a0d8456750f5f2131c.tar.gz
Add suspend/resume code mostly merged from fxp/rl driver.
This is temporary hack, better and generalized solution probably should be implemented at lower layer(MII or PCI?). Tested by: shoko.araki@soliton.co.jp MFC after: 1 week
Diffstat (limited to 'sys/pci/if_dcreg.h')
-rw-r--r--sys/pci/if_dcreg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/pci/if_dcreg.h b/sys/pci/if_dcreg.h
index 46bd3c3..5c0879a 100644
--- a/sys/pci/if_dcreg.h
+++ b/sys/pci/if_dcreg.h
@@ -726,6 +726,13 @@ struct dc_softc {
#ifdef DEVICE_POLLING
int rxcycles; /* ... when polling */
#endif
+ int suspended; /* 0 = normal 1 = suspended */
+
+ u_int32_t saved_maps[5]; /* pci data */
+ u_int32_t saved_biosaddr;
+ u_int8_t saved_intline;
+ u_int8_t saved_cachelnsz;
+ u_int8_t saved_lattimer;
};
OpenPOWER on IntegriCloud