Signed-off-by: Michael Brown <mcb30@ipxe.org>
.name = "af_packet",
.probe = af_packet_nic_probe,
.remove = af_packet_nic_remove,
- .can_probe = 1,
};
continue;
}
- if (! driver->can_probe) {
- printf("Driver '%s' cannot handle any more devices\n", driver->name);
- continue;
- }
-
/* We found a matching driver so add the device to the hierarchy */
list_add(&device->dev.siblings, &rootdev->dev.children);
device->dev.parent = &rootdev->dev;
.name = "slirp",
.probe = slirp_probe,
.remove = slirp_remove,
- .can_probe = 1,
};
.name = "tap",
.probe = tap_probe,
.remove = tap_remove,
- .can_probe = 1,
};
int (*probe)(struct linux_device *device, struct linux_device_request *request);
/** Remove function */
void (*remove)(struct linux_device *device);
- /** Can the driver probe any more devices? */
- int can_probe;
};
/** Linux driver table */