File: plugin.h

package info (click to toggle)
855resolution 0.3-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 96 kB
  • ctags: 93
  • sloc: ansic: 402; makefile: 67; sh: 30
file content (35 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* 855resolution by Alain Poirier
 *
 * Currently only tested on a Dell 510m with BIOS A04
 * *VERY* likely that this won't work yet on any
 * other versions or chipsets!!!
 *
 * This code is based on the techniques used in :
 *
 *   - 855patch.  Many thanks to Christian Zietz (czietz gmx net)
 *     for demonstrating how to shadow the VBIOS into system RAM
 *     and then modify it.
 *
 *   - 1280patch by Andrew Tipton (andrewtipton null li).
 *
 * This source code is into the public domain.
 */
#ifndef _PLUGIN_H_
#define _PLUGIN_H_

#include "vbios.h"

typedef int (*detect_vbios_type_type)(struct vbios_mode *modes);
typedef unsigned char *(*get_vbios_version_type)(unsigned char *);
typedef void (*get_resolution_type)(void *, unsigned int *x, unsigned int *y);
typedef void (*set_resolution_type)(void *, unsigned int x, unsigned int y);

struct plugin {
    detect_vbios_type_type detect_vbios_type;
    get_vbios_version_type get_vbios_version;
    get_resolution_type get_resolution;
    set_resolution_type set_resolution;
};

#endif