972
edits
[unchecked revision] | [unchecked revision] |
m (Bot: Replace deprecated source tag with syntaxhighlight) |
m (Bot: Replace deprecated source tag with syntaxhighlight) |
||
Line 19:
ex:
<
char i;
for (i = 0; i < 6; i++)
Line 25:
mac_address[i] = inportb(ioaddr + i); /*ioaddr is the base address obtainable from the PCI device configuration space.*/
}
</syntaxhighlight>
=== Reset the Chip ===
Line 61:
====Code example====
<
struct Descriptor {
uint32_t command; /* command/status uint32_t */
Line 87:
}
}
</syntaxhighlight>
== Configuring RxConfig and TxConfig ==
Line 127:
eg:
<
struct Descriptor
{
Line 195:
outportb(ioaddr + 0x50, 0x00); /* Lock config registers */
}
</syntaxhighlight>
== External Links ==
|