diff options
author | Mats Erik Andersson <mats.andersson64@comhem.se> | 2008-07-16 19:05:43 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 18:49:05 -0400 |
commit | da8de3929da9396977b3c9096f36b173f3d9085a (patch) | |
tree | 7361a5e381b64a29a3014b13adae149b2d4f5fb8 | |
parent | cd0fce0322cd10ab39ace584be12f809988a1b9a (diff) |
8139too: [cosmetic] fix incorrect register for flash-rom
I would like to submit a correction to the driver
drivers/net/8139too.c,
which in no way changes the compiled driver, but does change
the value of a previously incorrect value for the configuration
register address of Flash PROM on the network processor rtl8139C.
This corrected value is in accordance with the datasheet
for rtl8139C, and in addition this new value is indeed used
in other functional drivers that use this adapter for
programming a Flash memory chip in situ. But as said,
the two new constants are never referenced in the driver
maintained by you: they are only informational and correct!
Mats Erik Andersson, meand@users.sourceforge.net
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r-- | drivers/net/8139too.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index f6ca99774cc2..32e66f0d4344 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -309,7 +309,7 @@ enum RTL8139_registers { | |||
309 | Cfg9346 = 0x50, | 309 | Cfg9346 = 0x50, |
310 | Config0 = 0x51, | 310 | Config0 = 0x51, |
311 | Config1 = 0x52, | 311 | Config1 = 0x52, |
312 | FlashReg = 0x54, | 312 | TimerInt = 0x54, |
313 | MediaStatus = 0x58, | 313 | MediaStatus = 0x58, |
314 | Config3 = 0x59, | 314 | Config3 = 0x59, |
315 | Config4 = 0x5A, /* absent on RTL-8139A */ | 315 | Config4 = 0x5A, /* absent on RTL-8139A */ |
@@ -325,6 +325,7 @@ enum RTL8139_registers { | |||
325 | FIFOTMS = 0x70, /* FIFO Control and test. */ | 325 | FIFOTMS = 0x70, /* FIFO Control and test. */ |
326 | CSCR = 0x74, /* Chip Status and Configuration Register. */ | 326 | CSCR = 0x74, /* Chip Status and Configuration Register. */ |
327 | PARA78 = 0x78, | 327 | PARA78 = 0x78, |
328 | FlashReg = 0xD4, /* Communication with Flash ROM, four bytes. */ | ||
328 | PARA7c = 0x7c, /* Magic transceiver parameter register. */ | 329 | PARA7c = 0x7c, /* Magic transceiver parameter register. */ |
329 | Config5 = 0xD8, /* absent on RTL-8139A */ | 330 | Config5 = 0xD8, /* absent on RTL-8139A */ |
330 | }; | 331 | }; |