* [KJ] [PATCH] Elimination of isa_read* and isa_write*.
@ 2005-03-30 21:11 Daniel E. Wilson
2005-03-30 21:14 ` Randy.Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Daniel E. Wilson @ 2005-03-30 21:11 UTC (permalink / raw)
To: kernel-janitors
This patch elimiates the use of isa_read* and isa_write* in the lance.c
file.
diff -Nru a/drivers/net/lance.c b/drivers/net/lance.c
--- a/drivers/net/lance.c 2005-03-30 12:57:53 -08:00
+++ b/drivers/net/lance.c 2005-03-30 12:57:53 -08:00
@@ -472,20 +472,24 @@
static int did_version; /* Already printed
version info. */
unsigned long flags;
int err = -ENOMEM;
+ char __iomem *base_addr; /* Base address in the
BIOS. */
/* First we look for special cases.
Check for HP's on-board ethernet by looking for 'HP' in the BIOS.
There are two HP versions, check the BIOS for the
configuration port.
This method provided by L. Julliard,
Laurent_Julliard@grenoble.hp.com.
*/
- if (isa_readw(0x000f0102) = 0x5048) {
+ base_addr = ioremap(0x000f0000, 0x104);
+ if (readw(base_addr + 0x102) = 0x5048) {
static const short ioaddr_table[] = { 0x300, 0x320,
0x340, 0x360};
- int hp_port = (isa_readl(0x000f00f1) & 1) ? 0x499 : 0x99;
+ int hp_port = (readl(base_addr + 0xf1) & 1) ? 0x499 : 0x99;
/* We can have boards other than the built-in! Verify
this is on-board. */
if ((inb(hp_port) & 0xc0) = 0x80
&& ioaddr_table[inb(hp_port) & 3] = ioaddr)
hp_builtin = hp_port;
}
+ iounmap(base_addr);
+
/* We also recognize the HP Vectra on-board here, but check
below. */
hpJ2405A = (inb(ioaddr) = 0x08 && inb(ioaddr+1) = 0x00
&& inb(ioaddr+2) = 0x09);
--
Daniel E Wilson <danw@bureau-13.org>
The gods do not protect fools.
Fools are protected by more capable fools.
- Larry Niven
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [KJ] [PATCH] Elimination of isa_read* and isa_write*.
2005-03-30 21:11 [KJ] [PATCH] Elimination of isa_read* and isa_write* Daniel E. Wilson
@ 2005-03-30 21:14 ` Randy.Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2005-03-30 21:14 UTC (permalink / raw)
To: kernel-janitors
Daniel E. Wilson wrote:
> This patch elimiates the use of isa_read* and isa_write* in the lance.c
> file.
network-driver patches need to go to netdev@oss.sgi.com
and not to linux-net@vger.kernel.org
--
~Randy
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-30 21:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-30 21:11 [KJ] [PATCH] Elimination of isa_read* and isa_write* Daniel E. Wilson
2005-03-30 21:14 ` Randy.Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.