1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

tools/lib/: added network proxy-based driver (in progress)

- atnet.c: driver "net", which accessed hardware via atrf-proxy
- Makefile (OBJS): added atnet.o
- driver.h (atnet_driver), atrf.c (drivers): added the atnet driver
- atrf.c (drivers): moved the driver list closer to the top
This commit is contained in:
Werner Almesberger
2011-04-10 17:45:19 -03:00
parent 7be700df11
commit 39319e145a
4 changed files with 425 additions and 12 deletions

View File

@@ -28,6 +28,18 @@ struct atrf_dsc {
};
static const struct atrf_driver *drivers[] = {
#ifdef HAVE_BEN
&atben_driver,
#endif
#ifdef HAVE_USB
&atusb_driver,
#endif
&atnet_driver,
NULL
};
void *atrf_usb_handle(struct atrf_dsc *dsc)
{
#ifdef HAVE_USB
@@ -92,17 +104,6 @@ static enum atrf_chip_id identify(struct atrf_dsc *dsc)
}
const static struct atrf_driver *drivers[] = {
#ifdef HAVE_BEN
&atben_driver,
#endif
#ifdef HAVE_USB
&atusb_driver,
#endif
NULL
};
const char *atrf_default_driver_name(void)
{
return drivers[0] ? drivers[0]->name : "none";