host-drivers/base-driver/vca/plx87xx/plx_hw.c
u32 plx_read_spad(struct plx_device *xdev, unsigned int idx)
{
	u32 val = plx_mmio_read(&xdev->mmio,
				xdev->reg_base + PLX_SPAD0 + idx * 4);

	dev_dbg(&xdev->pdev->dev,
		"Reading 0x%x from scratch pad index %d\n", val, idx);
	return val;
}
/**
 * plx_read_spad() - read from the scratchpad register
 * @xdev: pointer to plx_device instance
 * @idx: index to scratchpad register, 0 based
 *
 * This function allows reading of the 32bit scratchpad register.
 *
 * RETURNS: An appropriate -ERRNO error value on error, or zero for success.
 */
read from the scratchpad register
@xdev: pointer to plx_device instance
@idx: index to scratchpad register, 0 based

This function allows reading of the 32bit scratchpad register.

An appropriate -ERRNO error value on error, or zero for success.
read from the scratchpad register @xdev : pointer to plx_device instance @idx : index to scratchpad register 0 based This function allows reading of the 32bit scratchpad register . An appropriate - ERRNO error value on error or zero for success .
u32 plx_read_spad(struct plx_device *xdev, unsigned int idx)
{
	u32 val = plx_mmio_read(&xdev->mmio,
				xdev->reg_base + PLX_SPAD0 + idx * 4);
	dev_dbg(&xdev->pdev->dev,
		"Reading 0x%x from scratch pad index %d\n", val, idx);
	return val;
}
u32 plx_read_spad ( struct plx_device * xdev , unsigned int idx ) { u32 val = plx_mmio_read ( & xdev -> mmio , xdev -> reg_base + PLX_SPAD0 + idx * 4 ) ; dev_dbg ( & xdev -> pdev -> dev , " \n " , val , idx ) ; return val ; }
plx_read_spad() - read from the scratchpad register
 @xdev: pointer to plx_device instance
 @idx: index to scratchpad register, 0 based
plx_read_spad () - read from the scratchpad register @xdev : pointer to plx_device instance @idx : index to scratchpad register 0 based