Rev 1481 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1481 | Rev 1492 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | 110 | ||
Line 111... | Line 111... | ||
111 | .got: |
111 | .got: |
Line -... | Line 112... | ||
- | 112 | ||
- | 113 | } |
|
- | 114 | ||
- | 115 | macro find_irq bus, dev, irq { |
|
- | 116 | ||
- | 117 | push eax edx ecx |
|
- | 118 | movzx ecx, bus |
|
- | 119 | movzx edx, dev |
|
- | 120 | stdcall PciRead8, ecx ,edx ,0x3c ; 0x3c is the offset where irq can be found |
|
- | 121 | mov irq, al |
|
- | 122 | pop ecx edx eax |
|
Line 112... | Line 123... | ||
112 | 123 | ||
Line 113... | Line 124... | ||
113 | } |
124 | } |
Line 162... | Line 173... | ||
162 | or ax, word[esp] |
173 | or ax, word[esp] |
163 | inc esp |
174 | inc esp |
164 | inc esp |
175 | inc esp |
Line 165... | Line 176... | ||
165 | 176 | ||
166 | }>> |
177 | } |
- | 178 | ||
- | 179 | ||
- | 180 | ;struc ETH_DEVICE { |
|
- | 181 | macro ETH_DEVICE { |
|
- | 182 | ; pointers to procedures |
|
- | 183 | .unload dd ? |
|
- | 184 | .reset dd ? |
|
- | 185 | .transmit dd ? |
|
- | 186 | .set_MAC dd ? |
|
- | 187 | .get_MAC dd ? |
|
- | 188 | .set_mode dd ? |
|
- | 189 | .get_mode dd ? |
|
- | 190 | ; status |
|
- | 191 | .bytes_tx dq ? |
|
- | 192 | .bytes_rx dq ? |
|
- | 193 | .packets_tx dd ? |
|
- | 194 | .packets_rx dd ? |
|
- | 195 | .mode dd ? |
|
- | 196 | .name dd ? |
|
- | 197 | .mac dp ? |
|
- | 198 | }>> |
|
- | 199 |