Rev 735 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 735 | Rev 2288 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | ;; Updates: ;; |
23 | ;; Updates: ;; |
24 | ;; Revision Look up table and SIS635 Mac Address by Jarek Pelczar ;; |
24 | ;; Revision Look up table and SIS635 Mac Address by Jarek Pelczar ;; |
25 | ;; ;; |
25 | ;; ;; |
26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
26 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 27... | Line 27... | ||
27 | 27 | ||
Line 28... | Line 28... | ||
28 | $Revision: 735 $ |
28 | $Revision: 2288 $ |
29 | 29 | ||
30 | 30 | ||
Line 78... | Line 78... | ||
78 | RX_BUFF_SZ equ 1520 ;* Buffer size for each Rx buffer * |
78 | RX_BUFF_SZ equ 1520 ;* Buffer size for each Rx buffer * |
79 | TX_BUFF_SZ equ 1516 ;* Buffer size for each Tx buffer * |
79 | TX_BUFF_SZ equ 1516 ;* Buffer size for each Tx buffer * |
Line 80... | Line 80... | ||
80 | 80 | ||
81 | uglobal |
81 | uglobal |
- | 82 | align 4 |
|
82 | align 4 |
83 | txd: |
- | 84 | times (3 * NUM_TX_DESC) dd 0 |
|
83 | txd: times (3 * NUM_TX_DESC) dd 0 |
85 | rxd: |
84 | rxd: times (3 * NUM_RX_DESC) dd 0 |
86 | times (3 * NUM_RX_DESC) dd 0 |
Line 85... | Line 87... | ||
85 | endg |
87 | endg |
86 | 88 | ||
87 | txb equ eth_data_start |
89 | txb equ eth_data_start |
Line 216... | Line 218... | ||
216 | ;For SiS962 or SiS963, request the eeprom software access |
218 | ;For SiS962 or SiS963, request the eeprom software access |
217 | SIS900_EEREQ equ 0x00000400 |
219 | SIS900_EEREQ equ 0x00000400 |
218 | SIS900_EEDONE equ 0x00000200 |
220 | SIS900_EEDONE equ 0x00000200 |
219 | SIS900_EEGNT equ 0x00000100 |
221 | SIS900_EEGNT equ 0x00000100 |
220 | ;General Varibles |
222 | ;General Varibles |
221 | SIS900_pci_revision: db 0 |
223 | SIS900_pci_revision: |
- | 224 | db 0 |
|
222 | SIS900_Status dd 0x03000000 |
225 | SIS900_Status dd 0x03000000 |
223 | sis900_specific_table: |
226 | sis900_specific_table: |
224 | ; dd SIS630A_900_REV,Get_Mac_SIS630A_900_REV,0 |
227 | ; dd SIS630A_900_REV,Get_Mac_SIS630A_900_REV,0 |
225 | ; dd SIS630E_900_REV,Get_Mac_SIS630E_900_REV,0 |
228 | ; dd SIS630E_900_REV,Get_Mac_SIS630E_900_REV,0 |
226 | dd SIS630S_900_REV,Get_Mac_SIS635_900_REV,0 |
229 | dd SIS630S_900_REV,Get_Mac_SIS635_900_REV,0 |
Line 228... | Line 231... | ||
228 | dd SIS630ET_900_REV,Get_Mac_SIS635_900_REV,0;SIS630ET_900_REV_SpecialFN |
231 | dd SIS630ET_900_REV,Get_Mac_SIS635_900_REV,0;SIS630ET_900_REV_SpecialFN |
229 | dd SIS635A_900_REV,Get_Mac_SIS635_900_REV,0 |
232 | dd SIS635A_900_REV,Get_Mac_SIS635_900_REV,0 |
230 | dd SIS900_960_REV,SIS960_get_mac_addr,0 |
233 | dd SIS900_960_REV,SIS960_get_mac_addr,0 |
231 | dd SIS900B_900_REV,SIS900_get_mac_addr,0 |
234 | dd SIS900B_900_REV,SIS900_get_mac_addr,0 |
232 | dd 0,0,0,0 ; end of list |
235 | dd 0,0,0,0 ; end of list |
233 | sis900_get_mac_func: dd 0 |
236 | sis900_get_mac_func: |
- | 237 | dd 0 |
|
234 | sis900_special_func: dd 0 |
238 | sis900_special_func: |
- | 239 | dd 0 |
|
235 | sis900_table_entries: db 8 |
240 | sis900_table_entries: |
- | 241 | db 8 |
|
Line 236... | Line 242... | ||
236 | 242 | ||
237 | ;*************************************************************************** |
243 | ;*************************************************************************** |
238 | ; Function |
244 | ; Function |
239 | ; SIS900_probe |
245 | ; SIS900_probe |
Line 565... | Line 571... | ||
565 | ;* 0x00400000 = 32 bytes |
571 | ;* 0x00400000 = 32 bytes |
566 | ;* 0x00500000 = 64 bytes |
572 | ;* 0x00500000 = 64 bytes |
567 | ;* 0x00600000 = 128 bytes |
573 | ;* 0x00600000 = 128 bytes |
568 | ;* 0x00700000 = 256 bytes |
574 | ;* 0x00700000 = 256 bytes |
569 | ;*************************************************************************** |
575 | ;*************************************************************************** |
- | 576 | SIS900_mc_filter: |
|
570 | SIS900_mc_filter: times 16 dw 0 |
577 | times 16 dw 0 |
571 | SIS900_set_rx_mode: |
578 | SIS900_set_rx_mode: |
572 | mov ebp,[io_addr] |
579 | mov ebp, [io_addr] |
573 | ;**************update Multicast Hash Table in Receive Filter |
580 | ;**************update Multicast Hash Table in Receive Filter |
574 | mov ebx, 0xffff |
581 | mov ebx, 0xffff |
575 | xor cl, cl |
582 | xor cl, cl |
Line 1079... | Line 1086... | ||
1079 | ;*************************************************************************** |
1086 | ;*************************************************************************** |
1080 | if defined SIS900_DEBUG |
1087 | if defined SIS900_DEBUG |
Line 1081... | Line 1088... | ||
1081 | 1088 | ||
1082 | SIS900_Char_String db '0','1','2','3','4','5','6','7','8','9' |
1089 | SIS900_Char_String db '0','1','2','3','4','5','6','7','8','9' |
- | 1090 | db 'A','B','C','D','E','F' |
|
1083 | db 'A','B','C','D','E','F' |
1091 | Mac_str_build: |
1084 | Mac_str_build: times 20 db 0 |
1092 | times 20 db 0 |
1085 | Create_Mac_String: |
1093 | Create_Mac_String: |
1086 | pusha |
1094 | pusha |
1087 | xor ecx, ecx |
1095 | xor ecx, ecx |
1088 | Create_Mac_String_loop: |
1096 | Create_Mac_String_loop: |