blob: 144d59cc921cd15d5da25fd04aaca3952464e437 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "mmio-space.h"
#include <zx/vmo.h>
namespace i915 {
class Device;
class Gtt {
public:
void Init(MmioSpace* mmio_space, uint32_t gtt_size);
bool Insert(MmioSpace* mmio_space, zx::vmo* buffer,
uint32_t length, uint32_t pte_padding, uint32_t* gm_addr_out);
};
} // namespace i915