summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-09-08 18:09:51 +0000
committerbrian <brian@FreeBSD.org>1998-09-08 18:09:51 +0000
commit523f9bb1df1e6197e390a411d458843e51f867d2 (patch)
treeb515b257e39180d39e4ba5526fce799dc154f045 /sys
parentb0502cca708a846fcaa8653eee63191718f11433 (diff)
downloadFreeBSD-src-523f9bb1df1e6197e390a411d458843e51f867d2.zip
FreeBSD-src-523f9bb1df1e6197e390a411d458843e51f867d2.tar.gz
Make PCIC_RESUME_RESET an proper option.
My laptop (a CTX Cybernote) needs this. It claims to have a PC-Card VLSI 82C146 (5 mem & 2 I/O windows)
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/NOTES5
-rw-r--r--sys/conf/options.i3864
-rw-r--r--sys/i386/conf/LINT5
-rw-r--r--sys/i386/conf/NOTES5
-rw-r--r--sys/i386/conf/PCCARD4
-rw-r--r--sys/i386/conf/options.i3864
-rw-r--r--sys/pccard/pccard.c7
7 files changed, 25 insertions, 9 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 158e9f8..674f3cc 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.456 1998/08/27 02:37:11 jkh Exp $
+# $Id: LINT,v 1.457 1998/09/03 20:58:34 nsouch Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -1433,6 +1433,9 @@ controller card0
device pcic0 at card?
device pcic1 at card?
+# You may need to reset all pccards after resuming
+options PCIC_RESUME_RESET # reset after resume
+
#
# Laptop/Notebook options:
#
diff --git a/sys/conf/options.i386 b/sys/conf/options.i386
index ab6cf97..2b232d5 100644
--- a/sys/conf/options.i386
+++ b/sys/conf/options.i386
@@ -1,4 +1,4 @@
-# $Id: options.i386,v 1.83 1998/08/08 19:25:56 jkh Exp $
+# $Id: options.i386,v 1.84 1998/08/10 08:40:27 yokota Exp $
BOUNCEPAGES opt_bounce.h
DISABLE_PSE
@@ -86,6 +86,8 @@ PSM_HOOKAPM opt_psm.h
PSM_RESETAFTERSUSPEND opt_psm.h
PSM_DEBUG opt_psm.h
+PCIC_RESUME_RESET opt_pcic.h
+
KBD_RESETDELAY opt_kbdio.h
KBD_MAXRETRY opt_kbdio.h
KBD_MAXWAIT opt_kbdio.h
diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT
index 158e9f8..674f3cc 100644
--- a/sys/i386/conf/LINT
+++ b/sys/i386/conf/LINT
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.456 1998/08/27 02:37:11 jkh Exp $
+# $Id: LINT,v 1.457 1998/09/03 20:58:34 nsouch Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -1433,6 +1433,9 @@ controller card0
device pcic0 at card?
device pcic1 at card?
+# You may need to reset all pccards after resuming
+options PCIC_RESUME_RESET # reset after resume
+
#
# Laptop/Notebook options:
#
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index 158e9f8..674f3cc 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.456 1998/08/27 02:37:11 jkh Exp $
+# $Id: LINT,v 1.457 1998/09/03 20:58:34 nsouch Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -1433,6 +1433,9 @@ controller card0
device pcic0 at card?
device pcic1 at card?
+# You may need to reset all pccards after resuming
+options PCIC_RESUME_RESET # reset after resume
+
#
# Laptop/Notebook options:
#
diff --git a/sys/i386/conf/PCCARD b/sys/i386/conf/PCCARD
index 738c1ee..fd01f86 100644
--- a/sys/i386/conf/PCCARD
+++ b/sys/i386/conf/PCCARD
@@ -11,7 +11,7 @@
# device lines is present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
-# $Id: PCCARD,v 1.1 1997/11/01 18:54:10 nate Exp $
+# $Id: PCCARD,v 1.2 1997/11/11 00:47:01 nate Exp $
machine "i386"
cpu "I386_CPU"
@@ -81,6 +81,8 @@ controller card0
device pcic0 at card?
device pcic1 at card?
+options PCIC_RESUME_RESET # reset after resume
+
device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4 vector siointr
device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr
device sio2 at isa? disable port "IO_COM3" tty irq 5 vector siointr
diff --git a/sys/i386/conf/options.i386 b/sys/i386/conf/options.i386
index ab6cf97..2b232d5 100644
--- a/sys/i386/conf/options.i386
+++ b/sys/i386/conf/options.i386
@@ -1,4 +1,4 @@
-# $Id: options.i386,v 1.83 1998/08/08 19:25:56 jkh Exp $
+# $Id: options.i386,v 1.84 1998/08/10 08:40:27 yokota Exp $
BOUNCEPAGES opt_bounce.h
DISABLE_PSE
@@ -86,6 +86,8 @@ PSM_HOOKAPM opt_psm.h
PSM_RESETAFTERSUSPEND opt_psm.h
PSM_DEBUG opt_psm.h
+PCIC_RESUME_RESET opt_pcic.h
+
KBD_RESETDELAY opt_kbdio.h
KBD_MAXRETRY opt_kbdio.h
KBD_MAXWAIT opt_kbdio.h
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c
index 189b043..1f0f674 100644
--- a/sys/pccard/pccard.c
+++ b/sys/pccard/pccard.c
@@ -28,10 +28,11 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pccard.c,v 1.63 1998/08/16 01:21:52 bde Exp $
+ * $Id: pccard.c,v 1.64 1998/08/26 07:09:58 imp Exp $
*/
#include "opt_devfs.h"
+#include "opt_pcic.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -74,7 +75,7 @@
SYSCTL_NODE(_machdep, OID_AUTO, pccard, CTLFLAG_RW, 0, "pccard");
static int pcic_resume_reset =
-#ifdef PCIC_RESUME_RESET
+#ifdef PCIC_RESUME_RESET /* opt_pcic.h */
1;
#else
0;
@@ -187,7 +188,7 @@ pccard_add_driver(struct pccard_device *drv)
/*
* pccard_remove_driver - called to unlink driver
* from devices. Usually called when drivers are
- * are unloaded from kernel.
+ * unloaded from kernel.
*/
void
pccard_remove_driver(struct pccard_device *drv)
OpenPOWER on IntegriCloud