const uae_u8 *dstmac, *srcmac;
struct s2devstruct *dev = (struct s2devstruct*)devv;
+ if (!am_initialized)
+ return;
if (!am_rdr_rlen)
return;
{
struct s2devstruct *dev = (struct s2devstruct*)devv;
+ if (!am_initialized)
+ return 0;
if (transmitlen <= 0)
return 0;
if (transmitlen > *len) {
static void a2065_reset(int hardreset)
{
am_initialized = 0;
+
+ ethernet_close(td, sysdata);
+
for (int i = 0; i < RAP_SIZE; i++)
csr[i] = 0;
csr[0] = CSR0_STOP;
free_expansion_bank(&a2065_bank);
boardram = NULL;
- ethernet_close(td, sysdata);
xfree(sysdata);
sysdata = NULL;
td = NULL;