From 1a20f41c7e73d1d31978cfa8f4544e26843775cd Mon Sep 17 00:00:00 2001 From: Niels Sascha Reedijk Date: Tue, 17 Jun 2003 14:02:51 +0000 Subject: [PATCH] I DID IT Sorry for the enthousiasm. For the first time in my life a made a driver somewhat work. There's still a major list of things to do, but at least I feel safer now that this is working. I can already do pings. Moreover, I'm doing this commit with my own driver. I'm just ashamed for the major mistake I made that took me so much time to find. I'm off sending this beast to testers. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3555 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/network/rtl8139/TODO | 2 +- src/add-ons/kernel/drivers/network/rtl8139/driver.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/drivers/network/rtl8139/TODO b/src/add-ons/kernel/drivers/network/rtl8139/TODO index 1954985eb1..e29f59d9b5 100644 --- a/src/add-ons/kernel/drivers/network/rtl8139/TODO +++ b/src/add-ons/kernel/drivers/network/rtl8139/TODO @@ -1,4 +1,4 @@ - A major code cleanup -- make sure all packets are received - Confirm to the Opentracker coding guidelines - Implement the free_hook +- Support other card types diff --git a/src/add-ons/kernel/drivers/network/rtl8139/driver.c b/src/add-ons/kernel/drivers/network/rtl8139/driver.c index b0cb89847f..eb0681be1f 100644 --- a/src/add-ons/kernel/drivers/network/rtl8139/driver.c +++ b/src/add-ons/kernel/drivers/network/rtl8139/driver.c @@ -423,14 +423,14 @@ open_hook(const char *name, uint32 flags, void** cookie) m_pcimodule->write_io_32( data->reg_base + TSAD0 , (int32)data->transmitbufferphy[0] ); data->transmitbuffer[1] = data->transmitbuffer[0]; data->transmitbufferlog[1] = data->transmitbufferlog[0] + 2048; - data->transmitbufferphy[1] = data->transmitbufferlog[0] + 2048; + data->transmitbufferphy[1] = data->transmitbufferphy[0] + 2048; m_pcimodule->write_io_32( data->reg_base + TSAD1 , (int32)data->transmitbufferphy[1] ); data->transmitbuffer[2] = alloc_mem( &(data->transmitbufferlog[2]) , &(data->transmitbufferphy[2]) , 4096 , "txbuffer23" ); m_pcimodule->write_io_32( data->reg_base + TSAD2 , (int32)data->transmitbufferphy[2] ); data->transmitbuffer[3] = data->transmitbuffer[2]; data->transmitbufferlog[3] = data->transmitbufferlog[2] + 2048; - data->transmitbufferphy[3] = data->transmitbufferlog[2] + 2048; + data->transmitbufferphy[3] = data->transmitbufferphy[2] + 2048; m_pcimodule->write_io_32( data->reg_base + TSAD3 , (int32)data->transmitbufferphy[3] ); if( data->transmitbuffer[0] == B_ERROR || data->transmitbuffer[2] == B_ERROR )