linux/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.h

/* Broadcom NetXtreme-C/E network driver.
 *
 * Copyright (c) 2017 Broadcom Limited
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation.
 */

#ifndef BNXT_DEVLINK_H
#define BNXT_DEVLINK_H

/* Struct to hold housekeeping info needed by devlink interface */
struct bnxt_dl {};

static inline struct bnxt *bnxt_get_bp_from_dl(struct devlink *dl)
{}

static inline void bnxt_dl_remote_reload(struct bnxt *bp)
{}

static inline bool bnxt_dl_get_remote_reset(struct devlink *dl)
{}

static inline void bnxt_dl_set_remote_reset(struct devlink *dl, bool value)
{}

#define NVM_OFF_MSIX_VEC_PER_PF_MAX
#define NVM_OFF_MSIX_VEC_PER_PF_MIN
#define NVM_OFF_IGNORE_ARI
#define NVM_OFF_DIS_GRE_VER_CHECK
#define NVM_OFF_ENABLE_SRIOV
#define NVM_OFF_NVM_CFG_VER

#define BNXT_NVM_CFG_VER_BITS
#define BNXT_NVM_CFG_VER_BYTES

#define BNXT_MSIX_VEC_MAX
#define BNXT_MSIX_VEC_MIN_MAX

enum bnxt_nvm_dir_type {};

struct bnxt_dl_nvm_param {};

enum bnxt_dl_version_type {};

void bnxt_devlink_health_fw_report(struct bnxt *bp);
void bnxt_dl_health_fw_status_update(struct bnxt *bp, bool healthy);
void bnxt_dl_health_fw_recovery_done(struct bnxt *bp);
void bnxt_dl_fw_reporters_create(struct bnxt *bp);
void bnxt_dl_fw_reporters_destroy(struct bnxt *bp);
int bnxt_dl_register(struct bnxt *bp);
void bnxt_dl_unregister(struct bnxt *bp);

#endif /* BNXT_DEVLINK_H */