git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Starting on a NFS driver
[tpg/acess2.git]
/
Modules
/
Network
/
NE2000
/
ne2000.c
diff --git
a/Modules/Network/NE2000/ne2000.c
b/Modules/Network/NE2000/ne2000.c
index
24d8278
..
14314b8
100644
(file)
--- a/
Modules/Network/NE2000/ne2000.c
+++ b/
Modules/Network/NE2000/ne2000.c
@@
-309,7
+309,7
@@
Uint64 Ne2k_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer)
// Sanity Check Length
if(Length > TX_BUF_SIZE*256) {
Warning(
// Sanity Check Length
if(Length > TX_BUF_SIZE*256) {
Warning(
- "Ne2k_Write - Attempting to send over TX_BUF_SIZE(%i) bytes (%i)",
+ "Ne2k_Write - Attempting to send over TX_BUF_SIZE
*256
(%i) bytes (%i)",
TX_BUF_SIZE*256, Length
);
LEAVE('i', 0);
TX_BUF_SIZE*256, Length
);
LEAVE('i', 0);
@@
-339,8
+339,9
@@
Uint64 Ne2k_Write(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer)
outb(Card->IOBase + CMD, 0|0x10|0x2); // Page 0, Remote Write, Start
// Send Data
outb(Card->IOBase + CMD, 0|0x10|0x2); // Page 0, Remote Write, Start
// Send Data
- for(rem = Length; rem
; rem -= 2)
+ for(rem = Length; rem
> 0; rem -= 2) {
outw(Card->IOBase + 0x10, *buf++);
outw(Card->IOBase + 0x10, *buf++);
+ }
while( inb(Card->IOBase + ISR) == 0 ) // Wait for Remote DMA Complete
; //Proc_Yield();
while( inb(Card->IOBase + ISR) == 0 ) // Wait for Remote DMA Complete
; //Proc_Yield();
UCC
git Repository :: git.ucc.asn.au