RTL8169: Difference between revisions

Jump to navigation Jump to search
m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
m (Bot: Replace deprecated source tag with syntaxhighlight)
 
Line 19:
 
ex:
<sourcesyntaxhighlight lang="c">
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>
</source>
 
=== Reset the Chip ===
Line 61:
 
====Code example====
<sourcesyntaxhighlight lang="c">
struct Descriptor {
uint32_t command; /* command/status uint32_t */
Line 87:
}
}
</syntaxhighlight>
</source>
 
== Configuring RxConfig and TxConfig ==
Line 127:
 
eg:
<sourcesyntaxhighlight lang="c">
struct Descriptor
{
Line 195:
outportb(ioaddr + 0x50, 0x00); /* Lock config registers */
}
</syntaxhighlight>
</source>
 
== External Links ==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu