mirror of https://github.com/F-Stack/f-stack.git
25 lines
449 B
C
25 lines
449 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (c) 2022 Marvell.
|
|
*/
|
|
|
|
#ifndef _ROC_ML_PRIV_H_
|
|
#define _ROC_ML_PRIV_H_
|
|
|
|
#include "roc_api.h"
|
|
|
|
struct ml {
|
|
struct plt_pci_device *pci_dev;
|
|
struct dev dev;
|
|
uint8_t *ml_reg_addr;
|
|
uint64_t ml_mlr_base;
|
|
bool ml_mlr_base_saved;
|
|
} __plt_cache_aligned;
|
|
|
|
static inline struct ml *
|
|
roc_ml_to_ml_priv(struct roc_ml *roc_ml)
|
|
{
|
|
return (struct ml *)&roc_ml->reserved[0];
|
|
}
|
|
|
|
#endif /* _ROC_ML_PRIV_H_ */
|