/* SPDX-License-Identifier: GPL-2.0-only */1/* include/net/ax88796.h2*3* Copyright 2005 Simtec Electronics4* Ben Dooks <[email protected]>5*/67#ifndef __NET_AX88796_PLAT_H8#define __NET_AX88796_PLAT_H910#include <linux/types.h>1112struct sk_buff;13struct net_device;14struct platform_device;1516#define AXFLG_HAS_EEPROM (1<<0)17#define AXFLG_MAC_FROMDEV (1<<1) /* device already has MAC */18#define AXFLG_HAS_93CX6 (1<<2) /* use eeprom_93cx6 driver */19#define AXFLG_MAC_FROMPLATFORM (1<<3) /* MAC given by platform data */2021struct ax_plat_data {22unsigned int flags;23unsigned char wordlength; /* 1 or 2 */24unsigned char dcr_val; /* default value for DCR */25unsigned char rcr_val; /* default value for RCR */26unsigned char gpoc_val; /* default value for GPOC */27u32 *reg_offsets; /* register offsets */28u8 *mac_addr; /* MAC addr (only used when29AXFLG_MAC_FROMPLATFORM is used */3031/* uses default ax88796 buffer if set to NULL */32void (*block_output)(struct net_device *dev, int count,33const unsigned char *buf, int star_page);34void (*block_input)(struct net_device *dev, int count,35struct sk_buff *skb, int ring_offset);36/* returns nonzero if a pending interrupt request might be caused by37* the ax88796. Handles all interrupts if set to NULL38*/39int (*check_irq)(struct platform_device *pdev);40};4142/* exported from ax88796.c for xsurf100.c */43extern void ax_NS8390_reinit(struct net_device *dev);4445#endif /* __NET_AX88796_PLAT_H */464748