home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / linux / phonedev.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  539 b   |  26 lines

  1. #ifndef __LINUX_PHONEDEV_H
  2. #define __LINUX_PHONEDEV_H
  3.  
  4. #include <linux/types.h>
  5.  
  6. #ifdef __KERNEL__
  7.  
  8. #include <linux/poll.h>
  9.  
  10. struct phone_device {
  11.     struct phone_device *next;
  12.     struct file_operations *f_op;
  13.     int (*open) (struct phone_device *, struct file *);
  14.     int board;        /* Device private index */
  15.     int minor;
  16. };
  17.  
  18. extern int phonedev_init(void);
  19. #define PHONE_MAJOR    100
  20. extern int phone_register_device(struct phone_device *, int unit);
  21. #define PHONE_UNIT_ANY    -1
  22. extern void phone_unregister_device(struct phone_device *);
  23.  
  24. #endif
  25. #endif
  26.