summaryrefslogtreecommitdiff
path: root/package/switch/src/switch-core.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-02-14 12:36:52 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-02-14 12:36:52 +0000
commit243c5822134e452084069b0afc68c4ac78bfd795 (patch)
treef5674acf467a05f929dd2dcb4d6355feb7f9a60f /package/switch/src/switch-core.h
parent60913bbac6756bf45b0a22ba575c8b68a8e432d4 (diff)
downloadmtk-20170518-243c5822134e452084069b0afc68c4ac78bfd795.zip
mtk-20170518-243c5822134e452084069b0afc68c4ac78bfd795.tar.gz
mtk-20170518-243c5822134e452084069b0afc68c4ac78bfd795.tar.bz2
switch: export name of device found via /proc
SVN-Revision: 35596
Diffstat (limited to 'package/switch/src/switch-core.h')
-rw-r--r--package/switch/src/switch-core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/switch/src/switch-core.h b/package/switch/src/switch-core.h
index 7192f7b..cc520e4 100644
--- a/package/switch/src/switch-core.h
+++ b/package/switch/src/switch-core.h
@@ -4,6 +4,7 @@
#include <linux/version.h>
#include <linux/list.h>
#define SWITCH_MAX_BUFSZ 4096
+#define SWITCH_NAME_BUFSZ 16
#define SWITCH_MEDIA_AUTO 1
#define SWITCH_MEDIA_100 2
@@ -28,6 +29,7 @@ typedef struct {
const switch_config *driver_handlers, *port_handlers, *vlan_handlers;
void *data;
void *priv;
+ char dev_name[SWITCH_NAME_BUFSZ];
} switch_driver;
typedef struct {