Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: mss_ethernet_mac: various compilation fixes #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 68 additions & 71 deletions drivers/mss/mss_ethernet_mac/mss_ethernet_mac.c

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion drivers/mss/mss_ethernet_mac/mss_ethernet_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@
#define MSS_ETHERNET_MAC_H_

#include <stdbool.h>
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_types.h"
#include "mpfs_hal/mss_hal.h"

#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion drivers/mss/mss_ethernet_mac/mss_ethernet_mac_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdint.h>

#if defined(MSS_MAC_PHY_HW_RESET) || defined(MSS_MAC_PHY_HW_SRESET)
#include "drivers/mss_gpio/mss_gpio.h"
#include "drivers/mss/mss_gpio/mss_gpio.h"
#endif

#ifdef __cplusplus
Expand Down
2 changes: 2 additions & 0 deletions drivers/mss/mss_ethernet_mac/mss_ethernet_registers.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ extern "C" {
/*----------------------------------------------------------------------------*/
/*----------------------------------- MAC -----------------------------------*/
/*----------------------------------------------------------------------------*/
#ifndef __I
#define __I const volatile
#endif
#define __O volatile
#define __IO volatile

Expand Down
10 changes: 5 additions & 5 deletions drivers/mss/mss_ethernet_mac/null_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/
#include "mpfs_hal/mss_hal.h"

#include "drivers/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss_ethernet_mac/phy.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss/mss_ethernet_mac/phy.h"

#ifdef __cplusplus
extern "C" {
Expand Down
10 changes: 5 additions & 5 deletions drivers/mss/mss_ethernet_mac/ti_dp83867_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
*/
#include "mpfs_hal/mss_hal.h"
#include "hal/hal.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss_ethernet_mac/phy.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss/mss_ethernet_mac/phy.h"

#ifdef __cplusplus
extern "C" {
Expand Down
10 changes: 5 additions & 5 deletions drivers/mss/mss_ethernet_mac/vsc8541_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#include "mpfs_hal/mss_hal.h"
#include "hal/hal.h"

#include "drivers/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss_ethernet_mac/phy.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss/mss_ethernet_mac/phy.h"

#ifdef __cplusplus
extern "C" {
Expand Down
12 changes: 6 additions & 6 deletions drivers/mss/mss_ethernet_mac/vsc8575_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
#include "mpfs_hal/mss_hal.h"
#include "hal/hal.h"

#include "drivers/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss_ethernet_mac/phy.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss/mss_ethernet_mac/phy.h"

#include "drivers/mss_ethernet_mac/mss_ethernet_mac_types.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_types.h"

#include <stdlib.h>
#include <string.h>
Expand Down
12 changes: 6 additions & 6 deletions drivers/mss/mss_ethernet_mac/vsc8575_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "mpfs_hal/mss_hal.h"
#include "hal/hal.h"

#include "drivers/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"

#if MSS_MAC_USE_PHY_VSC8575
#include "vtss_api.h" /* For BOOL and friends */
Expand All @@ -30,12 +30,12 @@
#endif


#include "drivers/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss_ethernet_mac/phy.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss/mss_ethernet_mac/phy.h"

#include "drivers/mss_ethernet_mac/mss_ethernet_mac_types.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_types.h"

#ifdef _ZL303XX_FMC_BOARD
/* Only needed if SPI interfaces required */
Expand Down
10 changes: 5 additions & 5 deletions drivers/mss/mss_ethernet_mac/vsc8662_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
#include "mpfs_hal/mss_hal.h"
#include "hal/hal.h"

#include "drivers/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss_ethernet_mac/phy.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_registers.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_regs.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac_sw_cfg.h"
#include "drivers/mss/mss_ethernet_mac/mss_ethernet_mac.h"
#include "drivers/mss/mss_ethernet_mac/phy.h"

#ifdef __cplusplus
extern "C" {
Expand Down