aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-14 15:27:17 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-14 15:27:17 -0400
commit29e0937bb693879221f575b01f26314b3f443322 (patch)
treedd3ed9be21ff200c9d4dd8c708bc2ea1ef3d32f4
parent140ff8b0459cac5ade7a42131f561a9ee0fa3cc4 (diff)
parentbe35cf01a9889e82da3bbda1d7b161f036424225 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6: [SPARC64]: Update defconfig. [VIDEO]: XVR-500 and XVR-2500 need FB=y. [SPARC32]: asm/system.h needs asm/smp.h [SPARC32]: Update defconfig. [SPARC32]: Fix sparc32 kdebug changes. [SPARC64]: Accept ebus_bus_type for generic DMA ops. [SPARC64]: Add missing cpus_empty() check in hypervisor xcall handling. [SCSI]: Add help text for SCSI_ESP_CORE. [SPARC] SBUS: display7seg.c needs asm/io.h [SPARC] SBUS: bbc_i2c.c needs asm/io.h [SPARC64]: Be more resiliant with PCI I/O space regs. [SERIAL] SUNHV: Add an ID string.
-rw-r--r--arch/sparc/defconfig151
-rw-r--r--arch/sparc/kernel/head.S2
-rw-r--r--arch/sparc64/defconfig26
-rw-r--r--arch/sparc64/kernel/of_device.c7
-rw-r--r--arch/sparc64/kernel/smp.c3
-rw-r--r--drivers/sbus/char/bbc_i2c.c1
-rw-r--r--drivers/sbus/char/display7seg.c1
-rw-r--r--drivers/scsi/Kconfig8
-rw-r--r--drivers/serial/sunhv.c4
-rw-r--r--drivers/video/Kconfig4
-rw-r--r--include/asm-sparc/kdebug.h8
-rw-r--r--include/asm-sparc/system.h1
-rw-r--r--include/asm-sparc64/dma-mapping.h44
13 files changed, 152 insertions, 108 deletions
diff --git a/arch/sparc/defconfig b/arch/sparc/defconfig
index 79e54894529d..38bd79fe6e75 100644
--- a/arch/sparc/defconfig
+++ b/arch/sparc/defconfig
@@ -1,10 +1,11 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Linux kernel version: 2.6.20-rc1 3# Linux kernel version: 2.6.22-rc1
4# Sun Dec 17 14:20:47 2006 4# Mon May 14 03:25:14 2007
5# 5#
6CONFIG_MMU=y 6CONFIG_MMU=y
7CONFIG_HIGHMEM=y 7CONFIG_HIGHMEM=y
8CONFIG_ZONE_DMA=y
8CONFIG_GENERIC_ISA_DMA=y 9CONFIG_GENERIC_ISA_DMA=y
9CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" 10CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
10 11
@@ -23,14 +24,17 @@ CONFIG_LOCALVERSION_AUTO=y
23CONFIG_SWAP=y 24CONFIG_SWAP=y
24CONFIG_SYSVIPC=y 25CONFIG_SYSVIPC=y
25# CONFIG_IPC_NS is not set 26# CONFIG_IPC_NS is not set
27CONFIG_SYSVIPC_SYSCTL=y
26CONFIG_POSIX_MQUEUE=y 28CONFIG_POSIX_MQUEUE=y
27# CONFIG_BSD_PROCESS_ACCT is not set 29# CONFIG_BSD_PROCESS_ACCT is not set
28# CONFIG_TASKSTATS is not set 30# CONFIG_TASKSTATS is not set
29# CONFIG_UTS_NS is not set 31# CONFIG_UTS_NS is not set
30# CONFIG_AUDIT is not set 32# CONFIG_AUDIT is not set
31# CONFIG_IKCONFIG is not set 33# CONFIG_IKCONFIG is not set
34CONFIG_LOG_BUF_SHIFT=14
32CONFIG_SYSFS_DEPRECATED=y 35CONFIG_SYSFS_DEPRECATED=y
33# CONFIG_RELAY is not set 36# CONFIG_RELAY is not set
37CONFIG_BLK_DEV_INITRD=y
34CONFIG_INITRAMFS_SOURCE="" 38CONFIG_INITRAMFS_SOURCE=""
35# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set 39# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
36CONFIG_SYSCTL=y 40CONFIG_SYSCTL=y
@@ -46,14 +50,19 @@ CONFIG_BUG=y
46CONFIG_ELF_CORE=y 50CONFIG_ELF_CORE=y
47CONFIG_BASE_FULL=y 51CONFIG_BASE_FULL=y
48CONFIG_FUTEX=y 52CONFIG_FUTEX=y
53CONFIG_ANON_INODES=y
49CONFIG_EPOLL=y 54CONFIG_EPOLL=y
55CONFIG_SIGNALFD=y
56CONFIG_TIMERFD=y
57CONFIG_EVENTFD=y
50CONFIG_SHMEM=y 58CONFIG_SHMEM=y
51CONFIG_SLAB=y
52CONFIG_VM_EVENT_COUNTERS=y 59CONFIG_VM_EVENT_COUNTERS=y
60CONFIG_SLAB=y
61# CONFIG_SLUB is not set
62# CONFIG_SLOB is not set
53CONFIG_RT_MUTEXES=y 63CONFIG_RT_MUTEXES=y
54# CONFIG_TINY_SHMEM is not set 64# CONFIG_TINY_SHMEM is not set
55CONFIG_BASE_SMALL=0 65CONFIG_BASE_SMALL=0
56# CONFIG_SLOB is not set
57 66
58# 67#
59# Loadable module support 68# Loadable module support
@@ -107,7 +116,7 @@ CONFIG_ARCH_MAY_HAVE_PC_FDC=y
107CONFIG_SUN_PM=y 116CONFIG_SUN_PM=y
108# CONFIG_SUN4 is not set 117# CONFIG_SUN4 is not set
109CONFIG_PCI=y 118CONFIG_PCI=y
110# CONFIG_PCI_MULTITHREAD_PROBE is not set 119# CONFIG_ARCH_SUPPORTS_MSI is not set
111# CONFIG_PCI_DEBUG is not set 120# CONFIG_PCI_DEBUG is not set
112CONFIG_SUN_OPENPROMFS=m 121CONFIG_SUN_OPENPROMFS=m
113# CONFIG_SPARC_LED is not set 122# CONFIG_SPARC_LED is not set
@@ -124,6 +133,7 @@ CONFIG_FLAT_NODE_MEM_MAP=y
124# CONFIG_SPARSEMEM_STATIC is not set 133# CONFIG_SPARSEMEM_STATIC is not set
125CONFIG_SPLIT_PTLOCK_CPUS=4 134CONFIG_SPLIT_PTLOCK_CPUS=4
126# CONFIG_RESOURCES_64BIT is not set 135# CONFIG_RESOURCES_64BIT is not set
136CONFIG_ZONE_DMA_FLAG=1
127 137
128# 138#
129# Networking 139# Networking
@@ -133,14 +143,15 @@ CONFIG_NET=y
133# 143#
134# Networking options 144# Networking options
135# 145#
136# CONFIG_NETDEBUG is not set
137CONFIG_PACKET=y 146CONFIG_PACKET=y
138# CONFIG_PACKET_MMAP is not set 147# CONFIG_PACKET_MMAP is not set
139CONFIG_UNIX=y 148CONFIG_UNIX=y
140CONFIG_XFRM=y 149CONFIG_XFRM=y
141CONFIG_XFRM_USER=m 150CONFIG_XFRM_USER=m
142# CONFIG_XFRM_SUB_POLICY is not set 151# CONFIG_XFRM_SUB_POLICY is not set
152# CONFIG_XFRM_MIGRATE is not set
143CONFIG_NET_KEY=m 153CONFIG_NET_KEY=m
154# CONFIG_NET_KEY_MIGRATE is not set
144CONFIG_INET=y 155CONFIG_INET=y
145# CONFIG_IP_MULTICAST is not set 156# CONFIG_IP_MULTICAST is not set
146# CONFIG_IP_ADVANCED_ROUTER is not set 157# CONFIG_IP_ADVANCED_ROUTER is not set
@@ -170,6 +181,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
170CONFIG_IPV6=m 181CONFIG_IPV6=m
171CONFIG_IPV6_PRIVACY=y 182CONFIG_IPV6_PRIVACY=y
172# CONFIG_IPV6_ROUTER_PREF is not set 183# CONFIG_IPV6_ROUTER_PREF is not set
184# CONFIG_IPV6_OPTIMISTIC_DAD is not set
173CONFIG_INET6_AH=m 185CONFIG_INET6_AH=m
174CONFIG_INET6_ESP=m 186CONFIG_INET6_ESP=m
175CONFIG_INET6_IPCOMP=m 187CONFIG_INET6_IPCOMP=m
@@ -229,7 +241,18 @@ CONFIG_NET_PKTGEN=m
229# CONFIG_HAMRADIO is not set 241# CONFIG_HAMRADIO is not set
230# CONFIG_IRDA is not set 242# CONFIG_IRDA is not set
231# CONFIG_BT is not set 243# CONFIG_BT is not set
244CONFIG_AF_RXRPC=m
245# CONFIG_AF_RXRPC_DEBUG is not set
246# CONFIG_RXKAD is not set
247
248#
249# Wireless
250#
251# CONFIG_CFG80211 is not set
252# CONFIG_WIRELESS_EXT is not set
253# CONFIG_MAC80211 is not set
232# CONFIG_IEEE80211 is not set 254# CONFIG_IEEE80211 is not set
255# CONFIG_RFKILL is not set
233 256
234# 257#
235# Device Drivers 258# Device Drivers
@@ -242,16 +265,13 @@ CONFIG_STANDALONE=y
242CONFIG_PREVENT_FIRMWARE_BUILD=y 265CONFIG_PREVENT_FIRMWARE_BUILD=y
243# CONFIG_FW_LOADER is not set 266# CONFIG_FW_LOADER is not set
244# CONFIG_DEBUG_DRIVER is not set 267# CONFIG_DEBUG_DRIVER is not set
268# CONFIG_DEBUG_DEVRES is not set
245# CONFIG_SYS_HYPERVISOR is not set 269# CONFIG_SYS_HYPERVISOR is not set
246 270
247# 271#
248# Connector - unified userspace <-> kernelspace linker 272# Connector - unified userspace <-> kernelspace linker
249# 273#
250# CONFIG_CONNECTOR is not set 274# CONFIG_CONNECTOR is not set
251
252#
253# Memory Technology Devices (MTD)
254#
255# CONFIG_MTD is not set 275# CONFIG_MTD is not set
256 276
257# 277#
@@ -262,6 +282,7 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
262# 282#
263# Plug and Play support 283# Plug and Play support
264# 284#
285# CONFIG_PNPACPI is not set
265 286
266# 287#
267# Block devices 288# Block devices
@@ -280,15 +301,16 @@ CONFIG_BLK_DEV_RAM=y
280CONFIG_BLK_DEV_RAM_COUNT=16 301CONFIG_BLK_DEV_RAM_COUNT=16
281CONFIG_BLK_DEV_RAM_SIZE=4096 302CONFIG_BLK_DEV_RAM_SIZE=4096
282CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 303CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
283CONFIG_BLK_DEV_INITRD=y
284# CONFIG_CDROM_PKTCDVD is not set 304# CONFIG_CDROM_PKTCDVD is not set
285# CONFIG_ATA_OVER_ETH is not set 305# CONFIG_ATA_OVER_ETH is not set
286 306
287# 307#
288# Misc devices 308# Misc devices
289# 309#
310# CONFIG_PHANTOM is not set
290# CONFIG_SGI_IOC4 is not set 311# CONFIG_SGI_IOC4 is not set
291# CONFIG_TIFM_CORE is not set 312# CONFIG_TIFM_CORE is not set
313# CONFIG_BLINK is not set
292 314
293# 315#
294# ATA/ATAPI/MFM/RLL support 316# ATA/ATAPI/MFM/RLL support
@@ -322,11 +344,12 @@ CONFIG_CHR_DEV_SG=m
322# CONFIG_SCSI_CONSTANTS is not set 344# CONFIG_SCSI_CONSTANTS is not set
323# CONFIG_SCSI_LOGGING is not set 345# CONFIG_SCSI_LOGGING is not set
324# CONFIG_SCSI_SCAN_ASYNC is not set 346# CONFIG_SCSI_SCAN_ASYNC is not set
347CONFIG_SCSI_WAIT_SCAN=m
325 348
326# 349#
327# SCSI Transports 350# SCSI Transports
328# 351#
329CONFIG_SCSI_SPI_ATTRS=m 352CONFIG_SCSI_SPI_ATTRS=y
330# CONFIG_SCSI_FC_ATTRS is not set 353# CONFIG_SCSI_FC_ATTRS is not set
331# CONFIG_SCSI_ISCSI_ATTRS is not set 354# CONFIG_SCSI_ISCSI_ATTRS is not set
332# CONFIG_SCSI_SAS_ATTRS is not set 355# CONFIG_SCSI_SAS_ATTRS is not set
@@ -366,12 +389,9 @@ CONFIG_SCSI_QLOGICPTI=m
366# CONFIG_SCSI_DC390T is not set 389# CONFIG_SCSI_DC390T is not set
367# CONFIG_SCSI_NSP32 is not set 390# CONFIG_SCSI_NSP32 is not set
368# CONFIG_SCSI_DEBUG is not set 391# CONFIG_SCSI_DEBUG is not set
392CONFIG_SCSI_ESP_CORE=y
369CONFIG_SCSI_SUNESP=y 393CONFIG_SCSI_SUNESP=y
370# CONFIG_SCSI_SRP is not set 394# CONFIG_SCSI_SRP is not set
371
372#
373# Serial ATA (prod) and Parallel ATA (experimental) drivers
374#
375# CONFIG_ATA is not set 395# CONFIG_ATA is not set
376 396
377# 397#
@@ -390,6 +410,7 @@ CONFIG_SCSI_SUNESP=y
390# 410#
391# IEEE 1394 (FireWire) support 411# IEEE 1394 (FireWire) support
392# 412#
413# CONFIG_FIREWIRE is not set
393# CONFIG_IEEE1394 is not set 414# CONFIG_IEEE1394 is not set
394 415
395# 416#
@@ -410,10 +431,6 @@ CONFIG_TUN=m
410# ARCnet devices 431# ARCnet devices
411# 432#
412# CONFIG_ARCNET is not set 433# CONFIG_ARCNET is not set
413
414#
415# PHY device support
416#
417# CONFIG_PHYLIB is not set 434# CONFIG_PHYLIB is not set
418 435
419# 436#
@@ -435,10 +452,7 @@ CONFIG_SUNQE=m
435# CONFIG_NET_TULIP is not set 452# CONFIG_NET_TULIP is not set
436# CONFIG_HP100 is not set 453# CONFIG_HP100 is not set
437# CONFIG_NET_PCI is not set 454# CONFIG_NET_PCI is not set
438 455CONFIG_NETDEV_1000=y
439#
440# Ethernet (1000 Mbit)
441#
442# CONFIG_ACENIC is not set 456# CONFIG_ACENIC is not set
443# CONFIG_DL2K is not set 457# CONFIG_DL2K is not set
444# CONFIG_E1000 is not set 458# CONFIG_E1000 is not set
@@ -454,15 +468,16 @@ CONFIG_SUNQE=m
454# CONFIG_TIGON3 is not set 468# CONFIG_TIGON3 is not set
455# CONFIG_BNX2 is not set 469# CONFIG_BNX2 is not set
456# CONFIG_QLA3XXX is not set 470# CONFIG_QLA3XXX is not set
457 471# CONFIG_ATL1 is not set
458# 472CONFIG_NETDEV_10000=y
459# Ethernet (10000 Mbit)
460#
461# CONFIG_CHELSIO_T1 is not set 473# CONFIG_CHELSIO_T1 is not set
474# CONFIG_CHELSIO_T3 is not set
462# CONFIG_IXGB is not set 475# CONFIG_IXGB is not set
463# CONFIG_S2IO is not set 476# CONFIG_S2IO is not set
464# CONFIG_MYRI10GE is not set 477# CONFIG_MYRI10GE is not set
465# CONFIG_NETXEN_NIC is not set 478# CONFIG_NETXEN_NIC is not set
479# CONFIG_MLX4_CORE is not set
480CONFIG_MLX4_DEBUG=y
466 481
467# 482#
468# Token Ring devices 483# Token Ring devices
@@ -470,13 +485,10 @@ CONFIG_SUNQE=m
470# CONFIG_TR is not set 485# CONFIG_TR is not set
471 486
472# 487#
473# Wireless LAN (non-hamradio) 488# Wireless LAN
474#
475# CONFIG_NET_RADIO is not set
476
477#
478# Wan interfaces
479# 489#
490# CONFIG_WLAN_PRE80211 is not set
491# CONFIG_WLAN_80211 is not set
480# CONFIG_WAN is not set 492# CONFIG_WAN is not set
481# CONFIG_FDDI is not set 493# CONFIG_FDDI is not set
482# CONFIG_HIPPI is not set 494# CONFIG_HIPPI is not set
@@ -528,9 +540,17 @@ CONFIG_KEYBOARD_SUNKBD=m
528# CONFIG_KEYBOARD_STOWAWAY is not set 540# CONFIG_KEYBOARD_STOWAWAY is not set
529CONFIG_INPUT_MOUSE=y 541CONFIG_INPUT_MOUSE=y
530CONFIG_MOUSE_PS2=m 542CONFIG_MOUSE_PS2=m
543CONFIG_MOUSE_PS2_ALPS=y
544CONFIG_MOUSE_PS2_LOGIPS2PP=y
545CONFIG_MOUSE_PS2_SYNAPTICS=y
546CONFIG_MOUSE_PS2_LIFEBOOK=y
547CONFIG_MOUSE_PS2_TRACKPOINT=y
548# CONFIG_MOUSE_PS2_TOUCHKIT is not set
531CONFIG_MOUSE_SERIAL=m 549CONFIG_MOUSE_SERIAL=m
550# CONFIG_MOUSE_APPLETOUCH is not set
532# CONFIG_MOUSE_VSXXXAA is not set 551# CONFIG_MOUSE_VSXXXAA is not set
533# CONFIG_INPUT_JOYSTICK is not set 552# CONFIG_INPUT_JOYSTICK is not set
553# CONFIG_INPUT_TABLET is not set
534# CONFIG_INPUT_TOUCHSCREEN is not set 554# CONFIG_INPUT_TOUCHSCREEN is not set
535# CONFIG_INPUT_MISC is not set 555# CONFIG_INPUT_MISC is not set
536 556
@@ -578,14 +598,9 @@ CONFIG_LEGACY_PTY_COUNT=256
578# IPMI 598# IPMI
579# 599#
580# CONFIG_IPMI_HANDLER is not set 600# CONFIG_IPMI_HANDLER is not set
581
582#
583# Watchdog Cards
584#
585# CONFIG_WATCHDOG is not set 601# CONFIG_WATCHDOG is not set
586CONFIG_HW_RANDOM=m 602CONFIG_HW_RANDOM=m
587CONFIG_RTC=m 603CONFIG_RTC=m
588# CONFIG_DTLK is not set
589# CONFIG_R3964 is not set 604# CONFIG_R3964 is not set
590# CONFIG_APPLICOM is not set 605# CONFIG_APPLICOM is not set
591# CONFIG_DRM is not set 606# CONFIG_DRM is not set
@@ -595,10 +610,7 @@ CONFIG_RTC=m
595# TPM devices 610# TPM devices
596# 611#
597# CONFIG_TCG_TPM is not set 612# CONFIG_TCG_TPM is not set
598 613CONFIG_DEVPORT=y
599#
600# I2C support
601#
602# CONFIG_I2C is not set 614# CONFIG_I2C is not set
603 615
604# 616#
@@ -611,32 +623,39 @@ CONFIG_RTC=m
611# Dallas's 1-wire bus 623# Dallas's 1-wire bus
612# 624#
613# CONFIG_W1 is not set 625# CONFIG_W1 is not set
614
615#
616# Hardware Monitoring support
617#
618CONFIG_HWMON=y 626CONFIG_HWMON=y
619# CONFIG_HWMON_VID is not set 627# CONFIG_HWMON_VID is not set
620# CONFIG_SENSORS_ABITUGURU is not set 628# CONFIG_SENSORS_ABITUGURU is not set
621# CONFIG_SENSORS_F71805F is not set 629# CONFIG_SENSORS_F71805F is not set
622# CONFIG_SENSORS_PC87427 is not set 630# CONFIG_SENSORS_PC87427 is not set
631# CONFIG_SENSORS_SMSC47M1 is not set
632# CONFIG_SENSORS_SMSC47B397 is not set
623# CONFIG_SENSORS_VT1211 is not set 633# CONFIG_SENSORS_VT1211 is not set
634# CONFIG_SENSORS_W83627HF is not set
624# CONFIG_HWMON_DEBUG_CHIP is not set 635# CONFIG_HWMON_DEBUG_CHIP is not set
625 636
626# 637#
638# Multifunction device drivers
639#
640# CONFIG_MFD_SM501 is not set
641
642#
627# Multimedia devices 643# Multimedia devices
628# 644#
629# CONFIG_VIDEO_DEV is not set 645# CONFIG_VIDEO_DEV is not set
646# CONFIG_DVB_CORE is not set
647# CONFIG_DAB is not set
630 648
631# 649#
632# Digital Video Broadcasting Devices 650# Graphics support
633# 651#
634# CONFIG_DVB is not set 652# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
635 653
636# 654#
637# Graphics support 655# Display device support
638# 656#
639CONFIG_FIRMWARE_EDID=y 657# CONFIG_DISPLAY_SUPPORT is not set
658# CONFIG_VGASTATE is not set
640# CONFIG_FB is not set 659# CONFIG_FB is not set
641 660
642# 661#
@@ -644,7 +663,6 @@ CONFIG_FIRMWARE_EDID=y
644# 663#
645# CONFIG_PROM_CONSOLE is not set 664# CONFIG_PROM_CONSOLE is not set
646CONFIG_DUMMY_CONSOLE=y 665CONFIG_DUMMY_CONSOLE=y
647# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
648 666
649# 667#
650# Sound 668# Sound
@@ -655,6 +673,7 @@ CONFIG_DUMMY_CONSOLE=y
655# HID Devices 673# HID Devices
656# 674#
657CONFIG_HID=y 675CONFIG_HID=y
676# CONFIG_HID_DEBUG is not set
658 677
659# 678#
660# USB support 679# USB support
@@ -672,10 +691,6 @@ CONFIG_USB_ARCH_HAS_EHCI=y
672# USB Gadget Support 691# USB Gadget Support
673# 692#
674# CONFIG_USB_GADGET is not set 693# CONFIG_USB_GADGET is not set
675
676#
677# MMC/SD Card support
678#
679# CONFIG_MMC is not set 694# CONFIG_MMC is not set
680 695
681# 696#
@@ -719,10 +734,6 @@ CONFIG_USB_ARCH_HAS_EHCI=y
719# 734#
720 735
721# 736#
722# Virtualization
723#
724
725#
726# Misc Linux/SPARC drivers 737# Misc Linux/SPARC drivers
727# 738#
728CONFIG_SUN_OPENPROMIO=m 739CONFIG_SUN_OPENPROMIO=m
@@ -801,6 +812,7 @@ CONFIG_RAMFS=y
801# 812#
802# CONFIG_ADFS_FS is not set 813# CONFIG_ADFS_FS is not set
803# CONFIG_AFFS_FS is not set 814# CONFIG_AFFS_FS is not set
815# CONFIG_ECRYPT_FS is not set
804# CONFIG_HFS_FS is not set 816# CONFIG_HFS_FS is not set
805# CONFIG_HFSPLUS_FS is not set 817# CONFIG_HFSPLUS_FS is not set
806CONFIG_BEFS_FS=m 818CONFIG_BEFS_FS=m
@@ -827,6 +839,7 @@ CONFIG_LOCKD=y
827CONFIG_NFS_COMMON=y 839CONFIG_NFS_COMMON=y
828CONFIG_SUNRPC=y 840CONFIG_SUNRPC=y
829CONFIG_SUNRPC_GSS=m 841CONFIG_SUNRPC_GSS=m
842# CONFIG_SUNRPC_BIND34 is not set
830CONFIG_RPCSEC_GSS_KRB5=m 843CONFIG_RPCSEC_GSS_KRB5=m
831# CONFIG_RPCSEC_GSS_SPKM3 is not set 844# CONFIG_RPCSEC_GSS_SPKM3 is not set
832# CONFIG_SMB_FS is not set 845# CONFIG_SMB_FS is not set
@@ -839,7 +852,7 @@ CONFIG_CIFS=m
839# CONFIG_NCP_FS is not set 852# CONFIG_NCP_FS is not set
840# CONFIG_CODA_FS is not set 853# CONFIG_CODA_FS is not set
841CONFIG_AFS_FS=m 854CONFIG_AFS_FS=m
842CONFIG_RXRPC=m 855# CONFIG_AFS_DEBUG is not set
843# CONFIG_9P_FS is not set 856# CONFIG_9P_FS is not set
844 857
845# 858#
@@ -913,15 +926,14 @@ CONFIG_MAGIC_SYSRQ=y
913# CONFIG_DEBUG_FS is not set 926# CONFIG_DEBUG_FS is not set
914# CONFIG_HEADERS_CHECK is not set 927# CONFIG_HEADERS_CHECK is not set
915CONFIG_DEBUG_KERNEL=y 928CONFIG_DEBUG_KERNEL=y
916CONFIG_LOG_BUF_SHIFT=14
917CONFIG_DETECT_SOFTLOCKUP=y 929CONFIG_DETECT_SOFTLOCKUP=y
918# CONFIG_SCHEDSTATS is not set 930# CONFIG_SCHEDSTATS is not set
931# CONFIG_TIMER_STATS is not set
919# CONFIG_DEBUG_SLAB is not set 932# CONFIG_DEBUG_SLAB is not set
920# CONFIG_DEBUG_RT_MUTEXES is not set 933# CONFIG_DEBUG_RT_MUTEXES is not set
921# CONFIG_RT_MUTEX_TESTER is not set 934# CONFIG_RT_MUTEX_TESTER is not set
922# CONFIG_DEBUG_SPINLOCK is not set 935# CONFIG_DEBUG_SPINLOCK is not set
923# CONFIG_DEBUG_MUTEXES is not set 936# CONFIG_DEBUG_MUTEXES is not set
924# CONFIG_DEBUG_RWSEMS is not set
925# CONFIG_DEBUG_SPINLOCK_SLEEP is not set 937# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
926# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set 938# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
927# CONFIG_DEBUG_KOBJECT is not set 939# CONFIG_DEBUG_KOBJECT is not set
@@ -932,12 +944,14 @@ CONFIG_DEBUG_BUGVERBOSE=y
932# CONFIG_DEBUG_LIST is not set 944# CONFIG_DEBUG_LIST is not set
933CONFIG_FORCED_INLINING=y 945CONFIG_FORCED_INLINING=y
934# CONFIG_RCU_TORTURE_TEST is not set 946# CONFIG_RCU_TORTURE_TEST is not set
947# CONFIG_FAULT_INJECTION is not set
935# CONFIG_DEBUG_STACK_USAGE is not set 948# CONFIG_DEBUG_STACK_USAGE is not set
936 949
937# 950#
938# Security options 951# Security options
939# 952#
940# CONFIG_KEYS is not set 953CONFIG_KEYS=y
954# CONFIG_KEYS_DEBUG_PROC_KEYS is not set
941# CONFIG_SECURITY is not set 955# CONFIG_SECURITY is not set
942 956
943# 957#
@@ -961,8 +975,11 @@ CONFIG_CRYPTO_SHA512=m
961# CONFIG_CRYPTO_GF128MUL is not set 975# CONFIG_CRYPTO_GF128MUL is not set
962CONFIG_CRYPTO_ECB=m 976CONFIG_CRYPTO_ECB=m
963CONFIG_CRYPTO_CBC=y 977CONFIG_CRYPTO_CBC=y
978CONFIG_CRYPTO_PCBC=m
964# CONFIG_CRYPTO_LRW is not set 979# CONFIG_CRYPTO_LRW is not set
980# CONFIG_CRYPTO_CRYPTD is not set
965CONFIG_CRYPTO_DES=y 981CONFIG_CRYPTO_DES=y
982# CONFIG_CRYPTO_FCRYPT is not set
966CONFIG_CRYPTO_BLOWFISH=m 983CONFIG_CRYPTO_BLOWFISH=m
967CONFIG_CRYPTO_TWOFISH=m 984CONFIG_CRYPTO_TWOFISH=m
968CONFIG_CRYPTO_TWOFISH_COMMON=m 985CONFIG_CRYPTO_TWOFISH_COMMON=m
@@ -977,6 +994,7 @@ CONFIG_CRYPTO_ARC4=m
977CONFIG_CRYPTO_DEFLATE=y 994CONFIG_CRYPTO_DEFLATE=y
978CONFIG_CRYPTO_MICHAEL_MIC=m 995CONFIG_CRYPTO_MICHAEL_MIC=m
979CONFIG_CRYPTO_CRC32C=m 996CONFIG_CRYPTO_CRC32C=m
997# CONFIG_CRYPTO_CAMELLIA is not set
980# CONFIG_CRYPTO_TEST is not set 998# CONFIG_CRYPTO_TEST is not set
981 999
982# 1000#
@@ -989,9 +1007,12 @@ CONFIG_CRYPTO_CRC32C=m
989CONFIG_BITREVERSE=y 1007CONFIG_BITREVERSE=y
990# CONFIG_CRC_CCITT is not set 1008# CONFIG_CRC_CCITT is not set
991# CONFIG_CRC16 is not set 1009# CONFIG_CRC16 is not set
1010# CONFIG_CRC_ITU_T is not set
992CONFIG_CRC32=y 1011CONFIG_CRC32=y
993CONFIG_LIBCRC32C=m 1012CONFIG_LIBCRC32C=m
994CONFIG_ZLIB_INFLATE=y 1013CONFIG_ZLIB_INFLATE=y
995CONFIG_ZLIB_DEFLATE=y 1014CONFIG_ZLIB_DEFLATE=y
996CONFIG_PLIST=y 1015CONFIG_PLIST=y
997CONFIG_IOMAP_COPY=y 1016CONFIG_HAS_IOMEM=y
1017CONFIG_HAS_IOPORT=y
1018CONFIG_HAS_DMA=y
diff --git a/arch/sparc/kernel/head.S b/arch/sparc/kernel/head.S
index 97da13c52563..9a219e8b5ddb 100644
--- a/arch/sparc/kernel/head.S
+++ b/arch/sparc/kernel/head.S
@@ -19,7 +19,7 @@
19#include <asm/ptrace.h> 19#include <asm/ptrace.h>
20#include <asm/psr.h> 20#include <asm/psr.h>
21#include <asm/page.h> 21#include <asm/page.h>
22#include <linux/kdebug.h> 22#include <asm/kdebug.h>
23#include <asm/winmacro.h> 23#include <asm/winmacro.h>
24#include <asm/thread_info.h> /* TI_UWINMASK */ 24#include <asm/thread_info.h> /* TI_UWINMASK */
25#include <asm/errno.h> 25#include <asm/errno.h>
diff --git a/arch/sparc64/defconfig b/arch/sparc64/defconfig
index 585ef4fb7591..65840a62bb9c 100644
--- a/arch/sparc64/defconfig
+++ b/arch/sparc64/defconfig
@@ -1,7 +1,7 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Linux kernel version: 2.6.21 3# Linux kernel version: 2.6.22-rc1
4# Fri May 11 14:31:45 2007 4# Mon May 14 04:17:48 2007
5# 5#
6CONFIG_SPARC=y 6CONFIG_SPARC=y
7CONFIG_SPARC64=y 7CONFIG_SPARC64=y
@@ -508,10 +508,6 @@ CONFIG_ISCSI_TCP=m
508# CONFIG_SCSI_ESP_CORE is not set 508# CONFIG_SCSI_ESP_CORE is not set
509# CONFIG_SCSI_SUNESP is not set 509# CONFIG_SCSI_SUNESP is not set
510# CONFIG_SCSI_SRP is not set 510# CONFIG_SCSI_SRP is not set
511
512#
513# Serial ATA (prod) and Parallel ATA (experimental) drivers
514#
515# CONFIG_ATA is not set 511# CONFIG_ATA is not set
516 512
517# 513#
@@ -568,10 +564,6 @@ CONFIG_DUMMY=m
568# ARCnet devices 564# ARCnet devices
569# 565#
570# CONFIG_ARCNET is not set 566# CONFIG_ARCNET is not set
571
572#
573# PHY device support
574#
575# CONFIG_PHYLIB is not set 567# CONFIG_PHYLIB is not set
576 568
577# 569#
@@ -611,10 +603,7 @@ CONFIG_NET_PCI=y
611# CONFIG_SUNDANCE is not set 603# CONFIG_SUNDANCE is not set
612# CONFIG_VIA_RHINE is not set 604# CONFIG_VIA_RHINE is not set
613# CONFIG_SC92031 is not set 605# CONFIG_SC92031 is not set
614 606CONFIG_NETDEV_1000=y
615#
616# Ethernet (1000 Mbit)
617#
618# CONFIG_ACENIC is not set 607# CONFIG_ACENIC is not set
619# CONFIG_DL2K is not set 608# CONFIG_DL2K is not set
620CONFIG_E1000=m 609CONFIG_E1000=m
@@ -634,10 +623,7 @@ CONFIG_TIGON3=m
634CONFIG_BNX2=m 623CONFIG_BNX2=m
635# CONFIG_QLA3XXX is not set 624# CONFIG_QLA3XXX is not set
636# CONFIG_ATL1 is not set 625# CONFIG_ATL1 is not set
637 626CONFIG_NETDEV_10000=y
638#
639# Ethernet (10000 Mbit)
640#
641# CONFIG_CHELSIO_T1 is not set 627# CONFIG_CHELSIO_T1 is not set
642# CONFIG_CHELSIO_T3 is not set 628# CONFIG_CHELSIO_T3 is not set
643# CONFIG_IXGB is not set 629# CONFIG_IXGB is not set
@@ -667,10 +653,6 @@ CONFIG_MLX4_DEBUG=y
667# CONFIG_USB_RTL8150 is not set 653# CONFIG_USB_RTL8150 is not set
668# CONFIG_USB_USBNET_MII is not set 654# CONFIG_USB_USBNET_MII is not set
669# CONFIG_USB_USBNET is not set 655# CONFIG_USB_USBNET is not set
670
671#
672# Wan interfaces
673#
674# CONFIG_WAN is not set 656# CONFIG_WAN is not set
675# CONFIG_FDDI is not set 657# CONFIG_FDDI is not set
676# CONFIG_HIPPI is not set 658# CONFIG_HIPPI is not set
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c
index 7455f5d05519..16cc46a71872 100644
--- a/arch/sparc64/kernel/of_device.c
+++ b/arch/sparc64/kernel/of_device.c
@@ -537,6 +537,13 @@ static int __init build_one_resource(struct device_node *parent,
537 return 0; 537 return 0;
538 } 538 }
539 539
540 /* When we miss an I/O space match on PCI, just pass it up
541 * to the next PCI bridge and/or controller.
542 */
543 if (!strcmp(bus->name, "pci") &&
544 (addr[0] & 0x03000000) == 0x01000000)
545 return 0;
546
540 return 1; 547 return 1;
541} 548}
542 549
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
index 8087d67a0cf8..24fdf1d0adc5 100644
--- a/arch/sparc64/kernel/smp.c
+++ b/arch/sparc64/kernel/smp.c
@@ -561,6 +561,9 @@ static void hypervisor_xcall_deliver(u64 data0, u64 data1, u64 data2, cpumask_t
561 unsigned long flags, status; 561 unsigned long flags, status;
562 int cnt, retries, this_cpu, prev_sent, i; 562 int cnt, retries, this_cpu, prev_sent, i;
563 563
564 if (cpus_empty(mask))
565 return;
566
564 /* We have to do this whole thing with interrupts fully disabled. 567 /* We have to do this whole thing with interrupts fully disabled.
565 * Otherwise if we send an xcall from interrupt context it will 568 * Otherwise if we send an xcall from interrupt context it will
566 * corrupt both our mondo block and cpu list state. 569 * corrupt both our mondo block and cpu list state.
diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c
index 8410587348f1..178155bf9db6 100644
--- a/drivers/sbus/char/bbc_i2c.c
+++ b/drivers/sbus/char/bbc_i2c.c
@@ -18,6 +18,7 @@
18#include <asm/ebus.h> 18#include <asm/ebus.h>
19#include <asm/spitfire.h> 19#include <asm/spitfire.h>
20#include <asm/bbc.h> 20#include <asm/bbc.h>
21#include <asm/io.h>
21 22
22#include "bbc_i2c.h" 23#include "bbc_i2c.h"
23 24
diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c
index 2d14a29effe4..3279a1b6501d 100644
--- a/drivers/sbus/char/display7seg.c
+++ b/drivers/sbus/char/display7seg.c
@@ -20,6 +20,7 @@
20#include <asm/ebus.h> /* EBus device */ 20#include <asm/ebus.h> /* EBus device */
21#include <asm/oplib.h> /* OpenProm Library */ 21#include <asm/oplib.h> /* OpenProm Library */
22#include <asm/uaccess.h> /* put_/get_user */ 22#include <asm/uaccess.h> /* put_/get_user */
23#include <asm/io.h>
23 24
24#include <asm/display7seg.h> 25#include <asm/display7seg.h>
25 26
diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index e62d23f65180..d28c14e23c32 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -1757,6 +1757,14 @@ config SCSI_ESP_CORE
1757 tristate "ESP Scsi Driver Core" 1757 tristate "ESP Scsi Driver Core"
1758 depends on SCSI 1758 depends on SCSI
1759 select SCSI_SPI_ATTRS 1759 select SCSI_SPI_ATTRS
1760 help
1761 This is a core driver for NCR53c9x based scsi chipsets,
1762 also known as "ESP" for Emulex Scsi Processor or
1763 Enhanced Scsi Processor. This driver does not exist by
1764 itself, there are front-end drivers which, when enabled,
1765 select and enable this driver. One example is SCSI_SUNESP.
1766 These front-end drivers provide probing, DMA, and register
1767 access support for the core driver.
1760 1768
1761config SCSI_SUNESP 1769config SCSI_SUNESP
1762 tristate "Sparc ESP Scsi Driver" 1770 tristate "Sparc ESP Scsi Driver"
diff --git a/drivers/serial/sunhv.c b/drivers/serial/sunhv.c
index 40d48566215c..c3a6bd2e7950 100644
--- a/drivers/serial/sunhv.c
+++ b/drivers/serial/sunhv.c
@@ -493,6 +493,10 @@ static struct of_device_id hv_match[] = {
493 .name = "console", 493 .name = "console",
494 .compatible = "qcn", 494 .compatible = "qcn",
495 }, 495 },
496 {
497 .name = "console",
498 .compatible = "SUNW,sun4v-console",
499 },
496 {}, 500 {},
497}; 501};
498MODULE_DEVICE_TABLE(of, hv_match); 502MODULE_DEVICE_TABLE(of, hv_match);
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index eebcb708cff1..4d7485fa553f 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -1535,7 +1535,7 @@ config FB_LEO
1535 1535
1536config FB_XVR500 1536config FB_XVR500
1537 bool "Sun XVR-500 3DLABS Wildcat support" 1537 bool "Sun XVR-500 3DLABS Wildcat support"
1538 depends on FB && PCI && SPARC64 1538 depends on (FB = y) && PCI && SPARC64
1539 select FB_CFB_FILLRECT 1539 select FB_CFB_FILLRECT
1540 select FB_CFB_COPYAREA 1540 select FB_CFB_COPYAREA
1541 select FB_CFB_IMAGEBLIT 1541 select FB_CFB_IMAGEBLIT
@@ -1548,7 +1548,7 @@ config FB_XVR500
1548 1548
1549config FB_XVR2500 1549config FB_XVR2500
1550 bool "Sun XVR-2500 3DLABS Wildcat support" 1550 bool "Sun XVR-2500 3DLABS Wildcat support"
1551 depends on FB && PCI && SPARC64 1551 depends on (FB = y) && PCI && SPARC64
1552 select FB_CFB_FILLRECT 1552 select FB_CFB_FILLRECT
1553 select FB_CFB_COPYAREA 1553 select FB_CFB_COPYAREA
1554 select FB_CFB_IMAGEBLIT 1554 select FB_CFB_IMAGEBLIT
diff --git a/include/asm-sparc/kdebug.h b/include/asm-sparc/kdebug.h
index 404d80767323..631f15ffef73 100644
--- a/include/asm-sparc/kdebug.h
+++ b/include/asm-sparc/kdebug.h
@@ -58,6 +58,10 @@ static inline void sp_enter_debugger(void)
58 sp_enter_debugger(); \ 58 sp_enter_debugger(); \
59 } while(0) 59 } while(0)
60 60
61enum die_val {
62 DIE_UNUSED,
63};
64
61#endif /* !(__ASSEMBLY__) */ 65#endif /* !(__ASSEMBLY__) */
62 66
63/* Some nice offset defines for assembler code. */ 67/* Some nice offset defines for assembler code. */
@@ -66,8 +70,4 @@ static inline void sp_enter_debugger(void)
66#define KDEBUG_DUNNO2_OFF 0x8 70#define KDEBUG_DUNNO2_OFF 0x8
67#define KDEBUG_TEACH_OFF 0xc 71#define KDEBUG_TEACH_OFF 0xc
68 72
69enum die_val {
70 DIE_UNUSED,
71};
72
73#endif /* !(_SPARC_KDEBUG_H) */ 73#endif /* !(_SPARC_KDEBUG_H) */
diff --git a/include/asm-sparc/system.h b/include/asm-sparc/system.h
index 8b6d9c9c8b93..8b4e23b3bb38 100644
--- a/include/asm-sparc/system.h
+++ b/include/asm-sparc/system.h
@@ -11,6 +11,7 @@
11#include <asm/psr.h> 11#include <asm/psr.h>
12#include <asm/ptrace.h> 12#include <asm/ptrace.h>
13#include <asm/btfixup.h> 13#include <asm/btfixup.h>
14#include <asm/smp.h>
14 15
15#ifndef __ASSEMBLY__ 16#ifndef __ASSEMBLY__
16 17
diff --git a/include/asm-sparc64/dma-mapping.h b/include/asm-sparc64/dma-mapping.h
index 2f858a2df94a..9329429fb7f6 100644
--- a/include/asm-sparc64/dma-mapping.h
+++ b/include/asm-sparc64/dma-mapping.h
@@ -10,10 +10,13 @@
10/* need struct page definitions */ 10/* need struct page definitions */
11#include <linux/mm.h> 11#include <linux/mm.h>
12 12
13#include <asm/of_device.h>
14
13static inline int 15static inline int
14dma_supported(struct device *dev, u64 mask) 16dma_supported(struct device *dev, u64 mask)
15{ 17{
16 BUG_ON(dev->bus != &pci_bus_type); 18 BUG_ON(dev->bus != &pci_bus_type &&
19 dev->bus != &ebus_bus_type);
17 20
18 return pci_dma_supported(to_pci_dev(dev), mask); 21 return pci_dma_supported(to_pci_dev(dev), mask);
19} 22}
@@ -21,7 +24,8 @@ dma_supported(struct device *dev, u64 mask)
21static inline int 24static inline int
22dma_set_mask(struct device *dev, u64 dma_mask) 25dma_set_mask(struct device *dev, u64 dma_mask)
23{ 26{
24 BUG_ON(dev->bus != &pci_bus_type); 27 BUG_ON(dev->bus != &pci_bus_type &&
28 dev->bus != &ebus_bus_type);
25 29
26 return pci_set_dma_mask(to_pci_dev(dev), dma_mask); 30 return pci_set_dma_mask(to_pci_dev(dev), dma_mask);
27} 31}
@@ -30,7 +34,8 @@ static inline void *
30dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, 34dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
31 gfp_t flag) 35 gfp_t flag)
32{ 36{
33 BUG_ON(dev->bus != &pci_bus_type); 37 BUG_ON(dev->bus != &pci_bus_type &&
38 dev->bus != &ebus_bus_type);
34 39
35 return pci_iommu_ops->alloc_consistent(to_pci_dev(dev), size, dma_handle, flag); 40 return pci_iommu_ops->alloc_consistent(to_pci_dev(dev), size, dma_handle, flag);
36} 41}
@@ -39,7 +44,8 @@ static inline void
39dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, 44dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
40 dma_addr_t dma_handle) 45 dma_addr_t dma_handle)
41{ 46{
42 BUG_ON(dev->bus != &pci_bus_type); 47 BUG_ON(dev->bus != &pci_bus_type &&
48 dev->bus != &ebus_bus_type);
43 49
44 pci_free_consistent(to_pci_dev(dev), size, cpu_addr, dma_handle); 50 pci_free_consistent(to_pci_dev(dev), size, cpu_addr, dma_handle);
45} 51}
@@ -48,7 +54,8 @@ static inline dma_addr_t
48dma_map_single(struct device *dev, void *cpu_addr, size_t size, 54dma_map_single(struct device *dev, void *cpu_addr, size_t size,
49 enum dma_data_direction direction) 55 enum dma_data_direction direction)
50{ 56{
51 BUG_ON(dev->bus != &pci_bus_type); 57 BUG_ON(dev->bus != &pci_bus_type &&
58 dev->bus != &ebus_bus_type);
52 59
53 return pci_map_single(to_pci_dev(dev), cpu_addr, size, (int)direction); 60 return pci_map_single(to_pci_dev(dev), cpu_addr, size, (int)direction);
54} 61}
@@ -57,7 +64,8 @@ static inline void
57dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, 64dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size,
58 enum dma_data_direction direction) 65 enum dma_data_direction direction)
59{ 66{
60 BUG_ON(dev->bus != &pci_bus_type); 67 BUG_ON(dev->bus != &pci_bus_type &&
68 dev->bus != &ebus_bus_type);
61 69
62 pci_unmap_single(to_pci_dev(dev), dma_addr, size, (int)direction); 70 pci_unmap_single(to_pci_dev(dev), dma_addr, size, (int)direction);
63} 71}
@@ -67,7 +75,8 @@ dma_map_page(struct device *dev, struct page *page,
67 unsigned long offset, size_t size, 75 unsigned long offset, size_t size,
68 enum dma_data_direction direction) 76 enum dma_data_direction direction)
69{ 77{
70 BUG_ON(dev->bus != &pci_bus_type); 78 BUG_ON(dev->bus != &pci_bus_type &&
79 dev->bus != &ebus_bus_type);
71 80
72 return pci_map_page(to_pci_dev(dev), page, offset, size, (int)direction); 81 return pci_map_page(to_pci_dev(dev), page, offset, size, (int)direction);
73} 82}
@@ -76,7 +85,8 @@ static inline void
76dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, 85dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size,
77 enum dma_data_direction direction) 86 enum dma_data_direction direction)
78{ 87{
79 BUG_ON(dev->bus != &pci_bus_type); 88 BUG_ON(dev->bus != &pci_bus_type &&
89 dev->bus != &ebus_bus_type);
80 90
81 pci_unmap_page(to_pci_dev(dev), dma_address, size, (int)direction); 91 pci_unmap_page(to_pci_dev(dev), dma_address, size, (int)direction);
82} 92}
@@ -85,7 +95,8 @@ static inline int
85dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, 95dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
86 enum dma_data_direction direction) 96 enum dma_data_direction direction)
87{ 97{
88 BUG_ON(dev->bus != &pci_bus_type); 98 BUG_ON(dev->bus != &pci_bus_type &&
99 dev->bus != &ebus_bus_type);
89 100
90 return pci_map_sg(to_pci_dev(dev), sg, nents, (int)direction); 101 return pci_map_sg(to_pci_dev(dev), sg, nents, (int)direction);
91} 102}
@@ -94,7 +105,8 @@ static inline void
94dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, 105dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries,
95 enum dma_data_direction direction) 106 enum dma_data_direction direction)
96{ 107{
97 BUG_ON(dev->bus != &pci_bus_type); 108 BUG_ON(dev->bus != &pci_bus_type &&
109 dev->bus != &ebus_bus_type);
98 110
99 pci_unmap_sg(to_pci_dev(dev), sg, nhwentries, (int)direction); 111 pci_unmap_sg(to_pci_dev(dev), sg, nhwentries, (int)direction);
100} 112}
@@ -103,7 +115,8 @@ static inline void
103dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, 115dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size,
104 enum dma_data_direction direction) 116 enum dma_data_direction direction)
105{ 117{
106 BUG_ON(dev->bus != &pci_bus_type); 118 BUG_ON(dev->bus != &pci_bus_type &&
119 dev->bus != &ebus_bus_type);
107 120
108 pci_dma_sync_single_for_cpu(to_pci_dev(dev), dma_handle, 121 pci_dma_sync_single_for_cpu(to_pci_dev(dev), dma_handle,
109 size, (int)direction); 122 size, (int)direction);
@@ -113,7 +126,8 @@ static inline void
113dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, 126dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size,
114 enum dma_data_direction direction) 127 enum dma_data_direction direction)
115{ 128{
116 BUG_ON(dev->bus != &pci_bus_type); 129 BUG_ON(dev->bus != &pci_bus_type &&
130 dev->bus != &ebus_bus_type);
117 131
118 pci_dma_sync_single_for_device(to_pci_dev(dev), dma_handle, 132 pci_dma_sync_single_for_device(to_pci_dev(dev), dma_handle,
119 size, (int)direction); 133 size, (int)direction);
@@ -123,7 +137,8 @@ static inline void
123dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, 137dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems,
124 enum dma_data_direction direction) 138 enum dma_data_direction direction)
125{ 139{
126 BUG_ON(dev->bus != &pci_bus_type); 140 BUG_ON(dev->bus != &pci_bus_type &&
141 dev->bus != &ebus_bus_type);
127 142
128 pci_dma_sync_sg_for_cpu(to_pci_dev(dev), sg, nelems, (int)direction); 143 pci_dma_sync_sg_for_cpu(to_pci_dev(dev), sg, nelems, (int)direction);
129} 144}
@@ -132,7 +147,8 @@ static inline void
132dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, 147dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems,
133 enum dma_data_direction direction) 148 enum dma_data_direction direction)
134{ 149{
135 BUG_ON(dev->bus != &pci_bus_type); 150 BUG_ON(dev->bus != &pci_bus_type &&
151 dev->bus != &ebus_bus_type);
136 152
137 pci_dma_sync_sg_for_device(to_pci_dev(dev), sg, nelems, (int)direction); 153 pci_dma_sync_sg_for_device(to_pci_dev(dev), sg, nelems, (int)direction);
138} 154}