/kernel/branches/net/drivers/netdrv.inc |
---|
112,8 → 112,19 |
} |
macro find_irq bus, dev, irq { |
push eax edx ecx |
movzx ecx, bus |
movzx edx, dev |
stdcall PciRead8, ecx ,edx ,0x3c ; 0x3c is the offset where irq can be found |
mov irq, al |
pop ecx edx eax |
} |
macro make_bus_master bus, dev { |
movzx ecx, bus |
163,4 → 174,26 |
inc esp |
inc esp |
} |
} |
;struc ETH_DEVICE { |
macro ETH_DEVICE { |
; pointers to procedures |
.unload dd ? |
.reset dd ? |
.transmit dd ? |
.set_MAC dd ? |
.get_MAC dd ? |
.set_mode dd ? |
.get_mode dd ? |
; status |
.bytes_tx dq ? |
.bytes_rx dq ? |
.packets_tx dd ? |
.packets_rx dd ? |
.mode dd ? |
.name dd ? |
.mac dp ? |
} |