Пример #1
0
Файл: config.c Проект: M1cha/lk
void target_init(void) {
	//device_init_all();
#ifndef ARCH_X86_64

	device_init(device_get_by_name(ide, ide0));
	ffs_mount(0, device_get_by_name(ide, ide0));

	tcpip_init(NULL, NULL);

	device_init(device_get_by_name(netif, pcnet0));
	class_netif_add(device_get_by_name(netif, pcnet0));
#endif
}
Пример #2
0
device_t *search_device (int flags, char *name)
{
	device_t *dev;

	dev = device_get_by_name(name);

	if(dev && (dev->flags & flags))
		return dev;

	return NULL;
}