From: <fh...@at...> - 2000-08-02 02:31:25
|
I'm going to try the 53c770 driver as memory mapped, when I compile it that way and try to insert the module I get undefined symbols readw_l2b, writew_b2l, writel_b2l, and readl_l2b. Does anyone know what these are? I've assumed that b2l means "big to little" etc. I'm not totally sure I should get those errors though because I believe the Power PC and 53c770 are both big endian. Fred |
From: Geert U. <ge...@li...> - 2000-08-02 19:39:57
|
On Tue, 1 Aug 2000 fh...@at... wrote: > I'm going to try the 53c770 driver as memory mapped, when I > compile it that way and try to insert the module I get > undefined symbols readw_l2b, writew_b2l, writel_b2l, and > readl_l2b. Does anyone know what these are? I've assumed > that b2l means "big to little" etc. I'm not totally sure I should get > those errors though because I believe the Power PC and 53c770 are both big > endian. While grep'ing for readw_l2b, I saw that you have to add your own definitions to sym53c8xx_defs.h. It seems like sym53c8xx_defs.h contains support for PIO on PPC only, not for MMIO. Depending on the wanted endiannes (I don't know how the 53c770 is connected to the PPC bus, it could be byte swapped), you should map e.g. writel_b2l() to out_be32() or out_le32(). Note that arguments for writel and out_*32 are in a different order. Good luck! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li... In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds |
From: <fh...@at...> - 2000-08-08 02:08:06
|
In <Pine.LNX.4.10.10008021416290.427-100000@cassiopeia.home>, on 08/02/00 at 02:21 PM, Geert Uytterhoeven <ge...@li...> said: >On Tue, 1 Aug 2000 fh...@at... wrote: >Depending on the wanted endiannes (I don't know how the 53c770 is >connected to the PPC bus, it could be byte swapped), you should map e.g. >writel_b2l() to out_be32() or out_le32(). Note that arguments for writel >and out_*32 are in a different order. How would I find out? I tried sending a message to Ralph Schmidt but so far I have received no answer. Attached is my latest dmesg after compiling the driver as MMIO. I guess I now have to learn about SCSI scripts. Any pointers? Fred Searching for SAVEKMSG magic... Found 2653 bytes at 0x001e0008 >>>>>>>>>>>>>>>>>>>> Total memory = 64MB; using 256kB for hash table (at c0200000) Linux version 2.2.10 (root@amiga1) (gcc version 2.95.2 19991024 (release)) #111 Thu Aug 3 07:23:29 EDT 2000 Amiga hardware found: [A4000T] VIDEO BLITTER AUDIO FLOPPY A4000_SCSI A4000_IDE KEYBOARD MOUSE SERIAL PARALLEL A3000_CLK CHIP_RAM PAULA LISA ALICE_NTSC ZORRO3 APUS: BATs=0, BUS=66MHz, RAM=70ns, PCI bridge=1 time_init: decrementer frequency = 990000000/60 Console: colour dummy device 80x25 Calibrating delay loop... 395.67 BogoMIPS Memory: 62160k available (1216k kernel code, 1536k data, 112k init) [c0000000,c4000000] POSIX conformance testing by UNIFIX Zorro: Probing AutoConfig expansion devices: 5 devices Linux NET4.0 for Linux 2.2 Based upon Swansea University Computer Society NET3.039 NET4: Unix domain sockets 1.0 for Linux NET4.0. NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCPCStarting kswapd v 1.5 CV3D detected running in Z3 mode Console: switching to colour frame buffer device 160x64 fb0: Cybervision/3D frame buffer device, using 4096K of video memory fb1: Amiga AGA frame buffer device, using 1280K of video memory **** apus_kbd_init_hw M68K Serial driver version 1.01 ttyS0 at 0x80dff018: Amiga builtin pty: 256 Unix98 ptys configured lp_init: lp using interrupt driver lp0: Builtin parallel port at 0x80bfe101 Amiga mouse installed. DMA sound driver installed, using 4 buffers of 32k. RAM disk driver initialized: 16 RAM disks of 4096K size loop: registered device at major 7 ide0: Gayle IDE interface (A4000 style) hda: ST34342A, ATA DISK drive ide0 at 80dd2020 on irq 0x0000000c hda: ST34342A, 4103MB w/128kB Cache, CHS=8894/15/63 FD: probing units fouod <5>fd: drive 0 didn't identify, setting default ffffffff fd0 fd1 scsi-ncr53c7xx : NCR53c710 at memory 0x80dd0040, io 0x0, irq 12 scsi0: Revision 0x1 scsi0 : NCR code relocated to 0xbf365e8 (virt 0xc3f365e8) scsi0 : test 1 started ncr53c8xx: 53c770 detected ncr53c770-0: rev=0x00, base=0xf40000, io_port=0x0, irq=12 new NCB[2924] @c02f0000. new SCRIPT[3772] @c3f35000. new SCRIPTH[3708] @c3f34000. Peparing... stuff: 10 5 192 32 1 set verbose: myaddr: 0 myaddr: 7 myaddr: 7 ncr53c770-0: ID 7, Fast-20, Parity Checking ncr53c770-0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/c0/20/00/00/04 ncr53c770-0: final SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 05/82/20/00/08/24 istat: 0 SCSI reset istat: 40 istat: 0 offset: c CACHE TEST FAILED: script execution failed. start=0bf34e50, pc=00004e7c, end=0bf34e7c c0000004 082f006c 00f40034 c0000004 00f4001c 082f006c c0000004 082f006c 00f4001c 98080000 00000063 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 <<<<<<<<<<<<<<<<<<<< |