| 255 | } |
| 256 | |
| 257 | static unsigned |
| 258 | vesa_map_frame_buffer(unsigned phys_addr, unsigned size) |
| 259 | { |
| 260 | __dpmi_meminfo info; |
| 261 | int rc; |
| 262 | |
| 263 | info.handle = 0; |
| 264 | info.address = phys_addr; |
| 265 | info.size = size; |
| 266 | rc = __dpmi_physical_address_mapping(&info); |
| 267 | |
| 268 | return rc == 0 ? info.address : 0; |
| 269 | } |
| 270 | |
| 271 | /* Set the memory window and return the offset */ |
| 272 | static unsigned long |