| OLD | NEW |
| 1 #ifndef __RFKILL_H | 1 #ifndef __RFKILL_H |
| 2 #define __RFKILL_H | 2 #define __RFKILL_H |
| 3 | 3 |
| 4 /* | 4 /* |
| 5 * Copyright (C) 2006 - 2007 Ivo van Doorn | 5 * Copyright (C) 2006 - 2007 Ivo van Doorn |
| 6 * Copyright (C) 2007 Dmitry Torokhov | 6 * Copyright (C) 2007 Dmitry Torokhov |
| 7 * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> | 7 * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> |
| 8 * | 8 * |
| 9 * Permission to use, copy, modify, and/or distribute this software for any | 9 * Permission to use, copy, modify, and/or distribute this software for any |
| 10 * purpose with or without fee is hereby granted, provided that the above | 10 * purpose with or without fee is hereby granted, provided that the above |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 * @soft: soft state (0/1) | 75 * @soft: soft state (0/1) |
| 76 * | 76 * |
| 77 * Structure used for userspace communication on /dev/rfkill, | 77 * Structure used for userspace communication on /dev/rfkill, |
| 78 * used for events from the kernel and control to the kernel. | 78 * used for events from the kernel and control to the kernel. |
| 79 */ | 79 */ |
| 80 struct rfkill_event { | 80 struct rfkill_event { |
| 81 __u32 idx; | 81 __u32 idx; |
| 82 __u8 type; | 82 __u8 type; |
| 83 __u8 op; | 83 __u8 op; |
| 84 __u8 soft, hard; | 84 __u8 soft, hard; |
| 85 } __packed; | 85 } __attribute__((packed)); |
| 86 | 86 |
| 87 /* | 87 /* |
| 88 * We are planning to be backward and forward compatible with changes | 88 * We are planning to be backward and forward compatible with changes |
| 89 * to the event struct, by adding new, optional, members at the end. | 89 * to the event struct, by adding new, optional, members at the end. |
| 90 * When reading an event (whether the kernel from userspace or vice | 90 * When reading an event (whether the kernel from userspace or vice |
| 91 * versa) we need to accept anything that's at least as large as the | 91 * versa) we need to accept anything that's at least as large as the |
| 92 * version 1 event size, but might be able to accept other sizes in | 92 * version 1 event size, but might be able to accept other sizes in |
| 93 * the future. | 93 * the future. |
| 94 * | 94 * |
| 95 * One exception is the kernel -- we already have two event sizes in | 95 * One exception is the kernel -- we already have two event sizes in |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 static inline void | 383 static inline void |
| 384 rfkill_set_led_trigger_name(struct rfkill *rfkill, const char *name) | 384 rfkill_set_led_trigger_name(struct rfkill *rfkill, const char *name) |
| 385 { | 385 { |
| 386 } | 386 } |
| 387 #endif | 387 #endif |
| 388 | 388 |
| 389 #endif /* __KERNEL__ */ | 389 #endif /* __KERNEL__ */ |
| 390 | 390 |
| 391 #endif /* RFKILL_H */ | 391 #endif /* RFKILL_H */ |
| OLD | NEW |