xtalk_get(D3)xtalk_get(D3)NAME
xtalk_intr_dev_get - get XIO connect point from intr
xtalk_intr_cpu_get - get target cpu from intr
xtalk_intr_vector_get - get interrupt vector number
xtalk_intr_target_get - get interrupt target port number
xtalk_intr_addr_get - get interrupt target address
xtalk_intr_sfarg_get - get setfunc argument
xtalk_pio_dev_get - get connect point
xtalk_pio_target_get - get PIO target widget number
xtalk_pio_xtalk_addr_get - get PIO target minimum address
xtalk_pio_mapsz_get - get size of PIO target area
xtalk_pio_kvaddr_get - get cached CPU address
xtalk_dma_dev_get - get connect point
xtalk_dma_target_get - get XIO port number of DMA target
xwidget_info_get - get xtalk info structure
xwidget_info_dev_get - get XIO connection point
xwidget_info_id_get - get XIO port number
xwidget_info_master_get - get vertex of master device
xwidget_info_masterid_get - get XIO port of master
xwidget_info_mfg_num_get - get manufacturer ID number
xwidget_info_part_num_get - get board part number
SYNOPSIS
#include <sys/xtalk/xtalk.h>
#include <sys/xtalk/xwidget.h>
vertex_hdl_t
xtalk_intr_dev_get(xtalk_intr_t intr)
vertex_hdl_t
xtalk_intr_cpu_get(xtalk_intr_t intr)
xtalk_intr_vector_t
xtalk_intr_vector_get(xtalk_intr_t intr)
xwidgetnum_t
xtalk_intr_target_get(xtalk_intr_t intr)
iopaddr_t
xtalk_intr_addr_get(xtalk_intr_t intr)
void *
xtalk_intr_sfarg_get(xtalk_intr_t intr)
Page 1
xtalk_get(D3)xtalk_get(D3)
vertex_hdl_t
xtalk_pio_dev_get(xtalk_piomap_t piomap)
xwidgetnum_t
xtalk_pio_target_get(xtalk_piomap_t piomap)
iopaddr_t
xtalk_pio_xtalk_addr_get(xtalk_piomap_t piomap)
ulong
xtalk_pio_mapsz_get(xtalk_piomap_t piomap)
caddr_t
xtalk_pio_kvaddr_get(xtalk_piomap_t piomap)
vertex_hdl_t
xtalk_dma_dev_get(xtalk_dmamap_t dmamap)
xwidgetnum_t
xtalk_dma_target_get(xtalk_dmamap_t dmamap)
xwidget_info_t
xwidget_info_get(vertex_hdl_t vhdl)
vertex_hdl_t
xwidget_info_dev_get(xwidget_info_t info)
xwidgetnum_t
xwidget_info_id_get(xwidget_info_t info)
vertex_hdl_t
xwidget_info_master_get(xwidget_info_t info)
xwidgetnum_t
xwidget_info_masterid_get(xwidget_info_t info)
xwidget_mfg_num_t
xwidget_info_mfg_num_get(xwidget_info_t info)
Page 2
xtalk_get(D3)xtalk_get(D3)
xwidget_part_num_t
xwidget_info_part_num_get(xwidget_info_t info)
Arguments
intr is an xtalk_intr_t that was created by xtalk_intr_alloc
piomap is an xtalk_piomap_t that was created by xtalk_piomap_alloc
dmamap is an xtalk_dmamap_t that was created by xtalk_dmamap_alloc
vhdl is an XIO connection point in the hardware graph, obtained as the
parameter to the attach call.
info is an xwidget_info_t obtained from xwidget_info_get
DESCRIPTION
These routines are used to pull specific useful bits of information out
of the various opaque data structures used by xtalk. Few drivers will
need to make use of these routines, but having them available might save
the driver from doing extra bookkeeping.
The semantics of the functions should be clear from their one-line
descriptions.
SEE ALSOxtalk(D3), xtalk_dma(D3), xtalk_error(D3), xtalk_intr(D3), xtalk_pio(D3).
DIAGNOSTICSxwidget_info_get() will return NULL if there is no xtalk info structure
attached to that vertex.
Do not pass NULLs to any of these functions, that would cause a kernel
panic.
Page 3