aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_kernel.h')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_kernel.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_kernel.h b/drivers/infiniband/hw/ipath/ipath_kernel.h
index c47290422457..c0ecda35f2d9 100644
--- a/drivers/infiniband/hw/ipath/ipath_kernel.h
+++ b/drivers/infiniband/hw/ipath/ipath_kernel.h
@@ -777,8 +777,6 @@ int ipath_set_rx_pol_inv(struct ipath_devdata *dd, u8 new_pol_inv);
777 777
778/* free up any allocated data at closes */ 778/* free up any allocated data at closes */
779void ipath_free_data(struct ipath_portdata *dd); 779void ipath_free_data(struct ipath_portdata *dd);
780int ipath_waitfor_mdio_cmdready(struct ipath_devdata *);
781int ipath_waitfor_complete(struct ipath_devdata *, ipath_kreg, u64, u64 *);
782u32 __iomem *ipath_getpiobuf(struct ipath_devdata *, u32 *); 780u32 __iomem *ipath_getpiobuf(struct ipath_devdata *, u32 *);
783void ipath_init_iba6120_funcs(struct ipath_devdata *); 781void ipath_init_iba6120_funcs(struct ipath_devdata *);
784void ipath_init_iba6110_funcs(struct ipath_devdata *); 782void ipath_init_iba6110_funcs(struct ipath_devdata *);
@@ -802,33 +800,6 @@ void ipath_set_led_override(struct ipath_devdata *dd, unsigned int val);
802 */ 800 */
803#define IPATH_DFLT_RCVHDRSIZE 9 801#define IPATH_DFLT_RCVHDRSIZE 9
804 802
805#define IPATH_MDIO_CMD_WRITE 1
806#define IPATH_MDIO_CMD_READ 2
807#define IPATH_MDIO_CLD_DIV 25 /* to get 2.5 Mhz mdio clock */
808#define IPATH_MDIO_CMDVALID 0x40000000 /* bit 30 */
809#define IPATH_MDIO_DATAVALID 0x80000000 /* bit 31 */
810#define IPATH_MDIO_CTRL_STD 0x0
811
812static inline u64 ipath_mdio_req(int cmd, int dev, int reg, int data)
813{
814 return (((u64) IPATH_MDIO_CLD_DIV) << 32) |
815 (cmd << 26) |
816 (dev << 21) |
817 (reg << 16) |
818 (data & 0xFFFF);
819}
820
821 /* signal and fifo status, in bank 31 */
822#define IPATH_MDIO_CTRL_XGXS_REG_8 0x8
823 /* controls loopback, redundancy */
824#define IPATH_MDIO_CTRL_8355_REG_1 0x10
825 /* premph, encdec, etc. */
826#define IPATH_MDIO_CTRL_8355_REG_2 0x11
827 /* Kchars, etc. */
828#define IPATH_MDIO_CTRL_8355_REG_6 0x15
829#define IPATH_MDIO_CTRL_8355_REG_9 0x18
830#define IPATH_MDIO_CTRL_8355_REG_10 0x1D
831
832int ipath_get_user_pages(unsigned long, size_t, struct page **); 803int ipath_get_user_pages(unsigned long, size_t, struct page **);
833void ipath_release_user_pages(struct page **, size_t); 804void ipath_release_user_pages(struct page **, size_t);
834void ipath_release_user_pages_on_close(struct page **, size_t); 805void ipath_release_user_pages_on_close(struct page **, size_t);