summaryrefslogtreecommitdiffstats
path: root/arch/linux/board/board.c
blob: f214d246ebcf5a2920f7598d8341e8b3cd529652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <common.h>
#include <driver.h>
#include <malloc.h>
#include <asm/arch/linux.h>
#include <init.h>
#include <errno.h>

static struct device_d tap_device = {
        .name     = "tap",
        .id       = "eth0",

        .type     = DEVICE_TYPE_ETHER,
};

static int devices_init(void)
{
	register_device(&tap_device);

	return 0;
}

device_initcall(devices_init);