Rev 1177 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1177 | Rev 1178 | ||
---|---|---|---|
Line 360... | Line 360... | ||
360 | mov dword [ebx+device.reset], reset |
360 | mov dword [ebx+device.reset], reset |
361 | mov dword [ebx+device.transmit], transmit |
361 | mov dword [ebx+device.transmit], transmit |
362 | mov dword [ebx+device.get_MAC], read_mac |
362 | mov dword [ebx+device.get_MAC], read_mac |
363 | mov dword [ebx+device.set_MAC], write_mac |
363 | mov dword [ebx+device.set_MAC], write_mac |
364 | mov dword [ebx+device.unload], unload |
364 | mov dword [ebx+device.unload], unload |
365 | mov dword [ebx+device.name], devicename |
365 | mov dword [ebx+device.name], my_service |
Line 366... | Line 366... | ||
366 | 366 | ||
Line 367... | Line 367... | ||
367 | ; save the pci bus and device numbers |
367 | ; save the pci bus and device numbers |
368 | 368 | ||
Line 553... | Line 553... | ||
553 | jns .chip_ver_loop |
553 | jns .chip_ver_loop |
554 | xor cl , cl ; default RTL8139 |
554 | xor cl , cl ; default RTL8139 |
555 | .chip_ver_found: |
555 | .chip_ver_found: |
556 | mov [ebx+device.hw_ver_id], cl |
556 | mov [ebx+device.hw_ver_id], cl |
Line -... | Line 557... | ||
- | 557 | ||
- | 558 | shl ecx, 2 |
|
- | 559 | add ecx, name_crosslist |
|
- | 560 | mov ecx, [ecx] |
|
- | 561 | mov dword [ebx+device.name], ecx |
|
- | 562 | ||
- | 563 | DEBUGF 1,"Chip version: %s\n",ecx |
|
557 | 564 | ||
Line 558... | Line 565... | ||
558 | ; wake up the chip |
565 | ; wake up the chip |
559 | 566 | ||
560 | mov edx, [ebx+device.io_addr] |
567 | mov edx, [ebx+device.io_addr] |
Line 1288... | Line 1295... | ||
1288 | align 4 ; Place all initialised data here |
1295 | align 4 ; Place all initialised data here |
Line 1289... | Line 1296... | ||
1289 | 1296 | ||
1290 | RTL8139_DEV dd 0 |
1297 | RTL8139_DEV dd 0 |
1291 | version dd (5 shl 16) or (API_VERSION and 0xFFFF) |
1298 | version dd (5 shl 16) or (API_VERSION and 0xFFFF) |
- | 1299 | my_service db 'RTL8139',0 ; max 16 chars include zero |
|
1292 | my_service db 'RTL8139',0 ; max 16 chars include zero |
1300 | |
- | 1301 | device_1 db 'Realtek 8139',0 |
|
- | 1302 | device_2 db 'Realtek 8139A',0 |
|
- | 1303 | device_3 db 'Realtek 8139B',0 |
|
- | 1304 | device_4 db 'Realtek 8139C',0 |
|
- | 1305 | device_5 db 'Realtek 8100',0 |
|
- | 1306 | device_6 db 'Realtek 8139D',0 |
|
- | 1307 | device_7 db 'Realtek 8139CP',0 |
|
- | 1308 | device_8 db 'Realtek 8101',0 |
|
- | 1309 | ||
- | 1310 | name_crosslist dd device_1 |
|
- | 1311 | dd device_2 |
|
- | 1312 | dd device_3 |
|
- | 1313 | dd device_4 |
|
- | 1314 | dd device_5 |
|
- | 1315 | dd device_6 |
|
- | 1316 | dd device_7 |
|
Line 1293... | Line 1317... | ||
1293 | devicename db 'Realtek 8139',0 |
1317 | dd device_8 |
1294 | 1318 | ||
1295 | hw_ver_array db VER_RTL8139 ; This array is used by the probe routine to find out wich version of the RTL8139 we are working with |
1319 | hw_ver_array db VER_RTL8139 ; This array is used by the probe routine to find out wich version of the RTL8139 we are working with |
1296 | db VER_RTL8139A |
1320 | db VER_RTL8139A |