linux/drivers/net/fddi/skfp/h/targetos.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 specific definitions for driver and
 *	hardware module.
 */

#ifndef	TARGETOS_H
#define TARGETOS_H


//-------- those should go into include/linux/pci.h
#define PCI_VENDOR_ID_SK
#define PCI_DEVICE_ID_SK_FP
//--------



//-------- those should go into include/linux/if_fddi.h
#define FDDI_MAC_HDR_LEN

#define FDDI_RII
#define FDDI_RCF_DIR_BIT
#define FDDI_RCF_LEN_MASK
#define FDDI_RCF_BROADCAST
#define FDDI_RCF_LIMITED_BROADCAST
#define FDDI_RCF_FRAME2K
#define FDDI_RCF_FRAME4K
//--------


#undef ADDR

#include <asm/io.h>
#include <linux/netdevice.h>
#include <linux/fddidevice.h>
#include <linux/skbuff.h>
#include <linux/pci.h>

// is redefined by linux, but we need our definition
#undef ADDR
#ifdef MEM_MAPPED_IO
#define ADDR(a)
#else
#define ADDR
#endif

#include "hwmtm.h"

#define TRUE
#define FALSE

// HWM Definitions
// -----------------------
#define FDDI_TRACE(string, arg1, arg2, arg3)
#ifdef PCI
#define NDD_TRACE(string, arg1, arg2, arg3)
#endif	// PCI
#define SMT_PAGESIZE
// -----------------------


// SMT Definitions
// -----------------------
#define TICKS_PER_SECOND
#define SMC_VERSION
// -----------------------


// OS-Driver Definitions
// -----------------------
#define NO_ADDRESS
#define SKFP_MAX_NUM_BOARDS

#define SK_BUS_TYPE_PCI
#define SK_BUS_TYPE_EISA

#define FP_IO_LEN

#define u8
#define u16
#define u32

#define MAX_TX_QUEUE_LEN
#define MAX_FRAME_SIZE

#define RX_LOW_WATERMARK
#define TX_LOW_WATERMARK

/*
** Include the IOCTL stuff
*/
#include <linux/sockios.h>

#define SKFPIOCTL

struct s_skfp_ioctl {};

/* 
** Recognised ioctl commands for the driver 
*/
#define SKFP_GET_STATS
#define SKFP_CLR_STATS

// The per-adapter driver structure
struct s_smt_os {};

skfddi_priv;

#endif	 // _TARGETOS_