diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2005-06-23 14:57:49 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2005-06-23 14:57:49 +0000 |
commit | cb5e0bad301f342ed829ba38117100ba1f80305d (patch) | |
tree | 1bd5bd6fc8fdb8e5e02a56a8d7ae97227ed736a2 /sys/dev/ic/bt8xx.h | |
parent | c9a278db00350903eb2712d244541e77ca5c7d8c (diff) |
Use proper type for 32 bit entity. s/long/int
This is needed for bktr(4) to work on sparc64.
testing and ok by mickey and Jacob Meuser <jakemsr@jakemsr.com>
Diffstat (limited to 'sys/dev/ic/bt8xx.h')
-rw-r--r-- | sys/dev/ic/bt8xx.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sys/dev/ic/bt8xx.h b/sys/dev/ic/bt8xx.h index 63ff4221167..9f8ea37b3dd 100644 --- a/sys/dev/ic/bt8xx.h +++ b/sys/dev/ic/bt8xx.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bt8xx.h,v 1.2 2001/04/07 17:11:11 niklas Exp $ */ +/* $OpenBSD: bt8xx.h,v 1.3 2005/06/23 14:57:48 robert Exp $ */ /* $NetBSD: bt8xx.h,v 1.4 2000/12/30 16:55:24 wiz Exp $ */ /* This file is merged from ioctl_meteor.h and ioctl_bt848.h from FreeBSD. */ @@ -59,24 +59,24 @@ struct meteor_geomet { u_short rows; u_short columns; u_short frames; - u_long oformat; + u_int oformat; } ; /* structure for METEORGCOUNT-get count of frames, fifo errors and dma errors */ struct meteor_counts { - u_long fifo_errors; /* count of fifo errors since open */ - u_long dma_errors; /* count of dma errors since open */ - u_long frames_captured; /* count of frames captured since open */ - u_long even_fields_captured; /* count of even fields captured */ - u_long odd_fields_captured; /* count of odd fields captured */ + u_int fifo_errors; /* count of fifo errors since open */ + u_int dma_errors; /* count of dma errors since open */ + u_int frames_captured; /* count of frames captured since open */ + u_int even_fields_captured; /* count of even fields captured */ + u_int odd_fields_captured; /* count of odd fields captured */ } ; /* structure for getting and setting direct transfers to vram */ struct meteor_video { - u_long addr; /* Address of location to dma to */ - u_long width; /* Width of memory area */ - u_long banksize; /* Size of Vram bank */ - u_long ramsize; /* Size of Vram */ + u_int addr; /* Address of location to dma to */ + u_int width; /* Width of memory area */ + u_int banksize; /* Size of Vram bank */ + u_int ramsize; /* Size of Vram */ }; #define METEORCAPTUR _IOW('x', 1, int) /* capture a frame */ @@ -86,10 +86,10 @@ struct meteor_video { #define METEORSTATUS _IOR('x', 5, unsigned short) /* get status */ #define METEORSHUE _IOW('x', 6, signed char) /* set hue */ #define METEORGHUE _IOR('x', 6, signed char) /* get hue */ -#define METEORSFMT _IOW('x', 7, unsigned long) /* set format */ -#define METEORGFMT _IOR('x', 7, unsigned long) /* get format */ -#define METEORSINPUT _IOW('x', 8, unsigned long) /* set input dev */ -#define METEORGINPUT _IOR('x', 8, unsigned long) /* get input dev */ +#define METEORSFMT _IOW('x', 7, unsigned int) /* set format */ +#define METEORGFMT _IOR('x', 7, unsigned int) /* get format */ +#define METEORSINPUT _IOW('x', 8, unsigned int) /* set input dev */ +#define METEORGINPUT _IOR('x', 8, unsigned int) /* get input dev */ #define METEORSCHCV _IOW('x', 9, unsigned char) /* set uv gain */ #define METEORGCHCV _IOR('x', 9, unsigned char) /* get uv gain */ #define METEORSCOUNT _IOW('x',10, struct meteor_counts) @@ -337,7 +337,7 @@ struct eeProm { * b23-b16: i2c addr (write) * b31-b24: 1 = write, 0 = read */ -#define BT848_I2CWR _IOWR('x', 57, u_long) /* i2c read-write */ +#define BT848_I2CWR _IOWR('x', 57, u_int) /* i2c read-write */ struct bktr_msp_control { unsigned char function; @@ -385,7 +385,7 @@ struct meteor_pixfmt { u_int index; /* Index in supported pixfmt list */ METEOR_PIXTYPE type; /* What's the board gonna feed us */ u_int Bpp; /* Bytes per pixel */ - u_long masks[3]; /* R,G,B or Y,U,V masks, respectively */ + u_int masks[3]; /* R,G,B or Y,U,V masks, respectively */ unsigned swap_bytes :1; /* Bytes swapped within shorts */ unsigned swap_shorts:1; /* Shorts swapped within longs */ }; @@ -417,8 +417,8 @@ struct _bktr_clip { /* set input format */ -#define BT848SFMT _IOW('x', 67, unsigned long ) -#define BT848GFMT _IOR('x', 67, unsigned long ) +#define BT848SFMT _IOW('x', 67, unsigned int ) +#define BT848GFMT _IOR('x', 67, unsigned int ) /* set clear-buffer-on-start */ #define BT848SCBUF _IOW('x', 68, int) |