From: Wang Y. <ypw...@gm...> - 2006-10-15 14:29:10
|
Hi, Nico I don't have experience in Device Driver on Syllable. After I google "psBus", I found the following link: http://www.other-space.com/sub/?section=System_Programming&tutorial=Device_Drivers Does it possible that it needs some header file to include when porting on Syllable? Hope that can help. Cheers, Andy On 10/15/06, Nico van Huis <va...@va...> wrote: > > I get an erroron the following lines: > > 223:#define TG3PCI_REG_BASE_ADDR 0x00000078 > 224:#define TG3PCI_REG_DATA 0x00000080 > 225:static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val) > 226:{ > 227: unsigned long flags; > 228: > 229: spin_lock_irqsave(&tp->indirect_lock, flags); > 330: pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off); > 331: pci_write_config_dword(tp->pdev, TG3PCI_REG_DATA, val); > 332: spin_unlock_irqrestore(&tp->indirect_lock, flags); > 333:} > > It says: > > bash-2.03$ make > cc -kernel -fno-PIC -c tg3.c -o objs/tg3.o > tg3.c:218: warning: parameter names (without types) in function > declaration > tg3.c:218: warning: data definition has no type or storage class > tg3.c: In function `tg3_write_indirect_reg32': > tg3.c:330: error: `psBus' undeclared (first use in this function) > tg3.c:330: error: (Each undeclared identifier is reported only once > tg3.c:330: error: for each function it appears in.) > tg3.c:330: error: dereferencing pointer to incomplete type > tg3.c:330: error: dereferencing pointer to incomplete type > tg3.c:330: error: dereferencing pointer to incomplete type > tg3.c:331: error: dereferencing pointer to incomplete type > tg3.c:331: error: dereferencing pointer to incomplete type > tg3.c:331: error: dereferencing pointer to incomplete type > tg3.c:333:2: warning: no newline at end of file > make: *** [objs/tg3.o] Error 1 > > As you can read it says 'psBus' undeclared... well i think it is but it is > also never been used in these lines > and nowhere else in the code. > > Does anyone do know where this error possibly come from? > > Nico > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Syllable-kernel mailing list > Syl...@li... > https://lists.sourceforge.net/lists/listinfo/syllable-kernel > > > |