-typedef int vm_external_state_t;
-#define VM_EXTERNAL_STATE_EXISTS 1
-#define VM_EXTERNAL_STATE_UNKNOWN 2
-#define VM_EXTERNAL_STATE_ABSENT 3
-
-/*
- * Useful macros
- */
-#define stob(s) ((atop_32((s)) + 07) >> 3)
-
-/*
- * Routines exported by this module.
- */
- /* Initialize the module */
-extern void vm_external_module_initialize(void);
-
-
-extern vm_external_map_t vm_external_create(
- /* Create a vm_external_map_t */
- vm_offset_t size);
-
-extern void vm_external_destroy(
- /* Destroy one */
- vm_external_map_t map,
- vm_size_t size);
-
-extern vm_size_t vm_external_map_size(
- /* Return size of map in bytes */
- vm_offset_t size);
-
-extern void vm_external_copy(
- /* Copy one into another */
- vm_external_map_t old_map,
- vm_size_t old_size,
- vm_external_map_t new_map);
-
-extern void vm_external_state_set(
- /* Set state of a page to
- * VM_EXTERNAL_STATE_EXISTS */
- vm_external_map_t map,
- vm_offset_t offset);
-
-extern void vm_external_state_clr(
- /* clear page state
- */
- vm_external_map_t map,
- vm_offset_t offset);
-
-#define vm_external_state_get(map, offset) \
- (((map) != VM_EXTERNAL_NULL) ? \
- _vm_external_state_get((map), (offset)) : \
- VM_EXTERNAL_STATE_UNKNOWN)
- /* Retrieve the state for a
- * given page, if known. */
-
-extern vm_external_state_t _vm_external_state_get(
- /* HIDDEN routine */
- vm_external_map_t map,
- vm_offset_t offset);