diff options
author | Johan Jonker | 2023-10-18 16:01:10 +0200 |
---|---|---|
committer | Kever Yang | 2023-10-24 15:55:17 +0800 |
commit | 81bd22e935dc9e5f38863a674d50cb3a804f0804 (patch) | |
tree | 566a7b2d380fec25fd56c3e5338420821782b195 /include/blk.h | |
parent | 80201eccaa3b2e5068f0d707682e73bcbee1f149 (diff) |
rockchip: block: blk-uclass: add bounce buffer flag to blk_desc
Currently bounce buffer support is enabled for all block devices
when available. Add a flag to blk_desc to enable only on demand.
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'include/blk.h')
-rw-r--r-- | include/blk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/blk.h b/include/blk.h index 76bd5baf995..7c7cf7f2b10 100644 --- a/include/blk.h +++ b/include/blk.h @@ -68,6 +68,7 @@ struct blk_desc { /* device can use 48bit addr (ATA/ATAPI v7) */ bool lba48; unsigned char atapi; /* Use ATAPI protocol */ + unsigned char bb; /* Use bounce buffer */ lbaint_t lba; /* number of blocks */ unsigned long blksz; /* block size */ int log2blksz; /* for convenience: log2(blksz) */ |