intel_driver.h revision 03b705cf
103b705cfSriastradh#ifndef INTEL_DRIVER_H 203b705cfSriastradh#define INTEL_DRIVER_H 303b705cfSriastradh 403b705cfSriastradh#define INTEL_VERSION 4000 503b705cfSriastradh#define INTEL_NAME "intel" 603b705cfSriastradh#define INTEL_DRIVER_NAME "intel" 703b705cfSriastradh 803b705cfSriastradh#define INTEL_VERSION_MAJOR PACKAGE_VERSION_MAJOR 903b705cfSriastradh#define INTEL_VERSION_MINOR PACKAGE_VERSION_MINOR 1003b705cfSriastradh#define INTEL_VERSION_PATCH PACKAGE_VERSION_PATCHLEVEL 1103b705cfSriastradh 1203b705cfSriastradh#define PCI_CHIP_I810 0x7121 1303b705cfSriastradh#define PCI_CHIP_I810_DC100 0x7123 1403b705cfSriastradh#define PCI_CHIP_I810_E 0x7125 1503b705cfSriastradh#define PCI_CHIP_I815 0x1132 1603b705cfSriastradh 1703b705cfSriastradh#define PCI_CHIP_I830_M 0x3577 1803b705cfSriastradh#define PCI_CHIP_845_G 0x2562 1903b705cfSriastradh#define PCI_CHIP_I854 0x358E 2003b705cfSriastradh#define PCI_CHIP_I855_GM 0x3582 2103b705cfSriastradh#define PCI_CHIP_I865_G 0x2572 2203b705cfSriastradh 2303b705cfSriastradh#define PCI_CHIP_I915_G 0x2582 2403b705cfSriastradh#define PCI_CHIP_I915_GM 0x2592 2503b705cfSriastradh#define PCI_CHIP_E7221_G 0x258A 2603b705cfSriastradh#define PCI_CHIP_I945_G 0x2772 2703b705cfSriastradh#define PCI_CHIP_I945_GM 0x27A2 2803b705cfSriastradh#define PCI_CHIP_I945_GME 0x27AE 2903b705cfSriastradh#define PCI_CHIP_PINEVIEW_M 0xA011 3003b705cfSriastradh#define PCI_CHIP_PINEVIEW_G 0xA001 3103b705cfSriastradh#define PCI_CHIP_Q35_G 0x29B2 3203b705cfSriastradh#define PCI_CHIP_G33_G 0x29C2 3303b705cfSriastradh#define PCI_CHIP_Q33_G 0x29D2 3403b705cfSriastradh 3503b705cfSriastradh#define PCI_CHIP_G35_G 0x2982 3603b705cfSriastradh#define PCI_CHIP_I965_Q 0x2992 3703b705cfSriastradh#define PCI_CHIP_I965_G 0x29A2 3803b705cfSriastradh#define PCI_CHIP_I946_GZ 0x2972 3903b705cfSriastradh#define PCI_CHIP_I965_GM 0x2A02 4003b705cfSriastradh#define PCI_CHIP_I965_GME 0x2A12 4103b705cfSriastradh#define PCI_CHIP_GM45_GM 0x2A42 4203b705cfSriastradh#define PCI_CHIP_G45_E_G 0x2E02 4303b705cfSriastradh#define PCI_CHIP_G45_G 0x2E22 4403b705cfSriastradh#define PCI_CHIP_Q45_G 0x2E12 4503b705cfSriastradh#define PCI_CHIP_G41_G 0x2E32 4603b705cfSriastradh#define PCI_CHIP_B43_G 0x2E42 4703b705cfSriastradh#define PCI_CHIP_B43_G1 0x2E92 4803b705cfSriastradh 4903b705cfSriastradh#define PCI_CHIP_IRONLAKE_D_G 0x0042 5003b705cfSriastradh#define PCI_CHIP_IRONLAKE_M_G 0x0046 5103b705cfSriastradh 5203b705cfSriastradh#define PCI_CHIP_SANDYBRIDGE_GT1 0x0102 5303b705cfSriastradh#define PCI_CHIP_SANDYBRIDGE_GT2 0x0112 5403b705cfSriastradh#define PCI_CHIP_SANDYBRIDGE_GT2_PLUS 0x0122 5503b705cfSriastradh#define PCI_CHIP_SANDYBRIDGE_M_GT1 0x0106 5603b705cfSriastradh#define PCI_CHIP_SANDYBRIDGE_M_GT2 0x0116 5703b705cfSriastradh#define PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS 0x0126 5803b705cfSriastradh#define PCI_CHIP_SANDYBRIDGE_S_GT 0x010A 5903b705cfSriastradh 6003b705cfSriastradh#define PCI_CHIP_IVYBRIDGE_M_GT1 0x0156 6103b705cfSriastradh#define PCI_CHIP_IVYBRIDGE_M_GT2 0x0166 6203b705cfSriastradh#define PCI_CHIP_IVYBRIDGE_D_GT1 0x0152 6303b705cfSriastradh#define PCI_CHIP_IVYBRIDGE_D_GT2 0x0162 6403b705cfSriastradh#define PCI_CHIP_IVYBRIDGE_S_GT1 0x015a 6503b705cfSriastradh#define PCI_CHIP_IVYBRIDGE_S_GT2 0x016a 6603b705cfSriastradh 6703b705cfSriastradh#define PCI_CHIP_HASWELL_D_GT1 0x0402 6803b705cfSriastradh#define PCI_CHIP_HASWELL_D_GT2 0x0412 6903b705cfSriastradh#define PCI_CHIP_HASWELL_D_GT3 0x0422 7003b705cfSriastradh#define PCI_CHIP_HASWELL_M_GT1 0x0406 7103b705cfSriastradh#define PCI_CHIP_HASWELL_M_GT2 0x0416 7203b705cfSriastradh#define PCI_CHIP_HASWELL_M_GT3 0x0426 7303b705cfSriastradh#define PCI_CHIP_HASWELL_S_GT1 0x040A 7403b705cfSriastradh#define PCI_CHIP_HASWELL_S_GT2 0x041A 7503b705cfSriastradh#define PCI_CHIP_HASWELL_S_GT3 0x042A 7603b705cfSriastradh#define PCI_CHIP_HASWELL_B_GT1 0x040B 7703b705cfSriastradh#define PCI_CHIP_HASWELL_B_GT2 0x041B 7803b705cfSriastradh#define PCI_CHIP_HASWELL_B_GT3 0x042B 7903b705cfSriastradh#define PCI_CHIP_HASWELL_E_GT1 0x040E 8003b705cfSriastradh#define PCI_CHIP_HASWELL_E_GT2 0x041E 8103b705cfSriastradh#define PCI_CHIP_HASWELL_E_GT3 0x042E 8203b705cfSriastradh 8303b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_D_GT1 0x0A02 8403b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_D_GT2 0x0A12 8503b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_D_GT3 0x0A22 8603b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_M_GT1 0x0A06 8703b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_M_GT2 0x0A16 8803b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_M_GT3 0x0A26 8903b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_S_GT1 0x0A0A 9003b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_S_GT2 0x0A1A 9103b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_S_GT3 0x0A2A 9203b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_B_GT1 0x0A0B 9303b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_B_GT2 0x0A1B 9403b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_B_GT3 0x0A2B 9503b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_E_GT1 0x0A0E 9603b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_E_GT2 0x0A1E 9703b705cfSriastradh#define PCI_CHIP_HASWELL_ULT_E_GT3 0x0A2E 9803b705cfSriastradh 9903b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_D_GT1 0x0D02 10003b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_D_GT2 0x0D12 10103b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_D_GT3 0x0D22 10203b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_M_GT1 0x0D06 10303b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_M_GT2 0x0D16 10403b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_M_GT3 0x0D26 10503b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_S_GT1 0x0D0A 10603b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_S_GT2 0x0D1A 10703b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_S_GT3 0x0D2A 10803b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_B_GT1 0x0D0B 10903b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_B_GT2 0x0D1B 11003b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_B_GT3 0x0D2B 11103b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_E_GT1 0x0D0E 11203b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_E_GT2 0x0D1E 11303b705cfSriastradh#define PCI_CHIP_HASWELL_CRW_E_GT3 0x0D2E 11403b705cfSriastradh 11503b705cfSriastradhstruct intel_device_info { 11603b705cfSriastradh int gen; 11703b705cfSriastradh}; 11803b705cfSriastradh 11903b705cfSriastradhvoid intel_detect_chipset(ScrnInfoPtr scrn, 12003b705cfSriastradh EntityInfoPtr ent, 12103b705cfSriastradh struct pci_device *pci); 12203b705cfSriastradh 12303b705cfSriastradhint intel_open_device(int entity_num, const struct pci_device *pci, const char *path); 12403b705cfSriastradhint intel_get_device(ScrnInfoPtr scrn); 12503b705cfSriastradhconst char *intel_get_device_name(ScrnInfoPtr scrn); 12603b705cfSriastradhint intel_get_master(ScrnInfoPtr scrn); 12703b705cfSriastradhint intel_put_master(ScrnInfoPtr scrn); 12803b705cfSriastradhvoid intel_put_device(ScrnInfoPtr scrn); 12903b705cfSriastradh 13003b705cfSriastradhvoid __intel_uxa_release_device(ScrnInfoPtr scrn); 13103b705cfSriastradh 13203b705cfSriastradh#define hosted() (0) 13303b705cfSriastradh 13403b705cfSriastradh#endif /* INTEL_DRIVER_H */ 135