mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
video: Move _VIDIOCBASE and _VIDIOC to include/nuttx/fs/ioctl.h
to align with other drivers Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
b7d2b38700
commit
e292200f61
@@ -92,6 +92,7 @@
|
|||||||
#define _BLUETOOTHBASE (0x3400) /* Bluetooth ioctl commands */
|
#define _BLUETOOTHBASE (0x3400) /* Bluetooth ioctl commands */
|
||||||
#define _PKTRADIOBASE (0x3500) /* Packet radio ioctl commands */
|
#define _PKTRADIOBASE (0x3500) /* Packet radio ioctl commands */
|
||||||
#define _LTEBASE (0x3600) /* LTE device ioctl commands */
|
#define _LTEBASE (0x3600) /* LTE device ioctl commands */
|
||||||
|
#define _VIDIOCBASE (0x3700) /* Video device ioctl commands */
|
||||||
#define _WLIOCBASE (0x8b00) /* Wireless modules ioctl network commands */
|
#define _WLIOCBASE (0x8b00) /* Wireless modules ioctl network commands */
|
||||||
|
|
||||||
/* boardctl() commands share the same number space */
|
/* boardctl() commands share the same number space */
|
||||||
@@ -599,6 +600,11 @@
|
|||||||
#define _LTEIOCVALID(c) (_IOC_TYPE(c)==_LTEBASE)
|
#define _LTEIOCVALID(c) (_IOC_TYPE(c)==_LTEBASE)
|
||||||
#define _LTEIOC(nr) _IOC(_LTEBASE,nr)
|
#define _LTEIOC(nr) _IOC(_LTEBASE,nr)
|
||||||
|
|
||||||
|
/* Video device ioctl definitions *******************************************/
|
||||||
|
|
||||||
|
#define _VIDIOCVALID(c) (_IOC_TYPE(c)==_VIDIOCBASE)
|
||||||
|
#define _VIDIOC(nr) _IOC(_VIDIOCBASE,nr)
|
||||||
|
|
||||||
/* Wireless driver network ioctl definitions ********************************/
|
/* Wireless driver network ioctl definitions ********************************/
|
||||||
|
|
||||||
/* (see nuttx/include/wireless/wireless.h */
|
/* (see nuttx/include/wireless/wireless.h */
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/ioctl.h>
|
#include <nuttx/fs/ioctl.h>
|
||||||
#include "video_controls.h"
|
#include <nuttx/video/video_controls.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
@@ -38,10 +38,6 @@ extern "C"
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#define _VIDIOCBASE (0x1000)
|
|
||||||
|
|
||||||
#define _VIDIOC(nr) _IOC(_VIDIOCBASE,nr)
|
|
||||||
|
|
||||||
/* Enumerate the formats supported by device */
|
/* Enumerate the formats supported by device */
|
||||||
|
|
||||||
#define VIDIOC_ENUM_FMT _VIDIOC(0x0001)
|
#define VIDIOC_ENUM_FMT _VIDIOC(0x0001)
|
||||||
|
|||||||
Reference in New Issue
Block a user