amd8111s_main.h revision da14cebe459d3275048785f25bd869cb09b5307f
2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * Copyright (c) 2001-2006 Advanced Micro Devices, Inc. All rights reserved. 2N/A * Redistribution and use in source and binary forms, with or without 2N/A * modification, are permitted provided that the following conditions are met: 2N/A * + Redistributions of source code must retain the above copyright notice, 2N/A * + this list of conditions and the following disclaimer. 2N/A * + Redistributions in binary form must reproduce the above copyright 2N/A * + notice, this list of conditions and the following disclaimer in the 2N/A * + documentation and/or other materials provided with the distribution. 2N/A * + Neither the name of Advanced Micro Devices, Inc. nor the names of its 2N/A * + contributors may be used to endorse or promote products derived from 2N/A * + this software without specific prior written permission. 2N/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 2N/A * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 2N/A * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2N/A * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2N/A * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. OR 2N/A * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2N/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2N/A * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 2N/A * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2N/A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2N/A * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 2N/A * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 2N/A * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2N/A * Compliance with Applicable Laws. Notice is hereby given that 2N/A * the software may be subject to restrictions on use, release, 2N/A * transfer, importation, exportation and/or re-exportation under 2N/A * the laws and regulations of the United States or other 2N/A * countries ("Applicable Laws"), which include but are not 2N/A * limited to U.S. export control laws such as the Export 2N/A * Administration Regulations and national security controls as 2N/A * defined thereunder, as well as State Department controls under 2N/A * the U.S. Munitions List. Permission to use and/or 2N/A * redistribute the software is conditioned upon compliance with 2N/A * all Applicable Laws, including U.S. export control laws 2N/A * regarding specifically designated persons, countries and 2N/A * nationals of countries subject to national security controls. /* ((2 ^ (32 - 1)) * 8) / (10 ^ 8) >= 100 */ /* Bit flags for 'attach_progress' */ * (Internal) return values from ioctl subroutines int Period;
/* in milliseconds */ /* # of call amd8111s_dump_mib function */ * From MIB registers (TX) /* Packet drop due to Tx FIFO underrun */ /* Packets successfully transmitted after experiencing one collision */ /* # of late collisions that occur */ * Some error counter after "ifconfig amd8111sX unplumb" * Count Tx mp number from GLD even after NIC has been unplumbed. * This value should always be 0. * We drain all pending tx packets during unplumb operation. This * variable is to count the drain time. * 30 means success; =30 means fail * From MIB registers (RX) * The total number of valid frames received that are less than 64 * bytes long (include the FCS). * The total number of valid frames received that are greater than the * maximum valid frame size (include the FCS). /* Invalid data symbol (RX_ER) */ /* Packets that were dropped because no descriptor was available */ * Packets that were dropped due to lack of resources. This includes * the number of times a packet was dropped due to receive FIFO * overflow and lack of receive descriptor. * The chip_lock assures that the Rx/Tx process must be stopped while * other functions change the hardware configuration, such as attach() * detach() etc are executed. * HW operators and parameters on attach period /* For pci configuration */ * FreeQ: Transfer Rx Buffer parameters from top layer to low layers. * (struct RxBufInfo *, physical address) /* Multicast addresses table */ #
endif /* AMD8111S_MAIN_H */