cvs commit: src/usr.sbin/acpi/acpidump acpi.c acpidump.h

Nate Lawson nate at root.org
Mon Feb 14 16:25:38 GMT 2005


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


More information about the cvs-all mailing list