blob: 835410415e7ef8ebf9bf6e51fe97b4bf4e999468 [file] [log] [blame]
// Copyright 2021 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.
#ifndef SRC_DEVICES_LIB_BLOCK_BLOCK_H_
#define SRC_DEVICES_LIB_BLOCK_BLOCK_H_
#include <fuchsia/hardware/block/driver/c/banjo.h>
#include "src/devices/block/drivers/core/block-fifo.h"
static_assert(sizeof(block_fifo_request_t) == sizeof(block_fifo_response_t),
"FIFO messages are the same size in both directions");
#define BLOCK_FIFO_ESIZE (sizeof(block_fifo_request_t))
#define BLOCK_FIFO_MAX_DEPTH (4096 / BLOCK_FIFO_ESIZE)
#endif // SRC_DEVICES_LIB_BLOCK_BLOCK_H_