aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorSteve Passe <fsmp@FreeBSD.org>1997-09-01 07:45:37 +0000
committerSteve Passe <fsmp@FreeBSD.org>1997-09-01 07:45:37 +0000
commit1de995bb1f2e662f557b0e8448ff7f1d19a48e51 (patch)
tree47af345883bf930a6db4caf44c07fe6ae8c13ac5 /sys/dev/cy
parent7245dff0f1aa3a9f4e5481f643ab6981a0b0d41c (diff)
Notes
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c11
-rw-r--r--sys/dev/cy/cy_isa.c11
2 files changed, 16 insertions, 6 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index 62a359806aa9..b8c7e3322bcf 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.4 1997/08/30 01:23:40 smp Exp smp $
+ * $Id: cy.c,v 1.5 1997/09/01 07:37:01 smp Exp smp $
*/
#include "cy.h"
@@ -88,6 +88,11 @@
#include <i386/isa/cyreg.h>
#include <i386/isa/ic/cd1400.h>
+#ifdef SMP
+#define disable_intr() COM_DISABLE_INTR()
+#define enable_intr() COM_ENABLE_INTR()
+#endif /* SMP */
+
/*
* Dictionary so that I can name everything *sio* or *com* to compare with
* sio.c. There is also lots of ugly formatting and unnecessary ifdefs to
@@ -988,7 +993,7 @@ siointr(unit)
int baseu, cyu, cy_align;
u_char status;
- MPINTR_LOCK(); /* XXX could this be placed down lower in the loop? */
+ COM_LOCK(); /* XXX could this be placed down lower in the loop? */
baseu = unit * CY_MAX_PORTS;
cy_iobase = com_addr(baseu)->cy_iobase;
@@ -1337,7 +1342,7 @@ cont:
schedsofttty();
- MPINTR_UNLOCK();
+ COM_UNLOCK();
}
#if 0
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index 62a359806aa9..b8c7e3322bcf 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.4 1997/08/30 01:23:40 smp Exp smp $
+ * $Id: cy.c,v 1.5 1997/09/01 07:37:01 smp Exp smp $
*/
#include "cy.h"
@@ -88,6 +88,11 @@
#include <i386/isa/cyreg.h>
#include <i386/isa/ic/cd1400.h>
+#ifdef SMP
+#define disable_intr() COM_DISABLE_INTR()
+#define enable_intr() COM_ENABLE_INTR()
+#endif /* SMP */
+
/*
* Dictionary so that I can name everything *sio* or *com* to compare with
* sio.c. There is also lots of ugly formatting and unnecessary ifdefs to
@@ -988,7 +993,7 @@ siointr(unit)
int baseu, cyu, cy_align;
u_char status;
- MPINTR_LOCK(); /* XXX could this be placed down lower in the loop? */
+ COM_LOCK(); /* XXX could this be placed down lower in the loop? */
baseu = unit * CY_MAX_PORTS;
cy_iobase = com_addr(baseu)->cy_iobase;
@@ -1337,7 +1342,7 @@ cont:
schedsofttty();
- MPINTR_UNLOCK();
+ COM_UNLOCK();
}
#if 0