summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net-common.h4
-rw-r--r--include/tsec.h17
2 files changed, 4 insertions, 17 deletions
diff --git a/include/net-common.h b/include/net-common.h
index 69b6316c1ec..0c260873c2c 100644
--- a/include/net-common.h
+++ b/include/net-common.h
@@ -20,7 +20,9 @@
* alignment in memory.
*
*/
+#if CONFIG_IS_ENABLED(NET)
#define PKTBUFSRX CONFIG_SYS_RX_ETH_BUFFER
+#endif
#define PKTALIGN ARCH_DMA_MINALIGN
/* IPv4 addresses are always 32 bits in size */
@@ -132,7 +134,9 @@ static inline void net_set_state(enum net_loop_state state)
}
extern int net_restart_wrap; /* Tried all network devices */
+#if CONFIG_IS_ENABLED(NET)
extern uchar *net_rx_packets[PKTBUFSRX]; /* Receive packets */
+#endif
extern const u8 net_bcast_ethaddr[ARP_HLEN]; /* Ethernet broadcast address */
extern struct in_addr net_ip; /* Our IP addr (0 = unknown) */
/* Indicates whether the pxe path prefix / config file was specified in dhcp option */
diff --git a/include/tsec.h b/include/tsec.h
index 153337837a9..f5ced38f3fc 100644
--- a/include/tsec.h
+++ b/include/tsec.h
@@ -350,23 +350,6 @@ struct tsec_data {
u32 mdio_regs_off;
};
-struct tsec_private {
- struct txbd8 __iomem txbd[TX_BUF_CNT];
- struct rxbd8 __iomem rxbd[PKTBUFSRX];
- struct tsec __iomem *regs;
- struct tsec_mii_mng __iomem *phyregs_sgmii;
- struct phy_device *phydev;
- phy_interface_t interface;
- struct mii_dev *bus;
- uint phyaddr;
- uint tbiaddr;
- char mii_devname[16];
- u32 flags;
- uint rx_idx; /* index of the current RX buffer */
- uint tx_idx; /* index of the current TX buffer */
- struct udevice *dev;
-};
-
struct tsec_info_struct {
struct tsec __iomem *regs;
struct tsec_mii_mng __iomem *miiregs_sgmii;