aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/atmdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/atmdev.h')
-rw-r--r--include/linux/atmdev.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h
index 817b23705c91..475f8c42c0e9 100644
--- a/include/linux/atmdev.h
+++ b/include/linux/atmdev.h
@@ -427,10 +427,20 @@ extern rwlock_t vcc_sklist_lock;
427 427
428#define ATM_SKB(skb) (((struct atm_skb_data *) (skb)->cb)) 428#define ATM_SKB(skb) (((struct atm_skb_data *) (skb)->cb))
429 429
430struct atm_dev *atm_dev_register(const char *type,const struct atmdev_ops *ops, 430struct atm_dev *atm_dev_register(const char *type, struct device *parent,
431 int number,unsigned long *flags); /* number == -1: pick first available */ 431 const struct atmdev_ops *ops,
432 int number, /* -1 == pick first available */
433 unsigned long *flags);
432struct atm_dev *atm_dev_lookup(int number); 434struct atm_dev *atm_dev_lookup(int number);
433void atm_dev_deregister(struct atm_dev *dev); 435void atm_dev_deregister(struct atm_dev *dev);
436
437/* atm_dev_signal_change
438 *
439 * Propagate lower layer signal change in atm_dev->signal to netdevice.
440 * The event will be sent via a notifier call chain.
441 */
442void atm_dev_signal_change(struct atm_dev *dev, char signal);
443
434void vcc_insert_socket(struct sock *sk); 444void vcc_insert_socket(struct sock *sk);
435 445
436 446
@@ -441,7 +451,7 @@ void vcc_insert_socket(struct sock *sk);
441 451
442static inline int atm_guess_pdu2truesize(int size) 452static inline int atm_guess_pdu2truesize(int size)
443{ 453{
444 return (SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info)); 454 return SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info);
445} 455}
446 456
447 457
@@ -510,6 +520,15 @@ void register_atm_ioctl(struct atm_ioctl *);
510 */ 520 */
511void deregister_atm_ioctl(struct atm_ioctl *); 521void deregister_atm_ioctl(struct atm_ioctl *);
512 522
523
524/* register_atmdevice_notifier - register atm_dev notify events
525 *
526 * Clients like br2684 will register notify events
527 * Currently we notify of signal found/lost
528 */
529int register_atmdevice_notifier(struct notifier_block *nb);
530void unregister_atmdevice_notifier(struct notifier_block *nb);
531
513#endif /* __KERNEL__ */ 532#endif /* __KERNEL__ */
514 533
515#endif 534#endif