wbadaddr man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



wbadaddr(D3X)							 wbadaddr(D3X)

NAME
     wbadaddr - test for valid output bus address
     wbadaddr_val - test for valid output bus address and write value

SYNOPSIS
     #include <sys/systm.h>
     int wbadaddr(volatile void *addr, int size);
     int wbadaddr_val(volatile void *addr, int size, void *ptr);

   Arguments
     addr The physical memory address of the location to be tested.

     size The size in bytes of the location to be written: 1, 2, 4, or 8.

     ptr  A pointer to a value of the appropriate size (char, short, int, or
	  long long) whose value is written to the given location.

DESCRIPTION
     Typically these functions are called from a VME device driver's init(D2)
     or edtinit(D2) function to determine whether a device is present in the
     system.

     Call wbadaddr to determine whether you can write to location addr.	 It
     writes a binary zero of the specified size.

     Call wbadaddr_val when you also want to specify the data to be written.

     Use badaddr(D3X) to test a location for input only.

NOTES
     If an invalid size is passed a system panic results.

     For some systems, pio_wbadaddr(D3X) must be used in order to perform
     address mapping.

     It is possible that the wbadaddr_val(D3X) function may change or be
     removed in the future.

     These routines may not be called from an interrupt handler, or routines
     that may be called from an interrupt handler.

   Return Values
     Both functions return 0 when addr is writeable.  Otherwise, they return
     1.

   See Also
     badaddr(D3X), edtinit(D2), pio_wbadaddr(D3X).

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net