Linux MIPS Architecture development
 help / color / mirror / Atom feed
* set_io_port_base()?
@ 2002-02-21  1:36 Matthew Dharm
  2002-02-21  1:57 ` set_io_port_base()? Ralf Baechle
  0 siblings, 1 reply; 33+ messages in thread
From: Matthew Dharm @ 2002-02-21  1:36 UTC (permalink / raw)
  To: Linux-MIPS

So, what's the proper usage for set_io_port_base()?

I'm trying to bring up Linux on our newest board (the Ocelot-G -- see
www.momenco.com for more information).  I think I'm pretty far along,
but I can't get a plug-in PCI ethernet device to work.  What I get is:

eepro100.c:v1.09j-t 9/29/99 Donald Becker
http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V.
Savochkin <saw@saw.sw.com.sg> and others
PCI setting cache line size to 8 from 0
eth0: Invalid EEPROM checksum 0x0000, check settings before activating
this device!
eth0: Intel Corp. 82559ER, 00:00:00:00:00:00, IRQ 9.
  Receiver lock-up bug exists -- enabling work-around.
  Board assembly 000000-000, Physical connectors present:
  Primary interface chip None PHY #0.
  General self-test: passed.
  Serial sub-system self-test: passed.
  Internal registers self-test: passed.
  ROM checksum self-test: passed (0x1d68d8db).
  Receiver lock-up workaround activated.

Now, I'm pretty sure this has something to do with the initcall to
set_io_port_base() and ioremap(), which are in my setup.c (copied from
linux/arch/mips/gt64120/momenco_ocelot/setup.c and modified).  Without
that bit of code at the bottom of that function, I don't even get
this -- it just crashes.  So I know I need this code, but I'm just not
certain what/how I should be using it...

My initial guess is that it's used to map some virtual address space
onto the physical addresses needed to actually generate PCI I/O
transactions, but that's just a guess.  If that's right, then the code
I'm using _should_ work... I call ioremap() with the physical base and
size, and then set_io_port_base() using the result of ioremap().

Anyone have any thoughts?

Matt

--
Matthew D. Dharm                            Senior Software Designer
Momentum Computer Inc.                      1815 Aston Ave.  Suite 107
(760) 431-8663 X-115                        Carlsbad, CA 92008-7310
Momentum Works For You                      www.momenco.com

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

end of thread, other threads:[~2002-04-22 18:01 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-21  1:36 set_io_port_base()? Matthew Dharm
2002-02-21  1:57 ` set_io_port_base()? Ralf Baechle
2002-02-21  2:05   ` set_io_port_base()? Matthew Dharm
2002-02-21  2:13     ` set_io_port_base()? Ralf Baechle
2002-02-21  2:27       ` set_io_port_base()? Jun Sun
2002-02-21  2:48         ` set_io_port_base()? Matthew Dharm
2002-02-21  2:48           ` set_io_port_base()? Matthew Dharm
2002-02-21  3:03           ` set_io_port_base()? Jason Gunthorpe
2002-02-21  5:35           ` set_io_port_base()? Jun Sun
2002-02-21  3:30         ` set_io_port_base()? Ralf Baechle
2002-02-21 16:34         ` pthread support in mipsel-linux Wayne Gowcher
2002-02-21 17:55           ` H . J . Lu
2002-02-21 18:12             ` Wayne Gowcher
2002-02-21 18:25               ` H . J . Lu
2002-02-21 18:45                 ` Wayne Gowcher
2002-02-22  8:52                   ` Florian Lohoff
2002-02-22 13:38                 ` Maciej W. Rozycki
2002-02-22 13:45                   ` Hiroyuki Machida
2002-02-22 14:28                     ` Maciej W. Rozycki
2002-02-22 16:53                   ` H . J . Lu
2002-02-22 16:57                     ` H . J . Lu
2002-02-22 17:06                     ` Maciej W. Rozycki
2002-02-22 17:14                       ` H . J . Lu
2002-04-19 17:06             ` Equivalent of ioperm / iopl in linux mips ? Wayne Gowcher
2002-04-20  9:03               ` Geert Uytterhoeven
2002-04-22 11:35                 ` Maciej W. Rozycki
2002-04-22 14:55                   ` Geert Uytterhoeven
2002-04-22 15:30                     ` Maciej W. Rozycki
2002-04-22 15:33                       ` Geert Uytterhoeven
2002-04-22 17:44                       ` Ralf Baechle
2002-04-22 18:01                         ` Maciej W. Rozycki
2002-02-21  2:08   ` set_io_port_base()? Matthew Dharm
2002-02-21  2:16     ` set_io_port_base()? Ralf Baechle

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