aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@pathscale.com>2007-03-15 17:45:01 -0400
committerRoland Dreier <rolandd@cisco.com>2007-04-18 23:20:57 -0400
commitc8c6f5d496fe794cbb52fe5a08c2bd839eecaa07 (patch)
treee82c5406aa49c311ff3b69dcd14cae8b78775d5a /drivers/infiniband/hw
parentdd5190b6be0f3e27b6a4933a6a6d2d59957fc748 (diff)
IB/ipath: Remove unused ipath_read_kreg64_port()
Signed-off-by: Dave Olson <dave.olson@qlogic.com> Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_driver.c23
-rw-r--r--drivers/infiniband/hw/ipath/ipath_iba6110.c4
-rw-r--r--drivers/infiniband/hw/ipath/ipath_iba6120.c4
-rw-r--r--drivers/infiniband/hw/ipath/ipath_kernel.h2
4 files changed, 4 insertions, 29 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c
index cf40cf2d1fbb..291d4ea69a40 100644
--- a/drivers/infiniband/hw/ipath/ipath_driver.c
+++ b/drivers/infiniband/hw/ipath/ipath_driver.c
@@ -1804,29 +1804,6 @@ int ipath_set_lid(struct ipath_devdata *dd, u32 arg, u8 lmc)
1804 return 0; 1804 return 0;
1805} 1805}
1806 1806
1807/**
1808 * ipath_read_kreg64_port - read a device's per-port 64-bit kernel register
1809 * @dd: the infinipath device
1810 * @regno: the register number to read
1811 * @port: the port containing the register
1812 *
1813 * Registers that vary with the chip implementation constants (port)
1814 * use this routine.
1815 */
1816u64 ipath_read_kreg64_port(const struct ipath_devdata *dd, ipath_kreg regno,
1817 unsigned port)
1818{
1819 u16 where;
1820
1821 if (port < dd->ipath_portcnt &&
1822 (regno == dd->ipath_kregs->kr_rcvhdraddr ||
1823 regno == dd->ipath_kregs->kr_rcvhdrtailaddr))
1824 where = regno + port;
1825 else
1826 where = -1;
1827
1828 return ipath_read_kreg64(dd, where);
1829}
1830 1807
1831/** 1808/**
1832 * ipath_write_kreg_port - write a device's per-port 64-bit kernel register 1809 * ipath_write_kreg_port - write a device's per-port 64-bit kernel register
diff --git a/drivers/infiniband/hw/ipath/ipath_iba6110.c b/drivers/infiniband/hw/ipath/ipath_iba6110.c
index 993482545021..b50436c56638 100644
--- a/drivers/infiniband/hw/ipath/ipath_iba6110.c
+++ b/drivers/infiniband/hw/ipath/ipath_iba6110.c
@@ -208,8 +208,8 @@ static const struct ipath_kregs ipath_ht_kregs = {
208 .kr_serdesstatus = IPATH_KREG_OFFSET(SerdesStatus), 208 .kr_serdesstatus = IPATH_KREG_OFFSET(SerdesStatus),
209 .kr_xgxsconfig = IPATH_KREG_OFFSET(XGXSConfig), 209 .kr_xgxsconfig = IPATH_KREG_OFFSET(XGXSConfig),
210 /* 210 /*
211 * These should not be used directly via ipath_read_kreg64(), 211 * These should not be used directly via ipath_write_kreg64(),
212 * use them with ipath_read_kreg64_port(), 212 * use them with ipath_write_kreg64_port(),
213 */ 213 */
214 .kr_rcvhdraddr = IPATH_KREG_OFFSET(RcvHdrAddr0), 214 .kr_rcvhdraddr = IPATH_KREG_OFFSET(RcvHdrAddr0),
215 .kr_rcvhdrtailaddr = IPATH_KREG_OFFSET(RcvHdrTailAddr0) 215 .kr_rcvhdrtailaddr = IPATH_KREG_OFFSET(RcvHdrTailAddr0)
diff --git a/drivers/infiniband/hw/ipath/ipath_iba6120.c b/drivers/infiniband/hw/ipath/ipath_iba6120.c
index 05918e1e7c36..5c50383880f2 100644
--- a/drivers/infiniband/hw/ipath/ipath_iba6120.c
+++ b/drivers/infiniband/hw/ipath/ipath_iba6120.c
@@ -207,8 +207,8 @@ static const struct ipath_kregs ipath_pe_kregs = {
207 .kr_ibpllcfg = IPATH_KREG_OFFSET(IBPLLCfg), 207 .kr_ibpllcfg = IPATH_KREG_OFFSET(IBPLLCfg),
208 208
209 /* 209 /*
210 * These should not be used directly via ipath_read_kreg64(), 210 * These should not be used directly via ipath_write_kreg64(),
211 * use them with ipath_read_kreg64_port() 211 * use them with ipath_write_kreg64_port(),
212 */ 212 */
213 .kr_rcvhdraddr = IPATH_KREG_OFFSET(RcvHdrAddr0), 213 .kr_rcvhdraddr = IPATH_KREG_OFFSET(RcvHdrAddr0),
214 .kr_rcvhdrtailaddr = IPATH_KREG_OFFSET(RcvHdrTailAddr0), 214 .kr_rcvhdrtailaddr = IPATH_KREG_OFFSET(RcvHdrTailAddr0),
diff --git a/drivers/infiniband/hw/ipath/ipath_kernel.h b/drivers/infiniband/hw/ipath/ipath_kernel.h
index a2162853f5be..5428c2619ba9 100644
--- a/drivers/infiniband/hw/ipath/ipath_kernel.h
+++ b/drivers/infiniband/hw/ipath/ipath_kernel.h
@@ -756,8 +756,6 @@ int ipath_eeprom_write(struct ipath_devdata *, u8, const void *, int);
756/* these are used for the registers that vary with port */ 756/* these are used for the registers that vary with port */
757void ipath_write_kreg_port(const struct ipath_devdata *, ipath_kreg, 757void ipath_write_kreg_port(const struct ipath_devdata *, ipath_kreg,
758 unsigned, u64); 758 unsigned, u64);
759u64 ipath_read_kreg64_port(const struct ipath_devdata *, ipath_kreg,
760 unsigned);
761 759
762/* 760/*
763 * We could have a single register get/put routine, that takes a group type, 761 * We could have a single register get/put routine, that takes a group type,