phonedev.h 545 B

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