host-drivers/base-driver/vca/plx87xx/plx_hw.c
u32 plx_link_width(struct plx_device *xdev)
{
	u32 data;
	data = plx_link_mmio_read(xdev, PLX_LINK_STATUS_AND_CONTROL_REGISTER);

	if ((data & PLX_LINK_GEN_BITMASK) >> PLX_LINK_GEN_OFFSET != PLX_LINK_GEN3_VALUE)
		return 0;
	return (data & PLX_LINK_WIDTH_BITMASK) >> PLX_LINK_WIDTH_OFFSET;
}
/**
 * plx_link_width() -returns the width of link(0 - default value, link down, but in case of power button value is undefined)
 * @xdev: pointer to plx_device instance
 * RETURNS: true if link is up, false otherwise
 */
returns the width of link(0 - default value, link down, but in case of power button value is undefined)
@xdev: pointer to plx_device instance
RETURNS: true if link is up, false otherwise
returns the width of link ( 0 - default value link down but in case of power button value is undefined ) @xdev : pointer to plx_device instance RETURNS : true if link is up false otherwise
u32 plx_link_width(struct plx_device *xdev)
{
	u32 data;
	data = plx_link_mmio_read(xdev, PLX_LINK_STATUS_AND_CONTROL_REGISTER);
	if ((data & PLX_LINK_GEN_BITMASK) >> PLX_LINK_GEN_OFFSET != PLX_LINK_GEN3_VALUE)
		return 0;
	return (data & PLX_LINK_WIDTH_BITMASK) >> PLX_LINK_WIDTH_OFFSET;
}
u32 plx_link_width ( struct plx_device * xdev ) { u32 data ; data = plx_link_mmio_read ( xdev , PLX_LINK_STATUS_AND_CONTROL_REGISTER ) ; if ( ( data & PLX_LINK_GEN_BITMASK ) >> PLX_LINK_GEN_OFFSET != PLX_LINK_GEN3_VALUE ) return 0 ; return ( data & PLX_LINK_WIDTH_BITMASK ) >> PLX_LINK_WIDTH_OFFSET ; }
plx_link_width() -returns the width of link(0 - default value, link down, but in case of power button value is undefined)
 @xdev: pointer to plx_device instance
 RETURNS: true if link is up, false otherwise
plx_link_width () - returns the width of link ( 0 - default value link down but in case of power button value is undefined ) @xdev : pointer to plx_device instance RETURNS : true if link is up false otherwise