rtl8139 initialization

hello!

I am writing a simple DOS driver(just simple interface functions)to pump
out packets on my rtl8139c based PCI Network card.

I am able to scan for my PCI card. The BIOS does allocate the resources
for it successfully, IOBase(0xd800) and IRQ(9). All i do at PCI
Configuration space is enable PCI device by writing (prev_cmd_val | 0x07)
to PCI COMMAND REGISTER.

Once i get into rtl8139 operational registers ( IOBase + offset) i am able
to read the contents correctly. I do get the MAC address of the device in
IOBase + i (i ranges from 0 to 5). But writes doesnot seem to take effect.
I write 0x00(out of low power) to Config1 register(0x52) but no effect. I
write 0x10(reset) to Command Register (0x37) but no effect. I presume the
writes are not taking effect since reading back the registers gives old
(default) values and not the values i have written.

Could anyone help me in figuring out the mistake i am doing!

Thanx,
-Jinu