Eric Anholt 30e14d656c Add support for 945G/GM AGP chipsets.
The key problem was that the aperture size detection using the MSAC bit
doesn't work -- the bit appears to be set even when it shouldn't be.  Linux
takes a different approach, testing for a bit of the GMADR (PCIR_BAR(2)) being
set.  However, as I don't think that's a safe way to test aperture size, we
just allocate the resource and check its size.  This also pointed out that
agp_generic_attach hadn't been allocating our aperture resource, which may
have caused problems in some cases.

Also corrected is a minor copy-and-pasteo in an error case.

PR:		kern/103079
Submitted by:	mnag
Tested on:	i945GM, i915GM
MFC after:	2 weeks
2006-09-27 06:38:54 +00:00
..
2006-04-30 16:44:41 +00:00
2006-09-27 06:38:54 +00:00
2006-08-31 08:45:44 +00:00
2006-07-09 16:31:53 +00:00
2006-06-02 23:14:40 +00:00
2006-06-12 03:28:42 +00:00
2006-06-11 22:25:01 +00:00
2006-05-26 13:51:38 +00:00
2006-09-07 23:04:47 +00:00
2006-06-12 04:30:42 +00:00
2006-09-24 00:26:33 +00:00
2006-06-12 04:00:33 +00:00
2006-08-12 01:19:37 +00:00
2006-09-11 20:52:41 +00:00
2006-09-07 06:00:03 +00:00
2006-09-11 20:52:41 +00:00
2006-09-26 15:48:13 +00:00
2006-08-26 18:39:18 +00:00
2006-08-31 11:15:18 +00:00
2006-09-01 20:14:06 +00:00
2006-07-14 04:36:57 +00:00
2006-05-20 21:08:09 +00:00
2006-08-12 09:06:55 +00:00
2006-08-02 04:54:14 +00:00
2006-07-13 11:47:36 +00:00
2006-05-16 15:23:27 +00:00
2006-09-15 11:01:23 +00:00
2006-08-12 01:24:37 +00:00
2006-09-24 17:37:03 +00:00
2006-07-17 21:18:03 +00:00
2006-07-14 04:35:59 +00:00
2006-04-30 16:46:11 +00:00
2006-09-15 11:01:23 +00:00
2006-08-05 04:58:25 +00:00
2006-06-19 11:30:36 +00:00
2006-05-26 18:25:34 +00:00