projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lantiq: Tune the XWAY subtarget cflags
[openwrt.git]
/
package
/
switch
/
src
/
switch-core.h
diff --git
a/package/switch/src/switch-core.h
b/package/switch/src/switch-core.h
index
31c81f6
..
cc520e4
100644
(file)
--- a/
package/switch/src/switch-core.h
+++ b/
package/switch/src/switch-core.h
@@
-4,18
+4,12
@@
#include <linux/version.h>
#include <linux/list.h>
#define SWITCH_MAX_BUFSZ 4096
#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
#define SWITCH_MEDIA_FD 4
#define SWITCH_MEDIA_AUTO 1
#define SWITCH_MEDIA_100 2
#define SWITCH_MEDIA_FD 4
-
-#ifndef KERNEL_VERSION
-#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
-#endif
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-#define LINUX_2_4
-#endif
+#define SWITCH_MEDIA_1000 8
typedef int (*switch_handler)(void *driver, char *buf, int nr);
typedef int (*switch_handler)(void *driver, char *buf, int nr);
@@
-35,6
+29,7
@@
typedef struct {
const switch_config *driver_handlers, *port_handlers, *vlan_handlers;
void *data;
void *priv;
const switch_config *driver_handlers, *port_handlers, *vlan_handlers;
void *data;
void *priv;
+ char dev_name[SWITCH_NAME_BUFSZ];
} switch_driver;
typedef struct {
} switch_driver;
typedef struct {