diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-16 17:46:25 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-16 17:46:25 +0000 |
commit | 4077a70fc256a7dd65febe986f176b8ac62091fc (patch) | |
tree | 6f0e34d559c8fa2f07c686043df3494cd7fdcff2 /nuttx/net/net-internal.h | |
parent | 42027d080b72b8198072e7dc3933d8b70b6b40a5 (diff) | |
download | px4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.tar.gz px4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.tar.bz2 px4-nuttx-4077a70fc256a7dd65febe986f176b8ac62091fc.zip |
Add basic structure to support netdevice ioctls
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@344 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/net-internal.h')
-rw-r--r-- | nuttx/net/net-internal.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nuttx/net/net-internal.h b/nuttx/net/net-internal.h index f517f863d..220f46b54 100644 --- a/nuttx/net/net-internal.h +++ b/nuttx/net/net-internal.h @@ -122,6 +122,13 @@ * Public Variables ****************************************************************************/ +/* List of registered ethernet device drivers */ + +#if CONFIG_NSOCKET_DESCRIPTORS > 0 +extern struct uip_driver_s *g_netdevices; +extern sem_t g_netdev_sem; +#endif + /**************************************************************************** * Pulblic Function Prototypes ****************************************************************************/ @@ -148,6 +155,19 @@ EXTERN socktimeo_t net_timeval2dsec(struct timeval *tv); EXTERN void net_dsec2timeval(uint16 dsec, struct timeval *tv); #endif +/* net-register.c ************************************************************/ + +#if CONFIG_NSOCKET_DESCRIPTORS > 0 +EXTERN void netdev_semtake(void); +# define netdev_semgive() sem_post(&g_netdev_sem) +#endif + +/* net-find.c ****************************************************************/ + +#if CONFIG_NSOCKET_DESCRIPTORS > 0 +FAR struct uip_driver_s *netdev_find(const char *ifname); +#endif + #undef EXTERN #if defined(__cplusplus) } |