diff options
author | Paul Fulghum <paulkf@microgate.com> | 2005-09-09 16:02:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:34 -0400 |
commit | 7c1fff58cfaaf1c4b6a31a569e18cb7d2d8db0a6 (patch) | |
tree | 6bfa317c409fda8007a198e01312580f39ae4ae4 | |
parent | 9661239f7f698ba3a79db5e8ab5bb2f4090663d9 (diff) |
[PATCH] synclink.c: add loopback to async mode
Add internal loopback support for asynchronous mode operation.
Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/char/synclink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/synclink.c b/drivers/char/synclink.c index 26b421b74bb6..ea2d54be4843 100644 --- a/drivers/char/synclink.c +++ b/drivers/char/synclink.c | |||
@@ -6151,6 +6151,11 @@ static void usc_set_async_mode( struct mgsl_struct *info ) | |||
6151 | usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT13) & ~BIT12)); | 6151 | usc_OutReg(info, PCR, (u16)((usc_InReg(info, PCR) | BIT13) & ~BIT12)); |
6152 | } | 6152 | } |
6153 | 6153 | ||
6154 | if (info->params.loopback) { | ||
6155 | info->loopback_bits = 0x300; | ||
6156 | outw(0x0300, info->io_base + CCAR); | ||
6157 | } | ||
6158 | |||
6154 | } /* end of usc_set_async_mode() */ | 6159 | } /* end of usc_set_async_mode() */ |
6155 | 6160 | ||
6156 | /* usc_loopback_frame() | 6161 | /* usc_loopback_frame() |