freebsd-ports/comms/vpb-driver/files/patch-src-comm.cpp
Sam Lawrance e6e189732d Add vpb-driver 2.4.9, device-driver for the Voicetronix OpenLine4 PCI
telephony cards.

This is a port of the 4.x driver from the vendor, for 5.x.

PR:		ports/77471
Submitted by:	Chris Forkin <chris@forkin.com>
2005-11-11 10:06:14 +00:00

38 lines
952 B
C++

--- src/comm.cpp Tue Apr 19 12:02:20 2005
+++ src/comm.cpp Tue Oct 4 21:13:30 2005
@@ -841,6 +841,7 @@
// GenericEnterCriticalSection(&PutMessageSect);
mprintf("CommData::IicWrite addr:%x, len:%x, buf:%x %x %x %x \n",\
addr,length,buf[0],buf[1],buf[2],buf[3]);
+#ifndef __FreeBSD__
switch (v->reg->model)
{
#ifndef WIN32
@@ -859,6 +860,9 @@
hip->WriteIic(board, addr, length, buf);
break;
}
+#else
+ hip->WriteIic(board, addr, length, buf);
+#endif
// CheckForAssert(board);
// GenericLeaveCriticalSection(&PutMessageSect); //WIN32 has this in hipplx
@@ -886,6 +890,7 @@
// GenericEnterCriticalSection(&PutMessageSect);
+#ifndef __FreeBSD__
switch (v->reg->model)
{
#ifndef WIN32
@@ -903,6 +908,9 @@
hip->ReadIic(board, addr, length, buf);
break;
}
+#else
+ hip->ReadIic(board, addr, length, buf);
+#endif
// CheckForAssert(board);
// GenericLeaveCriticalSection(&PutMessageSect);