/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _HAL_COMMON_H_ #define _HAL_COMMON_H_ extern struct hal_priv *hpriv; extern char *mac_addr; struct hal_priv { /* RPU and GRAM mappings */ unsigned long hal_disabled; /* DTS entries */ unsigned long rpu_sysbus_base; /* TX */ LST_T txq; unsigned int unexpected_code_path; }; int _rpu_umac_if_init(struct proc_dir_entry **); void _rpu_umac_if_exit(void); struct hal_ops_tag { int (*init)(void *dev); int (*deinit)(void *dev); int (*start)(void); void (*send)(void* msg, void* payload, unsigned int descriptor_id); void (*deinit_bufs)(void); }; extern struct hal_ops_tag hal_ops; #endif /* _HAL_COMMON_H_ */