[RFC PATCH 3/5] CELL bogus_console port to hvc_console backend driver

Milton Miller miltonm at bga.com
Tue Dec 6 04:27:55 EST 2005


On Dec 4, 2005, at 3:12 PM, Ryan S. Arnold wrote:

> This patch modifies the defconfig file for the CELL simulator and
> changes the Makefile and Kconfig to add hvc_fss.
>
> Signed-off-by: Ryan S. Arnold <rsa at us.ibm.com>
>
>
> diff -uNr linux-2.6.14-rc5/arch/ppc64/configs/cbesim_defconfig  
> linux-2.6.14-rc5-cbe-fss/arch/ppc64/configs/cbesim_defconfig
> --- linux-2.6.14-rc5/arch/ppc64/configs/cbesim_defconfig	2005-11-14  
> 12:26:32.000000000 -0500
> +++  
> linux-2.6.14-rc5-cbe-fss/arch/ppc64/configs/cbesim_defconfig	2005-11 
> -14 15:59:05.000000000 -0500
> @@ -322,7 +322,7 @@
>  CONFIG_UNIX98_PTYS=y
>  # CONFIG_LEGACY_PTYS is not set
>  # CONFIG_RTASCONS is not set
> -CONFIG_BOGUS_CONSOLE=y
> +CONFIG_HVC_FSS=y
>
>  #
>  # IPMI
> diff -uNr linux-2.6.14-rc5/drivers/char/Kconfig  
> linux-2.6.14-rc5-cbe-fss/drivers/char/Kconfig
> --- linux-2.6.14-rc5/drivers/char/Kconfig	2005-11-14  
> 12:26:32.000000000 -0500
> +++ linux-2.6.14-rc5-cbe-fss/drivers/char/Kconfig	2005-12-02  
> 17:44:04.490273872 -0500
> @@ -552,25 +552,37 @@
>
>  	  If unsure, say N.
>
> +config HVC_DRIVER
> +	bool "PowerPC virtual console front-end support"
> +	depends on PPC_PSERIES || PPC_BPA || PPC_RTAS
> +	help
> +	  Users of pSeries machines that want to utilize the hvc console  
> front-end
> +	  module for their backend console driver should select this option.
> +	  It will automatically be selected if one of the back-end console  
> drivers
> +	  is selected.
> +

Lets just keep this hidden -- so take out depends (its all generic code)
and just say bool (without any quoted text).  The help text could then
be made more generic.

>  config HVC_CONSOLE
>  	bool "pSeries Hypervisor Virtual Console support"
>  	depends on PPC_PSERIES
> +	select HVC_DRIVER
>  	help
>  	  pSeries machines when partitioned support a hypervisor virtual
>  	  console. This driver allows each pSeries partition to have a  
> console
>  	  which is accessed via the HMC.
>
> -config RTASCONS
> -        bool "RTAS firmware console support"
> -        depends on PPC_RTAS
> -        help
> -          RTAS console support.
> -
> -config BOGUS_CONSOLE
> -	bool "Simulator bogus console support"
> +config HVC_FSS
> +	bool "IBM Full System Simulator Console support"
>  	depends on PPC_PSERIES || PPC_BPA
> +	select HVC_DRIVER
> +	help
> +	  IBM Full System Simulator Console device driver which makes use of
> +	  the HVC_DRIVER front end.
> +
> +config RTASCONS
> +	bool "RTAS firmware console support"
> +	depends on PPC_RTAS
>  	help
> -	  IBM System Simulator bogus console device driver.
> +	  RTAS console support.
>
>  config HVCS
>  	tristate "IBM Hypervisor Virtual Console Server support"
> diff -uNr linux-2.6.14-rc5/drivers/char/Makefile  
> linux-2.6.14-rc5-cbe-fss/drivers/char/Makefile
> --- linux-2.6.14-rc5/drivers/char/Makefile	2005-11-14  
> 12:26:32.000000000 -0500
> +++ linux-2.6.14-rc5-cbe-fss/drivers/char/Makefile	2005-12-02  
> 17:24:12.583189272 -0500
> @@ -41,12 +41,13 @@
>  obj-$(CONFIG_SX)		+= sx.o generic_serial.o
>  obj-$(CONFIG_RIO)		+= rio/ generic_serial.o
>  obj-$(CONFIG_RTASCONS)		+= rtascons.o
> -obj-$(CONFIG_BOGUS_CONSOLE)	+=bogus_console.o
> -obj-$(CONFIG_HVC_CONSOLE)	+= hvc_console.o hvc_vio.o hvsi.o
> +obj-$(CONFIG_HVC_DRIVER)	+= hvc_console.o
> +obj-$(CONFIG_HVC_CONSOLE)	+= hvc_vio.o hvsi.o
> +obj-$(CONFIG_HVC_FSS)		+= hvc_fss.o
>  obj-$(CONFIG_RAW_DRIVER)	+= raw.o
>  obj-$(CONFIG_SGI_SNSC)		+= snsc.o snsc_event.o
>  obj-$(CONFIG_MMTIMER)		+= mmtimer.o
> -obj-$(CONFIG_VIOCONS) += viocons.o
> +obj-$(CONFIG_VIOCONS)		+= viocons.o
>  obj-$(CONFIG_VIOTAPE)		+= viotape.o
>  obj-$(CONFIG_HVCS)		+= hvcs.o
>  obj-$(CONFIG_SGI_MBCS)		+= mbcs.o

milton




More information about the Linuxppc64-dev mailing list