diff options
author | Sam Lawrance <lawrance@FreeBSD.org> | 2005-11-11 10:06:14 +0000 |
---|---|---|
committer | Sam Lawrance <lawrance@FreeBSD.org> | 2005-11-11 10:06:14 +0000 |
commit | e6e189732de4c41d064767365523448301a50066 (patch) | |
tree | a1af9b217fb7d07279a7fbe879184494c4999602 /comms/vpb-driver/files/patch-src-comm.cpp | |
parent | - Update to 0.15 (diff) |
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>
Notes
Notes:
svn path=/head/; revision=147899
Diffstat (limited to 'comms/vpb-driver/files/patch-src-comm.cpp')
-rw-r--r-- | comms/vpb-driver/files/patch-src-comm.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/comms/vpb-driver/files/patch-src-comm.cpp b/comms/vpb-driver/files/patch-src-comm.cpp new file mode 100644 index 000000000000..3b0856719464 --- /dev/null +++ b/comms/vpb-driver/files/patch-src-comm.cpp @@ -0,0 +1,38 @@ +--- 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); |