2011-07-12 17:23:21 +03:00
|
|
|
/*
|
|
|
|
* fw/mac.h - HardMAC functions
|
|
|
|
*
|
2013-02-13 14:30:21 +02:00
|
|
|
* Written 2011, 2013 by Werner Almesberger
|
|
|
|
* Copyright 2011, 2013 Werner Almesberger
|
2011-07-12 17:23:21 +03:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAC_H
|
|
|
|
#define MAC_H
|
|
|
|
|
2013-03-30 00:14:11 +02:00
|
|
|
#include <stdbool.h>
|
2011-07-12 17:23:21 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
2013-03-30 00:19:49 +02:00
|
|
|
extern bool (*mac_irq)(void);
|
2011-07-12 17:23:21 +03:00
|
|
|
|
2013-03-30 00:14:11 +02:00
|
|
|
bool mac_rx(int on);
|
|
|
|
bool mac_tx(uint16_t flags, uint16_t len);
|
2013-02-13 14:30:21 +02:00
|
|
|
void mac_reset(void);
|
2011-07-12 17:23:21 +03:00
|
|
|
|
|
|
|
#endif /* !MAC_H */
|