Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6

This commit is contained in:
Linus Torvalds 2005-12-23 10:11:50 -08:00
commit 8f43d8e114
18 changed files with 50 additions and 42 deletions

View File

@ -55,6 +55,10 @@ config NR_CPUS
depends on SMP depends on SMP
default "32" default "32"
config SPARC
bool
default y
# Identify this as a Sparc32 build # Identify this as a Sparc32 build
config SPARC32 config SPARC32
bool bool

View File

@ -894,7 +894,7 @@ asmlinkage long sunos_sysconf (int name)
ret = ARG_MAX; ret = ARG_MAX;
break; break;
case _SC_CHILD_MAX: case _SC_CHILD_MAX:
ret = CHILD_MAX; ret = -1; /* no limit */
break; break;
case _SC_CLK_TCK: case _SC_CLK_TCK:
ret = HZ; ret = HZ;

View File

@ -5,6 +5,10 @@
mainmenu "Linux/UltraSPARC Kernel Configuration" mainmenu "Linux/UltraSPARC Kernel Configuration"
config SPARC
bool
default y
config SPARC64 config SPARC64
bool bool
default y default y

View File

@ -854,7 +854,7 @@ asmlinkage s32 sunos_sysconf (int name)
ret = ARG_MAX; ret = ARG_MAX;
break; break;
case _SC_CHILD_MAX: case _SC_CHILD_MAX:
ret = CHILD_MAX; ret = -1; /* no limit */
break; break;
case _SC_CLK_TCK: case _SC_CLK_TCK:
ret = HZ; ret = HZ;

View File

