/shark/trunk/drivers/fb/include/drivers/shark_fb26.c |
---|
0,0 → 1,34 |
/* |
* Project: S.Ha.R.K. |
* |
* Coordinators: |
* Giorgio Buttazzo <giorgio@sssup.it> |
* Paolo Gai <pj@gandalf.sssup.it> |
* |
* Authors : |
* Giacomo Guidi <giacomo@gandalf.sssup.it> |
* |
* |
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
* |
* http://www.sssup.it |
* http://retis.sssup.it |
* http://shark.sssup.it |
*/ |
/* Glue Layer Header Linux Frame Buffer 2.6 Driver*/ |
#ifndef __SHARK_FB26__ |
#define __SHARK_FB26__ |
/* Init the FB 2.6 Driver */ |
int FB26_init(void); |
/* Open the FB */ |
int FB26_open(int num); |
/* Close the FB */ |
int FB26_close(int num); |
#endif |
/shark/trunk/drivers/fb/fbmem.c |
---|
1148,7 → 1148,7 |
#endif /* !sparc32 */ |
} |
int |
static int |
fb_open(struct inode *inode, struct file *file) |
{ |
int fbidx = iminor(inode); |
1173,7 → 1173,7 |
return res; |
} |
int |
static int |
fb_release(struct inode *inode, struct file *file) |
{ |
int fbidx = iminor(inode); |
1318,7 → 1318,24 |
/* Shark Inode emulation */ |
int fb_open_inode(int num) { |
struct inode *i; |
i = (struct inode *)kmalloc(sizeof(struct inode),GFP_KERNEL); |
linuxcomp_setfd(i,num); |
fb_open(i,NULL); |
kfree(i); |
return 0; |
} |
/* Shark Inode emulation */ |
int fb_close_inode(int num) { |
struct inode *i; |
i = (struct inode *)kmalloc(sizeof(struct inode),GFP_KERNEL); |
1325,13 → 1342,14 |
linuxcomp_setfd(i,num); |
fb_open(i,NULL); |
fb_release(i,NULL); |
kfree(i); |
return 0; |
} |
/** |
* video_setup - process command line options |
* @options: string of options |
/shark/trunk/drivers/fb/makefile |
---|
11,7 → 11,7 |
OBJS_PATH = $(BASE)/drivers/fb |
OBJS = fbmem.o fbcmap.o cfbfillrect.o softcursor.o cfbcopyarea.o cfbimgblt.o\ |
vga16fb.o vgastate.o vesafb.o shark_fb.o |
vga16fb.o vgastate.o vesafb.o shark_fb26.o |
OTHERINCL += -I$(BASE)/drivers/linuxc26/include |