mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 10:50:28 +03:00
Cope with nic.h being included before (or without) dev.h
This commit is contained in:
@@ -8,10 +8,6 @@
|
|||||||
#ifndef NIC_H
|
#ifndef NIC_H
|
||||||
#define NIC_H
|
#define NIC_H
|
||||||
|
|
||||||
/* to get global "dev" */
|
|
||||||
struct dev;
|
|
||||||
#include "main.h"
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
DISABLE = 0,
|
DISABLE = 0,
|
||||||
ENABLE,
|
ENABLE,
|
||||||
@@ -46,6 +42,7 @@ struct nic_operations {
|
|||||||
* Function prototypes
|
* Function prototypes
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
struct dev;
|
||||||
extern struct nic * nic_device ( struct dev * dev );
|
extern struct nic * nic_device ( struct dev * dev );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -81,5 +78,7 @@ static inline void eth_disable ( void ) {
|
|||||||
|
|
||||||
/* dev.h needs declarations from nic.h */
|
/* dev.h needs declarations from nic.h */
|
||||||
#include "dev.h"
|
#include "dev.h"
|
||||||
|
/* to get global "dev" */
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
#endif /* NIC_H */
|
#endif /* NIC_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user