Skip to contentSkip to conversation

synclink.c add loopback to async mode

PATCH New Paul Fulghum 1 participant 1 message Sep 7, 2005 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 synclink.c add loopback to async mode

[patch] synclink.c add loopback to async mode

From: Paul Fulghum <[email protected]>

Add internal loopback support for
asynchronous mode operation.

drivers/char/synclink.c +5 -0
@@ -6149,6 +6149,11 @@ static void usc_set_async_mode( struct m
 		usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT13) & ~BIT12));
 	}
 
+	if (info->params.loopback) {
+		info->loopback_bits = 0x300;
+		outw(0x0300, info->io_base + CCAR);
+	}
+
 }	/* end of usc_set_async_mode() */
 
 /* usc_loopback_frame()