diff options
| author | dyoung <dyoung@NetBSD.org> | 2010-04-20 23:39:10 +0000 |
|---|---|---|
| committer | dyoung <dyoung@NetBSD.org> | 2010-04-20 23:39:10 +0000 |
| commit | 0c6d62cfe90bb7b3c4000c81942e9ccdba3e80fd (patch) | |
| tree | 9ffb11a0ffc086e7e868ff4fd6fe5b407d463e4c /sys/dev | |
| parent | 22c1c07780398da8868ab27cf0cc9f339e28fe49 (diff) | |
Change sc_pil_intr_enable from an int to a bool. No functional change
intended.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/pccbb.c | 10 | ||||
| -rw-r--r-- | sys/dev/pci/pccbbvar.h | 5 |
2 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c index eb9e1897d4b..a79ba0703e0 100644 --- a/sys/dev/pci/pccbb.c +++ b/sys/dev/pci/pccbb.c @@ -1,4 +1,4 @@ -/* $NetBSD: pccbb.c,v 1.198 2010/04/19 18:24:27 dyoung Exp $ */ +/* $NetBSD: pccbb.c,v 1.199 2010/04/20 23:39:10 dyoung Exp $ */ /* * Copyright (c) 1998, 1999 and 2000 @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pccbb.c,v 1.198 2010/04/19 18:24:27 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pccbb.c,v 1.199 2010/04/20 23:39:10 dyoung Exp $"); /* #define CBB_DEBUG @@ -639,7 +639,7 @@ pccbb_pci_callback(device_t self) /* bus bridge initialization */ pccbb_chipinit(sc); - sc->sc_pil_intr_enable = 1; + sc->sc_pil_intr_enable = true; { u_int32_t sockstat; @@ -3152,7 +3152,7 @@ pccbb_suspend(device_t dv, const pmf_qual_t *qual) if (sc->sc_pil_intr_enable) (void)pccbbintr_function(sc); - sc->sc_pil_intr_enable = 0; + sc->sc_pil_intr_enable = false; reg = bus_space_read_4(base_memt, base_memh, CB_SOCKET_MASK); /* Disable interrupts. */ @@ -3207,7 +3207,7 @@ pccbb_resume(device_t dv, const pmf_qual_t *qual) */ (void)pccbbintr(sc); - sc->sc_pil_intr_enable = 1; + sc->sc_pil_intr_enable = true; return true; } diff --git a/sys/dev/pci/pccbbvar.h b/sys/dev/pci/pccbbvar.h index 02e1c876d04..d247b68b1b9 100644 --- a/sys/dev/pci/pccbbvar.h +++ b/sys/dev/pci/pccbbvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: pccbbvar.h,v 1.40 2010/03/15 20:02:56 dyoung Exp $ */ +/* $NetBSD: pccbbvar.h,v 1.41 2010/04/20 23:39:11 dyoung Exp $ */ /* * Copyright (c) 1999 HAYAKAWA Koichi. All rights reserved. @@ -135,7 +135,8 @@ struct pccbb_softc { /* interrupt handler list on the bridge */ LIST_HEAD(, pccbb_intrhand_list) sc_pil; - int sc_pil_intr_enable; /* can i call intr handler for child device? */ + /* can i call intr handler for child device? */ + bool sc_pil_intr_enable; }; /* |
