summaryrefslogtreecommitdiff
path: root/devio
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-09 19:02:29 +0000
committerMiles Bader <miles@gnu.org>1995-04-09 19:02:29 +0000
commitde64ad5751a536bfa7c2874f551d70fda1b8a645 (patch)
tree7038e21174f56b2bfe24c1ce23301faf9f36f9fc /devio
parent8a24e406357a2ad52625fcf0e588f14e9bf1918c (diff)
Add a new window field, max_pos. Rename the location field `pos'.
Diffstat (limited to 'devio')
-rw-r--r--devio/window.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/devio/window.h b/devio/window.h
index 4bd6301c..c15ebd9e 100644
--- a/devio/window.h
+++ b/devio/window.h
@@ -33,7 +33,9 @@ struct window
vm_address_t buffer;
/* The device offset of the window. */
- vm_offset_t location;
+ vm_offset_t pos;
+ /* The end of the device. */
+ vm_offset_t max_pos;
/* The length of the window (should be a multiple of __vm_page_size). If
this is 0, this window isn't allocated. */
@@ -55,7 +57,7 @@ struct window
/* Create a VM window onto the memory object MEMOBJ, and return it in WIN.
MIN_SIZE and MAX_SIZE are the minimum and maximum sizes that the window
will shrink/grow to. */
-error_t window_create(mach_port_t memobj,
+error_t window_create(mach_port_t memobj, vm_offset_t max_pos,
vm_size_t min_size, vm_size_t max_size, int read_only,
struct window **win);