diff options
author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-05-06 10:55:42 +0000 |
---|---|---|
committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2002-05-06 10:55:42 +0000 |
commit | e8388e14665dc448efe95c6de3fd689f4ae170f2 (patch) | |
tree | 4ed59412ea566f5aa2db0a4f4b2ecd5d7a672d78 /sys/pci/if_dcreg.h | |
parent | 07636c8cd51a84ccce6e22905e6d8866cab96c17 (diff) | |
download | src-e8388e14665dc448efe95c6de3fd689f4ae170f2.tar.gz src-e8388e14665dc448efe95c6de3fd689f4ae170f2.zip |
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
Notes
Notes:
svn path=/head/; revision=96111
Diffstat (limited to 'sys/pci/if_dcreg.h')
-rw-r--r-- | sys/pci/if_dcreg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/pci/if_dcreg.h b/sys/pci/if_dcreg.h index 46bd3c30b17a..5c0879a09de3 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; }; |