7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * Copyright 2007 Nouveau Project
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * copy of this software and associated documentation files (the "Software"),
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * to deal in the Software without restriction, including without limitation
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * and/or sell copies of the Software, and to permit persons to whom the
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * Software is furnished to do so, subject to the following conditions:
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * The above copyright notice and this permission notice shall be included in
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * all copies or substantial portions of the Software.
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync * SOFTWARE.
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync/* Relocation/Buffer type flags */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync#define NOUVEAU_BO_RDWR (NOUVEAU_BO_RD | NOUVEAU_BO_WR)
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsync /* Available when buffer is pinned *only* */
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_new(struct nouveau_device *, uint32_t flags, int align, int size,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_new_tile(struct nouveau_device *, uint32_t flags, int align,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_user(struct nouveau_device *, void *ptr, int size,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_wrap(struct nouveau_device *, uint32_t handle, struct nouveau_bo **);
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_handle_get(struct nouveau_bo *, uint32_t *);
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_handle_ref(struct nouveau_device *, uint32_t handle,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_ref(struct nouveau_bo *, struct nouveau_bo **);
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_map_range(struct nouveau_bo *, uint32_t delta, uint32_t size,
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_map_flush(struct nouveau_bo *, uint32_t delta, uint32_t size);
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_map(struct nouveau_bo *, uint32_t flags);
7a0d67332f33bc21290d63bc7c8150b0cf0a4b21vboxsyncnouveau_bo_pin(struct nouveau_bo *, uint32_t flags);