agpgart support for Intel 830M chipset
Subsystems (3)
Hi!
I've included a patch below for agpgart support for the Intel 830M chipset.
There seems to be a bit of a problem regarding the agpgart module. Afaik Jeff Hartmann (the author) doesn't work for VA Linux anymore and I don't know whether he actually maintains the module. If not, there is no maintainer for agpgart. If that is the case I'll maintain it if nobody objects...
Documentation/Configure.help +5 -5
@@ -2524,10 +2524,10 @@ 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
@@ -2535,9 +2535,9 @@ 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
@@ -187,8 +187,8 @@ 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 support' CONFIG_AGP_AMD bool ' Generic SiS support' CONFIG_AGP_SIS
drivers/char/agp/agp.h +26 -0
@@ -129,6 +129,10 @@#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(x) * 1024) +#define GB (x) (MB(x) * 1024) +#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)
@@ -189,6 +193,12 @@#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
@@ -253,6 +263,22 @@#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 +335 -6
392 lines not on this page · raw message
include/linux/agp_backend.h +1 -0
@@ -46,6 +46,7 @@INTEL_GX ,INTEL_I810 ,INTEL_I815 , +INTEL_I830_M ,INTEL_I840 ,INTEL_I850 , VIA_GENERIC,
Signature · 16 lines
Regards Abraham A woman is like your shadow; follow her, she flies; fly from her, she follows. -- Chamfort __________________________________________________________ Abraham vd Merwe - 2d3D, Inc. Device Driver Development, Outsourcing, Embedded Systems Cell: +27 82 565 4451 Snailmail: Tel: +27 21 761 7549 Block C, Antree Park Fax: +27 21 761 7648 Doncaster Road Email: [email protected] Kenilworth, 7700 Http: http://www.2d3d.com South Africa