1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/sparc64/sbus
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
..
dma_sbus.c Revert the part of rev. 1.3 which enabled the chaining of the DMA engine 2006-01-30 21:43:14 +00:00
lsi64854.c o lsi64854_enet_intr(): 2006-01-31 12:50:02 +00:00
lsi64854reg.h Style and minor changes: 2005-04-17 17:41:32 +00:00
lsi64854var.h o lsi64854_enet_intr(): 2006-01-31 12:50:02 +00:00
ofw_sbus.h
sbus.c - Merge sys/sparc64/pci/psycho.c rev. 1.8: 2006-06-08 21:02:25 +00:00
sbusreg.h
sbusvar.h - Add an IVAR for retrieving the interrupt group number of the parent Sbus 2005-05-19 14:47:31 +00:00