linux-stable-rt/include/asm-sparc64
David S. Miller 085ae41f66 [PATCH] Make sparc64 use setup-res.c
There were three changes necessary in order to allow
sparc64 to use setup-res.c:

1) Sparc64 roots the PCI I/O and MEM address space using
   parent resources contained in the PCI controller structure.
   I'm actually surprised no other platforms do this, especially
   ones like Alpha and PPC{,64}.  These resources get linked into the
   iomem/ioport tree when PCI controllers are probed.

   So the hierarchy looks like this:

   iomem --|
	   PCI controller 1 MEM space --|
				        device 1
					device 2
					etc.
	   PCI controller 2 MEM space --|
				        ...
   ioport --|
            PCI controller 1 IO space --|
					...
            PCI controller 2 IO space --|
					...

   You get the idea.  The drivers/pci/setup-res.c code allocates
   using plain iomem_space and ioport_space as the root, so that
   wouldn't work with the above setup.

   So I added a pcibios_select_root() that is used to handle this.
   It uses the PCI controller struct's io_space and mem_space on
   sparc64, and io{port,mem}_resource on every other platform to
   keep current behavior.

2) quirk_io_region() is buggy.  It takes in raw BUS view addresses
   and tries to use them as a PCI resource.

   pci_claim_resource() expects the resource to be fully formed when
   it gets called.  The sparc64 implementation would do the translation
   but that's absolutely wrong, because if the same resource gets
   released then re-claimed we'll adjust things twice.

   So I fixed up quirk_io_region() to do the proper pcibios_bus_to_resource()
   conversion before passing it on to pci_claim_resource().

3) I was mistakedly __init'ing the function methods the PCI controller
   drivers provide on sparc64 to implement some parts of these
   routines.  This was, of course, easy to fix.

