freebsd-nq/sys/sparc64
Marius Strobl 190cb52795 - Merge sys/sparc64/pci/psycho.c rev. 1.8:
Map the device memory belonging to resources of type SYS_RES_MEMORY into
  KVA upon activation so that rman_get_virtual() works as expected.
- In sbus_alloc_resource() checking whether toffs is 0 as an indication
  that no applicable child range was found isn't appropriate as it's
  perfectly valid for the requested SYS_RES_MEMORY resource to start at
  the beginning of a child range. So check for the RMAN still being NULL
  instead.
- As a minor runtime speed optimization break out of the loop where we
  search for the applicable child range in sbus_alloc_resource() as soon
  as it's found.
- Let sbus_setup_intr() return ENOMEM rather than 0 if it can't allocate
  memory for the interrupt clearing info.
- Actually do what the comment in sbus_setup_intr() says and disable the
  respective interrupt while fiddling with it.
- Remove some superfluous INTVEC() around inr, which already only contains
  the interrupt vector, in sbus_setup_intr().
- While here, fix a style(9) bug in sbus_setup_intr() (don't use function
  calls in initializers).

The first two changes are required for a CG6 driver.

MFC after:	2 weeks
2006-06-08 21:02:25 +00:00
..
central - Register the generic implementations for the device shutdown, suspend 2006-01-26 21:14:32 +00:00
compile
conf add ath & co. 2006-06-07 18:10:28 +00:00
creator - Declare lookup tables etc. const. 2005-07-10 11:16:34 +00:00
ebus Set the rid for any resource obtained from rman_reserve_resource. 2006-04-20 04:20:41 +00:00
fhc Add convenience macros for the full register set and use them to replace 2006-03-28 19:46:48 +00:00
include MFalpha/amd64/arm/ia64 2006-05-29 06:12:01 +00:00
isa - Declare the PnP map const. 2006-06-05 17:48:54 +00:00
pci Set the rid for any resource obtained from rman_reserve_resource. 2006-04-20 04:20:41 +00:00
sbus - Merge sys/sparc64/pci/psycho.c rev. 1.8: 2006-06-08 21:02:25 +00:00
sparc64 Introduce the function pmap_enter_object(). It maps a sequence of resident 2006-06-05 20:35:27 +00:00