summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttpci')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c12
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.h52
2 files changed, 32 insertions, 32 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index c84fbd584..99714ad94 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -617,7 +617,7 @@ static inline int
DvbDmxFilterCallback(u8 * buffer1, size_t buffer1_len,
u8 * buffer2, size_t buffer2_len,
struct dvb_demux_filter *dvbdmxfilter,
- dmx_success_t success,
+ enum dmx_success success,
struct av7110 *av7110)
{
DEB_EE(("av7110: %p\n",av7110));
@@ -1422,14 +1422,14 @@ inline static int SetWindowBlend(struct av7110 *av7110, u8 windownr, u8 blending
}
inline static int SetBlend_(struct av7110 *av7110, u8 windownr,
- OSDPALTYPE colordepth, u16 index, u8 blending)
+ enum av7110_osd_palette_type colordepth, u16 index, u8 blending)
{
return outcom(av7110, COMTYPE_OSD, SetBlend, 4,
windownr, colordepth, index, blending);
}
inline static int SetColor_(struct av7110 *av7110, u8 windownr,
- OSDPALTYPE colordepth, u16 index, u16 colorhi, u16 colorlo)
+ enum av7110_osd_palette_type colordepth, u16 index, u16 colorhi, u16 colorlo)
{
return outcom(av7110, COMTYPE_OSD, SetColor, 5,
windownr, colordepth, index, colorhi, colorlo);
@@ -1554,15 +1554,15 @@ static void DestroyOSDWindows(struct av7110 *av7110)
static inline int
CreateOSDWindow(struct av7110 *av7110, u8 windownr,
- DISPTYPE disptype, u16 width, u16 height)
+ enum av7110_window_display_type disptype, u16 width, u16 height)
{
return outcom(av7110, COMTYPE_OSD, WCreate, 4,
windownr, disptype, width, height);
}
-static OSDPALTYPE bpp2pal[8]={Pal1Bit, Pal2Bit, 0, Pal4Bit, 0, 0, 0, Pal8Bit};
-static DISPTYPE bpp2bit[8]={BITMAP1, BITMAP2, 0, BITMAP4, 0, 0, 0, BITMAP8};
+static enum av7110_osd_palette_type bpp2pal[8]={Pal1Bit, Pal2Bit, 0, Pal4Bit, 0, 0, 0, Pal8Bit};
+static enum av7110_window_display_type bpp2bit[8]={BITMAP1, BITMAP2, 0, BITMAP4, 0, 0, 0, BITMAP8};
static inline int
LoadBitmap(struct av7110 *av7110, u16 format, u16 dx, u16 dy, int inc, u8* data)
diff --git a/linux/drivers/media/dvb/ttpci/av7110.h b/linux/drivers/media/dvb/ttpci/av7110.h
index 944ff7c1b..ac42c6e16 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.h
+++ b/linux/drivers/media/dvb/ttpci/av7110.h
@@ -40,32 +40,32 @@
#include "dvb_net.h"
#include "dvb_ringbuffer.h"
-typedef enum BOOTSTATES
+enum av7110_bootstate
{
BOOTSTATE_BUFFER_EMPTY = 0,
BOOTSTATE_BUFFER_FULL = 1,
BOOTSTATE_BOOT_COMPLETE = 2
-} BOOTSTATES;
+};
-typedef enum
+enum av7110_type_rec_play_format
{ RP_None,
AudioPES,
AudioMp2,
AudioPCM,
VideoPES,
AV_PES
-} TYPE_REC_PLAY_FORMAT;
+};
-typedef enum OSDPALTYPE
+enum av7110_osd_palette_type
{
NoPalet = 0, /* No palette */
Pal1Bit = 2, /* 2 colors for 1 Bit Palette */
Pal2Bit = 4, /* 4 colors for 2 bit palette */
Pal4Bit = 16, /* 16 colors for 4 bit palette */
Pal8Bit = 256 /* 256 colors for 16 bit palette */
-} OSDPALTYPE, *POSDPALTYPE;
+};
-typedef enum {
+enum av7110_window_display_type {
BITMAP1, /* 1 bit bitmap */
BITMAP2, /* 2 bit bitmap */
BITMAP4, /* 4 bit bitmap */
@@ -86,7 +86,7 @@ typedef enum {
VIDEOTDSIZE, /* True Size MPEG Video Display Double Resolution */
VIDEONSIZE, /* Full Size MPEG Video Display */
CURSOR /* Cursor */
-} DISPTYPE; /* Window display type */
+};
/* switch defines */
#define SB_GPIO 3
@@ -99,13 +99,13 @@ typedef enum {
#define FB_ON SAA7146_GPIO_OUTHI //FastBlank an (RGB-Mode)
#define FB_LOOP SAA7146_GPIO_INPUT //FastBlank der PC-Grafik durchschleifen
-typedef enum
+enum av7110_video_output_mode
{
NO_OUT = 0, //disable analog Output
CVBS_RGB_OUT = 1,
CVBS_YC_OUT = 2,
YC_OUT = 3
-} VIDEOOUTPUTMODE;
+};
#define GPMQFull 0x0001 //Main Message Queue Full
#define GPMQOver 0x0002 //Main Message Queue Overflow
@@ -133,7 +133,7 @@ typedef enum
#define PBUFSIZE_16K 0x0700
#define PBUFSIZE_32K 0x0800
-typedef enum {
+enum av7110_osd_command {
WCreate,
WDestroy,
WMoveD,
@@ -154,9 +154,9 @@ typedef enum {
ReleaseBmp,
SetWTrans,
SetWNoTrans
-} OSDCOM;
+};
-typedef enum {
+enum av7110_pid_command {
MultiPID,
VideoPID,
AudioPID,
@@ -169,13 +169,13 @@ typedef enum {
Scan,
SetDescr,
SetIR
-} PIDCOM;
+};
-typedef enum {
+enum av7110_mpeg_command {
SelAudChannels
-} MPEGCOM;
+};
-typedef enum {
+enum av7110_audio_command {
AudioDAC,
CabADAC,
ON22K,
@@ -184,9 +184,9 @@ typedef enum {
ADSwitch,
SendDiSEqC,
SetRegister
-} AUDCOM;
+};
-typedef enum {
+enum av7110_request_command {
AudioState,
AudioBuffState,
VideoState1,
@@ -198,18 +198,18 @@ typedef enum {
ReqRegister,
ReqSecFilterError,
ReqSTC
-} REQCOM;
+};
-typedef enum {
+enum av7110_encoder_command {
SetVidMode,
SetTestMode,
LoadVidCode,
SetMonitorType,
SetPanScanType,
SetFreezeMode
-} ENC;
+};
-typedef enum {
+enum av7110_rec_play_state {
__Record,
__Stop,
__Play,
@@ -218,9 +218,9 @@ typedef enum {
__FF_IP,
__Scan_I,
__Continue
-} REC_PLAY;
+};
-typedef enum {
+enum av7110_command_type {
COMTYPE_NOCOM,
COMTYPE_PIDFILTER,
COMTYPE_MPEGDECODER,
@@ -238,7 +238,7 @@ typedef enum {
COMTYPE_VIDEO,
COMTYPE_AUDIO,
COMTYPE_CI_LL,
-} COMTYPE;
+};
#define VID_NONE_PREF 0x00 /* No aspect ration processing preferred */
#define VID_PAN_SCAN_PREF 0x01 /* Pan and Scan Display preferred */