h2txrx.h

来自「Vitesse 24port gigabit Switch Source Cod」· C头文件 代码 · 共 51 行

H
51
字号
/*

    Copyright (c) 2002-2006 Vitesse Semiconductor Corporation "Vitesse".  
    All Rights Reserved.  Unpublished rights reserved under the copyright laws
    of the United States of America, other countries and international treaties.
    The software is provided without a fee. Permission to use, copy, store and 
    modify, the software and its source code is granted. Permission to integrate
    into other products, disclose, transmit and distribute the software in an
    absolute machine readable format (e.g. HEX file) is also granted. 

    The source code of the software may not be disclosed, transmitted or
    distributed without the written permission of Vitesse. The software and its
    source code may only be used in products utilizing a Vitesse VSC73xx product.
 
    This copyright notice must appear in any copy, modification, disclosure,
    transmission or distribution of the software. Vitesse retains all ownership,
    copyright, trade secret and proprietary rights in the software.  

    THIS SOFTWARE HAS BEEN PROVIDED "AS IS," WITHOUT EXPRESS OR IMPLIED WARRANTY
    INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR USE AND NON-INFRINGEMENT.

*/
#ifndef __H2TXRX_H__
#define __H2TXRX_H__

extern bit cpu_tx_congestion;

typedef struct {
    uchar  src_port;  /* physical (MAC) source (ingress) port */
} vtss_frm_hdr_t;


bit    h2_frame_received (void) small;
void   h2_tx_init (uchar port_no, ushort frame_len) small;
void   h2_tx_word (ulong w) small;
void   h2_tx_flush (void) small;
ushort h2_rx_hdr (vtss_frm_hdr_t *frm_hdr_p) small;
ulong  h2_rx_word (void) small;
void   h2_rx_ack (void) small;

#endif








⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?