Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2005 08:25:35 -0800
From:      Nate Lawson <nate@root.org>
To:        Scott Long <scottl@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/acpi/acpidump acpi.c acpidump.h
Message-ID:  <4210D0FF.6000904@root.org>
In-Reply-To: <20050214112155.C531A16A514@hub.freebsd.org>
References:  <20050214112155.C531A16A514@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott Long wrote:
> scottl      2005-02-14 11:21:48 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     usr.sbin/acpi/acpidump acpi.c acpidump.h 
>   Log:
>   Add support for parsing MCFG tables.
>   
>   Revision  Changes    Path
>   1.31      +24 -0     src/usr.sbin/acpi/acpidump/acpi.c
>   1.20      +12 -0     src/usr.sbin/acpi/acpidump/acpidump.h

Great.

> --- src/usr.sbin/acpi/acpidump/acpidump.h:1.19	Tue Oct  5 20:45:05 2004
> +++ src/usr.sbin/acpi/acpidump/acpidump.h	Mon Feb 14 11:21:48 2005
> @@ -293,6 +293,18 @@
>  	u_char		ec_id[1];	/* Variable length name string */
>  } __packed;
>  
> +/* Memory Mapped PCI config space base allocation structure */
> +struct MCFGbody {
> +	uint8_t		rsvd[8];
> +	struct {
> +		uint64_t	baseaddr;	/* Base Address */
> +		uint16_t	seg_grp;	/* Segment group number */
> +		uint8_t		start;		/* Starting bus number */
> +		uint8_t		end;		/* Ending bus number */
> +		uint8_t		rsvd[4];	/* Reserved */
> +	} s[];
> +} __packed;
> +

Don't we usually use s[1] for variable-length arrays?  Is there 
versioning on this table for acpi 2/3 when they might expand it?

-- 
Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4210D0FF.6000904>