public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Obvious(ish): 3c515 should work if ISAPNP is a module.
@ 2002-12-14 20:12 Matthew Bell
  2002-12-14 23:11 ` Kai Germaschewski
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Bell @ 2002-12-14 20:12 UTC (permalink / raw)
  To: linux-parport, linux-kernel

This is valid for at least 2.4.20 and earlier; it works for me, and I can't see any exceptional reason why it shouldn't work when ISAPNP is a module.
--- linux-2.4.19.orig/drivers/net/3c515.c       2002-02-25 19:37:59.000000000 +0000
+++ linux-2.4.19/drivers/net/3c515.c    2002-08-03 18:24:05.000000000 +0100
@@ -370,7 +370,7 @@
        { "Default", 0, 0xFF, XCVR_10baseT, 10000},
 };

-#ifdef CONFIG_ISAPNP
+#if defined(CONFIG_ISAPNP) || defined (CONFIG_ISAPNP_MODULE)
 static struct isapnp_device_id corkscrew_isapnp_adapters[] = {
        {       ISAPNP_ANY_ID, ISAPNP_ANY_ID,
                ISAPNP_VENDOR('T', 'C', 'M'), ISAPNP_FUNCTION(0x5051),
@@ -462,12 +462,12 @@
 {
        int cards_found = 0;
        static int ioaddr;
-#ifdef CONFIG_ISAPNP
+#if defined(CONFIG_ISAPNP) || defined (CONFIG_ISAPNP_MODULE)
        short i;
        static int pnp_cards;
 #endif

-#ifdef CONFIG_ISAPNP
+#if defined(CONFIG_ISAPNP) || defined (CONFIG_ISAPNP_MODULE)
        if(nopnp == 1)
                goto no_pnp;
        for(i=0; corkscrew_isapnp_adapters[i].vendor != 0; i++) {
@@ -530,7 +530,7 @@
        /* Check all locations on the ISA bus -- evil! */
        for (ioaddr = 0x100; ioaddr < 0x400; ioaddr += 0x20) {
                int irq;
-#ifdef CONFIG_ISAPNP
+#if defined(CONFIG_ISAPNP) || defined (CONFIG_ISAPNP_MODULE)
                /* Make sure this was not already picked up by isapnp */
                if(ioaddr == corkscrew_isapnp_phys_addr[0]) continue;
                if(ioaddr == corkscrew_isapnp_phys_addr[1]) continue;

-- 
_______________________________________________
Get your free email from http://mymail.operamail.com

Powered by Outblaze

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Obvious(ish): 3c515 should work if ISAPNP is a module.
  2002-12-14 20:12 [PATCH] Obvious(ish): 3c515 should work if ISAPNP is a module Matthew Bell
@ 2002-12-14 23:11 ` Kai Germaschewski
  2002-12-15  0:45   ` Zwane Mwaikambo
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Germaschewski @ 2002-12-14 23:11 UTC (permalink / raw)
  To: Matthew Bell; +Cc: linux-parport, linux-kernel

On Sun, 15 Dec 2002, Matthew Bell wrote:

> This is valid for at least 2.4.20 and earlier; it works for me, and I
> can't see any exceptional reason why it shouldn't work when ISAPNP is a
> module.

> --- linux-2.4.19.orig/drivers/net/3c515.c       2002-02-25 19:37:59.000000000 +0000
> +++ linux-2.4.19/drivers/net/3c515.c    2002-08-03 18:24:05.000000000 +0100
> @@ -370,7 +370,7 @@
>         { "Default", 0, 0xFF, XCVR_10baseT, 10000},
>  };
> 
> -#ifdef CONFIG_ISAPNP
> +#if defined(CONFIG_ISAPNP) || defined (CONFIG_ISAPNP_MODULE)
>  static struct isapnp_device_id corkscrew_isapnp_adapters[] = {
>         {       ISAPNP_ANY_ID, ISAPNP_ANY_ID,
>                 ISAPNP_VENDOR('T', 'C', 'M'), ISAPNP_FUNCTION(0x5051),
[...]

It's really only obvious*ish*: If isapnp is a module but 3c515 built-in, 
you'll get link errors. The real fix for this is to do

+#ifdef __ISAPNP__

which will get all cases right.

--Kai



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Obvious(ish): 3c515 should work if ISAPNP is a module.
  2002-12-14 23:11 ` Kai Germaschewski
@ 2002-12-15  0:45   ` Zwane Mwaikambo
  2002-12-15  0:55     ` Zwane Mwaikambo
  0 siblings, 1 reply; 5+ messages in thread
From: Zwane Mwaikambo @ 2002-12-15  0:45 UTC (permalink / raw)
  To: Kai Germaschewski; +Cc: Matthew Bell, linux-parport, linux-kernel

On Sat, 14 Dec 2002, Kai Germaschewski wrote:

