Clean up and driver update

This commit is contained in:
MHeinrichs
2019-01-06 21:23:28 +01:00
parent e42f097a6c
commit 7b838607ae
27 changed files with 11617 additions and 50293 deletions
Binary file not shown.
+5
View File
@@ -255,6 +255,8 @@ ASM SAVEDS LONG DevOpen( ASMR(a1) struct IOSana2Req *ioreq ASMREG(a1),
}
ioreq->ios2_Req.io_Message.mn_Node.ln_Type = NT_REPLYMSG;
D(("DevOpen return code %ld\n",ret));
return ret;
}
@@ -578,6 +580,8 @@ ASM SAVEDS VOID DevBeginIO( ASMR(a1) struct IOSana2Req *ioreq ASMREG(a1),
{
struct IOStdReq *stdrq = (struct IOStdReq *)ioreq;
D(("NSCMD_DEVICEQUERY size %ld\n",(ULONG)stdrq->io_Length));
if( (!stdrq->io_Data) || (stdrq->io_Length < sizeof( NSDQueryAnswer ) ) )
{
ioreq->ios2_Req.io_Error = IOERR_BADLENGTH;
@@ -588,6 +592,7 @@ ASM SAVEDS VOID DevBeginIO( ASMR(a1) struct IOSana2Req *ioreq ASMREG(a1),
stdrq->io_Actual = sizeof( NSDQueryAnswer );
ioreq->ios2_Req.io_Error = 0;
}
D(("NSCMD_DEVICEQUERY return %ld\n",(ULONG)ioreq->ios2_Req.io_Error));
}
break;
/* query contents may ask for live data: handle in server.c */
@@ -1,3 +1,4 @@
;APS00001922000000000000000000000000000000000000000000000000000000000000000000000000
; ------------------------------------------------------------------------------
; | Lowlevel Access to memory mapped ENC624J600 in PSP mode |
; | Henryk Richter <henryk.richter@gmx.net> |
@@ -218,6 +219,7 @@ opendos:
; Initialize board for sending/receiving
move.l _boardbase(pc),a0
moveq #PIO_INIT_MULTI_CAST,d1
bsr _enc624j6l_Init
tst.l d0
ble error
@@ -1382,16 +1384,18 @@ _enc624j6l_TransmitFrame:
dbf d5,.largecopy
move.l d1,(a2)+
bra.s .smallcopy
endc ;_OPT_BUFFER_SWAP
else ;_OPT_BUFFER_SWAP
move.w d0,d4 ;still need length later
endc ;_OPT_BUFFER_SWAP
.smallcopy:
addq #7,d0 ;round up
asr.w #3,d0 ;size/8 = words
subq.w #1,d0 ;dbf...
blt.w .err ;size<2 ? bail out
blt.w .copydone ;size<2 ? bail out
swap d4
move.w #8,d4
@@ -1418,7 +1422,7 @@ _enc624j6l_TransmitFrame:
dbf d0,.txcopy
swap d4
.copydone
;---------------- wait on last frame ----------------------------------
move #200,d3
+1 -1
View File
@@ -11,6 +11,6 @@
#define DEVICEVERSION 1
#define DEVICEREVISION 98
#define DEVICEEXTRA Beta
#define DEVICEDATE 02.01.2019
#define DEVICEDATE 03.01.2019
#endif