[PATCH 4/10] cxgb3 - HW access routines - part 2

2006-12-21 Thread divy
From: Divy Le Ray <[EMAIL PROTECTED]> This patch implements the HW access routines for the Chelsio T3 network adapter's driver. This patch is split. This is the second part. Signed-off-by: Divy Le Ray <[EMAIL PROTECTED]> --- +/** + * t3_sge_write_context - write an SGE context + * @adapte

Re: [PATCH 4/10] cxgb3 - HW access routines - part 2

2006-12-20 Thread Divy Le Ray
Arjan van de Ven wrote: +void t3_port_intr_disable(struct adapter *adapter, int idx) +{ + struct cphy *phy = &adap2pinfo(adapter, idx)->phy; + + t3_write_reg(adapter, XGM_REG(A_XGM_INT_ENABLE, idx), 0); + phy->ops->intr_disable(phy); you seem to be missing a pci posting f

Re: [PATCH 4/10] cxgb3 - HW access routines - part 2

2006-12-20 Thread Arjan van de Ven
> +void t3_port_intr_disable(struct adapter *adapter, int idx) > +{ > + struct cphy *phy = &adap2pinfo(adapter, idx)->phy; > + > + t3_write_reg(adapter, XGM_REG(A_XGM_INT_ENABLE, idx), 0); > + phy->ops->intr_disable(phy); you seem to be missing a pci posting flush here -- if yo

[PATCH 4/10] cxgb3 - HW access routines - part 2

2006-12-20 Thread divy
From: Divy Le Ray <[EMAIL PROTECTED]> This patch implements the HW access routines for the Chelsio T3 network adapter's driver. This patch is split. This is the second part. Signed-off-by: Divy Le Ray <[EMAIL PROTECTED]> --- +/** + * t3_port_intr_enable - enable port-specific interrupts + *

[PATCH 4/10] cxgb3 - HW access routines - part 2

2006-12-13 Thread divy
+/** + * t3_port_intr_enable - enable port-specific interrupts + * @adapter: associated adapter + * @idx: index of port whose interrupts should be enabled + * + * Enable port-specific (i.e., MAC and PHY) interrupts for the given + * adapter port. + */ +void t3_port_intr_enable(s

[PATCH 4/10] cxgb3 - HW access routines - part 2

2006-12-07 Thread divy
From: Divy Le Ray <[EMAIL PROTECTED]> This patch implements the HW access routines for the Chelsio T3 network adapter's driver. This patch is split. This is the second part. Signed-off-by: Divy Le Ray <[EMAIL PROTECTED]> -- +/** + * t3_sge_write_context - write an SGE context + * @adapter

[PATCH 4/10] cxgb3 - HW access routines - part 2

2006-11-17 Thread divy
From: Divy Le Ray <[EMAIL PROTECTED]> This patch implements the HW access routines for the Chelsio T3 network adapter's driver. This patch is split. This is the second part. Signed-off-by: Divy Le Ray <[EMAIL PROTECTED]> --- + return t3_wait_op_done(adapter, A_SG_CONTEXT_CMD, F_CONTEXT_CMD