Hardware Datasheets?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Hardware Datasheets?

Post by pcmattman »

Can anyone point me towards datasheets for the following network devices:
  • VIA Rhine II Fast Ethernet Adapter (onboard)
  • 3Com 3C905C-TX (dunno what chip)
  • RTL8180L (this is a chip)
  • NE DM-1001 (possibly ISA, not detected on PCI)
These four are the only networking devices I have. Bochs can work with a NE2000 card, but I want to be able to test networking on a real PC.[/list]
User avatar
omin0us
Member
Member
Posts: 49
Joined: Tue Oct 17, 2006 6:53 pm
Location: Los Angeles, CA
Contact:

Post by omin0us »

I dunno about data sheets for those. But one thing you might look into that i've been starting to do, is look at older linux kernels (2.2.x, 2.4.x) drivers for the cards you want. And get an idea of how the card works. What registers it uses, commands, etc.

I'm currently doing this for an Intel 10/100PRO driver.
http://ominos.sourceforge.net - my kernel
#ominos @ irc.freenode.net
http://dtors.ath.cx - my blog
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

I found the 3Com data on the Wiki :oops:

The other two still remain.

Also: does the pcidev in Bochs mean that I have to have that card, or does it just emulate?
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

http://rtl8181.sourceforge.net/rtl8181_resources.php Gives some info about the chip on the page.

VIA Technologies VT3043 Rhine I and VT86C100A Rhine II fast ethernet controller chips. There you got chip numbers, Google seems to find datasheets with "VT86C100A" though I didn't bother looking if they're good.

I'm under the impression that 3Com actually is pretty nice about giving datasheets, but their site only gives me link to "license.html" which goes to a page that says "please contact developer support" when I try to find a datasheet for your card, so you probably have to ask 3Com for info, unless you want to learn from the 3c59x driver in Linux..

And about NE DM-1001 I don't know anything at all.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

Actually the datasheets on the Wiki for the 3Com cards are really good. They tell you the offsets of each register and its data for a start, and cover all points of the hardware.

Thanks for your help.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

I've got one 8139 in each computer I have, plus one 8139 extra, which I bought for 10€ (new) for my sister, without even knowing it was 8139 based, and turns out she didn't need it after all. Guess which driver I'm going to write next.. :)
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

My non-emulator testbed has the NE DM-1001, the 3Com, and possibly the RTL8180L if I feel like it. I would prefer to work with the 3Com, though. Mainly because the NE is old, back when coaxial used to be standard (coaxial + RJ45). And the RTL is part of a wireless card (Belkin, 802.11b card).
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Yeah the 3com is also probably the easiest to support.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Actually, DO look at the Linux driver 3c59x.c as it's once of the better documented parts of the kernel, with lots of comments and written in relatively clear style. It's sure to be useful.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

Documented? Really! :lol:

I'll look at that.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

Actually, do you know of any way of emulating the 3Com cards in an emulator?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

Contribute to Bochs :D
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
omin0us
Member
Member
Posts: 49
Joined: Tue Oct 17, 2006 6:53 pm
Location: Los Angeles, CA
Contact:

Post by omin0us »

I know that qemu now supports at least ne2k_isa, ne2k_pci, & rtl8139 emulation. I dunno if it does some other chipsets though.
http://ominos.sourceforge.net - my kernel
#ominos @ irc.freenode.net
http://dtors.ath.cx - my blog
User avatar
mystran
Member
Member
Posts: 670
Joined: Thu Mar 08, 2007 11:08 am

Post by mystran »

Bochs and QEMU both have support for NE2k and 8139 but that's it.
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
User avatar
omin0us
Member
Member
Posts: 49
Joined: Tue Oct 17, 2006 6:53 pm
Location: Los Angeles, CA
Contact:

Post by omin0us »

Oh, I didn't realize bochs did. I was thinking of trying to add rtl8139 support to bochs before. But, no need i suppose. :]
http://ominos.sourceforge.net - my kernel
#ominos @ irc.freenode.net
http://dtors.ath.cx - my blog
Post Reply