.. | .. |
---|
36 | 36 | return device->bar->func->bar1.vmm(device->bar); |
---|
37 | 37 | } |
---|
38 | 38 | |
---|
| 39 | +void |
---|
| 40 | +nvkm_bar_bar1_reset(struct nvkm_device *device) |
---|
| 41 | +{ |
---|
| 42 | + struct nvkm_bar *bar = device->bar; |
---|
| 43 | + if (bar) { |
---|
| 44 | + bar->func->bar1.init(bar); |
---|
| 45 | + bar->func->bar1.wait(bar); |
---|
| 46 | + } |
---|
| 47 | +} |
---|
| 48 | + |
---|
39 | 49 | struct nvkm_vmm * |
---|
40 | 50 | nvkm_bar_bar2_vmm(struct nvkm_device *device) |
---|
41 | 51 | { |
---|
.. | .. |
---|
49 | 59 | } |
---|
50 | 60 | |
---|
51 | 61 | void |
---|
| 62 | +nvkm_bar_bar2_reset(struct nvkm_device *device) |
---|
| 63 | +{ |
---|
| 64 | + struct nvkm_bar *bar = device->bar; |
---|
| 65 | + if (bar && bar->bar2) { |
---|
| 66 | + bar->func->bar2.init(bar); |
---|
| 67 | + bar->func->bar2.wait(bar); |
---|
| 68 | + } |
---|
| 69 | +} |
---|
| 70 | + |
---|
| 71 | +void |
---|
52 | 72 | nvkm_bar_bar2_fini(struct nvkm_device *device) |
---|
53 | 73 | { |
---|
54 | 74 | struct nvkm_bar *bar = device->bar; |
---|