So we end up with the following, and that nasty SPARC64 makefile
ifdef in drivers/pci/Makefile is finally zapped.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-09-08 14:57:25 -07:00
..
a.out.h
agp.h [PATCH] AGP fix for Xen VMM 2005-06-07 12:35:43 -07:00
apb.h
asi.h
atomic.h [SPARC64]: More fully work around Spitfire Errata 51. 2005-08-29 12:46:22 -07:00
audioio.h
auxio.h [SPARC64]: Get rid of fast IRQ feature. 2005-06-27 17:04:45 -07:00
auxvec.h [PATCH] auxiliary vector cleanups 2005-09-07 16:57:21 -07:00
bbc.h
bitops.h [SPARC64]: More fully work around Spitfire Errata 51. 2005-08-29 12:46:22 -07:00
bpp.h
bsderrno.h
bug.h [PATCH] remove all kernel BUGs 2005-05-01 08:59:01 -07:00
bugs.h
byteorder.h
cache.h
cacheflush.h
chafsr.h
checksum.h
chmctrl.h
cmt.h
compat.h [PATCH] compat: be more consistent about [ug]id_t 2005-09-07 16:57:19 -07:00
const.h
cpudata.h [SPARC64]: Eliminate irq_cpustat_t. 2005-08-29 22:46:43 -07:00
cputime.h
current.h
dcr.h
dcu.h
delay.h
display7seg.h
div64.h
dma-mapping.h
dma.h
ebus.h
elf.h
emergency-restart.h [PATCH] Add emergency_restart() 2005-07-26 14:35:41 -07:00
envctrl.h
errno.h [PATCH] add EOWNERDEAD and ENOTRECOVERABLE version 2 2005-05-01 08:59:06 -07:00
estate.h
fbio.h
fcntl.h [PATCH] Clean up struct flock definitions 2005-09-07 16:57:38 -07:00
fhc.h
floppy.h [SPARC64]: Get rid of fast IRQ feature. 2005-06-27 17:04:45 -07:00
fpumacro.h
futex.h [PATCH] FUTEX_WAKE_OP: pthread_cond_signal() speedup 2005-09-07 16:57:17 -07:00
hardirq.h [SPARC64]: Eliminate irq_cpustat_t. 2005-08-29 22:46:43 -07:00
head.h
hw_irq.h
ide.h
idprom.h
io.h [SPARC64]: Use 'unsigned long' for port argument to I/O string ops. 2005-08-31 15:01:33 -07:00
ioctl.h
ioctls.h
iommu.h [SPARC64]: Fix streaming buffer flushing on PCI and SBUS. 2005-05-31 16:57:59 -07:00
ipc.h
ipcbuf.h
irq.h [SPARC64]: Add support for IRQ pre-handlers. 2005-07-04 13:24:38 -07:00
isa.h
kbio.h
kdebug.h [PATCH] RCU: clean up a few remaining synchronize_kernel() calls 2005-06-25 16:24:38 -07:00
kmap_types.h
kprobes.h
linkage.h
local.h
lsu.h
mc146818rtc.h
mman.h
mmu.h
mmu_context.h
module.h
mostek.h [PATCH] mostek bogus sparse annotations fixed 2005-04-24 12:28:36 -07:00
msgbuf.h
namei.h
ns87303.h
openprom.h
openpromio.h
oplib.h
page.h [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
param.h [SPARC64]: Support CONFIG_HZ 2005-07-08 15:21:51 -07:00
parport.h [SPARC64]: Fix enable_dma() in asm-sparc64/parport.h 2005-07-06 15:41:54 -07:00
pbm.h [SPARC64]: Do proper DMA IRQ syncing on Tomatillo 2005-07-04 13:26:04 -07:00
pci.h [PATCH] Make sparc64 use setup-res.c 2005-09-08 14:57:25 -07:00
pconf.h
percpu.h
perfctr.h
pgalloc.h [SPARC64]: Kill useless __pte_alloc_one_kernel indirection 2005-05-05 14:27:56 -07:00
pgtable.h [SPARC]: Kill io_remap_page_range() 2005-09-01 21:51:26 -07:00
pil.h
poll.h
posix_types.h
processor.h [SPARC64]: remove use of asm/segment.h 2005-08-29 12:45:30 -07:00
psrcompat.h
pstate.h
ptrace.h [SPARC64]: Move syscall success and newchild state out of thread flags. 2005-07-24 19:36:26 -07:00
reg.h
resource.h
rtc.h
rwsem-const.h
rwsem.h [SPARC64]: Simplify asm/rwsem.h slightly. 2005-07-24 19:35:42 -07:00
sbus.h
scatterlist.h
seccomp.h [SPARC64]: Add missing asm-sparc64/seccomp.h file. 2005-07-11 13:44:56 -07:00
sections.h
semaphore.h
sembuf.h
setup.h
sfafsr.h [SPARC64]: Revamp Spitfire error trap handling. 2005-08-29 12:45:11 -07:00
sfp-machine.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
signal.h [SPARC64]: Add support for IRQ pre-handlers. 2005-07-04 13:24:38 -07:00
smp.h [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
socket.h [NET]: Introduce SO_{SND,RCV}BUFFORCE socket options 2005-08-29 15:31:35 -07:00
sockios.h
solerrno.h
spinlock.h [SPARC64]: More fully work around Spitfire Errata 51. 2005-08-29 12:46:22 -07:00
spitfire.h [SPARC64]: Kill totally unused inline functions from asm/spitfire.h 2005-07-24 19:35:56 -07:00
starfire.h
stat.h
statfs.h
string.h
sunbpp.h
svr4.h
system.h [SPARC64]: More fully work around Spitfire Errata 51. 2005-08-29 12:46:22 -07:00
termbits.h
termios.h [SPARC64]: Report any user access faults in termios accessors. 2005-06-24 20:11:03 -07:00
thread_info.h [SPARC64]: Move kernel unaligned trap handlers into assembler file. 2005-08-19 15:55:33 -07:00
timer.h [SPARC64]: Privatize sun5_timer. 2005-07-24 19:36:13 -07:00
timex.h
tlb.h
tlbflush.h
topology.h
ttable.h
types.h [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
uaccess.h [PATCH] remove verify_area(): remove verify_area() from various uaccess.h headers 2005-09-07 16:57:35 -07:00
uctx.h
unaligned.h
unistd.h [SPARC]: Add inotify syscall entries. 2005-07-27 14:14:39 -07:00
upa.h
user.h
utrap.h
vga.h
visasm.h
vuid_event.h
watchdog.h
xor.h