25,8 → 25,6 |
extern int fb_close_inode(int num); |
extern int fb_set_mode_inode(int num, unsigned char *modeopt); |
|
int FB_installed = FALSE; |
|
/* Init the Linux PCI 2.6 Driver */ |
int FB26_init() { |
|
43,8 → 41,6 |
return -1; |
} |
|
FB_installed = TRUE; |
|
return 0; |
|
} |
51,8 → 47,6 |
|
int FB26_setmode(int num, unsigned char *modeopt) { |
|
if (FB_installed == FALSE) return -1; |
|
if (fb_set_mode_inode(num,modeopt)) { |
printk("FB ERROR: Cannot set mode for FrameBuffer driver\n"); |
return -1; |
64,8 → 58,6 |
|
int FB26_close(int num) { |
|
if (FB_installed == FALSE) return -1; |
|
if (fb_close_inode(num)) { |
printk("FB ERROR: Cannot close the FrameBuffer driver\n"); |
return -1; |