From: "Nanakos Chrysostomos" <nanakos@wired-net.gr>
To: Harry Kalogirou <harkal@gmx.net>
Cc: Hans <hans64@ht-lab.com>, linux-8086@vger.kernel.org
Subject: [PATCH 1 DMA] Small Error Fixes
Date: Wed, 17 Aug 2005 17:42:46 +0300 (EEST) [thread overview]
Message-ID: <46148.62.1.12.87.1124289766.squirrel@webmail.wired-net.gr> (raw)
In-Reply-To: <1124218178.3131.12.camel@cool>
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: patch1.dma --]
[-- Type: application/octet-stream, Size: 732 bytes --]
Signed-off-by: Nanakos Chrysostomos <nanakos@wired-net.gr>
--- kernel/dma.c.orig Wed Aug 17 16:56:24 2005
+++ kernel/dma.c Wed Aug 17 16:58:01 2005
@@ -93,6 +93,7 @@ void free_dma(unsigned char dma)
printk("Trying to free DMA%u\n", dma);
else if (!xchg(&dma_chan_busy[dma].lock, 0)) {
printk("Trying to free free DMA%u\n", dma);
+ } /* Nanakos Chrysostomos */
} /* free_dma */
/* enable/disable a specific DMA channel */
@@ -235,8 +236,8 @@ int get_dma_residue(unsigned char dma)
unsigned short count = 1 + dma_inb(io_port);
count += dma_inb(io_port) << 8;
-
- return (dmanr <= 3) ? count : (count << 1);
+ /* Nanakos Chrysostomos */
+ return (dma <= 3) ? count : (count << 1);
}
#endif
next prev parent reply other threads:[~2005-08-17 14:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-15 16:12 ACK ANSI C compiler David Given
2005-08-15 19:18 ` Hans
2005-08-16 18:49 ` Harry Kalogirou
2005-08-16 23:56 ` David Given
2005-08-17 14:42 ` Nanakos Chrysostomos [this message]
2005-08-17 14:44 ` [PATCH 2 DIRECTHD] Small Error Fixes Nanakos Chrysostomos
2005-08-17 14:45 ` [PATCH 3 META] " Nanakos Chrysostomos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46148.62.1.12.87.1124289766.squirrel@webmail.wired-net.gr \
--to=nanakos@wired-net.gr \
--cc=hans64@ht-lab.com \
--cc=harkal@gmx.net \
--cc=linux-8086@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox