/* include/net/ax88796.h1*2* Copyright 2005 Simtec Electronics3* Ben Dooks <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9*/1011#ifndef __NET_AX88796_PLAT_H12#define __NET_AX88796_PLAT_H1314#define AXFLG_HAS_EEPROM (1<<0)15#define AXFLG_MAC_FROMDEV (1<<1) /* device already has MAC */16#define AXFLG_HAS_93CX6 (1<<2) /* use eeprom_93cx6 driver */17#define AXFLG_MAC_FROMPLATFORM (1<<3) /* MAC given by platform data */1819struct ax_plat_data {20unsigned int flags;21unsigned char wordlength; /* 1 or 2 */22unsigned char dcr_val; /* default value for DCR */23unsigned char rcr_val; /* default value for RCR */24unsigned char gpoc_val; /* default value for GPOC */25u32 *reg_offsets; /* register offsets */26u8 *mac_addr; /* MAC addr (only used when27AXFLG_MAC_FROMPLATFORM is used */28};2930#endif /* __NET_AX88796_PLAT_H */313233