Rev 5060 | Rev 5354 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5060 | Rev 5097 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | * |
22 | * |
23 | * Authors: |
23 | * Authors: |
24 | * Eric Anholt |
24 | * Eric Anholt |
25 | */ |
25 | */ |
Line -... | Line 26... | ||
- | 26 | ||
26 | 27 | #include |
|
27 | #include |
28 | #include |
28 | #include |
29 | #include |
29 | #include |
30 | #include |
30 | #include |
31 | #include |
Line 801... | Line 802... | ||
801 | 802 | ||
802 | static const struct drm_encoder_funcs intel_crt_enc_funcs = { |
803 | static const struct drm_encoder_funcs intel_crt_enc_funcs = { |
803 | .destroy = intel_encoder_destroy, |
804 | .destroy = intel_encoder_destroy, |
Line -... | Line 805... | ||
- | 805 | }; |
|
- | 806 | ||
- | 807 | static int intel_no_crt_dmi_callback(const struct dmi_system_id *id) |
|
- | 808 | { |
|
- | 809 | DRM_INFO("Skipping CRT initialization for %s\n", id->ident); |
|
- | 810 | return 1; |
|
- | 811 | } |
|
- | 812 | ||
- | 813 | static const struct dmi_system_id intel_no_crt[] = { |
|
- | 814 | { |
|
- | 815 | .callback = intel_no_crt_dmi_callback, |
|
- | 816 | .ident = "ACER ZGB", |
|
- | 817 | .matches = { |
|
- | 818 | DMI_MATCH(DMI_SYS_VENDOR, "ACER"), |
|
- | 819 | DMI_MATCH(DMI_PRODUCT_NAME, "ZGB"), |
|
- | 820 | }, |
|
- | 821 | }, |
|
- | 822 | { |
|
- | 823 | .callback = intel_no_crt_dmi_callback, |
|
- | 824 | .ident = "DELL XPS 8700", |
|
- | 825 | .matches = { |
|
- | 826 | DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), |
|
- | 827 | DMI_MATCH(DMI_PRODUCT_NAME, "XPS 8700"), |
|
- | 828 | }, |
|
- | 829 | }, |
|
- | 830 | { } |
|
804 | }; |
831 | }; |
805 | 832 | ||
806 | void intel_crt_init(struct drm_device *dev) |
833 | void intel_crt_init(struct drm_device *dev) |
807 | { |
834 | { |
808 | struct drm_connector *connector; |
835 | struct drm_connector *connector; |
809 | struct intel_crt *crt; |
836 | struct intel_crt *crt; |
Line -... | Line 837... | ||
- | 837 | struct intel_connector *intel_connector; |
|
- | 838 | struct drm_i915_private *dev_priv = dev->dev_private; |
|
- | 839 | ||
- | 840 | /* Skip machines without VGA that falsely report hotplug events */ |
|
810 | struct intel_connector *intel_connector; |
841 | if (dmi_check_system(intel_no_crt)) |
811 | struct drm_i915_private *dev_priv = dev->dev_private; |
842 | return; |
812 | 843 | ||
Line 813... | Line 844... | ||
813 | crt = kzalloc(sizeof(struct intel_crt), GFP_KERNEL); |
844 | crt = kzalloc(sizeof(struct intel_crt), GFP_KERNEL); |