Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
malattia@linux.it | 1ce82c1 | 2007-04-28 23:34:36 +0900 | [diff] [blame] | 2 | #ifndef _SONYLAPTOP_H_ |
| 3 | #define _SONYLAPTOP_H_ |
| 4 | |
| 5 | #include <linux/types.h> |
| 6 | |
| 7 | #ifdef __KERNEL__ |
| 8 | |
| 9 | /* used only for communication between v4l and sony-laptop */ |
| 10 | |
| 11 | #define SONY_PIC_COMMAND_GETCAMERA 1 /* obsolete */ |
| 12 | #define SONY_PIC_COMMAND_SETCAMERA 2 |
| 13 | #define SONY_PIC_COMMAND_GETCAMERABRIGHTNESS 3 /* obsolete */ |
| 14 | #define SONY_PIC_COMMAND_SETCAMERABRIGHTNESS 4 |
| 15 | #define SONY_PIC_COMMAND_GETCAMERACONTRAST 5 /* obsolete */ |
| 16 | #define SONY_PIC_COMMAND_SETCAMERACONTRAST 6 |
| 17 | #define SONY_PIC_COMMAND_GETCAMERAHUE 7 /* obsolete */ |
| 18 | #define SONY_PIC_COMMAND_SETCAMERAHUE 8 |
| 19 | #define SONY_PIC_COMMAND_GETCAMERACOLOR 9 /* obsolete */ |
| 20 | #define SONY_PIC_COMMAND_SETCAMERACOLOR 10 |
| 21 | #define SONY_PIC_COMMAND_GETCAMERASHARPNESS 11 /* obsolete */ |
| 22 | #define SONY_PIC_COMMAND_SETCAMERASHARPNESS 12 |
| 23 | #define SONY_PIC_COMMAND_GETCAMERAPICTURE 13 /* obsolete */ |
| 24 | #define SONY_PIC_COMMAND_SETCAMERAPICTURE 14 |
| 25 | #define SONY_PIC_COMMAND_GETCAMERAAGC 15 /* obsolete */ |
| 26 | #define SONY_PIC_COMMAND_SETCAMERAAGC 16 |
| 27 | #define SONY_PIC_COMMAND_GETCAMERADIRECTION 17 /* obsolete */ |
| 28 | #define SONY_PIC_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */ |
| 29 | #define SONY_PIC_COMMAND_GETCAMERAREVISION 19 /* obsolete */ |
| 30 | |
Mauro Carvalho Chehab | 6159e12 | 2018-04-20 11:55:13 -0400 | [diff] [blame] | 31 | #if IS_ENABLED(CONFIG_SONY_LAPTOP) |
malattia@linux.it | 1ce82c1 | 2007-04-28 23:34:36 +0900 | [diff] [blame] | 32 | int sony_pic_camera_command(int command, u8 value); |
Mauro Carvalho Chehab | 6159e12 | 2018-04-20 11:55:13 -0400 | [diff] [blame] | 33 | #else |
| 34 | static inline int sony_pic_camera_command(int command, u8 value) { return 0; }; |
| 35 | #endif |
malattia@linux.it | 1ce82c1 | 2007-04-28 23:34:36 +0900 | [diff] [blame] | 36 | |
| 37 | #endif /* __KERNEL__ */ |
| 38 | |
| 39 | #endif /* _SONYLAPTOP_H_ */ |