Hm. Adding those lines made the smc9194 driver compile fine, but now at 
the very end when I'm compiling the kernel to vmlinux, it complains about

drivers/net/net.o(.sbss+0x54): multiple definition of `nbpmac_boot_infos'
arch/ppc/platform.o(.sbss+0x28): first defined here

I suppose I could try to find which source file for platform.o defines 
nbpmac_boot_infos, but I thought you would probably know what I should do 
to fix this right away... Any ideas??

Sincerely,
Toby Dylan Hocking
http://www.ocf.berkeley.edu/~tdhock

On Fri, 22 Sep 2006, Tobias Netzel wrote:

> You will have to add the following two lines to the end of nbpmac_id.h:
> "#include <asm/bootx.h>"
> "boot_infos_t *nbpmac_boot_infos;"
>
> I thought they weren't needed...
>
> Tobias
>
> Am 22.09.2006 um 09:47 schrieb Toby Dylan Hocking:
>
>> Alrighty then. I'm trying to compile the driver that Tobias sent me,
>> but
>> I'm getting a silly error.
>> smc9194.c:87: error: syntax error before * token
>> smc9194.c:87: warning: type defaults to `int' in declaration of
>> `boot_infos'
>> smc9194.c:87: warning: data definiteion has no type or storage class
>> ...
>>
>> I know some C, but I'm unfamiliar with the details of the kernel here.
>> I
>> recognize that this is a badly declared/imported variable, but I don't
>> know where boot_infos is ultimately declared, thus I'm not sure what
>> to do
>> for a fix.
>>
>> BTW, I added the EXPORT_SYMBOL line and I symbolically linked
>> nbpmac_id.h
>> to include/asm.
>>
>> Sorry for being so helpless here, but I'm new to kernel hacking, it's
>> late, and I'm tired. I definitely need to learn a lot more about
>> drivers
>> before I would be of much use for porting this ... where did you guys
>> learn all this stuff?
>>
>> Sincerely,
>> Toby Dylan Hocking
>> http://www.ocf.berkeley.edu/~tdhock
>>
>> On Fri, 22 Sep 2006, Raylynn Knight wrote:
>>
>>> On Thu, 2006-09-21 at 11:46 +0200, Tobias Netzel wrote:
>>>> Hi Toby,
>>>>
>>>> I wrote a patch for the SMC9194 driver that might work with your
>>>> card.
>>>> It is attached to this email.
>>>> Because your card doesn't have a NuBus ROM I had to implement some
>>>> work-arounds.
>>>> Please test it and feel free to modify it in order to make it work.
>>>> You have to apply the patch using
>>>> "patch drivers/net/smc9194.c {path to patchfile}/smc9191.patch".
>>>>
>>>> You will probably need to copy the file "nbpmac_id.h" from
>>>> "arch/ppc/platforms" to "include/asm".
>>>> You should as well add the line
>>>> "EXPORT_SYMBOL(boot_infos);"
>>>> at the end of the file "arch/ppc/platforms/nbpmac_setup.c" if it
>>>> isn't
>>>> already there.
>>>>
>>> 956a959,975
>>>>       /* Probe for an SMC based card for the PowerBook 1400
>>>        that
>>>        doesn't have a NuBus ROM */
>>>>       if (boot_infos->machineID == MACHID_POWERBOOK1400) {
>>>>               unsigned long iobase;
>>>>
>>>>               printk(KERN_INFO "mac9194: PowerBook 1400
>>>        identified -
>>>        probing for SMC919x in slot D address space\n");
>>>>
>>>>               if ((dev = init_etherdev(dev, 0)) == NULL)
>>>>                       return -ENOMEM;
>>>>               SET_MODULE_OWNER(dev);
>>>>
>>>>               /* PowerBook 1400 expansion slot is mapped as
>>>        slot D */
>>>>               iobase = (unsigned long)ioremap(0xFD000008,
>>>        0x8);
>>>>               dev->irq = SLOT2IRQ(0xD);
>>>>
>>>>               return smc_probe(dev, iobase);
>>>>       }
>>>>
>>>
>>>        For this part you'll most likely need to add MAC9194_BASE
>>>        defined as
>>>        0x300 to the 0xFD000008 address you found.  You should also
>>> test
>>>        to make sure the register is present.  For the SMC driver in
>>>        Mac68k Linux I have some of PDS cards with no ROM working, but
>>>        they have the register offset by 0x300.  Also they all seem to
>>>        do 32 bit transfers just fine.
>>>
>>>        See the driver from the mac68k 2.2.27 kernel (on sourceforge at
>>>
>>> http://linux-mac68k.cvs.sourceforge.net/linux-mac68k/linux-mac68k/
>>> drivers/net/smc9194.c?revision=1.4.2.8&view=markup)
>>>        which has support for CommSlot2 cards and some PDS cards that
>>>        don't use a NuBus ROM.  The commslot_init and romfree_init
>>>        functions should be ported to the 2.4.x driver.  I just haven't
>>>        had the time to work on it!
>>>
>>>        Is your card the Farallon card?  If so I would hope that
>>>        Farallon maps all their brain-dead cards in at the same
>>> address.
>>>        Then if you get your card working it may provide support for
>>> the
>>>        SMC Chipset based Farallon PDS and CommSlot cards also.
>>>
>>>        Ray
>>>
>>>
>>>
>>>
>>> ----------------------------------------------------------------------
>>> ---
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>> share your
>>> opinions on IT & business topics through brief surveys -- and earn
>>> cash
>>> http://www.techsay.com/default.php?
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Nubus-pmac-users mailing list
>>> Nubus-pmac-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users
>>>
>>
>> -----------------------------------------------------------------------
>> --
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Nubus-pmac-users mailing list
>> Nubus-pmac-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users
>>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Nubus-pmac-users mailing list
> Nubus-pmac-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nubus-pmac-users mailing list
Nubus-pmac-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users

Reply via email to