sandbox: Don't use PCI in SPL
[oweals/u-boot.git] / include / net.h
index 05800c4422ef7e8d58d5e3844aaa9c26ca80f379..5ee5929beb8626dab694e838e8735324e17062f8 100644 (file)
@@ -269,7 +269,7 @@ int eth_getenv_enetaddr_by_index(const char *base_name, int index,
 int eth_init(void);                    /* Initialize the device */
 int eth_send(void *packet, int length);           /* Send a packet */
 
-#ifdef CONFIG_API
+#if defined(CONFIG_API) || defined(CONFIG_EFI_LOADER)
 int eth_receive(void *packet, int length); /* Receive a packet*/
 extern void (*push_packet)(void *packet, int length);
 #endif