linux/drivers/net/fddi/skfp/h/osdef1st.h

/* 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.
 *
 ******************************************************************************/

/* 
 * Operating system-dependent definitions that have to be defined
 * before any other header files are included.
 */

// HWM (HardWare Module) Definitions
// -----------------------

#include <asm/byteorder.h>

#ifdef __LITTLE_ENDIAN
#define LITTLE_ENDIAN
#else
#define BIG_ENDIAN
#endif

// this is set in the makefile
// #define PCI			/* only PCI adapters supported by this driver */
// #define MEM_MAPPED_IO	/* use memory mapped I/O */


#define USE_CAN_ADDR

#define MB_OUTSIDE_SMC

// -----------------------


// SMT Definitions 
// -----------------------
#define SYNC

// #define SBA			/* Synchronous Bandwidth Allocator support */
				/* not available as free source */

#define ESS

#define SMT_PANIC(smc, nr, msg)


#ifdef DEBUG
#define printf
#endif

// #define HW_PTR	u_long
// -----------------------



// HWM and OS-specific buffer definitions
// -----------------------

// default number of receive buffers.
#define NUM_RECEIVE_BUFFERS

// default number of transmit buffers.
#define NUM_TRANSMIT_BUFFERS

// Number of SMT buffers (Mbufs).
#define NUM_SMT_BUF

// Number of TXDs for asynchronous transmit queue.
#define HWM_ASYNC_TXD_COUNT

// Number of TXDs for synchronous transmit queue.
#define HWM_SYNC_TXD_COUNT


// Number of RXDs for receive queue #1.
// Note: Workaround for ASIC Errata #7: One extra RXD is required.
#if (NUM_RECEIVE_BUFFERS > 100)
#define SMT_R1_RXD_COUNT
#else
#define SMT_R1_RXD_COUNT
#endif

// Number of RXDs for receive queue #2.
#define SMT_R2_RXD_COUNT
// -----------------------



/*
 * OS-specific part of the transmit/receive descriptor structure (TXD/RXD).
 *
 * Note: The size of these structures must follow this rule:
 *
 *	sizeof(struct) + 2*sizeof(void*) == n * 16, n >= 1
 *
 * We use the dma_addr fields under Linux to keep track of the
 * DMA address of the packet data, for later pci_unmap_single. -DaveM
 */

struct s_txd_os {} ;

struct s_rxd_os {} ;


/*
 * So we do not need to make too many modifications to the generic driver
 * parts, we take advantage of the AIX byte swapping macro interface.
 */

#define AIX_REVERSE(x)
#define MDR_REVERSE(x)