IPCONFIG:implementing IP offloading

This commit is contained in:
Rémy GIBERT 2016-04-18 22:17:28 +02:00
parent 4a47d307c7
commit 91a901ed31

View File

@ -42,6 +42,7 @@ L.MSG0.NL .DA MSG0.NL
L.MSG0.L .DA MSG0.L L.MSG0.L .DA MSG0.L
L.MSG1.DEV .DA MSG1.DEV L.MSG1.DEV .DA MSG1.DEV
L.MSG1.DEV.ARP .DA MSG1.DEV.ARP L.MSG1.DEV.ARP .DA MSG1.DEV.ARP
L.MSG1.DEV.IP .DA MSG1.DEV.IP
L.MSG1.LINK .DA MSG1.LINK L.MSG1.LINK .DA MSG1.LINK
L.MSG1.LINK.OK .DA MSG1.LINK.OK L.MSG1.LINK.OK .DA MSG1.LINK.OK
L.MSG1.LINK.KO .DA MSG1.LINK.KO L.MSG1.LINK.KO .DA MSG1.LINK.KO
@ -119,6 +120,15 @@ CS.INIT.DUMPDEV sta DevID
>PUSHW L.MSG1.DEV.ARP >PUSHW L.MSG1.DEV.ARP
>LIBCALL hLIBSTR,LIBSTR.PRINTF >LIBCALL hLIBSTR,LIBSTR.PRINTF
ldy #S.DEVINFO.FLAGS
lda (ZPDevInfoPtr),y
and #S.DEVINFO.NET.FLAGS.IPOFFLOAD
beq .3
lda #1
.3 >PUSHA
>PUSHW L.MSG1.DEV.IP
>LIBCALL hLIBSTR,LIBSTR.PRINTF
ldy #S.DEVINFO.NET.STATUS ldy #S.DEVINFO.NET.STATUS
lda (ZPDevInfoPtr),y lda (ZPDevInfoPtr),y
and #S.DEVINFO.NET.STATUS.OK and #S.DEVINFO.NET.STATUS.OK
@ -248,6 +258,7 @@ MSG0.NL >CSTRING "Not Loaded\n"
*-------------------------------------- *--------------------------------------
MSG1.DEV >CSTRING "\nDevice Configuration :\n DevID : $%h\n Device Name : %s\n HW Address : %02h:%02h:%02h:%02h:%02h:%02h\n" MSG1.DEV >CSTRING "\nDevice Configuration :\n DevID : $%h\n Device Name : %s\n HW Address : %02h:%02h:%02h:%02h:%02h:%02h\n"
MSG1.DEV.ARP >CSTRING " ARP Offload : %d\n" MSG1.DEV.ARP >CSTRING " ARP Offload : %d\n"
MSG1.DEV.IP >CSTRING " IP Offload : %d\n"
MSG1.LINK >CSTRING " Link Status : %s\n" MSG1.LINK >CSTRING " Link Status : %s\n"
MSG1.LINK.OK >CSTRING "OK" MSG1.LINK.OK >CSTRING "OK"
MSG1.LINK.KO >CSTRING "Media Disconnected" MSG1.LINK.KO >CSTRING "Media Disconnected"