NAME

vme_location_monitor_create - Creates a location monitor image.

SYNOPSIS

int vme_location_monitor_create ( vme_bus_handle_t bus_handle, vme_lm_handle_t * monitor_handle, uint64_t vme_addr, int as, int reserved, int flags )

PARAMETERS

vme_bus_handle_t bus_handle

Handle allocated by vme_init.

vme_lm_handle_t * monitor_handle

Pointer to the location monitor handle to allocate.

uint64_t vme_addr

VMEbus address.

int as

VMEbus address space. Valid values are:

- VME_A32
- VME_A24
- VME_A16
int reserved

Reserved for future use.

int flags

Flags indicating special window features. A value of 0 indicates that driver default values will be used. If a value is specified, it must be a bitwise "OR" of the following values for the Tundra Universe II device.

One of the following address modes can be used. If a mode is not specified, the window responds to accesses in either mode.

- VME_CTL_PROGRAM_ONLY - Respond to program address modifiers only.
- VME_CTL_DATA_ONLY - Respond to data address modifiers only.

One of the following address privileges can be used. If a privledge is not specified, the window responds to accesses of either privledge.

- VME_CTL_SUPER_ONLY - Respond to supervisor address modifiers only.
- VME_CTL_USER_ONLY - Respond to user address modifiers only.

DESCRIPTION

Creates a location monitor image.

RETURNS

0 on success or -1 on failure

NOTES

Only one location monitor image can exist at any time.

SEE ALSO

vme_location_monitor_release(3)