0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef _TARGETHW_
0012 #define _TARGETHW_
0013
0014
0015
0016
0017 #ifdef PCI
0018 #define RX_WATERMARK 24
0019 #define TX_WATERMARK 24
0020 #define SK_ML_ID_1 0x20
0021 #define SK_ML_ID_2 0x30
0022 #endif
0023
0024 #include "skfbi.h"
0025 #ifndef TAG_MODE
0026 #include "fplus.h"
0027 #else
0028 #include "fplustm.h"
0029 #endif
0030
0031 #ifndef HW_PTR
0032 #define HW_PTR void __iomem *
0033 #endif
0034
0035 #ifdef MULT_OEM
0036 #define OI_STAT_LAST 0
0037 #define OI_STAT_PRESENT 1
0038 #define OI_STAT_VALID 2
0039 #define OI_STAT_ACTIVE 3
0040
0041
0042
0043 struct s_oem_ids {
0044 u_char oi_status ;
0045 u_char oi_mark[5] ;
0046 u_char oi_id[4] ;
0047
0048 #ifdef PCI
0049 u_char oi_sub_id[4] ;
0050
0051 #endif
0052 } ;
0053 #endif
0054
0055
0056 struct s_smt_hw {
0057
0058
0059
0060 HW_PTR iop ;
0061 short dma ;
0062 short irq ;
0063 short eprom ;
0064
0065 #ifndef SYNC
0066 u_short n_a_send ;
0067 #endif
0068
0069 #if defined(PCI)
0070 short slot ;
0071 short max_slots ;
0072 short wdog_used ;
0073 #endif
0074
0075 #ifdef PCI
0076 u_short pci_handle ;
0077 u_long is_imask ;
0078 u_long phys_mem_addr ;
0079 u_short mc_dummy ;
0080
0081
0082
0083 u_short hw_state ;
0084
0085 #define STARTED 1
0086 #define STOPPED 0
0087
0088 int hw_is_64bit ;
0089 #endif
0090
0091 #ifdef TAG_MODE
0092 u_long pci_fix_value ;
0093 #endif
0094
0095
0096
0097
0098 u_long t_start ;
0099 u_long t_stop ;
0100 u_short timer_activ ;
0101
0102
0103
0104
0105 u_char pic_a1 ;
0106 u_char pic_21 ;
0107
0108
0109
0110
0111
0112
0113
0114
0115 struct fddi_addr fddi_home_addr ;
0116 struct fddi_addr fddi_canon_addr ;
0117 struct fddi_addr fddi_phys_addr ;
0118
0119
0120
0121
0122 struct mac_parameter mac_pa ;
0123 struct mac_counter mac_ct ;
0124 u_short mac_ring_is_up ;
0125
0126 struct s_smt_fp fp ;
0127
0128 #ifdef MULT_OEM
0129 struct s_oem_ids *oem_id ;
0130 int oem_min_status ;
0131 #endif
0132
0133 } ;
0134 #endif