linux/drivers/gpu/drm/qxl/qxl_object.c

/*
 * Copyright 2013 Red Hat Inc.
 *
 * 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 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 COPYRIGHT HOLDER(S) OR AUTHOR(S) 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: Dave Airlie
 *          Alon Levy
 */

#include <linux/iosys-map.h>
#include <linux/io-mapping.h>

#include "qxl_drv.h"
#include "qxl_object.h"

static void qxl_ttm_bo_destroy(struct ttm_buffer_object *tbo)
{}

bool qxl_ttm_bo_is_qxl_bo(struct ttm_buffer_object *bo)
{}

void qxl_ttm_placement_from_domain(struct qxl_bo *qbo, u32 domain)
{}

static const struct drm_gem_object_funcs qxl_object_funcs =;

int qxl_bo_create(struct qxl_device *qdev, unsigned long size,
		  bool kernel, bool pinned, u32 domain, u32 priority,
		  struct qxl_surface *surf,
		  struct qxl_bo **bo_ptr)
{}

int qxl_bo_vmap_locked(struct qxl_bo *bo, struct iosys_map *map)
{}

int qxl_bo_pin_and_vmap(struct qxl_bo *bo, struct iosys_map *map)
{}

void *qxl_bo_kmap_atomic_page(struct qxl_device *qdev,
			      struct qxl_bo *bo, int page_offset)
{}

void qxl_bo_vunmap_locked(struct qxl_bo *bo)
{}

int qxl_bo_vunmap_and_unpin(struct qxl_bo *bo)
{}

void qxl_bo_kunmap_atomic_page(struct qxl_device *qdev,
			       struct qxl_bo *bo, void *pmap)
{}

void qxl_bo_unref(struct qxl_bo **bo)
{}

struct qxl_bo *qxl_bo_ref(struct qxl_bo *bo)
{}

int qxl_bo_pin_locked(struct qxl_bo *bo)
{}

void qxl_bo_unpin_locked(struct qxl_bo *bo)
{}

/*
 * Reserve the BO before pinning the object.  If the BO was reserved
 * beforehand, use the internal version directly qxl_bo_pin_locked.
 *
 */
int qxl_bo_pin(struct qxl_bo *bo)
{}

/*
 * Reserve the BO before pinning the object.  If the BO was reserved
 * beforehand, use the internal version directly qxl_bo_unpin_locked.
 *
 */
int qxl_bo_unpin(struct qxl_bo *bo)
{}

void qxl_bo_force_delete(struct qxl_device *qdev)
{}

int qxl_bo_init(struct qxl_device *qdev)
{}

void qxl_bo_fini(struct qxl_device *qdev)
{}

int qxl_bo_check_id(struct qxl_device *qdev, struct qxl_bo *bo)
{}

int qxl_surf_evict(struct qxl_device *qdev)
{}

int qxl_vram_evict(struct qxl_device *qdev)
{}