[Intel-gfx] [PATCH 2/6 v2] drm/i915: Add EXPORT_SYMBOL()s needed for sharing VDC code
Richard Purdie
rpurdie at linux.intel.com
Wed May 13 18:02:01 CEST 2009
Add EXPORT_SYMBOLS where necessary to allow sharing of the intel_vdc
code.
Signed-off-by: Richard Purdie <rpurdie at linux.intel.com>
---
[resent as the original version was missing a couple of symbol
additions]
Index: git/drivers/gpu/drm/i915/intel_modes.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_modes.c 2009-05-12 18:27:35.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_modes.c 2009-05-13 15:59:59.000000000 +0100
@@ -82,3 +82,4 @@
return ret;
}
+EXPORT_SYMBOL(intel_ddc_get_modes);
Index: git/drivers/gpu/drm/i915/intel_i2c.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_i2c.c 2009-05-13 15:50:22.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_i2c.c 2009-05-13 15:50:22.000000000 +0100
@@ -163,6 +163,7 @@
kfree(chan);
return NULL;
}
+EXPORT_SYMBOL(intel_i2c_create);
/**
* intel_i2c_destroy - unregister and free i2c bus resources
@@ -178,3 +179,4 @@
i2c_del_adapter(&chan->adapter);
kfree(chan);
}
+EXPORT_SYMBOL(intel_i2c_destroy);
Index: git/drivers/gpu/drm/i915/i915_suspend.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/i915_suspend.c 2009-05-13 15:50:22.000000000 +0100
+++ git/drivers/gpu/drm/i915/i915_suspend.c 2009-05-13 15:50:22.000000000 +0100
@@ -368,6 +368,7 @@
return 0;
}
+EXPORT_SYMBOL(i915_save_state);
int i915_restore_state(struct drm_device *dev)
{
@@ -538,4 +539,5 @@
return 0;
}
+EXPORT_SYMBOL(i915_restore_state);
Index: git/drivers/gpu/drm/i915/intel_crt.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_crt.c 2009-05-13 15:50:22.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_crt.c 2009-05-13 15:50:22.000000000 +0100
@@ -314,3 +314,5 @@
drm_sysfs_connector_add(connector);
}
+EXPORT_SYMBOL(intel_crt_init);
+
Index: git/drivers/gpu/drm/i915/intel_lvds.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_lvds.c 2009-05-13 15:50:22.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_lvds.c 2009-05-13 15:50:22.000000000 +0100
@@ -518,3 +518,4 @@
drm_connector_cleanup(connector);
kfree(connector);
}
+EXPORT_SYMBOL(intel_lvds_init);
Index: git/drivers/gpu/drm/i915/intel_fb.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_fb.c 2009-05-12 18:27:35.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_fb.c 2009-05-13 16:00:00.000000000 +0100
@@ -856,6 +856,7 @@
{
drm_crtc_helper_set_config(&kernelfb_mode);
}
+EXPORT_SYMBOL(intelfb_restore);
static void intelfb_sysrq(int dummy1, struct tty_struct *dummy3)
{
Index: git/drivers/gpu/drm/i915/intel_display.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_display.c 2009-05-13 15:50:22.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_display.c 2009-05-13 16:00:02.000000000 +0100
@@ -641,6 +641,7 @@
/* Wait for 20ms, i.e. one cycle at 50hz. */
mdelay(20);
}
+EXPORT_SYMBOL(intel_wait_for_vblank);
static int
intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
@@ -936,6 +937,7 @@
/* lvds has its own version of prepare see intel_lvds_prepare */
encoder_funcs->dpms(encoder, DRM_MODE_DPMS_OFF);
}
+EXPORT_SYMBOL(intel_encoder_prepare);
void intel_encoder_commit (struct drm_encoder *encoder)
{
@@ -943,6 +945,7 @@
/* lvds has its own version of commit see intel_lvds_commit */
encoder_funcs->dpms(encoder, DRM_MODE_DPMS_ON);
}
+EXPORT_SYMBOL(intel_encoder_commit);
static bool intel_crtc_mode_fixup(struct drm_crtc *crtc,
struct drm_display_mode *mode,
@@ -1479,6 +1482,7 @@
intel_crtc->lut_g[regno] = green >> 8;
intel_crtc->lut_b[regno] = blue >> 8;
}
+EXPORT_SYMBOL(intel_crtc_fb_gamma_set);
static void intel_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green,
u16 *blue, uint32_t size)
@@ -1601,6 +1605,7 @@
return crtc;
}
+EXPORT_SYMBOL(intel_get_load_detect_pipe);
void intel_release_load_detect_pipe(struct intel_output *intel_output, int dpms_mode)
{
@@ -1624,6 +1629,7 @@
crtc_funcs->dpms(crtc, dpms_mode);
}
}
+EXPORT_SYMBOL(intel_release_load_detect_pipe);
/* Returns the clock of the currently programmed mode of the given pipe. */
static int intel_crtc_clock_get(struct drm_device *dev, struct drm_crtc *crtc)
@@ -1744,6 +1750,7 @@
return mode;
}
+EXPORT_SYMBOL(intel_crtc_mode_get);
static void intel_crtc_destroy(struct drm_crtc *crtc)
{
@@ -1771,7 +1778,7 @@
};
-static void intel_crtc_init(struct drm_device *dev, int pipe)
+void intel_crtc_init(struct drm_device *dev, int pipe)
{
struct intel_crtc *intel_crtc;
int i;
@@ -1804,6 +1811,7 @@
}
}
+EXPORT_SYMBOL(intel_crtc_init);
struct drm_crtc *intel_get_crtc_from_pipe(struct drm_device *dev, int pipe)
{
@@ -1816,8 +1824,9 @@
}
return crtc;
}
+EXPORT_SYMBOL(intel_get_crtc_from_pipe);
-static int intel_connector_clones(struct drm_device *dev, int type_mask)
+int intel_connector_clones(struct drm_device *dev, int type_mask)
{
int index_mask = 0;
struct drm_connector *connector;
@@ -1831,7 +1840,7 @@
}
return index_mask;
}
-
+EXPORT_SYMBOL(intel_connector_clones);
static void intel_setup_outputs(struct drm_device *dev)
{
@@ -1970,7 +1979,7 @@
return 0;
}
-
+EXPORT_SYMBOL(intel_framebuffer_create);
static struct drm_framebuffer *
intel_user_framebuffer_create(struct drm_device *dev,
@@ -2040,12 +2049,13 @@
intel_setup_outputs(dev);
}
+EXPORT_SYMBOL(intel_modeset_init);
void intel_modeset_cleanup(struct drm_device *dev)
{
drm_mode_config_cleanup(dev);
}
-
+EXPORT_SYMBOL(intel_modeset_cleanup);
/* current intel driver doesn't take advantage of encoders
always give back the encoder for the connector
@@ -2056,3 +2066,5 @@
return &intel_output->enc;
}
+EXPORT_SYMBOL(intel_best_encoder);
+
Index: git/drivers/gpu/drm/i915/intel_sdvo.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_sdvo.c 2009-05-13 15:50:22.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_sdvo.c 2009-05-13 15:59:57.000000000 +0100
@@ -1840,3 +1840,5 @@
return false;
}
+EXPORT_SYMBOL(intel_sdvo_init);
+
Index: git/drivers/gpu/drm/i915/intel_dvo.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_dvo.c 2009-05-13 16:00:34.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_dvo.c 2009-05-13 16:01:35.000000000 +0100
@@ -492,3 +492,4 @@
free_intel:
kfree(intel_output);
}
+EXPORT_SYMBOL(intel_dvo_init);
Index: git/drivers/gpu/drm/i915/intel_hdmi.c
===================================================================
--- git.orig/drivers/gpu/drm/i915/intel_hdmi.c 2009-05-13 16:00:30.000000000 +0100
+++ git/drivers/gpu/drm/i915/intel_hdmi.c 2009-05-13 16:01:40.000000000 +0100
@@ -295,3 +295,4 @@
return;
}
+EXPORT_SYMBOL(intel_hdmi_init);
More information about the Intel-gfx
mailing list