/* SPDX-License-Identifier: GPL-2.0-or-later */ /****************************************************************************** * * (C)Copyright 1998,1999 SysKonnect, * a business unit of Schneider & Koch & Co. Datensysteme GmbH. * * The information in this file is provided "AS IS" without warranty. *
******************************************************************************/
/* * AMD Fplus in tag mode data structs * defs for fplustm.c
*/
/* * Transmit Descriptor struct
*/ struct s_smt_fp_txd {
__le32 txd_tbctrl ; /* transmit buffer control */
__le32 txd_txdscr ; /* transmit frame status word */
__le32 txd_tbadr ; /* physical tx buffer address */
__le32 txd_ntdadr ; /* physical pointer to the next TxD */ #ifdef ENA_64BIT_SUP
__le32 txd_tbadr_hi ; /* physical tx buffer addr (high dword)*/ #endif char far *txd_virt ; /* virtual pointer to the data frag */ /* virt pointer to the next TxD */ struct s_smt_fp_txd volatile far *txd_next ; struct s_txd_os txd_os ; /* OS - specific struct */
} ;
/* * Receive Descriptor struct
*/ struct s_smt_fp_rxd {
__le32 rxd_rbctrl ; /* receive buffer control */
__le32 rxd_rfsw ; /* receive frame status word */
__le32 rxd_rbadr ; /* physical rx buffer address */
__le32 rxd_nrdadr ; /* physical pointer to the next RxD */ #ifdef ENA_64BIT_SUP
__le32 rxd_rbadr_hi ; /* physical tx buffer addr (high dword)*/ #endif char far *rxd_virt ; /* virtual pointer to the data frag */ /* virt pointer to the next RxD */ struct s_smt_fp_rxd volatile far *rxd_next ; struct s_rxd_os rxd_os ; /* OS - specific struct */
} ;
/* * Descriptor Union Definition
*/ union s_fp_descr { struct s_smt_fp_txd t ; /* pointer to the TxD */ struct s_smt_fp_rxd r ; /* pointer to the RxD */
} ;
/* * TxD Ring Control struct
*/ struct s_smt_tx_queue { struct s_smt_fp_txd volatile *tx_curr_put ; /* next free TxD */ struct s_smt_fp_txd volatile *tx_prev_put ; /* shadow put pointer */ struct s_smt_fp_txd volatile *tx_curr_get ; /* next TxD to release*/
u_short tx_free ; /* count of free TxD's */
u_short tx_used ; /* count of used TxD's */
HW_PTR tx_bmu_ctl ; /* BMU addr for tx start */
HW_PTR tx_bmu_dsc ; /* BMU addr for curr dsc. */
} ;
/* * RxD Ring Control struct
*/ struct s_smt_rx_queue { struct s_smt_fp_rxd volatile *rx_curr_put ; /* next RxD to queue into */ struct s_smt_fp_rxd volatile *rx_prev_put ; /* shadow put pointer */ struct s_smt_fp_rxd volatile *rx_curr_get ; /* next RxD to fill */
u_short rx_free ; /* count of free RxD's */
u_short rx_used ; /* count of used RxD's */
HW_PTR rx_bmu_ctl ; /* BMU addr for rx start */
HW_PTR rx_bmu_dsc ; /* BMU addr for curr dsc. */
} ;
#define VOID_FRAME_OFF 0x00 #define CLAIM_FRAME_OFF 0x08 #define BEACON_FRAME_OFF 0x10 #define DBEACON_FRAME_OFF 0x18 #define RX_FIFO_OFF 0x21 /* to get a prime number for */ /* the RX_FIFO_SPACE */
/* * support for byte reversal in AIX * (descriptors and pointers must be byte reversed in memory * CPU is big endian; M-Channel is little endian)
*/ #ifdef AIX #define MDR_REV #define AIX_REVERSE(x) ((((x)<<24L)&0xff000000L) + \
(((x)<< 8L)&0x00ff0000L) + \
(((x)>> 8L)&0x0000ff00L) + \
(((x)>>24L)&0x000000ffL)) #else #ifndef AIX_REVERSE #define AIX_REVERSE(x) (x) #endif #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.