| .. | .. |
|---|
| 21 | 21 | * SOFTWARE. |
|---|
| 22 | 22 | */ |
|---|
| 23 | 23 | |
|---|
| 24 | | -#include <drm/drmP.h> |
|---|
| 25 | | - |
|---|
| 26 | 24 | #include "nouveau_drv.h" |
|---|
| 27 | 25 | #include "nouveau_reg.h" |
|---|
| 28 | 26 | #include "hw.h" |
|---|
| .. | .. |
|---|
| 55 | 53 | static void |
|---|
| 56 | 54 | nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb) |
|---|
| 57 | 55 | { |
|---|
| 58 | | - int pagemiss, cas, width, bpp; |
|---|
| 59 | | - int nvclks, mclks, pclks, crtpagemiss; |
|---|
| 56 | + int pagemiss, cas, bpp; |
|---|
| 57 | + int nvclks, mclks, crtpagemiss; |
|---|
| 60 | 58 | int found, mclk_extra, mclk_loop, cbs, m1, p1; |
|---|
| 61 | 59 | int mclk_freq, pclk_freq, nvclk_freq; |
|---|
| 62 | 60 | int us_m, us_n, us_p, crtc_drain_rate; |
|---|
| .. | .. |
|---|
| 67 | 65 | nvclk_freq = arb->nvclk_khz; |
|---|
| 68 | 66 | pagemiss = arb->mem_page_miss; |
|---|
| 69 | 67 | cas = arb->mem_latency; |
|---|
| 70 | | - width = arb->memory_width >> 6; |
|---|
| 71 | 68 | bpp = arb->bpp; |
|---|
| 72 | 69 | cbs = 128; |
|---|
| 73 | 70 | |
|---|
| 74 | | - pclks = 2; |
|---|
| 75 | 71 | nvclks = 10; |
|---|
| 76 | 72 | mclks = 13 + cas; |
|---|
| 77 | 73 | mclk_extra = 3; |
|---|