2000-11-21 Jiri Gaisler <jgais@ws.estec.esa.nl>

* erc32sonic/erc32sonic.c: Minor modifications which enable
	network interface to come up and work for some time before
	getting an error in the SONIC driver.  The error is a bit random,
	sometimes MCLGET (m, M_WAIT) tries to access memory way outside the
	available ram (and traps) while sometimes there is a panic due
	to RBAE/RXEN.
This commit is contained in:
Joel Sherrill
2000-11-21 14:02:17 +00:00
parent c9fcb34015
commit a1c86a4c51
2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,12 @@
2000-11-21 Jiri Gaisler <jgais@ws.estec.esa.nl>
* erc32sonic/erc32sonic.c: Minor modifications which enable
network interface to come up and work for some time before
getting an error in the SONIC driver. The error is a bit random,
sometimes MCLGET (m, M_WAIT) tries to access memory way outside the
available ram (and traps) while sometimes there is a panic due
to RBAE/RXEN.
2000-11-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Cleanup.

View File

@@ -101,10 +101,9 @@ int rtems_erc32_sonic_driver_attach(struct rtems_bsdnet_ifconfig *config)
{
ERC32_MEC.IO_Configuration |= (0x15 << (((SONIC_BASE_ADDRESS >> 24) & 0x3) * 8));
ERC32_MEC.Control &= ~0xe0000; /* Disable DMA time-out and parity */
ERC32_MEC.Control |= 0x10001; /* Enable DMA */
ERC32_MEC.Interrupt_Mask &= ~0x000340;
*((volatile int *) 0x10000300) = 0;
ERC32_MEC.Control &= ~0x60001; /* Disable DMA time-out, parity & power-down */
ERC32_MEC.Control |= 0x10000; /* Enable DMA */
ERC32_MEC.Interrupt_Mask &= ~(1 << (SONIC_VECTOR - 0x10));
return(rtems_sonic_driver_attach( config, &erc32_sonic_configuration ));
}