Bug 11336 - FreeBSD drm modules do not compile (drmP.h)
Summary: FreeBSD drm modules do not compile (drmP.h)
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: unspecified
Hardware: Other FreeBSD
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 07:39 UTC by Joe Peterson
Modified: 2007-06-25 10:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Joe Peterson 2007-06-22 07:39:45 UTC
I am using code from Gentoo's ebuild: x11-drm-20070314, and I get a compilation failure.  The problem seems to be that the drmP.h in bsd-core is missing an element in a structure:

typedef struct ati_pcigart_info {
	int gart_table_location;
	int is_pcie;
	void *addr;
	dma_addr_t bus_addr;
	drm_local_map_t mapping;
	int table_size;             <-----
} drm_ati_pcigart_info;

The "int table_size;" element exists in linux-core but not bsd-core.

P.S. I would check the current CVS source, but it appears I need an account...
Comment 1 Tormod Volden 2007-06-25 10:08:44 UTC
CVS is not used any longer, but git:
http://gitweb.freedesktop.org/?p=mesa/drm.git;a=summary

And there the structure looks good. This was fixed in commit b0c8d885ce645aee5027a75e4149ba4be265b55d


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.