Re: [PATCH 2.6.12 1/1] pcdp: add PCDP pci interface support

From: Bjorn Helgaas <>
Date: 2005-04-22 07:41:50
On Thu, 2005-04-21 at 15:26 -0500, Mark Maule wrote:
>  	{
>  		extern int sn_serial_console_early_setup(void);
>  		if (!sn_serial_console_early_setup())
> -			return 0;
> +			earlycons++;
>  	}

If SGI is going to support the PCDP, why don't you add a new
PCDP device type for the L1 console?  It feels like a nuisance
to have two places to look for console device info.  How do
you say "use VGA but not the L1 console"?

> +unsigned long	pcdp_vga_io_base;
> +unsigned long	pcdp_vga_mem_base;

Apart from the extra space that snuck into the definitions, I
don't really like these being associated with the PCDP.  Isn't
this the sort of thing that Ben H's VGA arbitrator[1] would
also change?

So I vote for something with a more neutral name, possibly in

And pcdp_vga_io_base isn't used anywhere, so I'd remove it.

> +setup_vga_console(struct pcdp_device *dev)
>  {
> +
>  #if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE)
> -	if (efi_mem_type(0xA0000) == EFI_CONVENTIONAL_MEMORY) {
> +	u8			*if_ptr;

This isn't ACPI, so we don't need extra tabs in the middle
of variable declarations (or blank lines after the beginning
of the function).  :-)

> +		memcpy(&if_pci, if_ptr, sizeof(struct pcdp_if_pci));

The above is correct, but it's easier to verify this:

	memcpy(&if_pci, if_ptr, sizeof(if_pci));


To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Thu Apr 21 17:42:21 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:37 EST