|
Revision 2, 0.6 kB
(checked in by nextime, 2 years ago)
|
Initial import, branching from morphix svn
|
| Line | |
|---|
| 1 |
#ifndef vesamode_h |
|---|
| 2 |
#define vesamode_h |
|---|
| 3 |
#include <sys/types.h> |
|---|
| 4 |
#ident "$Id: vesamode.h 1815 2005-04-25 08:27:54Z alextreme $" |
|---|
| 5 |
|
|---|
| 6 |
typedef enum { hsync_neg = 0, hsync_pos } hsync_t; |
|---|
| 7 |
typedef enum { vsync_neg = 0, vsync_pos } vsync_t; |
|---|
| 8 |
|
|---|
| 9 |
struct vesa_mode_t { |
|---|
| 10 |
u_int16_t number; |
|---|
| 11 |
u_int16_t x, y; |
|---|
| 12 |
u_int32_t colors; |
|---|
| 13 |
const char *text; |
|---|
| 14 |
const char *modeline; |
|---|
| 15 |
}; |
|---|
| 16 |
|
|---|
| 17 |
struct vesa_timing_t { |
|---|
| 18 |
u_int16_t x, y; |
|---|
| 19 |
float refresh; |
|---|
| 20 |
float dotclock; |
|---|
| 21 |
u_int16_t timings[8]; |
|---|
| 22 |
hsync_t hsync; |
|---|
| 23 |
vsync_t vsync; |
|---|
| 24 |
float hfreq; |
|---|
| 25 |
float vfreq; |
|---|
| 26 |
}; |
|---|
| 27 |
|
|---|
| 28 |
extern struct vesa_mode_t known_vesa_modes[]; |
|---|
| 29 |
extern struct vesa_timing_t known_vesa_timings[]; |
|---|
| 30 |
|
|---|
| 31 |
#endif |
|---|