/* Setup the driver for use and register it with the eth layer  */
int ne2k_register(void)
/* Setup the driver for use and register it with the eth layer  */
int ne2k_register(void)
{
	struct eth_device *dev;
	dev = calloc(sizeof(*dev), 1);
	if (dev == NULL)
		return -1;
	if (ne2k_setup_driver(dev))
		return -1;
	dev->init = ne2k_init;
	dev->halt = ne2k_halt;
	dev->send = ne2k_send;
	dev->recv = ne2k_recv;
	strcpy(dev->name, "NE2000");
	return eth_register(dev);
}