Skip to content

Commit 7c1b702

Browse files
committed
Merge branch 'cxgb4-next'
Hariprasad Shenai says: ==================== Add support for few debugfs entries This patch series adds support for devlog, cim_la, cim_qcfg and mps_tcam debugfs entries. The patches series is created against 'net-next' tree. And includes patches on cxgb4 driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents cd91cc5 + ef82f66 commit 7c1b702

File tree

8 files changed

+982
-0
lines changed

8 files changed

+982
-0
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,21 @@ enum chip_type {
290290
T5_LAST_REV = T5_A1,
291291
};
292292

293+
struct devlog_params {
294+
u32 memtype; /* which memory (EDC0, EDC1, MC) */
295+
u32 start; /* start of log in firmware memory */
296+
u32 size; /* size of log */
297+
};
298+
293299
struct adapter_params {
294300
struct sge_params sge;
295301
struct tp_params tp;
296302
struct vpd_params vpd;
297303
struct pci_params pci;
304+
struct devlog_params devlog;
305+
enum pcie_memwin drv_memwin;
306+
307+
unsigned int cim_la_size;
298308

299309
unsigned int sf_size; /* serial flash size in bytes */
300310
unsigned int sf_nsec; /* # of flash sectors */
@@ -1026,6 +1036,12 @@ int t4_mc_read(struct adapter *adap, int idx, u32 addr, __be32 *data,
10261036
u64 *parity);
10271037
int t4_edc_read(struct adapter *adap, int idx, u32 addr, __be32 *data,
10281038
u64 *parity);
1039+
int t4_cim_read(struct adapter *adap, unsigned int addr, unsigned int n,
1040+
unsigned int *valp);
1041+
int t4_cim_write(struct adapter *adap, unsigned int addr, unsigned int n,
1042+
const unsigned int *valp);
1043+
int t4_cim_read_la(struct adapter *adap, u32 *la_buf, unsigned int *wrptr);
1044+
void t4_read_cimq_cfg(struct adapter *adap, u16 *base, u16 *size, u16 *thres);
10291045
const char *t4_get_port_type_description(enum fw_port_type port_type);
10301046
void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p);
10311047
void t4_read_mtu_tbl(struct adapter *adap, u16 *mtus, u8 *mtu_log);

0 commit comments

Comments
 (0)