26 #ifndef _BC_DTS_DEFS_H_
27 #define _BC_DTS_DEFS_H_
29 #include <linux/types.h>
32 #define BC_BIT(_x) (1 << (_x))
70 #define BC_REG_KEY_MAIN_PATH "Software\\Broadcom\\MediaPC\\70010"
71 #define BC_REG_KEY_FWPATH "FirmwareFilePath"
72 #define BC_REG_KEY_SEC_OPT "DbgOptions"
93 #if defined(__KERNEL__) || defined(__LINUX_USER__)
96 #define ALIGN(x) __declspec(align(x))
131 #define DTS_DFLT_RESOLUTION(x) (x<<11)
133 #define DTS_DFLT_CLOCK(x) (x<<19)
164 #define BC_MPEG_VALID_PANSCAN (1)
184 #define H264_VALID_PANSCAN (1)
185 #define H264_VALID_SPS_CROP (2)
186 #define H264_VALID_VUI (4)
216 #define VC1_VALID_PANSCAN (1)
237 #if defined(__LINUX_USER__)
241 vdecNoPulldownInfo = 0,
246 vdecTopBottomTop = 5,
247 vdecBottomTopBottom = 6,
256 vdecFrameRateUnknown = 0,
269 vdecAspectRatioUnknown = 0,
270 vdecAspectRatioSquare,
271 vdecAspectRatio12_11,
272 vdecAspectRatio10_11,
273 vdecAspectRatio16_11,
274 vdecAspectRatio40_33,
275 vdecAspectRatio24_11,
276 vdecAspectRatio20_11,
277 vdecAspectRatio32_11,
278 vdecAspectRatio80_33,
279 vdecAspectRatio18_11,
280 vdecAspectRatio15_11,
281 vdecAspectRatio64_33,
282 vdecAspectRatio160_99,
285 vdecAspectRatio221_1,
286 vdecAspectRatioOther = 255,
291 vdecColourPrimariesUnknown = 0,
292 vdecColourPrimariesBT709,
293 vdecColourPrimariesUnspecified,
294 vdecColourPrimariesReserved,
295 vdecColourPrimariesBT470_2M = 4,
296 vdecColourPrimariesBT470_2BG,
297 vdecColourPrimariesSMPTE170M,
298 vdecColourPrimariesSMPTE240M,
299 vdecColourPrimariesGenericFilm,
339 vdecRESOLUTION_CUSTOM = 0x00000000,
340 vdecRESOLUTION_480i = 0x00000001,
341 vdecRESOLUTION_1080i = 0x00000002,
342 vdecRESOLUTION_NTSC = 0x00000003,
343 vdecRESOLUTION_480p = 0x00000004,
344 vdecRESOLUTION_720p = 0x00000005,
345 vdecRESOLUTION_PAL1 = 0x00000006,
346 vdecRESOLUTION_1080i25 = 0x00000007,
347 vdecRESOLUTION_720p50 = 0x00000008,
348 vdecRESOLUTION_576p = 0x00000009,
349 vdecRESOLUTION_1080i29_97 = 0x0000000A,
350 vdecRESOLUTION_720p59_94 = 0x0000000B,
351 vdecRESOLUTION_SD_DVD = 0x0000000C,
352 vdecRESOLUTION_480p656 = 0x0000000D,
353 vdecRESOLUTION_1080p23_976 = 0x0000000E,
354 vdecRESOLUTION_720p23_976 = 0x0000000F,
355 vdecRESOLUTION_240p29_97 = 0x00000010,
356 vdecRESOLUTION_240p30 = 0x00000011,
357 vdecRESOLUTION_288p25 = 0x00000012,
358 vdecRESOLUTION_1080p29_97 = 0x00000013,
359 vdecRESOLUTION_1080p30 = 0x00000014,
360 vdecRESOLUTION_1080p24 = 0x00000015,
361 vdecRESOLUTION_1080p25 = 0x00000016,
362 vdecRESOLUTION_720p24 = 0x00000017,
363 vdecRESOLUTION_720p29_97 = 0x00000018,
364 vdecRESOLUTION_480p23_976 = 0x00000019,
365 vdecRESOLUTION_480p29_97 = 0x0000001A,
366 vdecRESOLUTION_576p25 = 0x0000001B,
368 vdecRESOLUTION_480p0 = 0x0000001C,
369 vdecRESOLUTION_480i0 = 0x0000001D,
370 vdecRESOLUTION_576p0 = 0x0000001E,
371 vdecRESOLUTION_720p0 = 0x0000001F,
372 vdecRESOLUTION_1080p0 = 0x00000020,
373 vdecRESOLUTION_1080i0 = 0x00000021,
377 #define VDEC_FLAG_EOS (0x0004)
379 #define VDEC_FLAG_FRAME (0x0000)
380 #define VDEC_FLAG_FIELDPAIR (0x0008)
381 #define VDEC_FLAG_TOPFIELD (0x0010)
382 #define VDEC_FLAG_BOTTOMFIELD (0x0018)
384 #define VDEC_FLAG_PROGRESSIVE_SRC (0x0000)
385 #define VDEC_FLAG_INTERLACED_SRC (0x0020)
386 #define VDEC_FLAG_UNKNOWN_SRC (0x0040)
388 #define VDEC_FLAG_BOTTOM_FIRST (0x0080)
389 #define VDEC_FLAG_LAST_PICTURE (0x0100)
391 #define VDEC_FLAG_PICTURE_META_DATA_PRESENT (0x40000)
474 #define MAX_UD_SIZE 1792
558 #define BC_SWAP32(_v) \
559 ((((_v) & 0xFF000000)>>24)| \
560 (((_v) & 0x00FF0000)>>8)| \
561 (((_v) & 0x0000FF00)<<8)| \
562 (((_v) & 0x000000FF)<<24))
564 #define WM_AGENT_TRAYICON_DECODER_OPEN 10001
565 #define WM_AGENT_TRAYICON_DECODER_CLOSE 10002
566 #define WM_AGENT_TRAYICON_DECODER_START 10003
567 #define WM_AGENT_TRAYICON_DECODER_STOP 10004
568 #define WM_AGENT_TRAYICON_DECODER_RUN 10005
569 #define WM_AGENT_TRAYICON_DECODER_PAUSE 10006