1
2
3
4
5
6
7
8
9
10
11 #ifndef _TARGETHW_
12 #define _TARGETHW_
13
14
15
16
17 #ifdef PCI
18 #define RX_WATERMARK 24
19 #define TX_WATERMARK 24
20 #define SK_ML_ID_1 0x20
21 #define SK_ML_ID_2 0x30
22 #endif
23
24 #include "skfbi.h"
25 #ifndef TAG_MODE
26 #include "fplus.h"
27 #else
28 #include "fplustm.h"
29 #endif
30
31 #ifndef HW_PTR
32 #define HW_PTR void __iomem *
33 #endif
34
35 #ifdef MULT_OEM
36 #define OI_STAT_LAST 0
37 #define OI_STAT_PRESENT 1
38 #define OI_STAT_VALID 2
39 #define OI_STAT_ACTIVE 3
40
41
42
43 struct s_oem_ids {
44 u_char oi_status ;
45 u_char oi_mark[5] ;
46 u_char oi_id[4] ;
47
48 #ifdef PCI
49 u_char oi_sub_id[4] ;
50
51 #endif
52 } ;
53 #endif
54
55
56 struct s_smt_hw {
57
58
59
60 HW_PTR iop ;
61 short dma ;
62 short irq ;
63 short eprom ;
64
65 #ifndef SYNC
66 u_short n_a_send ;
67 #endif
68
69 #if defined(PCI)
70 short slot ;
71 short max_slots ;
72 short wdog_used ;
73 #endif
74
75 #ifdef PCI
76 u_short pci_handle ;
77 u_long is_imask ;
78 u_long phys_mem_addr ;
79 u_short mc_dummy ;
80
81
82
83 u_short hw_state ;
84
85 #define STARTED 1
86 #define STOPPED 0
87
88 int hw_is_64bit ;
89 #endif
90
91 #ifdef TAG_MODE
92 u_long pci_fix_value ;
93 #endif
94
95
96
97
98 u_long t_start ;
99 u_long t_stop ;
100 u_short timer_activ ;
101
102
103
104
105 u_char pic_a1 ;
106 u_char pic_21 ;
107
108
109
110
111
112
113
114
115 struct fddi_addr fddi_home_addr ;
116 struct fddi_addr fddi_canon_addr ;
117 struct fddi_addr fddi_phys_addr ;
118
119
120
121
122 struct mac_parameter mac_pa ;
123 struct mac_counter mac_ct ;
124 u_short mac_ring_is_up ;
125
126 struct s_smt_fp fp ;
127
128 #ifdef MULT_OEM
129 struct s_oem_ids *oem_id ;
130 int oem_min_status ;
131 #endif
132
133 } ;
134 #endif