diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ite_gpio.h | 66 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 5 | ||||
| -rw-r--r-- | include/linux/videodev2.h | 80 |
3 files changed, 83 insertions, 68 deletions
diff --git a/include/linux/ite_gpio.h b/include/linux/ite_gpio.h deleted file mode 100644 index b123a14292d3..000000000000 --- a/include/linux/ite_gpio.h +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * FILE NAME ite_gpio.h | ||
| 3 | * | ||
| 4 | * BRIEF MODULE DESCRIPTION | ||
| 5 | * Generic gpio. | ||
| 6 | * | ||
| 7 | * Author: MontaVista Software, Inc. <source@mvista.com> | ||
| 8 | * Hai-Pao Fan <haipao@mvista.com> | ||
| 9 | * | ||
| 10 | * Copyright 2001 MontaVista Software Inc. | ||
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or modify it | ||
| 13 | * under the terms of the GNU General Public License as published by the | ||
| 14 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 15 | * option) any later version. | ||
| 16 | * | ||
| 17 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
| 18 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 19 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
| 20 | * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
| 23 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
| 24 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 27 | * | ||
| 28 | * You should have received a copy of the GNU General Public License along | ||
| 29 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 30 | * 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 31 | */ | ||
| 32 | |||
| 33 | #ifndef __ITE_GPIO_H | ||
| 34 | #define __ITE_GPIO_H | ||
| 35 | |||
| 36 | #include <linux/ioctl.h> | ||
| 37 | |||
| 38 | struct ite_gpio_ioctl_data { | ||
| 39 | __u32 device; | ||
| 40 | __u32 mask; | ||
| 41 | __u32 data; | ||
| 42 | }; | ||
| 43 | |||
| 44 | #define ITE_GPIO_IOCTL_BASE 'Z' | ||
| 45 | |||
| 46 | #define ITE_GPIO_IN _IOWR(ITE_GPIO_IOCTL_BASE, 0, struct ite_gpio_ioctl_data) | ||
| 47 | #define ITE_GPIO_OUT _IOW (ITE_GPIO_IOCTL_BASE, 1, struct ite_gpio_ioctl_data) | ||
| 48 | #define ITE_GPIO_INT_CTRL _IOW (ITE_GPIO_IOCTL_BASE, 2, struct ite_gpio_ioctl_data) | ||
| 49 | #define ITE_GPIO_IN_STATUS _IOW (ITE_GPIO_IOCTL_BASE, 3, struct ite_gpio_ioctl_data) | ||
| 50 | #define ITE_GPIO_OUT_STATUS _IOW (ITE_GPIO_IOCTL_BASE, 4, struct ite_gpio_ioctl_data) | ||
| 51 | #define ITE_GPIO_GEN_CTRL _IOW (ITE_GPIO_IOCTL_BASE, 5, struct ite_gpio_ioctl_data) | ||
| 52 | #define ITE_GPIO_INT_WAIT _IOW (ITE_GPIO_IOCTL_BASE, 6, struct ite_gpio_ioctl_data) | ||
| 53 | |||
| 54 | #define ITE_GPIO_PORTA 0x01 | ||
| 55 | #define ITE_GPIO_PORTB 0x02 | ||
| 56 | #define ITE_GPIO_PORTC 0x04 | ||
| 57 | |||
| 58 | extern int ite_gpio_in(__u32 device, __u32 mask, volatile __u32 *data); | ||
| 59 | extern int ite_gpio_out(__u32 device, __u32 mask, __u32 data); | ||
| 60 | extern int ite_gpio_int_ctrl(__u32 device, __u32 mask, __u32 data); | ||
| 61 | extern int ite_gpio_in_status(__u32 device, __u32 mask, volatile __u32 *data); | ||
| 62 | extern int ite_gpio_out_status(__u32 device, __u32 mask, __u32 data); | ||
| 63 | extern int ite_gpio_gen_ctrl(__u32 device, __u32 mask, __u32 data); | ||
| 64 | extern int ite_gpio_int_wait(__u32 device, __u32 mask, __u32 data); | ||
| 65 | |||
| 66 | #endif | ||
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index c9ffbc3843d5..f069df245469 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
| @@ -1615,8 +1615,6 @@ | |||
| 1615 | #define PCI_VENDOR_ID_ROCKWELL 0x127A | 1615 | #define PCI_VENDOR_ID_ROCKWELL 0x127A |
| 1616 | 1616 | ||
| 1617 | #define PCI_VENDOR_ID_ITE 0x1283 | 1617 | #define PCI_VENDOR_ID_ITE 0x1283 |
| 1618 | #define PCI_DEVICE_ID_ITE_IT8172G 0x8172 | ||
| 1619 | #define PCI_DEVICE_ID_ITE_IT8172G_AUDIO 0x0801 | ||
| 1620 | #define PCI_DEVICE_ID_ITE_8211 0x8211 | 1618 | #define PCI_DEVICE_ID_ITE_8211 0x8211 |
| 1621 | #define PCI_DEVICE_ID_ITE_8212 0x8212 | 1619 | #define PCI_DEVICE_ID_ITE_8212 0x8212 |
| 1622 | #define PCI_DEVICE_ID_ITE_8872 0x8872 | 1620 | #define PCI_DEVICE_ID_ITE_8872 0x8872 |
| @@ -1883,6 +1881,8 @@ | |||
| 1883 | #define PCI_DEVICE_ID_PANACOM_QUADMODEM 0x0400 | 1881 | #define PCI_DEVICE_ID_PANACOM_QUADMODEM 0x0400 |
| 1884 | #define PCI_DEVICE_ID_PANACOM_DUALMODEM 0x0402 | 1882 | #define PCI_DEVICE_ID_PANACOM_DUALMODEM 0x0402 |
| 1885 | 1883 | ||
| 1884 | #define PCI_VENDOR_ID_SIPACKETS 0x14d9 | ||
| 1885 | #define PCI_DEVICE_ID_SP1011 0x0010 | ||
| 1886 | 1886 | ||
| 1887 | #define PCI_VENDOR_ID_AFAVLAB 0x14db | 1887 | #define PCI_VENDOR_ID_AFAVLAB 0x14db |
| 1888 | #define PCI_DEVICE_ID_AFAVLAB_P028 0x2180 | 1888 | #define PCI_DEVICE_ID_AFAVLAB_P028 0x2180 |
| @@ -1997,6 +1997,7 @@ | |||
| 1997 | #define PCI_DEVICE_ID_FARSITE_TE1C 0x1612 | 1997 | #define PCI_DEVICE_ID_FARSITE_TE1C 0x1612 |
| 1998 | 1998 | ||
| 1999 | #define PCI_VENDOR_ID_SIBYTE 0x166d | 1999 | #define PCI_VENDOR_ID_SIBYTE 0x166d |
| 2000 | #define PCI_DEVICE_ID_BCM1250_PCI 0x0001 | ||
| 2000 | #define PCI_DEVICE_ID_BCM1250_HT 0x0002 | 2001 | #define PCI_DEVICE_ID_BCM1250_HT 0x0002 |
| 2001 | 2002 | ||
| 2002 | #define PCI_VENDOR_ID_NETCELL 0x169c | 2003 | #define PCI_VENDOR_ID_NETCELL 0x169c |
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 44c59da26ed2..c5fdf6259548 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
| @@ -276,6 +276,82 @@ struct v4l2_fmtdesc | |||
| 276 | 276 | ||
| 277 | #define V4L2_FMT_FLAG_COMPRESSED 0x0001 | 277 | #define V4L2_FMT_FLAG_COMPRESSED 0x0001 |
| 278 | 278 | ||
| 279 | #if 1 | ||
| 280 | /* Experimental Frame Size and frame rate enumeration */ | ||
| 281 | /* | ||
| 282 | * F R A M E S I Z E E N U M E R A T I O N | ||
| 283 | */ | ||
| 284 | enum v4l2_frmsizetypes | ||
| 285 | { | ||
| 286 | V4L2_FRMSIZE_TYPE_DISCRETE = 1, | ||
| 287 | V4L2_FRMSIZE_TYPE_CONTINUOUS = 2, | ||
| 288 | V4L2_FRMSIZE_TYPE_STEPWISE = 3, | ||
| 289 | }; | ||
| 290 | |||
| 291 | struct v4l2_frmsize_discrete | ||
| 292 | { | ||
| 293 | __u32 width; /* Frame width [pixel] */ | ||
| 294 | __u32 height; /* Frame height [pixel] */ | ||
| 295 | }; | ||
| 296 | |||
| 297 | struct v4l2_frmsize_stepwise | ||
| 298 | { | ||
| 299 | __u32 min_width; /* Minimum frame width [pixel] */ | ||
| 300 | __u32 max_width; /* Maximum frame width [pixel] */ | ||
| 301 | __u32 step_width; /* Frame width step size [pixel] */ | ||
| 302 | __u32 min_height; /* Minimum frame height [pixel] */ | ||
| 303 | __u32 max_height; /* Maximum frame height [pixel] */ | ||
| 304 | __u32 step_height; /* Frame height step size [pixel] */ | ||
| 305 | }; | ||
| 306 | |||
| 307 | struct v4l2_frmsizeenum | ||
| 308 | { | ||
| 309 | __u32 index; /* Frame size number */ | ||
| 310 | __u32 pixel_format; /* Pixel format */ | ||
| 311 | __u32 type; /* Frame size type the device supports. */ | ||
| 312 | |||
| 313 | union { /* Frame size */ | ||
| 314 | struct v4l2_frmsize_discrete discrete; | ||
| 315 | struct v4l2_frmsize_stepwise stepwise; | ||
| 316 | }; | ||
| 317 | |||
| 318 | __u32 reserved[2]; /* Reserved space for future use */ | ||
| 319 | }; | ||
| 320 | |||
| 321 | /* | ||
| 322 | * F R A M E R A T E E N U M E R A T I O N | ||
| 323 | */ | ||
| 324 | enum v4l2_frmivaltypes | ||
| 325 | { | ||
| 326 | V4L2_FRMIVAL_TYPE_DISCRETE = 1, | ||
| 327 | V4L2_FRMIVAL_TYPE_CONTINUOUS = 2, | ||
| 328 | V4L2_FRMIVAL_TYPE_STEPWISE = 3, | ||
| 329 | }; | ||
| 330 | |||
| 331 | struct v4l2_frmival_stepwise | ||
| 332 | { | ||
| 333 | struct v4l2_fract min; /* Minimum frame interval [s] */ | ||
| 334 | struct v4l2_fract max; /* Maximum frame interval [s] */ | ||
| 335 | struct v4l2_fract step; /* Frame interval step size [s] */ | ||
| 336 | }; | ||
| 337 | |||
| 338 | struct v4l2_frmivalenum | ||
| 339 | { | ||
| 340 | __u32 index; /* Frame format index */ | ||
| 341 | __u32 pixel_format; /* Pixel format */ | ||
| 342 | __u32 width; /* Frame width */ | ||
| 343 | __u32 height; /* Frame height */ | ||
| 344 | __u32 type; /* Frame interval type the device supports. */ | ||
| 345 | |||
| 346 | union { /* Frame interval */ | ||
| 347 | struct v4l2_fract discrete; | ||
| 348 | struct v4l2_frmival_stepwise stepwise; | ||
| 349 | }; | ||
| 350 | |||
| 351 | __u32 reserved[2]; /* Reserved space for future use */ | ||
| 352 | }; | ||
| 353 | #endif | ||
| 354 | |||
| 279 | /* | 355 | /* |
| 280 | * T I M E C O D E | 356 | * T I M E C O D E |
| 281 | */ | 357 | */ |
| @@ -1249,6 +1325,10 @@ struct v4l2_streamparm | |||
| 1249 | #define VIDIOC_G_EXT_CTRLS _IOWR ('V', 71, struct v4l2_ext_controls) | 1325 | #define VIDIOC_G_EXT_CTRLS _IOWR ('V', 71, struct v4l2_ext_controls) |
| 1250 | #define VIDIOC_S_EXT_CTRLS _IOWR ('V', 72, struct v4l2_ext_controls) | 1326 | #define VIDIOC_S_EXT_CTRLS _IOWR ('V', 72, struct v4l2_ext_controls) |
| 1251 | #define VIDIOC_TRY_EXT_CTRLS _IOWR ('V', 73, struct v4l2_ext_controls) | 1327 | #define VIDIOC_TRY_EXT_CTRLS _IOWR ('V', 73, struct v4l2_ext_controls) |
| 1328 | #if 1 | ||
| 1329 | #define VIDIOC_ENUM_FRAMESIZES _IOWR ('V', 74, struct v4l2_frmsizeenum) | ||
| 1330 | #define VIDIOC_ENUM_FRAMEINTERVALS _IOWR ('V', 75, struct v4l2_frmivalenum) | ||
| 1331 | #endif | ||
| 1252 | 1332 | ||
| 1253 | #ifdef __OLD_VIDIOC_ | 1333 | #ifdef __OLD_VIDIOC_ |
| 1254 | /* for compatibility, will go away some day */ | 1334 | /* for compatibility, will go away some day */ |
