Changeset 04552a80 in mainline for libc/include/ipc/fb.h


Ignore:
Timestamp:
2006-05-17T20:51:08Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25f9823
Parents:
04a73cdf
Message:

code cleanup (somebody should read the coding style guide)
remove DONT_OPEN_STDIO (this has to be done in a different way, ppc32 linker segfaults on initiating extern variable)
remove deprecated libipc stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/include/ipc/fb.h

    r04a73cdf r04552a80  
    1212#define METHOD_WIDTH 16
    1313#define ITEM_WIDTH 16
    14 #define COUNT_WIDTH 16 /*Should be 8 times integer*/
     14#define COUNT_WIDTH 16 /* Should be 8 times integer */
    1515
    1616
    17 struct _fb_method
    18 {
    19         unsigned m     : METHOD_WIDTH;
    20         unsigned item  : ITEM_WIDTH;
    21 } __attribute__ ((packed));
     17struct _fb_method {
     18        unsigned m : METHOD_WIDTH;
     19        unsigned item : ITEM_WIDTH;
     20} __attribute__((packed));
    2221
    23 union fb_method
    24 {
     22union fb_method {
    2523        struct _fb_method m;
    2624        __native fill;
    27 }__attribute__ ((packed));
     25} __attribute__((packed));
    2826
    29 struct fb_call_args
    30 {
     27struct fb_call_args {
    3128        union fb_method method;
    32         union
    33         {
    34                 struct
    35                 {
    36                         unsigned count :COUNT_WIDTH;
    37                         char chars[3*sizeof(__native)-(COUNT_WIDTH>>3)];
    38                 }putchar __attribute__ ((packed));
    39         }data ; //__attribute__ ((packed));     
    40 }__attribute__ ((packed));
     29        union {
     30                struct {
     31                        unsigned count : COUNT_WIDTH;
     32                        char chars[3 * sizeof(__native) - (COUNT_WIDTH >> 3)];
     33                } putchar __attribute__((packed));
     34        } data ; // __attribute__((packed));   
     35} __attribute__((packed));
    4136
    42 struct fb_ipc_args
    43 {
     37struct fb_ipc_args {
    4438        __native method;
    4539        __native arg1;
    4640        __native arg2;
    4741        __native arg3;
    48 } __attribute__ ((packed));
     42} __attribute__((packed));
    4943
    50 union fb_args
    51 {
     44union fb_args {
    5245        struct fb_call_args fb_args;
    5346        struct fb_ipc_args ipc_args;
    54 }__attribute__ ((packed));
     47} __attribute__((packed));
    5548
    5649typedef union fb_args fb_args_t;
    5750
    5851#endif
    59 
    60 
Note: See TracChangeset for help on using the changeset viewer.