diff options
Diffstat (limited to 'drivers/staging/psb/psb_fb.h')
-rw-r--r-- | drivers/staging/psb/psb_fb.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/drivers/staging/psb/psb_fb.h b/drivers/staging/psb/psb_fb.h new file mode 100644 index 000000000000..f77e63f0a0a0 --- /dev/null +++ b/drivers/staging/psb/psb_fb.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2008, Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Authors: + * Eric Anholt <eric@anholt.net> + * + **/ + +#ifndef _PSB_FB_H_ +#define _PSB_FB_H_ + +struct psb_framebuffer { + struct drm_framebuffer base; + struct address_space *addr_space; + struct ttm_buffer_object *bo; + struct ttm_bo_kmap_obj kmap; + uint64_t offset; +}; + +#define to_psb_fb(x) container_of(x, struct psb_framebuffer, base) + + +extern int intel_connector_clones(struct drm_device *dev, int type_mask); + +extern int psb_2d_submit(struct drm_psb_private *, uint32_t *, uint32_t); + +#endif + |