1 /*
2  * Copyright (c) 2008 Travis Geiselbrecht
3  *
4  * Use of this source code is governed by a MIT-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/MIT
7  */
8 #pragma once
9 
10 #include <sys/types.h>
11 
12 /* Queue an ethernet frame for send.
13 **
14 ** CRC and minimum length padding are handled by the driver.
15 **
16 ** Data is malloc()'d and ownership is transferred to the ethernet
17 ** device which will free() it once the packet is transmitted.
18 **
19 */
20 int ethernet_send(void *data, unsigned length);
21 
22 status_t ethernet_init(void); /* initialize the ethernet device */
23 
24