diff options
author | Alan Cox <alan@linux.intel.com> | 2011-07-05 15:40:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-05 08:20:41 -0700 |
commit | a95dfc1e1ce6d50129252d70078813a31ff7cc56 (patch) | |
tree | 7e01152474d89347e41f1c1f043266b9f739e9b0 /drivers/staging/gma500/psb_drv.h | |
parent | 89e5d557171c5ce12c6f149633538582fe10ebb0 (diff) | |
download | op-kernel-dev-a95dfc1e1ce6d50129252d70078813a31ff7cc56.zip op-kernel-dev-a95dfc1e1ce6d50129252d70078813a31ff7cc56.tar.gz |
gma500: move configuration bits into the psb_ops structure
We can stuff things like the number of pipes and the SGX offset away in
here as well and clean up more conditional code.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/gma500/psb_drv.h')
-rw-r--r-- | drivers/staging/gma500/psb_drv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/gma500/psb_drv.h b/drivers/staging/gma500/psb_drv.h index 4bc5e8d..7e6f178 100644 --- a/drivers/staging/gma500/psb_drv.h +++ b/drivers/staging/gma500/psb_drv.h @@ -619,11 +619,16 @@ struct drm_psb_private { struct psb_ops { const char *name; unsigned int accel_2d:1; + int pipes; /* Number of output pipes */ + int sgx_offset; /* Base offset of SGX device */ /* Sub functions */ struct drm_crtc_helper_funcs const *crtc_helper; struct drm_crtc_funcs const *crtc_funcs; + /* Setup hooks */ + int (*chip_setup)(struct drm_device *dev); + /* Display management hooks */ int (*output_init)(struct drm_device *dev); /* Power management hooks */ |