use core::mem::MaybeUninit;

use libk::dma::DmaBuffer;

use crate::error::UsbError;

pub mod control;
pub mod normal;

pub trait UsbGenericPipe: Send + Sync {
    fn allocate_dma_buffer(&self, len: usize) -> Result<DmaBuffer<[MaybeUninit<u8>]>, UsbError>;
}
