diff options
author | Matthias Urlichs <smurf@smurf.noris.de> | 2008-08-12 04:12:09 -0400 |
---|---|---|
committer | Karsten Keil <kkeil@suse.de> | 2009-01-09 16:44:23 -0500 |
commit | 8b6015f736125050722dbe59c4f943e78cd626f0 (patch) | |
tree | a49553861b2b848c23306703c53b877a96a58624 /include/linux/mISDNif.h | |
parent | 9776ef0829ed33e8f36d9e7d859d00cc91c54ffd (diff) |
mISDN: Added an ioctl to change the device name
To get persistent device names with hotplug we need to rename devices
sometime.
Signed-off-by: Matthias Urlichs <matthias@urlichs.de>
Signed-off-by: Karsten Keil <kkeil@suse.de>
Diffstat (limited to 'include/linux/mISDNif.h')
-rw-r--r-- | include/linux/mISDNif.h | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/include/linux/mISDNif.h b/include/linux/mISDNif.h index 74c903cd7a0a..be09476ed854 100644 --- a/include/linux/mISDNif.h +++ b/include/linux/mISDNif.h | |||
@@ -36,8 +36,8 @@ | |||
36 | * - should be incremented on every checkin | 36 | * - should be incremented on every checkin |
37 | */ | 37 | */ |
38 | #define MISDN_MAJOR_VERSION 1 | 38 | #define MISDN_MAJOR_VERSION 1 |
39 | #define MISDN_MINOR_VERSION 0 | 39 | #define MISDN_MINOR_VERSION 1 |
40 | #define MISDN_RELEASE 19 | 40 | #define MISDN_RELEASE 20 |
41 | 41 | ||
42 | /* primitives for information exchange | 42 | /* primitives for information exchange |
43 | * generell format | 43 | * generell format |
@@ -255,16 +255,6 @@ struct sockaddr_mISDN { | |||
255 | unsigned char tei; | 255 | unsigned char tei; |
256 | }; | 256 | }; |
257 | 257 | ||
258 | /* timer device ioctl */ | ||
259 | #define IMADDTIMER _IOR('I', 64, int) | ||
260 | #define IMDELTIMER _IOR('I', 65, int) | ||
261 | /* socket ioctls */ | ||
262 | #define IMGETVERSION _IOR('I', 66, int) | ||
263 | #define IMGETCOUNT _IOR('I', 67, int) | ||
264 | #define IMGETDEVINFO _IOR('I', 68, int) | ||
265 | #define IMCTRLREQ _IOR('I', 69, int) | ||
266 | #define IMCLEAR_L2 _IOR('I', 70, int) | ||
267 | |||
268 | struct mISDNversion { | 258 | struct mISDNversion { |
269 | unsigned char major; | 259 | unsigned char major; |
270 | unsigned char minor; | 260 | unsigned char minor; |
@@ -281,6 +271,23 @@ struct mISDN_devinfo { | |||
281 | char name[MISDN_MAX_IDLEN]; | 271 | char name[MISDN_MAX_IDLEN]; |
282 | }; | 272 | }; |
283 | 273 | ||
274 | struct mISDN_devrename { | ||
275 | u_int id; | ||
276 | char name[MISDN_MAX_IDLEN]; /* new name */ | ||
277 | }; | ||
278 | |||
279 | /* timer device ioctl */ | ||
280 | #define IMADDTIMER _IOR('I', 64, int) | ||
281 | #define IMDELTIMER _IOR('I', 65, int) | ||
282 | |||
283 | /* socket ioctls */ | ||
284 | #define IMGETVERSION _IOR('I', 66, int) | ||
285 | #define IMGETCOUNT _IOR('I', 67, int) | ||
286 | #define IMGETDEVINFO _IOR('I', 68, int) | ||
287 | #define IMCTRLREQ _IOR('I', 69, int) | ||
288 | #define IMCLEAR_L2 _IOR('I', 70, int) | ||
289 | #define IMSETDEVNAME _IOR('I', 71, struct mISDN_devrename) | ||
290 | |||
284 | static inline int | 291 | static inline int |
285 | test_channelmap(u_int nr, u_char *map) | 292 | test_channelmap(u_int nr, u_char *map) |
286 | { | 293 | { |