Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2000 16:44:31 +0200
From:      Martin Nilsson <martin@svenskabutiker.se>
To:        freebsd-hackers@freebsd.org
Subject:   What is needed to support i815 in XFree86 4.01?
Message-ID:  <3999574E.56C5D8BA@svenskabutiker.se>

next in thread | raw e-mail | index | archive | help
A friend of mine have just bought a computer with i815 chipset, I want to
convert him to FreeBSD so I need to get X running om his machine with the 
builtin graphics on his motherboard.

The graphics part of the i815 chipset is believed to be equal to that of 
the i810. Of course the PCI id:s are different so it's not detected by 
the new agp driver in 4.1-Stable.

I have the two PCI-ids 1132 and 1130 for the video controller and the 
host-to-hub bridge. I have tried to add these in src/sys/pci/pcisupport.c
and src/sys/pci/agp_i810.c but I'm not getting any messages from the agp
driver that it is installed (other than the texts I added).

Can someone tell me how this detection is supposed to work and if there 
are more places that must be changed to get enable the graphics controller

XFree86-4.0.1 detects the i815 GMCH so it shoud be fine.


The following function must be rewritten as the id:s are now off by two:

/*
 * Find bridge device.
 */
static device_t
agp_i810_find_bridge(device_t dev)
{
	device_t *children, child;
	int nchildren, i;
	u_int32_t devid;

	/*
	 * XXX assume that the bridge device's ID is one minus the vga ID.
	 */
	devid = pci_get_devid(dev) - 0x10000;
	if (device_get_children(device_get_parent(dev), &children, &nchildren))
		return 0;

	for (i = 0; i < nchildren; i++) {
		child = children[i];

		if (pci_get_devid(child) == devid) {
			free(children, M_TEMP);
			return child;
		}
	}
	free(children, M_TEMP);
	return 0;
}



	/Martin
-- 
 _____________________________________________________________________
| o | +---------------------------+ +---------------------------+ | o |
|   | | Martin Nilsson M.Sc. CS&E | |    Internet & Intranet    | |   |
| o | | FILEX AB, Lund SWEDEN     | | Applications & shopping.  | | o |
|   | | email: martin@filex.se    | | UNIX, TCP/IP, Perl, C/C++ | |   |
| o | | Phone: +46-46-304130      | | SQL dev. & consulting     | | o |
|   | +---------------------------+ +---------------------------+ |   |
| o |    You know the old saying - Any technology sufficiently    | o |
|   |    advanced is indistinguishable from a Perl script         |   |
| o |       - The Camel book p.301                                | o |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3999574E.56C5D8BA>