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

fix failsafe on broadcom, send netlink events in diag when running linux 2.6

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7722 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2007-06-25 08:32:25 +00:00
parent 52242b5f8e
commit 1d5d64e647
13 changed files with 222 additions and 84 deletions

View File

@@ -74,9 +74,16 @@ struct platform_t {
struct event_t {
struct work_struct wq;
char buf[256];
char *argv[3];
char *envp[6];
unsigned long seen;
char *name, *action;
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0)
struct sk_buff *skb;
#else
char *scratch;
char *argv[4];
char *envp[7];
u8 enr, anr;
#endif
};
extern char *nvram_get(char *str);
@@ -88,12 +95,13 @@ static struct platform_t platform;
static void register_buttons(struct button_t *b);
static void unregister_buttons(struct button_t *b);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
#ifndef LINUX_2_4
static void hotplug_button(struct work_struct *work);
static irqreturn_t button_handler(int irq, void *dev_id);
#else
static void hotplug_button(struct event_t *event);
#endif
static irqreturn_t button_handler(int irq, void *dev_id, struct pt_regs *regs);
#endif
/* leds */