Changeset 23267 for titan/titan/fb.h


Ignore:
Timestamp:
09/04/13 23:28:54 (9 years ago)
Author:
nit
Message:

[titan] cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/fb.h

    r20751 r23267  
    44struct fb* getfb(char *name)
    55{
    6         debug(1000, "in");
    76        struct fb *node = fb;
    87
     
    109        {
    1110                if(ostrstr(node->name, name) != NULL)
    12                 {
    13                         debug(1000, "out");
    1411                        return node;
    15                 }
    1612
    1713                node = node->next;
     
    2319long getfbsize(int dev)
    2420{
    25         debug(1000, "in");
    2621        struct fb* node = fb;
    2722        unsigned long fbmemcount = 0;
     
    3025        if(fb == NULL)
    3126        {
    32                 debug(1000, "out -> NULL dedect");
     27                err("NULL dedect");
    3328                return 0;
    3429        }
     
    5146        }
    5247
    53         debug(1000, "out");
    5448        return fix_screeninfo.smem_len - fbmemcount;
    5549}
     
    5751struct fb* addfb(char *fbname, int dev, int width, int height, int colbytes, int fd, unsigned char* mmapfb, unsigned long fixfbsize)
    5852{
    59         debug(1000, "in");
    6053        struct fb *newnode = NULL, *node = fb;
    6154        char *name = NULL;
     
    120113
    121114        debug(100, "fbname=%s, fbwidth=%d, fbheight=%d, fbcol=%d, fbsize=%ld", newnode->name, newnode->width, newnode->height, newnode->colbytes, newnode->varfbsize);
    122         debug(1000, "out");
    123115        return newnode;
    124116}
     
    147139void delfb(char *name)
    148140{
    149         debug(1000, "in");
    150141        struct fb *node = fb, *prev = fb;
    151142
     
    170161                node = node->next;
    171162        }
    172         debug(1000, "out");
    173163}
    174164
    175165void freefb()
    176166{
    177         debug(1000, "in");
    178167        struct fb *node = fb, *prev = fb;
    179168
     
    185174                        delfb(prev->name);
    186175        }
    187         debug(1000, "out");
    188176}
    189177
    190178struct fb* openfb(char *fbdev, int devnr)
    191179{
    192         debug(1000, "in");
    193180        int fd = -1;
    194181        unsigned char *mmapfb = NULL;
     
    248235#endif
    249236
    250         debug(1000, "out");
    251237        return node;
    252238}
Note: See TracChangeset for help on using the changeset viewer.