[coreboot] [PATCH][cbv2]Add serial port information to lbtable

Stefan Reinauer stepan at coresystems.de
Wed Jan 16 14:27:07 CET 2008


* Patrick Georgi <patrick at georgi-clan.de> [080116 12:34]:
> Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>

I say:
Acked-by: Stefan Reinauer <stepan at coresystems.de>

but lets wait to give someone else the chance to veto this.

Can you make a similar patch for v3 once its in v2?

Thanks,

Stefan


> Index: src/include/boot/linuxbios_tables.h
> ===================================================================
> --- src/include/boot/linuxbios_tables.h	(Revision 3049)
> +++ src/include/boot/linuxbios_tables.h	(Arbeitskopie)
> @@ -138,6 +138,13 @@
>  	uint8_t  string[0];
>  };
>  
> +#define LB_TAG_SERIAL		0x000e
> +struct lb_serial {
> +	uint32_t tag;
> +	uint32_t size;
> +	uint16_t ioport;
> +};
> +
>  /* The following structures are for the cmos definitions table */
>  #define LB_TAG_CMOS_OPTION_TABLE 200
>  /* cmos header record */
> Index: src/arch/i386/boot/linuxbios_table.c
> ===================================================================
> --- src/arch/i386/boot/linuxbios_table.c	(Revision 3049)
> +++ src/arch/i386/boot/linuxbios_table.c	(Arbeitskopie)
> @@ -74,6 +74,18 @@
>  	return mem;
>  }
>  
> +struct lb_serial *lb_serial(struct lb_header *header)
> +{
> +	struct lb_record *rec;
> +	struct lb_serial *serial;
> +	rec = lb_new_record(header);
> +	serial = (struct lb_serial *)rec;
> +	serial->tag = LB_TAG_SERIAL;
> +	serial->size = sizeof(*serial);
> +	serial->ioport = TTYS0_BASE;
> +	return serial;
> +}
> +
>  struct lb_mainboard *lb_mainboard(struct lb_header *header)
>  {
>  	struct lb_record *rec;
> @@ -406,8 +418,10 @@
>  	 * size of the linuxbios table.
>  	 */
>  
> -	/* Record our motheboard */
> +	/* Record our motherboard */
>  	lb_mainboard(head);
> +	/* Record our console */
> +	lb_serial(head);
>  	/* Record our various random string information */
>  	lb_strings(head);
>  

> -- 
> coreboot mailing list
> coreboot at coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866




More information about the coreboot mailing list