summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network/sonic.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-04bsps: Move libchip to bspsSebastian Huber1-1685/+0
This patch is a part of the BSP source reorganization. Update #3285.
2018-01-31bsps: Move network define to source filesSebastian Huber1-0/+2
Define __INSIDE_RTEMS_BSD_TCPIP_STACK__ in the network interface driver source files to avoid some build system magic.
2016-05-06sonic.c: Fix warning on gcc 6Martin Galvan1-13/+11
GCC 6.0 previews give the following warning on sonic.c: ../../../../../rtems/c/src/libchip/network/sonic.c:837:11: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation] This was discussed here: https://lists.rtems.org/pipermail/devel/2016-March/014004.html and we concluded it would be better to rewrite the entire snippet.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2012-11-02libnetworking: Use system eventsSebastian Huber1-3/+3
Add reserved system events RTEMS_EVENT_SYSTEM_NETWORK_SBWAIT and RTEMS_EVENT_SYSTEM_NETWORK_SOSLEEP. Add and use rtems_bsdnet_event_send().
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2012-04-16m68k: replace m68k_isr with rtems_isrGedare Bloom1-4/+0
2011-12-092011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+1
* libchip/network/sonic.c: Activate SONIC_STATIC.
2011-12-082011-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-4/+4
* libchip/network/sonic.c: Make sonic_enable_interrupts, sonic_disable_interrupts, sonic_clear_interrupts, sonic_command static.
2011-10-102011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+2
* libchip/network/sonic.c: Don't cast pointers to uint32_t.
2011-10-092011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libchip/network/greth.c, libchip/network/open_eth.c libchip/network/sonic.c: Eliminate evil typecasts. * libchip/network/greth.h, libchip/network/open_eth.h, libchip/network/sonic.h: Use void* for addresses.
2008-08-302008-08-30 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-2/+3
* libchip/network/sonic.c: Do not declare a variable just to hold an ignored return value.
2007-03-132007-03-13 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-3/+3
* libchip/network/sonic.c: Rename Dump_Buffer to rtems_print_buffer.
2006-09-042006-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-5/+5
* libchip/network/greth.c, libchip/network/open_eth.c, libchip/network/smc91111.c, libchip/network/sonic.c: Fix error introduced by warning removal.
2006-09-012006-09-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* libchip/network/cs8900.c, libchip/network/greth.c, libchip/network/i82586.c, libchip/network/open_eth.c, libchip/network/sonic.c: Remove warnings -- use uintptr_t, properly sized integers, and inttypes.h printf helpers.
2005-05-022005-05-02 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett1-1/+1
* libchip/network/cs8900.c, libchip/network/i82586.c, libchip/network/open_eth.c, libchip/network/sonic.c, libchip/serial/mc68681.c: Modified types to remove warnings. Added initialization to remove warnings.
2004-04-20Remove stray white spaces.Ralf Corsepius1-25/+25
2004-03-312004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-5/+5
* libchip/ide/ata.c, libchip/network/dec21140.c, libchip/network/elnk.c, libchip/network/i82586.c, libchip/network/if_fxp.c, libchip/network/if_fxpvar.h, libchip/network/open_eth.c, libchip/network/sonic.c, libchip/rtc/icm7170.c, libchip/serial/ns16550.c, libchip/serial/z85c30.c, libchip/shmdr/cnvpkt.c, libchip/shmdr/init.c, libchip/shmdr/intr.c, libchip/shmdr/shm_driver.h: Cosmetics.
2004-03-232004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-16/+16
* libchip/ide/ata.c, libchip/ide/ata_internal.h, libchip/ide/ide_controller.c, libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h, libchip/network/cs8900.c, libchip/network/dec21140.c, libchip/network/elnk.c, libchip/network/if_fxp.c, libchip/network/open_eth.c, libchip/network/open_eth.h, libchip/network/sonic.c, libchip/network/sonic.h, libchip/rtc/icm7170.c, libchip/rtc/icm7170.h, libchip/rtc/icm7170_reg.c, libchip/rtc/icm7170_reg2.c, libchip/rtc/icm7170_reg4.c, libchip/rtc/icm7170_reg8.c, libchip/rtc/m48t08.c, libchip/rtc/m48t08.h, libchip/rtc/m48t08_reg.c, libchip/rtc/m48t08_reg2.c, libchip/rtc/m48t08_reg4.c, libchip/rtc/m48t08_reg8.c, libchip/rtc/rtc.h, libchip/serial/mc68681.c, libchip/serial/mc68681.h, libchip/serial/mc68681_reg.c, libchip/serial/mc68681_reg2.c, libchip/serial/mc68681_reg4.c, libchip/serial/mc68681_reg8.c, libchip/serial/ns16550.c, libchip/serial/ns16550_p.h, libchip/serial/serial.h, libchip/serial/z85c30.c, libchip/serial/z85c30.h, libchip/serial/z85c30_p.h, libchip/serial/z85c30_reg.c, libchip/shmdr/addlq.c, libchip/shmdr/cnvpkt.c, libchip/shmdr/dump.c, libchip/shmdr/fatal.c, libchip/shmdr/getlq.c, libchip/shmdr/init.c, libchip/shmdr/initlq.c, libchip/shmdr/intr.c, libchip/shmdr/poll.c, libchip/shmdr/send.c, libchip/shmdr/shm_driver.h: Convert to using c99 fixed-size types.
2003-09-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* ide/ata.c, ide/ata.h, ide/ata_internal.h, ide/ide_controller.c, ide/ide_ctrl.h, ide/ide_ctrl_cfg.h, ide/ide_ctrl_io.h, network/cs8900.c, network/cs8900.c.bsp, network/cs8900.h, network/dec21140.c, network/elnk.c, network/open_eth.c, network/sonic.c, network/sonic.h, rtc/icm7170.c, rtc/icm7170.h, rtc/icm7170_reg.c, rtc/icm7170_reg2.c, rtc/icm7170_reg4.c, rtc/icm7170_reg8.c, rtc/m48t08.c, rtc/m48t08.h, rtc/m48t08_reg.c, rtc/m48t08_reg2.c, rtc/m48t08_reg4.c, rtc/m48t08_reg8.c, rtc/rtc.h, rtc/rtcprobe.c, serial/mc68681.c, serial/mc68681.h, serial/mc68681_p.h, serial/mc68681_reg.c, serial/mc68681_reg2.c, serial/mc68681_reg4.c, serial/mc68681_reg8.c, serial/serial.h, serial/z85c30.c, serial/z85c30.h, serial/z85c30_p.h, serial/z85c30_reg.c: URL for license changed.
2002-04-042002-04-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-0/+1
* network/i82586.c: Include <string.h>. * network/sonic.c: Ditto.
2001-03-022001-03-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+0
* network/cs8900.c, network/cs8900.h, network/sonic.c, network/sonic.h, rtc/icm7170_reg.c, rtc/icm7170_reg2.c, rtc/icm7170_reg4.c, rtc/icm7170_reg8.c, rtc/m48t08_reg.c, rtc/m48t08_reg2.c, rtc/m48t08_reg4.c, rtc/m48t08_reg8.c, serial/mc68681_reg.c, serial/mc68681_reg2.c, serial/mc68681_reg4.c, serial/mc68681_reg8.c, serial/z85c30.c, serial/z85c30.h, serial/z85c30_p.h, serial/z85c30_reg.c: Corrected header.
2000-11-132000-11-13 Jiri Gaisler <jgais@ws.estec.esa.nl>Joel Sherrill1-0/+34
* network/sonic.c: Added ipalign() routine to align the received packet so that the ip header is on a 32-bit boundary. Necessary for cpu's that do not allow unaligned loads and stores and when the 32-bit DMA mode is used.
1999-03-24Patch from Eric Norum <eric@skatter.usask.ca> to use new networkJoel Sherrill1-16/+20
interface naming convention.
1999-03-23Modifications from Jiri Gaisler <jgais@ws.estec.esa.nl> toJoel Sherrill1-104/+128
fix some problems encountered when reusing this driver on a SPARC ERC32 based Tharsys board. He eliminted the need for TX interrupts and added code that can optionally ensure that the IP address is 32-bit aligned. He also fixed a handful of problems that only occured because the 8 Mhz ERC32 was enough slower than the 100 Mhz PPC603e that timing issues in this driver were magnified.
1999-03-11Interrupt handler installed as raw handler. Problem caught byJoel Sherrill1-1/+1
by Jiri Gaisler <jgais@ws.estec.esa.nl> when using this driver on a SPARC.
1999-02-05Split SONIC chip into appropriate files for libchip'ing. The portableJoel Sherrill1-162/+30
portion is now in the libchip tree and the dmv177 configuration is in the dmv177 bsp. The performance impact of libchip'ing this driver was minimal.
1999-02-04Reorganized into libchip style but not yet split out into multiple filesJoel Sherrill1-152/+206
and placed in the right shareable directories.
1999-02-04Works great now.Joel Sherrill1-10/+27
1999-02-02Added debug print routines for TX and RX descriptors.Joel Sherrill1-65/+89
Fixed bug where only the mbuf associated with the first TX fragment was being freed.
1999-01-31Can send and receive packets but fails when TDA wraps. There appearsJoel Sherrill1-45/+112
to be a problem with overwriting the TX descriptors during an RX.
1998-10-26Merged base line score603e BSPJoel Sherrill1-28/+28
1998-09-11Updates to tree to make it build with all desired changes and the conversionJoel Sherrill1-408/+453
of the SONIC driver to the new FreeBSD stack instead of KA9Q.
1998-08-14If 0 out the code which touches the chip in questionable ways for processingJoel Sherrill1-0/+6
a giant packet.
1998-08-13Enable TX interrupts only when we need TDAs.Joel Sherrill1-1/+0
1998-08-13Cleaned up some debugging stuff.Joel Sherrill1-23/+15
Redid interrupt handler to read imr/isr once and to write the imr once.
1998-08-12Removed spurious prints and cleaned up XXX.Joel Sherrill1-11/+10
1998-08-12Added more debug information. There are probably debug prints left in.Joel Sherrill1-24/+53
Fixed one important bug. After wrapping the RX Descriptors all had the EOL bit set which resulted in everything slowing down massively.
1998-08-12Fixed bug where the last link of the RDA was not initialized properly.Joel Sherrill1-15/+30
1998-08-11Added SONIC_DEBUG_DESCRIPTORS and changed debug level.Joel Sherrill1-3/+11
1998-08-10Survives 16-20 packets. Appears to be ok on TX buffer management.Joel Sherrill1-11/+16
Problem appears to be on the RX buffer initialization side.
1998-08-10Added printsJoel Sherrill1-1/+2
1998-08-10Can now reply to multiple successive pings successfully without being inJoel Sherrill1-23/+18
promiscuous mode. It still dies somewhere between 16 and 20 pings.
1998-08-10replies to ping -- forced into prosmiscuous modeJoel Sherrill1-13/+21
1998-08-08Reordered some stuff.Joel Sherrill1-7/+10
1998-08-08Changed debug level.Joel Sherrill1-36/+84
Moved CAM Descriptor types to sonic.h. CAM memory is now malloced to insure it shares the same upper address bits. Removed increment of RX interrupt count on TX interrupt path. Added SONIC_DEBUG_FRAGMENTS and SONIC_DEBUG_CAM conditionals. Fixed bugs in fragment manipulation. First bug was that the pad overwrote the last fragment. The second bug was that the link information overwrote the size of the last fragment. Rewrote initialization of TDA to simplify it.
1998-08-06Enabled specific types of debug info.Joel Sherrill1-31/+55
Added pointer to RDA to sonic structure. Added macro names for values used in the in_use field of RDA entries. Rewrote the RX Descriptor Area initialization loop. Added a check to barf if this is a Rev B sonic chip. Enabled check that the CAM was properly loaded.
1998-08-06Changed debug enable macros to support individually enabling differentJoel Sherrill1-15/+30
types of debug information. Removed call to rtems_panic which was based on checking a variable which was no longer being set.
1998-08-05DCR setting changed to match what the DY-4 Firmware initialized it to.Joel Sherrill1-135/+259
This primarily included setting the state of the programmable outputs and the RX and TX FIFO depths. Moved all of the TX, RX, and RRA data structure initialization to before the hardware initialization. As part of this, the hardware initialization was consolidated. More than likely, some of this movement broke stuff. Used constants added to sonic.h which gave more logical names to some of the register bit settings. Switched to calloc to insure the data areas where initialized to 0. Commented out a panic check in the RX server which may or may not have been right. Increased the size of the CAM initialization area. It is possible that this could be decreased or code added to handle the management of multiple hardware addresses. Added sonic read and write register routines which aid greatly in debugging and provide the core for the eventual movement of this driver to libchip. Added debug code to the read and write register routines which can print the value read from or written to a register. This code also prints the register name which significantly eases reading the log.
1998-08-03Switched to read/write register routines and added some basic debugJoel Sherrill1-94/+195
help.