From 90526e9fbac47af16d70f323feae45d8d1b0f9b7 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 10 May 2020 11:39:56 -0600 Subject: common: Drop net.h from common header Move this header out of the common header. Network support is used in quite a few places but it still does not warrant blanket inclusion. Note that this net.h header itself has quite a lot in it. It could be split into the driver-mode support, functions, structures, checksumming, etc. Signed-off-by: Simon Glass --- include/common.h | 1 - include/dwmmc.h | 1 + include/log.h | 1 + include/net.h | 9 ++++++--- include/scsi.h | 1 + 5 files changed, 9 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index 1705d85e8a9..a900596c5f9 100644 --- a/include/common.h +++ b/include/common.h @@ -36,7 +36,6 @@ #include #include #include -#include #include #endif /* __ASSEMBLY__ */ diff --git a/include/dwmmc.h b/include/dwmmc.h index f06720dc0d9..58110aa3e71 100644 --- a/include/dwmmc.h +++ b/include/dwmmc.h @@ -7,6 +7,7 @@ #ifndef __DWMMC_HW_H #define __DWMMC_HW_H +#include #include #include diff --git a/include/log.h b/include/log.h index cf323511343..ffc739b5604 100644 --- a/include/log.h +++ b/include/log.h @@ -9,6 +9,7 @@ #ifndef __LOG_H #define __LOG_H +#include #include #include #include diff --git a/include/net.h b/include/net.h index 774ae2de63c..3ef212dd00f 100644 --- a/include/net.h +++ b/include/net.h @@ -12,6 +12,7 @@ #ifndef __NET_H__ #define __NET_H__ +#include #include #include /* for nton* / ntoh* stuff */ #include @@ -20,7 +21,9 @@ #include #include +struct bd_info; struct cmd_tbl_s; +struct udevice; #define DEBUG_LL_STATE 0 /* Link local state machine changes */ #define DEBUG_DEV_PKT 0 /* Packets or info directed to the device */ @@ -188,12 +191,12 @@ struct eth_device { phys_addr_t iobase; int state; - int (*init)(struct eth_device *, bd_t *); + int (*init)(struct eth_device *eth, struct bd_info *bd); int (*send)(struct eth_device *, void *packet, int length); int (*recv)(struct eth_device *); void (*halt)(struct eth_device *); int (*mcast)(struct eth_device *, const u8 *enetaddr, int join); - int (*write_hwaddr)(struct eth_device *); + int (*write_hwaddr)(struct eth_device *eth); struct eth_device *next; int index; void *priv; @@ -246,7 +249,7 @@ static __always_inline void eth_halt_state_only(void) int eth_write_hwaddr(struct eth_device *dev, const char *base_name, int eth_number); -int usb_eth_initialize(bd_t *bi); +int usb_eth_initialize(struct bd_info *bi); #endif int eth_initialize(void); /* Initialize network subsystem */ diff --git a/include/scsi.h b/include/scsi.h index 61da958bf68..96cb7266762 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -6,6 +6,7 @@ #ifndef _SCSI_H #define _SCSI_H +#include #include struct scsi_cmd { -- cgit v1.3.1