@ -353,7 +353,7 @@ asmlinkage int solaris_sysconf(int id)
{ {
switch (id) { switch (id) {
case SOLARIS_CONFIG_NGROUPS: return NGROUPS_MAX; case SOLARIS_CONFIG_NGROUPS: return NGROUPS_MAX;
case SOLARIS_CONFIG_CHILD_MAX: return CHILD_MAX; case SOLARIS_CONFIG_CHILD_MAX: return -1; /* no limit */
case SOLARIS_CONFIG_OPEN_FILES: return OPEN_MAX; case SOLARIS_CONFIG_OPEN_FILES: return OPEN_MAX;
case SOLARIS_CONFIG_POSIX_VER: return 199309; case SOLARIS_CONFIG_POSIX_VER: return 199309;
case SOLARIS_CONFIG_PAGESIZE: return PAGE_SIZE; case SOLARIS_CONFIG_PAGESIZE: return PAGE_SIZE;

View File

@ -687,7 +687,7 @@ config NVRAM
config RTC config RTC
tristate "Enhanced Real Time Clock Support" tristate "Enhanced Real Time Clock Support"
depends on !PPC32 && !PARISC && !IA64 && !M68K && (!(SPARC32 || SPARC64) || PCI) depends on !PPC32 && !PARISC && !IA64 && !M68K && (!SPARC || PCI)
---help--- ---help---
If you say Y here and create a character special file /dev/rtc with If you say Y here and create a character special file /dev/rtc with
major number 10 and minor number 135 using mknod ("man mknod"), you major number 10 and minor number 135 using mknod ("man mknod"), you
@ -735,7 +735,7 @@ config SGI_IP27_RTC
config GEN_RTC config GEN_RTC
tristate "Generic /dev/rtc emulation" tristate "Generic /dev/rtc emulation"
depends on RTC!=y && !IA64 && !ARM && !M32R && !SPARC32 && !SPARC64 depends on RTC!=y && !IA64 && !ARM && !M32R && !SPARC
---help--- ---help---
If you say Y here and create a character special file /dev/rtc with If you say Y here and create a character special file /dev/rtc with
major number 10 and minor number 135 using mknod ("man mknod"), you major number 10 and minor number 135 using mknod ("man mknod"), you

View File

@ -930,8 +930,8 @@ static void kbd_refresh_leds(struct input_handle *handle)
} }
#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) ||\ #if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) ||\
defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC32) ||\ defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) ||\
defined(CONFIG_SPARC64) || defined(CONFIG_PARISC) || defined(CONFIG_SUPERH) ||\ defined(CONFIG_PARISC) || defined(CONFIG_SUPERH) ||\
(defined(CONFIG_ARM) && defined(CONFIG_KEYBOARD_ATKBD) && !defined(CONFIG_ARCH_RPC)) (defined(CONFIG_ARM) && defined(CONFIG_KEYBOARD_ATKBD) && !defined(CONFIG_ARCH_RPC))
#define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\ #define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\
@ -958,7 +958,7 @@ static unsigned short x86_keycodes[256] =
extern int mac_hid_mouse_emulate_buttons(int, int, int); extern int mac_hid_mouse_emulate_buttons(int, int, int);
#endif /* CONFIG_MAC_EMUMOUSEBTN */ #endif /* CONFIG_MAC_EMUMOUSEBTN */
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64) #ifdef CONFIG_SPARC
static int sparc_l1_a_state = 0; static int sparc_l1_a_state = 0;
extern void sun_do_break(void); extern void sun_do_break(void);
#endif #endif
@ -1045,7 +1045,7 @@ static void kbd_keycode(unsigned int keycode, int down,
if (keycode == KEY_LEFTALT || keycode == KEY_RIGHTALT) if (keycode == KEY_LEFTALT || keycode == KEY_RIGHTALT)
sysrq_alt = down; sysrq_alt = down;
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64) #ifdef CONFIG_SPARC
if (keycode == KEY_STOP) if (keycode == KEY_STOP)
sparc_l1_a_state = down; sparc_l1_a_state = down;
#endif #endif
@ -1072,7 +1072,7 @@ static void kbd_keycode(unsigned int keycode, int down,
return; return;
} }
#endif #endif
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64) #ifdef CONFIG_SPARC
if (keycode == KEY_A && sparc_l1_a_state) { if (keycode == KEY_A && sparc_l1_a_state) {
sparc_l1_a_state = 0; sparc_l1_a_state = 0;
sun_do_break(); sun_do_break();

View File

@ -26,7 +26,7 @@ comment "FC4 drivers"
config FC4_SOC config FC4_SOC
tristate "Sun SOC/Sbus" tristate "Sun SOC/Sbus"
depends on FC4!=n && (SPARC32 || SPARC64) depends on FC4!=n && SPARC
help help
Serial Optical Channel is an interface card with one or two Fibre Serial Optical Channel is an interface card with one or two Fibre
Optic ports, each of which can be connected to a disk array. Note Optic ports, each of which can be connected to a disk array. Note
@ -38,7 +38,7 @@ config FC4_SOC
config FC4_SOCAL config FC4_SOCAL
tristate "Sun SOC+ (aka SOCAL)" tristate "Sun SOC+ (aka SOCAL)"
depends on FC4!=n && (SPARC32 || SPARC64) depends on FC4!=n && SPARC
---help--- ---help---
Serial Optical Channel Plus is an interface card with up to two Serial Optical Channel Plus is an interface card with up to two
Fibre Optic ports. This card supports FC Arbitrated Loop (usually Fibre Optic ports. This card supports FC Arbitrated Loop (usually
@ -62,7 +62,7 @@ config SCSI_PLUTO
be called pluto. be called pluto.
config SCSI_FCAL config SCSI_FCAL
tristate "Sun Enterprise Network Array (A5000 and EX500)" if SPARC32 || SPARC64 tristate "Sun Enterprise Network Array (A5000 and EX500)" if SPARC
depends on FC4!=n && SCSI depends on FC4!=n && SCSI
help help
This driver drives FC-AL disks connected through a Fibre Channel This driver drives FC-AL disks connected through a Fibre Channel
@ -75,7 +75,7 @@ config SCSI_FCAL
config SCSI_FCAL config SCSI_FCAL
prompt "Generic FC-AL disk driver" prompt "Generic FC-AL disk driver"
depends on FC4!=n && SCSI && !SPARC32 && !SPARC64 depends on FC4!=n && SCSI && !SPARC
endmenu endmenu

View File

@ -26,7 +26,7 @@ config INPUT_PCSPKR
config INPUT_SPARCSPKR config INPUT_SPARCSPKR
tristate "SPARC Speaker support" tristate "SPARC Speaker support"
depends on PCI && (SPARC32 || SPARC64) depends on PCI && SPARC
help help
Say Y here if you want the standard Speaker on Sparc PCI systems Say Y here if you want the standard Speaker on Sparc PCI systems
to be used for bells and whistles. to be used for bells and whistles.

View File

@ -21,7 +21,7 @@
#include "i8042-ip22io.h" #include "i8042-ip22io.h"
#elif defined(CONFIG_PPC) #elif defined(CONFIG_PPC)
#include "i8042-ppcio.h" #include "i8042-ppcio.h"
#elif defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64) #elif defined(CONFIG_SPARC)
#include "i8042-sparcio.h" #include "i8042-sparcio.h"
#elif defined(CONFIG_X86) || defined(CONFIG_IA64) #elif defined(CONFIG_X86) || defined(CONFIG_IA64)
#include "i8042-x86ia64io.h" #include "i8042-x86ia64io.h"

View File

@ -62,7 +62,7 @@ config MTD_PHYSMAP_BANKWIDTH
config MTD_SUN_UFLASH config MTD_SUN_UFLASH
tristate "Sun Microsystems userflash support" tristate "Sun Microsystems userflash support"
depends on (SPARC32 || SPARC64) && MTD_CFI depends on SPARC && MTD_CFI
help help
This provides a 'mapping' driver which supports the way in This provides a 'mapping' driver which supports the way in
which user-programmable flash chips are connected on various which user-programmable flash chips are connected on various

View File

@ -2907,7 +2907,7 @@ static int __devinit gem_get_device_address(struct gem *gp)
return 0; return 0;
} }
static void __devexit gem_remove_one(struct pci_dev *pdev) static void gem_remove_one(struct pci_dev *pdev)
{ {
struct net_device *dev = pci_get_drvdata(pdev); struct net_device *dev = pci_get_drvdata(pdev);
@ -3181,7 +3181,7 @@ static struct pci_driver gem_driver = {
.name = GEM_MODULE_NAME, .name = GEM_MODULE_NAME,
.id_table = gem_pci_tbl, .id_table = gem_pci_tbl,
.probe = gem_init_one, .probe = gem_init_one,
.remove = __devexit_p(gem_remove_one), .remove = gem_remove_one,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.suspend = gem_suspend, .suspend = gem_suspend,
.resume = gem_resume, .resume = gem_resume,

View File

@ -10,7 +10,7 @@ menu "Serial drivers"
# The new 8250/16550 serial drivers # The new 8250/16550 serial drivers
config SERIAL_8250 config SERIAL_8250
tristate "8250/16550 and compatible serial support" tristate "8250/16550 and compatible serial support"
depends on (BROKEN || !(SPARC64 || SPARC32)) depends on (BROKEN || !SPARC)
select SERIAL_CORE select SERIAL_CORE
---help--- ---help---
This selects whether you want to include the driver for the standard This selects whether you want to include the driver for the standard
@ -469,14 +469,14 @@ config SERIAL_IMX_CONSOLE
config SERIAL_SUNCORE config SERIAL_SUNCORE
bool bool
depends on SPARC32 || SPARC64 depends on SPARC
select SERIAL_CORE select SERIAL_CORE
select SERIAL_CORE_CONSOLE select SERIAL_CORE_CONSOLE
default y default y
config SERIAL_SUNZILOG config SERIAL_SUNZILOG
tristate "Sun Zilog8530 serial support" tristate "Sun Zilog8530 serial support"
depends on SPARC32 || SPARC64 depends on SPARC
help help
This driver supports the Zilog8530 serial ports found on many Sparc This driver supports the Zilog8530 serial ports found on many Sparc
systems. Say Y or M if you want to be able to these serial ports. systems. Say Y or M if you want to be able to these serial ports.
@ -491,7 +491,7 @@ config SERIAL_SUNZILOG_CONSOLE
config SERIAL_SUNSU config SERIAL_SUNSU
tristate "Sun SU serial support" tristate "Sun SU serial support"
depends on (SPARC32 || SPARC64) && PCI depends on SPARC && PCI
help help
This driver supports the 8250 serial ports that run the keyboard and This driver supports the 8250 serial ports that run the keyboard and
mouse on (PCI) UltraSPARC systems. Say Y or M if you want to be able mouse on (PCI) UltraSPARC systems. Say Y or M if you want to be able
@ -547,7 +547,7 @@ config PDC_CONSOLE
config SERIAL_SUNSAB config SERIAL_SUNSAB
tristate "Sun Siemens SAB82532 serial support" tristate "Sun Siemens SAB82532 serial support"
depends on (SPARC32 || SPARC64) && PCI depends on SPARC && PCI
help help
This driver supports the Siemens SAB82532 DUSCC serial ports on newer This driver supports the Siemens SAB82532 DUSCC serial ports on newer
(PCI) UltraSPARC systems. Say Y or M if you want to be able to these (PCI) UltraSPARC systems. Say Y or M if you want to be able to these

View File

@ -536,13 +536,13 @@ config FB_SUN3
config FB_SBUS config FB_SBUS
bool "SBUS and UPA framebuffers" bool "SBUS and UPA framebuffers"
depends on (FB = y) && (SPARC32 || SPARC64) depends on (FB = y) && SPARC
help help
Say Y if you want support for SBUS or UPA based frame buffer device. Say Y if you want support for SBUS or UPA based frame buffer device.
config FB_BW2 config FB_BW2
bool "BWtwo support" bool "BWtwo support"
depends on (FB = y) && ((SPARC32 || SPARC64) && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) depends on (FB = y) && (SPARC && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3)
select FB_CFB_FILLRECT select FB_CFB_FILLRECT
select FB_CFB_COPYAREA select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT select FB_CFB_IMAGEBLIT
@ -551,7 +551,7 @@ config FB_BW2
config FB_CG3 config FB_CG3
bool "CGthree support" bool "CGthree support"
depends on (FB = y) && ((SPARC32 || SPARC64) && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) depends on (FB = y) && (SPARC && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3)
select FB_CFB_FILLRECT select FB_CFB_FILLRECT
select FB_CFB_COPYAREA select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT select FB_CFB_IMAGEBLIT
@ -560,7 +560,7 @@ config FB_CG3
config FB_CG6 config FB_CG6
bool "CGsix (GX,TurboGX) support" bool "CGsix (GX,TurboGX) support"
depends on (FB = y) && ((SPARC32 || SPARC64) && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3) depends on (FB = y) && (SPARC && FB_SBUS || (SUN3 || SUN3X) && FB_SUN3)
select FB_CFB_COPYAREA select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT select FB_CFB_IMAGEBLIT
help help
@ -1268,7 +1268,7 @@ config FB_LEO
config FB_PCI config FB_PCI
bool "PCI framebuffers" bool "PCI framebuffers"
depends on (FB = y) && PCI && (SPARC64 || SPARC32) depends on (FB = y) && PCI && SPARC
config FB_IGA config FB_IGA
bool "IGA 168x display support" bool "IGA 168x display support"

View File

@ -6,7 +6,7 @@ menu "Console display driver support"
config VGA_CONSOLE config VGA_CONSOLE
bool "VGA text console" if EMBEDDED || !X86 bool "VGA text console" if EMBEDDED || !X86
depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC32 && !SPARC64 && !M68K && !PARISC && !ARCH_VERSATILE depends on !ARCH_ACORN && !ARCH_EBSA110 && !4xx && !8xx && !SPARC && !M68K && !PARISC && !ARCH_VERSATILE
default y default y
help help
Saying Y here will allow you to use Linux in text mode through a Saying Y here will allow you to use Linux in text mode through a
@ -68,7 +68,7 @@ config SGI_NEWPORT_CONSOLE
config PROM_CONSOLE config PROM_CONSOLE
bool "PROM console" bool "PROM console"
depends on SPARC32 || SPARC64 depends on SPARC
help help
Say Y to build a console driver for Sun machines that uses the Say Y to build a console driver for Sun machines that uses the
terminal emulation built into their console PROMS. terminal emulation built into their console PROMS.
@ -136,7 +136,7 @@ config FONTS
config FONT_8x8 config FONT_8x8
bool "VGA 8x8 font" if FONTS bool "VGA 8x8 font" if FONTS
depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
default y if !SPARC32 && !SPARC64 && !FONTS default y if !SPARC && !FONTS
help help
This is the "high resolution" font for the VGA frame buffer (the one This is the "high resolution" font for the VGA frame buffer (the one
provided by the text console 80x50 (and higher) modes). provided by the text console 80x50 (and higher) modes).
@ -150,7 +150,7 @@ config FONT_8x8
config FONT_8x16 config FONT_8x16
bool "VGA 8x16 font" if FONTS bool "VGA 8x16 font" if FONTS
depends on FRAMEBUFFER_CONSOLE || SGI_NEWPORT_CONSOLE=y || STI_CONSOLE || USB_SISUSBVGA_CON depends on FRAMEBUFFER_CONSOLE || SGI_NEWPORT_CONSOLE=y || STI_CONSOLE || USB_SISUSBVGA_CON
default y if !SPARC32 && !SPARC64 && !FONTS default y if !SPARC && !FONTS
help help
This is the "high resolution" font for the VGA frame buffer (the one This is the "high resolution" font for the VGA frame buffer (the one
provided by the VGA text console 80x25 mode. provided by the VGA text console 80x25 mode.
@ -160,7 +160,7 @@ config FONT_8x16
config FONT_6x11 config FONT_6x11
bool "Mac console 6x11 font (not supported by all drivers)" if FONTS bool "Mac console 6x11 font (not supported by all drivers)" if FONTS
depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE
default y if !SPARC32 && !SPARC64 && !FONTS && MAC default y if !SPARC && !FONTS && MAC
help help
Small console font with Macintosh-style high-half glyphs. Some Mac Small console font with Macintosh-style high-half glyphs. Some Mac
framebuffer drivers don't support this one at all. framebuffer drivers don't support this one at all.
@ -176,7 +176,7 @@ config FONT_7x14
config FONT_PEARL_8x8 config FONT_PEARL_8x8
bool "Pearl (old m68k) console 8x8 font" if FONTS bool "Pearl (old m68k) console 8x8 font" if FONTS
depends on FRAMEBUFFER_CONSOLE depends on FRAMEBUFFER_CONSOLE
default y if !SPARC32 && !SPARC64 && !FONTS && AMIGA default y if !SPARC && !FONTS && AMIGA
help help
Small console font with PC-style control-character and high-half Small console font with PC-style control-character and high-half
glyphs. glyphs.
@ -184,24 +184,24 @@ config FONT_PEARL_8x8
config FONT_ACORN_8x8 config FONT_ACORN_8x8
bool "Acorn console 8x8 font" if FONTS bool "Acorn console 8x8 font" if FONTS
depends on FRAMEBUFFER_CONSOLE depends on FRAMEBUFFER_CONSOLE
default y if !SPARC32 && !SPARC64 && !FONTS && ARM && ARCH_ACORN default y if !SPARC && !FONTS && ARM && ARCH_ACORN
help help
Small console font with PC-style control characters and high-half Small console font with PC-style control characters and high-half
glyphs. glyphs.
config FONT_MINI_4x6 config FONT_MINI_4x6
bool "Mini 4x6 font" bool "Mini 4x6 font"
depends on !SPARC32 && !SPARC64 && FONTS depends on !SPARC && FONTS
config FONT_SUN8x16 config FONT_SUN8x16
bool "Sparc console 8x16 font" bool "Sparc console 8x16 font"
depends on FRAMEBUFFER_CONSOLE && (!SPARC32 && !SPARC64 && FONTS || SPARC32 || SPARC64) depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
help help
This is the high resolution console font for Sun machines. Say Y. This is the high resolution console font for Sun machines. Say Y.
config FONT_SUN12x22 config FONT_SUN12x22
bool "Sparc console 12x22 font (not supported by all drivers)" bool "Sparc console 12x22 font (not supported by all drivers)"
depends on FRAMEBUFFER_CONSOLE && (!SPARC32 && !SPARC64 && FONTS || SPARC32 || SPARC64) depends on FRAMEBUFFER_CONSOLE && (!SPARC && FONTS || SPARC)
help help
This is the high resolution console font for Sun machines with very This is the high resolution console font for Sun machines with very
big letters (like the letters used in the SPARC PROM). If the big letters (like the letters used in the SPARC PROM). If the

View File

@ -47,7 +47,7 @@ config LOGO_SGI_CLUT224
config LOGO_SUN_CLUT224 config LOGO_SUN_CLUT224
bool "224-color Sun Linux logo" bool "224-color Sun Linux logo"
depends on LOGO && (SPARC32 || SPARC64) depends on LOGO && SPARC
default y default y
config LOGO_SUPERH_MONO config LOGO_SUPERH_MONO

View File

@ -203,7 +203,7 @@ config ULTRIX_PARTITION
config SUN_PARTITION config SUN_PARTITION
bool "Sun partition tables support" if PARTITION_ADVANCED bool "Sun partition tables support" if PARTITION_ADVANCED
default y if (SPARC32 || SPARC64 || SUN3 || SUN3X) default y if (SPARC || SUN3 || SUN3X)
---help--- ---help---
Like most systems, SunOS uses its own hard disk partition table Like most systems, SunOS uses its own hard disk partition table
format, incompatible with all others. Saying Y here allows you to format, incompatible with all others. Saying Y here allows you to

View File

@ -1,7 +1,7 @@
# ALSA Sparc drivers # ALSA Sparc drivers
menu "ALSA Sparc devices" menu "ALSA Sparc devices"
depends on SND!=n && (SPARC32 || SPARC64) depends on SND!=n && SPARC
config SND_SUN_AMD7930 config SND_SUN_AMD7930
tristate "Sun AMD7930" tristate "Sun AMD7930"