2025-06-12 22:45:40 +02:00

27 lines
507 B
C

#ifndef ETHDRV_ETH_DRV_ETHERLIB
#define ETHDRV_ETH_DRV_ETHERLIB
#include <etherlib/packet.h>
#include <etherlib/msg_queue.h>
#include <stdint.h>
typedef struct {
bool init;
bool up;
uint16_t speed;
bool duplex;
} LinkState;
struct EthInterface_;
struct EthIODef_;
void ethdrv_init();
int ethdrv_input(RawPckt * pckt);
int ethdrv_output(const RawPckt * pckt);
int ethdrv_send(struct EthIODef_ * io, MsgQueue * mq);
struct EthIODef_ * ethdrv_get();
#endif /* ETHDRV_ETH_DRV_ETHERLIB */