diff options
author | Michael Brown | 2007-07-08 15:11:07 +0200 |
---|---|---|
committer | Michael Brown | 2007-07-08 15:11:07 +0200 |
commit | b34d4d044978714abe771ca8d7d07153ad048d82 (patch) | |
tree | 017d6c4e37f0bc49df6ae461074a41691e08013f /src/core/hw.c | |
parent | Kill off unused request() method in data-xfer interface. (diff) | |
download | ipxe-b34d4d044978714abe771ca8d7d07153ad048d82.tar.gz ipxe-b34d4d044978714abe771ca8d7d07153ad048d82.tar.xz ipxe-b34d4d044978714abe771ca8d7d07153ad048d82.zip |
Separate the "is data ready" function of xfer_seek() into an
xfer_window() function, which can return a scalar rather than a
boolean.
Diffstat (limited to 'src/core/hw.c')
-rw-r--r-- | src/core/hw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hw.c b/src/core/hw.c index 2cb912b1..3502dbfb 100644 --- a/src/core/hw.c +++ b/src/core/hw.c @@ -37,6 +37,7 @@ static struct xfer_interface_operations hw_xfer_operations = { .close = hw_xfer_close, .vredirect = ignore_xfer_vredirect, .seek = ignore_xfer_seek, + .window = unlimited_xfer_window, .deliver_iob = xfer_deliver_as_raw, .deliver_raw = ignore_xfer_deliver_raw, }; @@ -45,7 +46,7 @@ static void hw_step ( struct process *process ) { struct hw *hw = container_of ( process, struct hw, process ); int rc; - if ( xfer_ready ( &hw->xfer ) == 0 ) { + if ( xfer_window ( &hw->xfer ) ) { rc = xfer_deliver_raw ( &hw->xfer, hw_msg, sizeof ( hw_msg ) ); hw_finished ( hw, rc ); } |