agpgart support for Intel 830M chipset
Subsystems (3)
Hi!
I've included a patch below that adds support for the Intel 830M chipset. The patch is against the 2.4.10 kernel
Documentation/Configure.help +5 -5
@@ -2554,10 +2554,10 @@ CONFIG_AGP module, say M here and read Documentation/modules.txt. The module will be called agpgart.o. -Intel 440LX/BX/GX/815/840/850 support +Intel 440LX/BX/GX/815/830M/840/850 support CONFIG_AGP_INTEL This option gives you AGP support for the GLX component of the - XFree86 4.x on Intel 440LX/BX/GX, 815, 840 and 850 chipsets. + XFree86 4.x on Intel 440LX/BX/GX, 815, 830M, 840 and 850 chipsets. For the moment, you should probably say N, unless you want to test the GLX component for XFree86 3.3.6, which can be downloaded from
@@ -2565,9 +2565,9 @@ CONFIG_AGP_INTEL Intel I810/I810 DC100/I810e support CONFIG_AGP_I810 - This option gives you AGP support for the Xserver on the Intel 810 - and 815 chipset boards for their on-board integrated graphics. This - is required to do any useful video modes with these boards. + This option gives you AGP support for the Xserver on the Intel 810, + 830M and 815 chipset boards for their on-board integrated graphics. + This is required to do any useful video modes with these boards. VIA chipset support CONFIG_AGP_VIA
drivers/char/Config.in +2 -2
@@ -205,8 +205,8 @@ endmenu dep_tristate '/dev/agpgart (AGP Support)' CONFIG_AGP $CONFIG_DRM_AGP if [ "$CONFIG_AGP" != "n" ]; then - bool ' Intel 440LX/BX/GX and I815/I840/I850 support' CONFIG_AGP_INTEL - bool ' Intel I810/I815 (on-board) support' CONFIG_AGP_I810 + bool ' Intel 440LX/BX/GX and I815/I830M/I840/I850 support' CONFIG_AGP_INTEL + bool ' Intel I810/I815/I830M (on-board) support' CONFIG_AGP_I810 bool ' VIA chipset support' CONFIG_AGP_VIA bool ' AMD Irongate, 761, and 762 support' CONFIG_AGP_AMD bool ' Generic SiS support' CONFIG_AGP_SIS
drivers/char/agp/agp.h +26 -0
@@ -133,6 +133,10 @@ struct agp_bridge_data {#define INREG16 (mmap, addr) __raw_readw((mmap)+(addr))#define INREG8 (mmap, addr) __raw_readb((mmap)+(addr)) +#define KB (x) ((x) * 1024) +#define MB (x) (KB (KB (x))) +#define GB (x) (MB (KB (x))) +#define CACHE_FLUSH agp_bridge.cache_flush#define A_SIZE_8 (x) ((aper_size_info_8 *) x)#define A_SIZE_16 (x) ((aper_size_info_16 *) x)
@@ -196,6 +200,12 @@ struct agp_bridge_data {#ifndef PCI_DEVICE_ID_INTEL_815_1 #define PCI_DEVICE_ID_INTEL_815_1 0x1132#endif +#ifndef PCI_DEVICE_ID_INTEL_830_M_0 +#define PCI_DEVICE_ID_INTEL_830_M_0 0x3575 +#endif +#ifndef PCI_DEVICE_ID_INTEL_830_M_1 +#define PCI_DEVICE_ID_INTEL_830_M_1 0x3577 +#endif #ifndef PCI_DEVICE_ID_INTEL_82443GX_1 #define PCI_DEVICE_ID_INTEL_82443GX_1 0x71a1#endif
@@ -266,6 +276,22 @@ struct agp_bridge_data {#define I810_DRAM_CTL 0x3000#define I810_DRAM_ROW_0 0x00000001#define I810_DRAM_ROW_0_SDRAM 0x00000001 + +/* intel i830 registers */ +#define I830_GMCH_CTRL 0x52 +#define I830_GMCH_ENABLED 0x4 +#define I830_GMCH_MEM_MASK 0x1 +#define I830_GMCH_MEM_64M 0x1 +#define I830_GMCH_MEM_128M 0 +#define I830_GMCH_GMS_MASK 0x70 +#define I830_GMCH_GMS_DISABLED 0x00 +#define I830_GMCH_GMS_LOCAL 0x10 +#define I830_GMCH_GMS_STOLEN_512 0x20 +#define I830_GMCH_GMS_STOLEN_1024 0x30 +#define I830_GMCH_GMS_STOLEN_8192 0x40 +#define I830_RDRAM_CHANNEL_TYPE 0x03010 +#define I830_RDRAM_ND (x) (((x) & 0x20) >> 5) +#define I830_RDRAM_DDT (x) (((x) & 0x18) >> 3)/* VIA register */ #define VIA_APBASE 0x10
drivers/char/agp/agpgart_be.c +314 -2
343 lines not on this page · raw message
include/linux/agp_backend.h +1 -0
@@ -46,6 +46,7 @@ enum chipset_type {INTEL_GX ,INTEL_I810 ,INTEL_I815 , +INTEL_I830_M ,INTEL_I840 ,INTEL_I850 , VIA_GENERIC,