Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 468 → Rev 469

/shark/trunk/drivers/fb/shark_fb.c
0,0 → 1,35
/*
* 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 for Frame Buffer 2.6 Driver */
#include <kernel/kern.h>
 
extern int fbmem_init(void);
extern int fb_open_inode(int num);
 
/* Init the Linux PCI 2.6 Driver */
int FB26_init() {
 
fbmem_init();
 
fb_open_inode(0);
 
return 0;
 
}
/shark/trunk/drivers/fb/fbmem.c
1148,7 → 1148,7
#endif /* !sparc32 */
}
 
static int
int
fb_open(struct inode *inode, struct file *file)
{
int fbidx = iminor(inode);
1173,7 → 1173,7
return res;
}
 
static int
int
fb_release(struct inode *inode, struct file *file)
{
int fbidx = iminor(inode);
1314,7 → 1314,24
fb_drivers[i].init();
}
 
extern int linuxcomp_setfd(struct inode *i, int i_rdev);
 
/* 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);
 
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
vga16fb.o vgastate.o vesafb.o shark_fb.o
 
OTHERINCL += -I$(BASE)/drivers/linuxc26/include
 
/shark/trunk/drivers/linuxc26/linuxcomp.c
400,6 → 400,14
 
struct screen_info screen_info;
 
int linuxcomp_setfd(struct inode *i, int i_rdev) {
 
i->i_rdev = i_rdev;
 
return 0;
 
}
 
int linuxcomp_init(void) {
 
return 0;