summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Split SONIC chip into appropriate files for libchip'ing. The portableJoel Sherrill1999-02-051-1761/+0
| | | | | | 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.
* Reorganized into libchip style but not yet split out into multiple filesJoel Sherrill1999-02-041-152/+206
| | | | and placed in the right shareable directories.
* Works great now.Joel Sherrill1999-02-041-10/+27
|
* Added debug print routines for TX and RX descriptors.Joel Sherrill1999-02-021-65/+89
| | | | | Fixed bug where only the mbuf associated with the first TX fragment was being freed.
* Can send and receive packets but fails when TDA wraps. There appearsJoel Sherrill1999-01-311-45/+112
| | | | to be a problem with overwriting the TX descriptors during an RX.
* Merged base line score603e BSPJoel Sherrill1998-10-261-28/+28
|
* Updates to tree to make it build with all desired changes and the conversionJoel Sherrill1998-09-111-408/+453
| | | | of the SONIC driver to the new FreeBSD stack instead of KA9Q.
* If 0 out the code which touches the chip in questionable ways for processingJoel Sherrill1998-08-141-0/+6
| | | | a giant packet.
* Enable TX interrupts only when we need TDAs.Joel Sherrill1998-08-131-1/+0
|
* Cleaned up some debugging stuff.Joel Sherrill1998-08-131-23/+15
| | | | Redid interrupt handler to read imr/isr once and to write the imr once.
* Removed spurious prints and cleaned up XXX.Joel Sherrill1998-08-121-11/+10
|
* Added more debug information. There are probably debug prints left in.Joel Sherrill1998-08-121-24/+53
| | | | | Fixed one important bug. After wrapping the RX Descriptors all had the EOL bit set which resulted in everything slowing down massively.
* Fixed bug where the last link of the RDA was not initialized properly.Joel Sherrill1998-08-121-15/+30
|
* Added SONIC_DEBUG_DESCRIPTORS and changed debug level.Joel Sherrill1998-08-111-3/+11
|
* Survives 16-20 packets. Appears to be ok on TX buffer management.Joel Sherrill1998-08-101-11/+16
| | | | Problem appears to be on the RX buffer initialization side.
* Added printsJoel Sherrill1998-08-101-1/+2
|
* Can now reply to multiple successive pings successfully without being inJoel Sherrill1998-08-101-23/+18
| | | | | | promiscuous mode. It still dies somewhere between 16 and 20 pings.
* replies to ping -- forced into prosmiscuous modeJoel Sherrill1998-08-101-13/+21
|
* Reordered some stuff.Joel Sherrill1998-08-081-7/+10
|
* Changed debug level.Joel Sherrill1998-08-081-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.
* Enabled specific types of debug info.Joel Sherrill1998-08-061-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.
* Changed debug enable macros to support individually enabling differentJoel Sherrill1998-08-061-15/+30
| | | | | | | types of debug information. Removed call to rtems_panic which was based on checking a variable which was no longer being set.
* DCR setting changed to match what the DY-4 Firmware initialized it to.Joel Sherrill1998-08-051-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.
* Switched to read/write register routines and added some basic debugJoel Sherrill1998-08-031-94/+195
| | | | help.
* Added temporary include of dmv170.hJoel Sherrill1998-07-301-0/+6
|
* New files -- from rtems-LM-980406 which was based on an RTEMS from 12/97.Joel Sherrill1998-05-301-0/+1176
This was called the dmv170 BSP in that source tree but since the DMV171 is now obsolete, we have transitioned to the DMV177 and have no intention of checking compatibility with any other models.