123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
#ifndef _TARGETHW_
#define _TARGETHW_
#ifdef PCI
#define RX_WATERMARK 24
#define TX_WATERMARK 24
#define SK_ML_ID_1 0x20
#define SK_ML_ID_2 0x30
#endif
#include "skfbi.h"
#ifndef TAG_MODE
#include "fplus.h"
#else
#include "fplustm.h"
#endif
#ifndef HW_PTR
#define HW_PTR void __iomem *
#endif
#ifdef MULT_OEM
#define OI_STAT_LAST 0 /* end of OEM data base */
#define OI_STAT_PRESENT 1 /* entry present but not empty */
#define OI_STAT_VALID 2 /* holds valid ID, but is not active */
#define OI_STAT_ACTIVE 3 /* holds valid ID, entry is active */
struct s_oem_ids {
u_char oi_status ;
u_char oi_mark[5] ;
u_char oi_id[4] ;
#ifdef PCI
u_char oi_sub_id[4] ;
#endif
} ;
#endif /* MULT_OEM */
struct s_smt_hw {
HW_PTR iop ;
short dma ;
short irq ;
short eprom ;
#ifndef SYNC
u_short n_a_send ;
#endif
#if defined(PCI)
short slot ;
short max_slots ;
short wdog_used ;
#endif
#ifdef PCI
u_short pci_handle ;
u_long is_imask ;
u_long phys_mem_addr ;
u_short mc_dummy ;
u_short hw_state ;
#define STARTED 1
#define STOPPED 0
int hw_is_64bit ;
#endif
#ifdef TAG_MODE
u_long pci_fix_value ;
#endif
u_long t_start ;
u_long t_stop ;
u_short timer_activ ;
u_char pic_a1 ;
u_char pic_21 ;
struct fddi_addr fddi_home_addr ;
struct fddi_addr fddi_canon_addr ;
struct fddi_addr fddi_phys_addr ;
struct mac_parameter mac_pa ;
struct mac_counter mac_ct ;
u_short mac_ring_is_up ;
struct s_smt_fp fp ;
#ifdef MULT_OEM
struct s_oem_ids *oem_id ;
int oem_min_status ;
#endif /* MULT_OEM */
} ;
#endif