]> xenbits.xensource.com Git - osstest/seabios.git/commit
block: Introduce default_process_op() with common command handling codes
authorKevin O'Connor <kevin@koconnor.net>
Tue, 7 Jul 2015 13:01:52 +0000 (09:01 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 14 Jul 2015 18:40:07 +0000 (14:40 -0400)
commit85c72c6febbf7f4654c9ac57a8506dc5e1a5cba1
treea15ca0dc8bdff1589f620c5332b424b0a0a8d510
parentc7fa7890200afd86e42813ce1bdbc1b32fcfccc5
block: Introduce default_process_op() with common command handling codes

Most disk drivers only implement a couple of the available bios
commands.  Unify the common fallback handling code into a new function
default_process_op() to reduce boiler-plate code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/block.c
src/block.h
src/cdrom.c
src/hw/ahci.c
src/hw/ata.c
src/hw/blockcmd.c
src/hw/ramdisk.c
src/hw/sdcard.c
src/hw/virtio-blk.c