vme_adapter(D3X)
vme_adapter - determine VME adapter
As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.
NAME vme_adapter - determine VME adapter SYNOPSIS int vme_adapter(void *addr); DESCRIPTION This function accepts a kernel virtual address mapping any VME address, and returns VME adapter number where the device responding the given address is connected. This function is available on Challenge and Onyx systems. Normally device drivers have access to VME Bus adapter number their device is attached to, at edtinit time through e_adap field in edt structure. vme_adapter function can be used in circumstances where it becomes necessary to calculate VME bus adapter number, given a kernel virtual address (generated using pio_map* functions) mapping a VME bus address..P This adapter number is required by such functions as dma_mapalloc(D3X). Return Values If the passed-in address is a kernel virtual address mapping valid VME address, vme_adapter returns the adapter number; otherwise, it returns -1. See Also dma_mapalloc(D3X)