blob: a1ca6236c33df228d2f76f3b06c74dcff07142aa [file] [log] [blame]
// Copyright 2018 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.
library zircon.device.block;
/// Flag advertising trim support.
const uint32 BLOCK_TRIM_SUPPORT = 0x00000001;
[repr = "C"]
struct BlockInfo {
/// The number of blocks in this block device.
uint64 block_count;
/// The size of a single block.
uint32 block_size;
/// Max size in bytes per transfer.
/// May be BLOCK_MAXRANSFER_UNBOUNDED if there
/// is no restriction.
uint32 max_transfer_size;
uint32 flags;
uint32 reserved;
};