annotate vidix/drivers/nvidia.h @ 5068:64bf084309cf

mp3 detection fixed...
author arpi
date Thu, 14 Mar 2002 11:18:19 +0000
parents 783bad5ec316
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4329
783bad5ec316 initial
alex
parents:
diff changeset
1 #include <inttypes.h>
783bad5ec316 initial
alex
parents:
diff changeset
2
783bad5ec316 initial
alex
parents:
diff changeset
3 #define RIVA_FIFO_FREE(hwptr, cnt) \
783bad5ec316 initial
alex
parents:
diff changeset
4 { \
783bad5ec316 initial
alex
parents:
diff changeset
5 while (nv_fifo_space < (cnt)) { \
783bad5ec316 initial
alex
parents:
diff changeset
6 nv_fifo_space = hwptr->fifo_free >> 2; \
783bad5ec316 initial
alex
parents:
diff changeset
7 } \
783bad5ec316 initial
alex
parents:
diff changeset
8 nv_fifo_space -= (cnt); \
783bad5ec316 initial
alex
parents:
diff changeset
9 }
783bad5ec316 initial
alex
parents:
diff changeset
10
783bad5ec316 initial
alex
parents:
diff changeset
11 typedef struct {
783bad5ec316 initial
alex
parents:
diff changeset
12 uint32_t reserved00[4];
783bad5ec316 initial
alex
parents:
diff changeset
13 uint16_t fifo_free;
783bad5ec316 initial
alex
parents:
diff changeset
14 uint16_t nop[1];
783bad5ec316 initial
alex
parents:
diff changeset
15 uint32_t reserved01[0x03b];
783bad5ec316 initial
alex
parents:
diff changeset
16
783bad5ec316 initial
alex
parents:
diff changeset
17 uint32_t no_operation;
783bad5ec316 initial
alex
parents:
diff changeset
18 uint32_t notify;
783bad5ec316 initial
alex
parents:
diff changeset
19 uint32_t reserved02[0x01e];
783bad5ec316 initial
alex
parents:
diff changeset
20 uint32_t set_context_dma_notifies;
783bad5ec316 initial
alex
parents:
diff changeset
21 uint32_t set_context_dma_image;
783bad5ec316 initial
alex
parents:
diff changeset
22 uint32_t set_context_pattern;
783bad5ec316 initial
alex
parents:
diff changeset
23 uint32_t set_context_rop;
783bad5ec316 initial
alex
parents:
diff changeset
24 uint32_t set_context_beta1;
783bad5ec316 initial
alex
parents:
diff changeset
25 uint32_t set_context_surface;
783bad5ec316 initial
alex
parents:
diff changeset
26 uint32_t reserved03[0x05a];
783bad5ec316 initial
alex
parents:
diff changeset
27 uint32_t set_color_format;
783bad5ec316 initial
alex
parents:
diff changeset
28 uint32_t set_operation;
783bad5ec316 initial
alex
parents:
diff changeset
29 int16_t clip_x;
783bad5ec316 initial
alex
parents:
diff changeset
30 int16_t clip_y;
783bad5ec316 initial
alex
parents:
diff changeset
31 uint16_t clip_height;
783bad5ec316 initial
alex
parents:
diff changeset
32 uint16_t clip_width;
783bad5ec316 initial
alex
parents:
diff changeset
33 int16_t image_out_x;
783bad5ec316 initial
alex
parents:
diff changeset
34 int16_t image_out_y;
783bad5ec316 initial
alex
parents:
diff changeset
35 uint16_t image_out_height;
783bad5ec316 initial
alex
parents:
diff changeset
36 uint16_t image_out_width;
783bad5ec316 initial
alex
parents:
diff changeset
37 uint32_t du_dx;
783bad5ec316 initial
alex
parents:
diff changeset
38 uint32_t du_dy;
783bad5ec316 initial
alex
parents:
diff changeset
39 uint32_t reserved04[0x38];
783bad5ec316 initial
alex
parents:
diff changeset
40 uint16_t image_in_height;
783bad5ec316 initial
alex
parents:
diff changeset
41 uint16_t image_in_width;
783bad5ec316 initial
alex
parents:
diff changeset
42 uint32_t image_in_format;
783bad5ec316 initial
alex
parents:
diff changeset
43 uint32_t image_in_offset;
783bad5ec316 initial
alex
parents:
diff changeset
44 uint32_t image_in_point;
783bad5ec316 initial
alex
parents:
diff changeset
45 uint32_t reserved05[0x6fc];
783bad5ec316 initial
alex
parents:
diff changeset
46 } RivaScaledImage;
783bad5ec316 initial
alex
parents:
diff changeset
47
783bad5ec316 initial
alex
parents:
diff changeset
48 #define dump_scaledimage(x) { \
783bad5ec316 initial
alex
parents:
diff changeset
49 printf("clip: pos: %dx%d, size: %dx%d\n", \
783bad5ec316 initial
alex
parents:
diff changeset
50 x->clip_x, x->clip_y, x->clip_height, x->clip_width); \
783bad5ec316 initial
alex
parents:
diff changeset
51 printf("image_out: pos: %dx%d, size: %dx%d\n", \
783bad5ec316 initial
alex
parents:
diff changeset
52 x->image_out_x, x->image_out_y, x->image_out_height, x->image_out_width); \
783bad5ec316 initial
alex
parents:
diff changeset
53 printf("image_in: size: %dx%d format: %x offset: %x\n", \
783bad5ec316 initial
alex
parents:
diff changeset
54 x->image_in_height, x->image_in_width, x->image_in_format, x->image_in_offset); \
783bad5ec316 initial
alex
parents:
diff changeset
55 }