diff options
Diffstat (limited to 'include/linux/netdevice.h')
| -rw-r--r-- | include/linux/netdevice.h | 35 | 
1 files changed, 19 insertions, 16 deletions
| diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 3a0ed7f9e801..7c717907896d 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -244,6 +244,7 @@ struct netdev_boot_setup { | |||
| 244 | }; | 244 | }; | 
| 245 | #define NETDEV_BOOT_SETUP_MAX 8 | 245 | #define NETDEV_BOOT_SETUP_MAX 8 | 
| 246 | 246 | ||
| 247 | extern int __init netdev_boot_setup(char *str); | ||
| 247 | 248 | ||
| 248 | /* | 249 | /* | 
| 249 | * The DEVICE structure. | 250 | * The DEVICE structure. | 
| @@ -336,6 +337,7 @@ struct net_device | |||
| 336 | /* Interface address info. */ | 337 | /* Interface address info. */ | 
| 337 | unsigned char broadcast[MAX_ADDR_LEN]; /* hw bcast add */ | 338 | unsigned char broadcast[MAX_ADDR_LEN]; /* hw bcast add */ | 
| 338 | unsigned char dev_addr[MAX_ADDR_LEN]; /* hw address */ | 339 | unsigned char dev_addr[MAX_ADDR_LEN]; /* hw address */ | 
| 340 | unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */ | ||
| 339 | unsigned char addr_len; /* hardware address length */ | 341 | unsigned char addr_len; /* hardware address length */ | 
| 340 | unsigned short dev_id; /* for shared network cards */ | 342 | unsigned short dev_id; /* for shared network cards */ | 
| 341 | 343 | ||
| @@ -497,10 +499,12 @@ static inline void *netdev_priv(struct net_device *dev) | |||
| 497 | #define SET_NETDEV_DEV(net, pdev) ((net)->class_dev.dev = (pdev)) | 499 | #define SET_NETDEV_DEV(net, pdev) ((net)->class_dev.dev = (pdev)) | 
| 498 | 500 | ||
| 499 | struct packet_type { | 501 | struct packet_type { | 
| 500 | __be16 type; /* This is really htons(ether_type). */ | 502 | __be16 type; /* This is really htons(ether_type). */ | 
| 501 | struct net_device *dev; /* NULL is wildcarded here */ | 503 | struct net_device *dev; /* NULL is wildcarded here */ | 
| 502 | int (*func) (struct sk_buff *, struct net_device *, | 504 | int (*func) (struct sk_buff *, | 
| 503 | struct packet_type *); | 505 | struct net_device *, | 
| 506 | struct packet_type *, | ||
| 507 | struct net_device *); | ||
| 504 | void *af_packet_priv; | 508 | void *af_packet_priv; | 
| 505 | struct list_head list; | 509 | struct list_head list; | 
| 506 | }; | 510 | }; | 
| @@ -671,6 +675,7 @@ extern void dev_queue_xmit_nit(struct sk_buff *skb, struct net_device *dev); | |||
| 671 | extern void dev_init(void); | 675 | extern void dev_init(void); | 
| 672 | 676 | ||
| 673 | extern int netdev_nit; | 677 | extern int netdev_nit; | 
| 678 | extern int netdev_budget; | ||
| 674 | 679 | ||
| 675 | /* Called by rtnetlink.c:rtnl_unlock() */ | 680 | /* Called by rtnetlink.c:rtnl_unlock() */ | 
| 676 | extern void netdev_run_todo(void); | 681 | extern void netdev_run_todo(void); | 
| @@ -697,19 +702,9 @@ static inline int netif_carrier_ok(const struct net_device *dev) | |||
| 697 | 702 | ||
| 698 | extern void __netdev_watchdog_up(struct net_device *dev); | 703 | extern void __netdev_watchdog_up(struct net_device *dev); | 
| 699 | 704 | ||
| 700 | static inline void netif_carrier_on(struct net_device *dev) | 705 | extern void netif_carrier_on(struct net_device *dev); | 
| 701 | { | ||
| 702 | if (test_and_clear_bit(__LINK_STATE_NOCARRIER, &dev->state)) | ||
| 703 | linkwatch_fire_event(dev); | ||
| 704 | if (netif_running(dev)) | ||
| 705 | __netdev_watchdog_up(dev); | ||
| 706 | } | ||
| 707 | 706 | ||
| 708 | static inline void netif_carrier_off(struct net_device *dev) | 707 | extern void netif_carrier_off(struct net_device *dev); | 
| 709 | { | ||
| 710 | if (!test_and_set_bit(__LINK_STATE_NOCARRIER, &dev->state)) | ||
| 711 | linkwatch_fire_event(dev); | ||
| 712 | } | ||
| 713 | 708 | ||
| 714 | /* Hot-plugging. */ | 709 | /* Hot-plugging. */ | 
| 715 | static inline int netif_device_present(struct net_device *dev) | 710 | static inline int netif_device_present(struct net_device *dev) | 
| @@ -916,6 +911,14 @@ extern int skb_checksum_help(struct sk_buff *skb, int inward); | |||
| 916 | extern void net_enable_timestamp(void); | 911 | extern void net_enable_timestamp(void); | 
| 917 | extern void net_disable_timestamp(void); | 912 | extern void net_disable_timestamp(void); | 
| 918 | 913 | ||
| 914 | #ifdef CONFIG_PROC_FS | ||
| 915 | extern void *dev_seq_start(struct seq_file *seq, loff_t *pos); | ||
| 916 | extern void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos); | ||
| 917 | extern void dev_seq_stop(struct seq_file *seq, void *v); | ||
| 918 | #endif | ||
| 919 | |||
| 920 | extern void linkwatch_run_queue(void); | ||
| 921 | |||
| 919 | #endif /* __KERNEL__ */ | 922 | #endif /* __KERNEL__ */ | 
| 920 | 923 | ||
| 921 | #endif /* _LINUX_DEV_H */ | 924 | #endif /* _LINUX_DEV_H */ | 
