2018-05-23 19:59:11 +00:00
|
|
|
// Copyright 2018 The Chromium OS Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
//! Manages system resources that can be allocated to VMs and their devices.
|
|
|
|
|
2018-06-07 22:42:41 +00:00
|
|
|
#[cfg(feature = "wl-dmabuf")]
|
|
|
|
extern crate gpu_buffer;
|
|
|
|
extern crate libc;
|
2018-10-03 20:04:47 +00:00
|
|
|
extern crate msg_socket;
|
2019-01-11 17:22:08 +00:00
|
|
|
extern crate sys_util;
|
2018-05-31 01:09:59 +00:00
|
|
|
|
2018-05-23 19:59:11 +00:00
|
|
|
mod address_allocator;
|
2018-06-07 22:42:41 +00:00
|
|
|
mod gpu_allocator;
|
2018-05-31 01:09:59 +00:00
|
|
|
mod system_allocator;
|
2018-05-23 19:59:11 +00:00
|
|
|
|
|
|
|
pub use address_allocator::AddressAllocator;
|
2018-06-07 22:42:41 +00:00
|
|
|
pub use gpu_allocator::{GpuMemoryAllocator, GpuMemoryDesc, GpuMemoryPlaneDesc};
|
2018-05-31 01:09:59 +00:00
|
|
|
pub use system_allocator::{AddressRanges, SystemAllocator};
|