diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 19 | ||||
| -rw-r--r-- | include/linux/tty.h | 4 |
2 files changed, 19 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 26da98f61116..a79f48373e7e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1997,12 +1997,25 @@ extern void bd_release_from_disk(struct block_device *, struct gendisk *); | |||
| 1997 | #define CHRDEV_MAJOR_HASH_SIZE 255 | 1997 | #define CHRDEV_MAJOR_HASH_SIZE 255 |
| 1998 | extern int alloc_chrdev_region(dev_t *, unsigned, unsigned, const char *); | 1998 | extern int alloc_chrdev_region(dev_t *, unsigned, unsigned, const char *); |
| 1999 | extern int register_chrdev_region(dev_t, unsigned, const char *); | 1999 | extern int register_chrdev_region(dev_t, unsigned, const char *); |
| 2000 | extern int register_chrdev(unsigned int, const char *, | 2000 | extern int __register_chrdev(unsigned int major, unsigned int baseminor, |
| 2001 | const struct file_operations *); | 2001 | unsigned int count, const char *name, |
| 2002 | extern void unregister_chrdev(unsigned int, const char *); | 2002 | const struct file_operations *fops); |
| 2003 | extern void __unregister_chrdev(unsigned int major, unsigned int baseminor, | ||
| 2004 | unsigned int count, const char *name); | ||
| 2003 | extern void unregister_chrdev_region(dev_t, unsigned); | 2005 | extern void unregister_chrdev_region(dev_t, unsigned); |
| 2004 | extern void chrdev_show(struct seq_file *,off_t); | 2006 | extern void chrdev_show(struct seq_file *,off_t); |
| 2005 | 2007 | ||
| 2008 | static inline int register_chrdev(unsigned int major, const char *name, | ||
| 2009 | const struct file_operations *fops) | ||
| 2010 | { | ||
| 2011 | return __register_chrdev(major, 0, 256, name, fops); | ||
| 2012 | } | ||
| 2013 | |||
| 2014 | static inline void unregister_chrdev(unsigned int major, const char *name) | ||
| 2015 | { | ||
| 2016 | __unregister_chrdev(major, 0, 256, name); | ||
| 2017 | } | ||
| 2018 | |||
| 2006 | /* fs/block_dev.c */ | 2019 | /* fs/block_dev.c */ |
| 2007 | #define BDEVNAME_SIZE 32 /* Largest string for a blockdev identifier */ | 2020 | #define BDEVNAME_SIZE 32 /* Largest string for a blockdev identifier */ |
| 2008 | #define BDEVT_SIZE 10 /* Largest string for MAJ:MIN for blkdev */ | 2021 | #define BDEVT_SIZE 10 /* Largest string for MAJ:MIN for blkdev */ |
diff --git a/include/linux/tty.h b/include/linux/tty.h index e8c6c9136c97..0d3974f59c53 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | */ | 23 | */ |
| 24 | #define NR_UNIX98_PTY_DEFAULT 4096 /* Default maximum for Unix98 ptys */ | 24 | #define NR_UNIX98_PTY_DEFAULT 4096 /* Default maximum for Unix98 ptys */ |
| 25 | #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */ | 25 | #define NR_UNIX98_PTY_MAX (1 << MINORBITS) /* Absolute limit */ |
| 26 | #define NR_LDISCS 19 | 26 | #define NR_LDISCS 20 |
| 27 | 27 | ||
| 28 | /* line disciplines */ | 28 | /* line disciplines */ |
| 29 | #define N_TTY 0 | 29 | #define N_TTY 0 |
| @@ -47,6 +47,8 @@ | |||
| 47 | #define N_SLCAN 17 /* Serial / USB serial CAN Adaptors */ | 47 | #define N_SLCAN 17 /* Serial / USB serial CAN Adaptors */ |
| 48 | #define N_PPS 18 /* Pulse per Second */ | 48 | #define N_PPS 18 /* Pulse per Second */ |
| 49 | 49 | ||
| 50 | #define N_V253 19 /* Codec control over voice modem */ | ||
| 51 | |||
| 50 | /* | 52 | /* |
| 51 | * This character is the same as _POSIX_VDISABLE: it cannot be used as | 53 | * This character is the same as _POSIX_VDISABLE: it cannot be used as |
| 52 | * a c_cc[] character, but indicates that a particular special character | 54 | * a c_cc[] character, but indicates that a particular special character |