> On Sun, 15 Dec 2002, Matthew Bell wrote:
>
> > This is valid for at least 2.4.20 and earlier; it works for me, and I
> > can't see any exceptional reason why it shouldn't work when ISAPNP is a
> > module.
>
> > --- linux-2.4.19.orig/drivers/net/3c515.c       2002-02-25 19:37:59.000000000 +0000
> > +++ linux-2.4.19/drivers/net/3c515.c    2002-08-03 18:24:05.000000000 +0100
> > @@ -370,7 +370,7 @@
> >         { "Default", 0, 0xFF, XCVR_10baseT, 10000},
> >  };
> >
> > -#ifdef CONFIG_ISAPNP
> > +#if defined(CONFIG_ISAPNP) || defined (CONFIG_ISAPNP_MODULE)
> >  static struct isapnp_device_id corkscrew_isapnp_adapters[] = {
> >         {       ISAPNP_ANY_ID, ISAPNP_ANY_ID,
> >                 ISAPNP_VENDOR('T', 'C', 'M'), ISAPNP_FUNCTION(0x5051),
> [...]
>
> It's really only obvious*ish*: If isapnp is a module but 3c515 built-in,
> you'll get link errors. The real fix for this is to do
>
> +#ifdef __ISAPNP__
>
> which will get all cases right.

... but unfortunately thats currently going away ;) to make way for
CONFIG_PNP

	Zwane
-- 
function.linuxpower.ca

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Obvious(ish): 3c515 should work if ISAPNP is a module.
  2002-12-15  0:45   ` Zwane Mwaikambo
@ 2002-12-15  0:55     ` Zwane Mwaikambo
  0 siblings, 0 replies; 5+ messages in thread
From: Zwane Mwaikambo @ 2002-12-15  0:55 UTC (permalink / raw)
  To: Kai Germaschewski; +Cc: Matthew Bell, linux-parport, linux-kernel

On Sat, 14 Dec 2002, Zwane Mwaikambo wrote:

> > +#ifdef __ISAPNP__
> >
> > which will get all cases right.
>
> ... but unfortunately thats currently going away ;) to make way for
> CONFIG_PNP
>
> 	Zwane
>

Someone needs their coffee...

-- 
function.linuxpower.ca

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] Obvious(ish): 3c515 should work if ISAPNP is a module.
@ 2002-12-15  1:05 Matthew Bell
  0 siblings, 0 replies; 5+ messages in thread
From: Matthew Bell @ 2002-12-15  1:05 UTC (permalink / raw)
  To: kai-germaschewski, mwsb; +Cc: linux-parport, linux-kernel

Oh bum. I had it that way originally, for that reason, then left for a while, wondered what I was doing and removed the 'superflous' bit.

+#if defined(CONFIG_ISAPNP) || (defined (MODULE) && defined (CONFIG_ISAPNP_MODULE))

Matthew Bell

----- Original Message -----
From: Kai Germaschewski <kai-germaschewski@uiowa.edu>
Date: Sat, 14 Dec 2002 17:11:49 -0600 (CST)
To: Matthew Bell <mwsb@operamail.com>
Subject: Re: [PATCH] Obvious(ish): 3c515 should work if ISAPNP is a module.

> On Sun, 15 Dec 2002, Matthew Bell wrote:
> 
> > This is valid for at least 2.4.20 and earlier; it works for me, and I
> > can't see any exceptional reason why it shouldn't work when ISAPNP is a
> > module.
> 
> > --- linux-2.4.19.orig/drivers/net/3c515.c       2002-02-25 19:37:59.000000000 +0000
> > +++ linux-2.4.19/drivers/net/3c515.c    2002-08-03 18:24:05.000000000 +0100
> > @@ -370,7 +370,7 @@
> >         { "Default", 0, 0xFF, XCVR_10baseT, 10000},
> >  };
> > 
> > -#ifdef CONFIG_ISAPNP
> > +#if defined(CONFIG_ISAPNP) || defined (CONFIG_ISAPNP_MODULE)
> >  static struct isapnp_device_id corkscrew_isapnp_adapters[] = {
> >         {       ISAPNP_ANY_ID, ISAPNP_ANY_ID,
> >                 ISAPNP_VENDOR('T', 'C', 'M'), ISAPNP_FUNCTION(0x5051),
> [...]
> 
> It's really only obvious*ish*: If isapnp is a module but 3c515 built-in, 
> you'll get link errors. The real fix for this is to do
> 
> +#ifdef __ISAPNP__
> 
> which will get all cases right.
> 
> --Kai
> 
> 

    
-- 
_______________________________________________
Get your free email from http://mymail.operamail.com

Powered by Outblaze

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-15  0:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-14 20:12 [PATCH] Obvious(ish): 3c515 should work if ISAPNP is a module Matthew Bell
2002-12-14 23:11 ` Kai Germaschewski
2002-12-15  0:45   ` Zwane Mwaikambo
2002-12-15  0:55     ` Zwane Mwaikambo
  -- strict thread matches above, loose matches on Subject: below --
2002-12-15  1:05 Matthew Bell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox