Ticket #2870: header-patch.diff

File header-patch.diff, 136.2 KB (added by scottmc, 15 years ago)

this patch is the result of running kaliber's script on the os header folder

  • media/RealtimeAlloc.h

     
    4747}
    4848#endif
    4949
    50 #endif // _REALTIME_ALLOC_H
     50#endif /* _REALTIME_ALLOC_H */
    5151
  • kernel/fs_query.h

     
    1313/* Flags for fs_open_[live_]query() */
    1414
    1515#define B_LIVE_QUERY        0x00000001
    16     // Note, if you specify B_LIVE_QUERY, you have to use fs_open_live_query();
    17     // it will be ignored in fs_open_query().
     16    /* Note, if you specify B_LIVE_QUERY, you have to use fs_open_live_query(); */
     17    /* it will be ignored in fs_open_query(). */
    1818#define B_QUERY_NON_INDEXED 0x00000002
    19     // Only enable this feature for non time-critical things, it might
    20     // take a long time to proceed.
    21     // Also, not every file system might support this feature.
     19    /* Only enable this feature for non time-critical things, it might */
     20    /* take a long time to proceed. */
     21    /* Also, not every file system might support this feature. */
    2222
    2323
    2424#ifdef  __cplusplus
  • kernel/fs_volume.h

     
    55#ifndef _FS_VOLUME_H
    66#define _FS_VOLUME_H
    77
    8 //! File System volume functions
     8/*! File System volume functions */
    99
    1010#include <OS.h>
    1111
  • kernel/fs_attr.h

     
    2525extern int      fs_remove_attr(int fd, const char *attribute);
    2626extern int      fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo);
    2727
    28 // ToDo: the following three functions are not part of the R5 API, and
    29 // are only preliminary - they may change or be removed at any point
    30 //extern int    fs_open_attr(const char *path, const char *attribute, uint32 type, int openMode);
     28/* ToDo: the following three functions are not part of the R5 API, and */
     29/* are only preliminary - they may change or be removed at any point */
     30/*extern int    fs_open_attr(const char *path, const char *attribute, uint32 type, int openMode); */
    3131extern int      fs_open_attr(int fd, const char *attribute, uint32 type, int openMode);
    3232extern int      fs_close_attr(int fd);
    3333
  • kernel/image.h

     
    3535    int32       data_size;
    3636} image_info;
    3737
    38 // flags for clear_caches()
     38/* flags for clear_caches() */
    3939#define B_FLUSH_DCACHE              0x0001  /* data cache */
    4040#define B_FLUSH_ICACHE              0x0004  /* instruction cache */
    4141#define B_INVALIDATE_DCACHE         0x0002
    4242#define B_INVALIDATE_ICACHE         0x0008
    4343
    44 // symbol types
     44/* symbol types */
    4545#define B_SYMBOL_TYPE_DATA          0x1
    4646#define B_SYMBOL_TYPE_TEXT          0x2
    4747#define B_SYMBOL_TYPE_ANY           0x5
    4848
    49 // initialization/termination functions of shared objects
     49/* initialization/termination functions of shared objects */
    5050#define B_INIT_BEFORE_FUNCTION_NAME "initialize_before"
    5151#define B_INIT_AFTER_FUNCTION_NAME  "initialize_after"
    5252#define B_TERM_BEFORE_FUNCTION_NAME "terminate_before"
    5353#define B_TERM_AFTER_FUNCTION_NAME  "terminate_after"
    5454
    55 // flags for _kern_load_image() (private API)
     55/* flags for _kern_load_image() (private API) */
    5656enum {
    5757    B_WAIT_TILL_LOADED  = 0x01,
    58         // Wait till the loader has loaded and relocated
    59         // (but not yet initialized) the application
    60         // image and all dependencies. If not supplied,
    61         // the function returns before the loader
    62         // started to do anything at all, i.e. it
    63         // returns success, even if the executable
    64         // doesn't exist.
     58        /* Wait till the loader has loaded and relocated */
     59        /* (but not yet initialized) the application */
     60        /* image and all dependencies. If not supplied, */
     61        /* the function returns before the loader */
     62        /* started to do anything at all, i.e. it */
     63        /* returns success, even if the executable */
     64        /* doesn't exist. */
    6565};
    6666
    6767#ifdef __cplusplus
  • kernel/disk_scanner.h

     
    1111#include <SupportDefs.h>
    1212
    1313
    14 // session flags
     14/* session flags */
    1515enum {
    1616    B_DATA_SESSION          = 0x01, /* data session */
    1717    B_VIRTUAL_SESSION       = 0x02, /* e.g. hard disk */
     
    2525    uint32  flags;              /* session flags */
    2626} session_info;
    2727
    28 // partition flags
     28/* partition flags */
    2929enum {
    3030    B_HIDDEN_PARTITION      = 0x01, /* non-file system partition */
    3131    B_VIRTUAL_PARTITION     = 0x02, /* e.g. floppy */
     
    4949extern "C" {
    5050#endif
    5151
    52 // getting infos
     52/* getting infos */
    5353status_t get_nth_session_info(int deviceFD, int32 index,
    5454                              session_info *sessionInfo);
    5555status_t get_nth_partition_info(int deviceFD, int32 sessionIndex,
     
    5757                                extended_partition_info *partitionInfo,
    5858                                char *partitionMapName);
    5959
    60 // partitioning
     60/* partitioning */
    6161status_t get_partitioning_parameters(int deviceFD, int32 sessionIndex,
    6262                                     const char *identifier, char *buffer,
    6363                                     size_t bufferSize, size_t *actualSize);
    6464status_t partition_session(int deviceFD, int32 sessionIndex,
    6565                           const char *identifier, const char *parameters);
    6666
    67 // initialization
     67/* initialization */
    6868status_t get_fs_initialization_parameters(int deviceFD, int32 sessionIndex,
    6969                                          int32 partitionIndex,
    7070                                          const char *fileSystem, char *buffer,
    7171                                          size_t bufferSize,
    7272                                          size_t *actualSize);
    73 // TODO: Move to <unistd.h>. It fits better there.
     73/* TODO: Move to <unistd.h>. It fits better there. */
    7474status_t initialize_volume(const char *where, const char *fileSystem,
    7575                           const char *volumeName, const char *parameters);
    7676
  • kernel/fs_info.h

     
    1616#define B_FS_HAS_MIME           0x00010000
    1717#define B_FS_HAS_ATTR           0x00020000
    1818#define B_FS_HAS_QUERY          0x00040000
    19 // those additions are preliminary and may be removed
     19/* those additions are preliminary and may be removed */
    2020#define B_FS_HAS_SELF_HEALING_LINKS     0x00080000
    2121#define B_FS_HAS_ALIASES                0x00100000
    2222#define B_FS_SUPPORTS_NODE_MONITORING   0x00200000
  • kernel/debugger.h

     
    1010#include <image.h>
    1111#include <OS.h>
    1212
    13 // include architecture specific definitions
     13/* include architecture specific definitions */
    1414#ifdef __INTEL__
    1515    #include <arch/x86/arch_debugger.h>
    1616#elif __POWERPC__
     
    3333extern status_t debug_thread(thread_id thread);
    3434extern void     wait_for_debugger(void);
    3535
    36 // EXPERIMENTAL: Self-debugging functions. Will fail when a team debugger is
    37 // installed. A breakpoint/watchpoint hit will cause the default debugger to
    38 // be installed for the team.
     36/* EXPERIMENTAL: Self-debugging functions. Will fail when a team debugger is */
     37/* installed. A breakpoint/watchpoint hit will cause the default debugger to */
     38/* be installed for the team. */
    3939extern status_t set_debugger_breakpoint(void *address);
    4040extern status_t clear_debugger_breakpoint(void *address);
    4141extern status_t set_debugger_watchpoint(void *address, uint32 type,
     
    4343extern status_t clear_debugger_watchpoint(void *address);
    4444
    4545
    46 // team debugging flags
     46/* team debugging flags */
    4747enum {
    48     // event mask: If a flag is set, any of the team's threads will stop when
    49     // the respective event occurs. All flags are enabled by default. Always
    50     // enabled are debugger() calls and hardware exceptions, as well as the
    51     // deletion of the debugged team.
     48    /* event mask: If a flag is set, any of the team's threads will stop when */
     49    /* the respective event occurs. All flags are enabled by default. Always */
     50    /* enabled are debugger() calls and hardware exceptions, as well as the */
     51    /* deletion of the debugged team. */
    5252    B_TEAM_DEBUG_SIGNALS                        = 0x00010000,
    5353    B_TEAM_DEBUG_PRE_SYSCALL                    = 0x00020000,
    5454    B_TEAM_DEBUG_POST_SYSCALL                   = 0x00040000,
     
    5656    B_TEAM_DEBUG_THREADS                        = 0x00100000,
    5757    B_TEAM_DEBUG_IMAGES                         = 0x00200000,
    5858
    59     // new thread handling
     59    /* new thread handling */
    6060    B_TEAM_DEBUG_STOP_NEW_THREADS               = 0x01000000,
    6161
    6262    B_TEAM_DEBUG_USER_FLAG_MASK                 = 0xffff0000,
    6363};
    6464
    65 // per-thread debugging flags
     65/* per-thread debugging flags */
    6666enum {
    67     // event mask: If a flag is set, the thread will stop when the respective
    68     // event occurs. If there is a corresponding team flag, it is sufficient,
    69     // if either is set. Per default none of the flags is set.
     67    /* event mask: If a flag is set, the thread will stop when the respective */
     68    /* event occurs. If there is a corresponding team flag, it is sufficient, */
     69    /* if either is set. Per default none of the flags is set. */
    7070    B_THREAD_DEBUG_PRE_SYSCALL                  = 0x00010000,
    7171    B_THREAD_DEBUG_POST_SYSCALL                 = 0x00020000,
    7272
    73     // child thread handling
     73    /* child thread handling */
    7474    B_THREAD_DEBUG_STOP_CHILD_THREADS           = 0x00100000,
    7575    B_THREAD_DEBUG_SYSCALL_TRACE_CHILD_THREADS  = 0x00200000,
    7676
    7777    B_THREAD_DEBUG_USER_FLAG_MASK               = 0xffff0000,
    7878};
    7979
    80 // in case of a B_EXCEPTION_OCCURRED event: the type of the exception
     80/* in case of a B_EXCEPTION_OCCURRED event: the type of the exception */
    8181typedef enum {
    8282    B_NON_MASKABLE_INTERRUPT    = 0,
    8383    B_MACHINE_CHECK_EXCEPTION,
     
    9393    B_FLOATING_POINT_EXCEPTION,
    9494} debug_exception_type;
    9595
    96 // Value indicating how a stopped thread shall continue.
     96/* Value indicating how a stopped thread shall continue. */
    9797enum {
    98     B_THREAD_DEBUG_HANDLE_EVENT = 0,    // handle the event normally
    99                                         // (e.g. a signal is delivered, a
    100                                         // CPU fault kills the team,...)
    101     B_THREAD_DEBUG_IGNORE_EVENT,        // ignore the event and continue as if
    102                                         // it didn't occur (e.g. a signal or
    103                                         // a CPU fault will be ignored)
     98    B_THREAD_DEBUG_HANDLE_EVENT = 0,    /* handle the event normally */
     99                                        /* (e.g. a signal is delivered, a */
     100                                        /* CPU fault kills the team,...) */
     101    B_THREAD_DEBUG_IGNORE_EVENT,        /* ignore the event and continue as if */
     102                                        /* it didn't occur (e.g. a signal or */
     103                                        /* a CPU fault will be ignored) */
    104104};
    105105
    106 // watchpoint types (ToDo: Check PPC support.)
     106/* watchpoint types (ToDo: Check PPC support.) */
    107107enum {
    108     B_DATA_READ_WATCHPOINT = 0,         // !x86
     108    B_DATA_READ_WATCHPOINT = 0,         /* !x86 */
    109109    B_DATA_WRITE_WATCHPOINT,
    110110    B_DATA_READ_WRITE_WATCHPOINT,
    111111};
    112112
    113 // how to apply signal ignore masks
     113/* how to apply signal ignore masks */
    114114typedef enum {
    115115    B_DEBUG_SIGNAL_MASK_AND = 0,
    116116    B_DEBUG_SIGNAL_MASK_OR,
     
    119119
    120120#define B_DEBUG_SIGNAL_TO_MASK(signal) (1ULL << ((signal) - 1))
    121121
    122 // maximal number of bytes to read/write via B_DEBUG_MESSAGE_{READ,WRITE]_MEMORY
     122/* maximal number of bytes to read/write via B_DEBUG_MESSAGE_{READ,WRITE]_MEMORY */
    123123enum {
    124124    B_MAX_READ_WRITE_MEMORY_SIZE    = 1024,
    125125};
    126126
    127 // messages to the debug nub thread
     127/* messages to the debug nub thread */
    128128typedef enum {
    129     B_DEBUG_MESSAGE_READ_MEMORY = 0,    // read from the team's memory
    130     B_DEBUG_MESSAGE_WRITE_MEMORY,       // write to the team's memory
    131     B_DEBUG_MESSAGE_SET_TEAM_FLAGS,     // set the team's debugging flags
    132     B_DEBUG_MESSAGE_SET_THREAD_FLAGS,   // set a thread's debugging flags
    133     B_DEBUG_MESSAGE_CONTINUE_THREAD,    // continue a stopped thread
    134     B_DEBUG_MESSAGE_SET_CPU_STATE,      // change a stopped thread's CPU state
    135     B_DEBUG_MESSAGE_GET_CPU_STATE,      // get the thread's current CPU state
    136     B_DEBUG_MESSAGE_SET_BREAKPOINT,     // set a breakpoint
    137     B_DEBUG_MESSAGE_CLEAR_BREAKPOINT,   // clear a breakpoint
    138     B_DEBUG_MESSAGE_SET_WATCHPOINT,     // set a watchpoint
    139     B_DEBUG_MESSAGE_CLEAR_WATCHPOINT,   // clear a watchpoint
    140     B_DEBUG_MESSAGE_SET_SIGNAL_MASKS,   // set/get a thread's masks of signals
    141     B_DEBUG_MESSAGE_GET_SIGNAL_MASKS,   //  the debugger is interested in
    142     B_DEBUG_MESSAGE_SET_SIGNAL_HANDLER, // set/get a thread's signal handler for
    143     B_DEBUG_MESSAGE_GET_SIGNAL_HANDLER, //  a signal
     129    B_DEBUG_MESSAGE_READ_MEMORY = 0,    /* read from the team's memory */
     130    B_DEBUG_MESSAGE_WRITE_MEMORY,       /* write to the team's memory */
     131    B_DEBUG_MESSAGE_SET_TEAM_FLAGS,     /* set the team's debugging flags */
     132    B_DEBUG_MESSAGE_SET_THREAD_FLAGS,   /* set a thread's debugging flags */
     133    B_DEBUG_MESSAGE_CONTINUE_THREAD,    /* continue a stopped thread */
     134    B_DEBUG_MESSAGE_SET_CPU_STATE,      /* change a stopped thread's CPU state */
     135    B_DEBUG_MESSAGE_GET_CPU_STATE,      /* get the thread's current CPU state */
     136    B_DEBUG_MESSAGE_SET_BREAKPOINT,     /* set a breakpoint */
     137    B_DEBUG_MESSAGE_CLEAR_BREAKPOINT,   /* clear a breakpoint */
     138    B_DEBUG_MESSAGE_SET_WATCHPOINT,     /* set a watchpoint */
     139    B_DEBUG_MESSAGE_CLEAR_WATCHPOINT,   /* clear a watchpoint */
     140    B_DEBUG_MESSAGE_SET_SIGNAL_MASKS,   /* set/get a thread's masks of signals */
     141    B_DEBUG_MESSAGE_GET_SIGNAL_MASKS,   /*  the debugger is interested in */
     142    B_DEBUG_MESSAGE_SET_SIGNAL_HANDLER, /* set/get a thread's signal handler for */
     143    B_DEBUG_MESSAGE_GET_SIGNAL_HANDLER, /*  a signal */
    144144
    145     B_DEBUG_MESSAGE_PREPARE_HANDOVER,   // prepares the debugged team for being
    146                                         // handed over to another debugger;
    147                                         // the new debugger can just invoke
    148                                         // install_team_debugger()
     145    B_DEBUG_MESSAGE_PREPARE_HANDOVER,   /* prepares the debugged team for being */
     146                                        /* handed over to another debugger; */
     147                                        /* the new debugger can just invoke */
     148                                        /* install_team_debugger() */
    149149
    150     B_DEBUG_START_PROFILER,             // start/stop sampling
    151     B_DEBUG_STOP_PROFILER               //
     150    B_DEBUG_START_PROFILER,             /* start/stop sampling */
     151    B_DEBUG_STOP_PROFILER               /* */
    152152} debug_nub_message;
    153153
    154 // messages sent to the debugger
     154/* messages sent to the debugger */
    155155typedef enum {
    156     B_DEBUGGER_MESSAGE_THREAD_DEBUGGED = 0, // debugger message in reaction to
    157                                             // an invocation of debug_thread()
    158     B_DEBUGGER_MESSAGE_DEBUGGER_CALL,       // thread called debugger()
    159     B_DEBUGGER_MESSAGE_BREAKPOINT_HIT,      // thread hit a breakpoint
    160     B_DEBUGGER_MESSAGE_WATCHPOINT_HIT,      // thread hit a watchpoint
    161     B_DEBUGGER_MESSAGE_SINGLE_STEP,         // thread was single-stepped
    162     B_DEBUGGER_MESSAGE_PRE_SYSCALL,         // begin of a syscall
    163     B_DEBUGGER_MESSAGE_POST_SYSCALL,        // end of a syscall
    164     B_DEBUGGER_MESSAGE_SIGNAL_RECEIVED,     // thread received a signal
    165     B_DEBUGGER_MESSAGE_EXCEPTION_OCCURRED,  // an exception occurred
    166     B_DEBUGGER_MESSAGE_TEAM_CREATED,        // the debugged team created a new
    167                                             // one
    168     B_DEBUGGER_MESSAGE_TEAM_DELETED,        // the debugged team is gone
    169     B_DEBUGGER_MESSAGE_TEAM_EXEC,           // the debugged team executes exec()
    170     B_DEBUGGER_MESSAGE_THREAD_CREATED,      // a thread has been created
    171     B_DEBUGGER_MESSAGE_THREAD_DELETED,      // a thread has been deleted
    172     B_DEBUGGER_MESSAGE_IMAGE_CREATED,       // an image has been created
    173     B_DEBUGGER_MESSAGE_IMAGE_DELETED,       // an image has been deleted
     156    B_DEBUGGER_MESSAGE_THREAD_DEBUGGED = 0, /* debugger message in reaction to */
     157                                            /* an invocation of debug_thread() */
     158    B_DEBUGGER_MESSAGE_DEBUGGER_CALL,       /* thread called debugger() */
     159    B_DEBUGGER_MESSAGE_BREAKPOINT_HIT,      /* thread hit a breakpoint */
     160    B_DEBUGGER_MESSAGE_WATCHPOINT_HIT,      /* thread hit a watchpoint */
     161    B_DEBUGGER_MESSAGE_SINGLE_STEP,         /* thread was single-stepped */
     162    B_DEBUGGER_MESSAGE_PRE_SYSCALL,         /* begin of a syscall */
     163    B_DEBUGGER_MESSAGE_POST_SYSCALL,        /* end of a syscall */
     164    B_DEBUGGER_MESSAGE_SIGNAL_RECEIVED,     /* thread received a signal */
     165    B_DEBUGGER_MESSAGE_EXCEPTION_OCCURRED,  /* an exception occurred */
     166    B_DEBUGGER_MESSAGE_TEAM_CREATED,        /* the debugged team created a new */
     167                                            /* one */
     168    B_DEBUGGER_MESSAGE_TEAM_DELETED,        /* the debugged team is gone */
     169    B_DEBUGGER_MESSAGE_TEAM_EXEC,           /* the debugged team executes exec() */
     170    B_DEBUGGER_MESSAGE_THREAD_CREATED,      /* a thread has been created */
     171    B_DEBUGGER_MESSAGE_THREAD_DELETED,      /* a thread has been deleted */
     172    B_DEBUGGER_MESSAGE_IMAGE_CREATED,       /* an image has been created */
     173    B_DEBUGGER_MESSAGE_IMAGE_DELETED,       /* an image has been deleted */
    174174
    175     B_DEBUGGER_MESSAGE_PROFILER_UPDATE,     // flush the profiling buffer for a
    176                                             // thread
     175    B_DEBUGGER_MESSAGE_PROFILER_UPDATE,     /* flush the profiling buffer for a */
     176                                            /* thread */
    177177
    178     B_DEBUGGER_MESSAGE_HANDED_OVER,         // the debugged team has been
    179                                             // handed over to another debugger
     178    B_DEBUGGER_MESSAGE_HANDED_OVER,         /* the debugged team has been */
     179                                            /* handed over to another debugger */
    180180} debug_debugger_message;
    181181
    182182
    183 // profile events -- when the buffer is in variable stack depth format, a sample
    184 // count entry >= B_DEBUG_PROFILE_EVENT_BASE indicates a profile event
     183/* profile events -- when the buffer is in variable stack depth format, a sample */
     184/* count entry >= B_DEBUG_PROFILE_EVENT_BASE indicates a profile event */
    185185enum {
    186186    B_DEBUG_PROFILE_EVENT_BASE              = 0x80000000,
    187187    B_DEBUG_PROFILE_EVENT_PARAMETER_MASK    = 0x0000ffff,
    188         // & with to get the event's parameter count
     188        /* & with to get the event's parameter count */
    189189
    190190    B_DEBUG_PROFILE_IMAGE_EVENT             = 0x80010001
    191         // single parameter: the respective image event counter
     191        /* single parameter: the respective image event counter */
    192192};
    193193
    194194
    195 // #pragma mark -
    196 // #pragma mark ----- messages to the debug nub thread -----
     195/* #pragma mark - */
     196/* #pragma mark ----- messages to the debug nub thread ----- */
    197197
    198 // B_DEBUG_MESSAGE_READ_MEMORY
     198/* B_DEBUG_MESSAGE_READ_MEMORY */
    199199
    200200typedef struct {
    201     port_id     reply_port;     // port to send the reply to
    202     void        *address;       // address from which to read
    203     int32       size;           // number of bytes to read
     201    port_id     reply_port;     /* port to send the reply to */
     202    void        *address;       /* address from which to read */
     203    int32       size;           /* number of bytes to read */
    204204} debug_nub_read_memory;
    205205
    206206typedef struct {
    207     status_t    error;          // B_OK, if reading went fine
    208     int32       size;           // the number of bytes actually read
    209                                 // > 0, iff error == B_OK
     207    status_t    error;          /* B_OK, if reading went fine */
     208    int32       size;           /* the number of bytes actually read */
     209                                /* > 0, iff error == B_OK */
    210210    char        data[B_MAX_READ_WRITE_MEMORY_SIZE];
    211                                 // the read data
     211                                /* the read data */
    212212} debug_nub_read_memory_reply;
    213213
    214 // B_DEBUG_MESSAGE_WRITE_MEMORY
     214/* B_DEBUG_MESSAGE_WRITE_MEMORY */
    215215
    216216typedef struct {
    217     port_id     reply_port;     // port to send the reply to
    218     void        *address;       // address to which to write
    219     int32       size;           // number of bytes to write
     217    port_id     reply_port;     /* port to send the reply to */
     218    void        *address;       /* address to which to write */
     219    int32       size;           /* number of bytes to write */
    220220    char        data[B_MAX_READ_WRITE_MEMORY_SIZE];
    221                                 // data to write
     221                                /* data to write */
    222222} debug_nub_write_memory;
    223223
    224224typedef struct {
    225     status_t    error;          // B_OK, if writing went fine
    226     int32       size;           // the number of bytes actually written
     225    status_t    error;          /* B_OK, if writing went fine */
     226    int32       size;           /* the number of bytes actually written */
    227227} debug_nub_write_memory_reply;
    228228
    229 // B_DEBUG_MESSAGE_SET_TEAM_FLAGS
     229/* B_DEBUG_MESSAGE_SET_TEAM_FLAGS */
    230230
    231231typedef struct {
    232     int32       flags;          // the new team debugging flags
     232    int32       flags;          /* the new team debugging flags */
    233233} debug_nub_set_team_flags;
    234234
    235 // B_DEBUG_MESSAGE_SET_THREAD_FLAGS
     235/* B_DEBUG_MESSAGE_SET_THREAD_FLAGS */
    236236
    237237typedef struct {
    238     thread_id   thread;         // the thread
    239     int32       flags;          // the new thread debugging flags
     238    thread_id   thread;         /* the thread */
     239    int32       flags;          /* the new thread debugging flags */
    240240} debug_nub_set_thread_flags;
    241241
    242 // B_DEBUG_MESSAGE_CONTINUE_THREAD
     242/* B_DEBUG_MESSAGE_CONTINUE_THREAD */
    243243
    244244typedef struct {
    245     thread_id   thread;         // the thread
    246     uint32      handle_event;   // how to handle the occurred event
    247     bool        single_step;    // true == single step, false == run full speed
     245    thread_id   thread;         /* the thread */
     246    uint32      handle_event;   /* how to handle the occurred event */
     247    bool        single_step;    /* true == single step, false == run full speed */
    248248} debug_nub_continue_thread;
    249249
    250 // B_DEBUG_MESSAGE_SET_CPU_STATE
     250/* B_DEBUG_MESSAGE_SET_CPU_STATE */
    251251
    252252typedef struct {
    253     thread_id           thread;             // the thread
    254     debug_cpu_state     cpu_state;          // the new CPU state
     253    thread_id           thread;             /* the thread */
     254    debug_cpu_state     cpu_state;          /* the new CPU state */
    255255} debug_nub_set_cpu_state;
    256256
    257 // B_DEBUG_MESSAGE_GET_CPU_STATE
     257/* B_DEBUG_MESSAGE_GET_CPU_STATE */
    258258
    259259typedef struct {
    260     port_id                 reply_port;     // port to send the reply to
    261     thread_id               thread;         // the thread
     260    port_id                 reply_port;     /* port to send the reply to */
     261    thread_id               thread;         /* the thread */
    262262} debug_nub_get_cpu_state;
    263263
    264264typedef struct {
    265     status_t                error;      // != B_OK, if something went wrong
    266                                         // (bad thread ID, thread not stopped)
    267     debug_debugger_message  message;    // the reason why the thread stopped
    268     debug_cpu_state         cpu_state;  // the thread's CPU state
     265    status_t                error;      /* != B_OK, if something went wrong */
     266                                        /* (bad thread ID, thread not stopped) */
     267    debug_debugger_message  message;    /* the reason why the thread stopped */
     268    debug_cpu_state         cpu_state;  /* the thread's CPU state */
    269269} debug_nub_get_cpu_state_reply;
    270270
    271 // B_DEBUG_MESSAGE_SET_BREAKPOINT
     271/* B_DEBUG_MESSAGE_SET_BREAKPOINT */
    272272
    273273typedef struct {
    274     port_id     reply_port;     // port to send the reply to
    275     void        *address;       // breakpoint address
     274    port_id     reply_port;     /* port to send the reply to */
     275    void        *address;       /* breakpoint address */
    276276} debug_nub_set_breakpoint;
    277277
    278278typedef struct {
    279     status_t    error;          // B_OK, if the breakpoint has been set
    280                                 // successfully
     279    status_t    error;          /* B_OK, if the breakpoint has been set */
     280                                /* successfully */
    281281} debug_nub_set_breakpoint_reply;
    282282
    283 // B_DEBUG_MESSAGE_CLEAR_BREAKPOINT
     283/* B_DEBUG_MESSAGE_CLEAR_BREAKPOINT */
    284284
    285285typedef struct {
    286     void        *address;       // breakpoint address
     286    void        *address;       /* breakpoint address */
    287287} debug_nub_clear_breakpoint;
    288288
    289 // B_DEBUG_MESSAGE_SET_WATCHPOINT
     289/* B_DEBUG_MESSAGE_SET_WATCHPOINT */
    290290
    291291typedef struct {
    292     port_id     reply_port;     // port to send the reply to
    293     void        *address;       // watchpoint address
    294     uint32      type;           // watchpoint type (see type constants above)
    295     int32       length;         // number of bytes to watch (typically 1, 2,
    296                                 // 4); architecture specific alignment
    297                                 // restrictions apply.
     292    port_id     reply_port;     /* port to send the reply to */
     293    void        *address;       /* watchpoint address */
     294    uint32      type;           /* watchpoint type (see type constants above) */
     295    int32       length;         /* number of bytes to watch (typically 1, 2, */
     296                                /* 4); architecture specific alignment */
     297                                /* restrictions apply. */
    298298} debug_nub_set_watchpoint;
    299299
    300300typedef struct {
    301     status_t    error;          // B_OK, if the watchpoint has been set
    302                                 // successfully
     301    status_t    error;          /* B_OK, if the watchpoint has been set */
     302                                /* successfully */
    303303} debug_nub_set_watchpoint_reply;
    304304
    305 // B_DEBUG_MESSAGE_CLEAR_WATCHPOINT
     305/* B_DEBUG_MESSAGE_CLEAR_WATCHPOINT */
    306306
    307307typedef struct {
    308     void        *address;       // watchpoint address
     308    void        *address;       /* watchpoint address */
    309309} debug_nub_clear_watchpoint;
    310310
    311 // B_DEBUG_MESSAGE_SET_SIGNAL_MASKS
     311/* B_DEBUG_MESSAGE_SET_SIGNAL_MASKS */
    312312
    313313typedef struct {
    314     thread_id               thread;             // the thread
    315     uint64                  ignore_mask;        // the mask for signals the
    316                                                 // debugger wishes not to be
    317                                                 // notified of
    318     uint64                  ignore_once_mask;   // the mask for signals the
    319                                                 // debugger wishes not to be
    320                                                 // notified of when they next
    321                                                 // occur
    322     debug_signal_mask_op    ignore_op;          // what to do with ignore_mask
    323     debug_signal_mask_op    ignore_once_op;     // what to do with
    324                                                 // ignore_once_mask
     314    thread_id               thread;             /* the thread */
     315    uint64                  ignore_mask;        /* the mask for signals the */
     316                                                /* debugger wishes not to be */
     317                                                /* notified of */
     318    uint64                  ignore_once_mask;   /* the mask for signals the */
     319                                                /* debugger wishes not to be */
     320                                                /* notified of when they next */
     321                                                /* occur */
     322    debug_signal_mask_op    ignore_op;          /* what to do with ignore_mask */
     323    debug_signal_mask_op    ignore_once_op;     /* what to do with */
     324                                                /* ignore_once_mask */
    325325} debug_nub_set_signal_masks;
    326326
    327 // B_DEBUG_MESSAGE_GET_SIGNAL_MASKS
     327/* B_DEBUG_MESSAGE_GET_SIGNAL_MASKS */
    328328
    329329typedef struct {
    330     port_id     reply_port;         // port to send the reply to
    331     thread_id   thread;             // the thread
     330    port_id     reply_port;         /* port to send the reply to */
     331    thread_id   thread;             /* the thread */
    332332} debug_nub_get_signal_masks;
    333333
    334334typedef struct {
    335     status_t    error;              // B_OK, if the thread exists
    336     uint64      ignore_mask;        // the mask for signals the debugger wishes
    337                                     // not to be notified of
    338     uint64      ignore_once_mask;   // the mask for signals the debugger wishes
    339                                     // not to be notified of when they next
    340                                     // occur
     335    status_t    error;              /* B_OK, if the thread exists */
     336    uint64      ignore_mask;        /* the mask for signals the debugger wishes */
     337                                    /* not to be notified of */
     338    uint64      ignore_once_mask;   /* the mask for signals the debugger wishes */
     339                                    /* not to be notified of when they next */
     340                                    /* occur */
    341341} debug_nub_get_signal_masks_reply;
    342342
    343 // B_DEBUG_MESSAGE_SET_SIGNAL_HANDLER
     343/* B_DEBUG_MESSAGE_SET_SIGNAL_HANDLER */
    344344
    345345typedef struct {
    346     thread_id           thread;     // the thread
    347     int                 signal;     // the signal
    348     struct sigaction    handler;    // the new signal handler
     346    thread_id           thread;     /* the thread */
     347    int                 signal;     /* the signal */
     348    struct sigaction    handler;    /* the new signal handler */
    349349} debug_nub_set_signal_handler;
    350350
    351 // B_DEBUG_MESSAGE_GET_SIGNAL_HANDLER
     351/* B_DEBUG_MESSAGE_GET_SIGNAL_HANDLER */
    352352
    353353typedef struct {
    354     port_id             reply_port; // port to send the reply to
    355     thread_id           thread;     // the thread
    356     int                 signal;     // the signal
     354    port_id             reply_port; /* port to send the reply to */
     355    thread_id           thread;     /* the thread */
     356    int                 signal;     /* the signal */
    357357} debug_nub_get_signal_handler;
    358358
    359359typedef struct {
    360     status_t            error;      // B_OK, if the thread exists
    361     struct sigaction    handler;    // the signal handler
     360    status_t            error;      /* B_OK, if the thread exists */
     361    struct sigaction    handler;    /* the signal handler */
    362362} debug_nub_get_signal_handler_reply;
    363363
    364 // B_DEBUG_MESSAGE_PREPARE_HANDOVER
     364/* B_DEBUG_MESSAGE_PREPARE_HANDOVER */
    365365
    366 // no parameters, no reply
     366/* no parameters, no reply */
    367367
    368 // B_DEBUG_START_PROFILER
     368/* B_DEBUG_START_PROFILER */
    369369
    370370struct debug_profile_function {
    371     addr_t          base;   // function base address
    372     size_t          size;   // function size
     371    addr_t          base;   /* function base address */
     372    size_t          size;   /* function size */
    373373};
    374374
    375375typedef struct {
    376     port_id             reply_port;     // port to send the reply to
    377     thread_id           thread;         // thread to profile
    378     bigtime_t           interval;       // sample interval
    379     area_id             sample_area;    // area into which the sample will be
    380                                         // written
    381     int32               stack_depth;    // number of return address per hit
     376    port_id             reply_port;     /* port to send the reply to */
     377    thread_id           thread;         /* thread to profile */
     378    bigtime_t           interval;       /* sample interval */
     379    area_id             sample_area;    /* area into which the sample will be */
     380                                        /* written */
     381    int32               stack_depth;    /* number of return address per hit */
    382382    bool                variable_stack_depth;
    383                                         // variable number of samples per hit;
    384                                         // cf. debug_profiler_update
     383                                        /* variable number of samples per hit; */
     384                                        /* cf. debug_profiler_update */
    385385} debug_nub_start_profiler;
    386386
    387387typedef struct {
    388388    status_t            error;
    389     int32               image_event;    // number of the last image event
    390     bigtime_t           interval;       // actual sample interval (might
    391                                         // differ from the requested one)
     389    int32               image_event;    /* number of the last image event */
     390    bigtime_t           interval;       /* actual sample interval (might */
     391                                        /* differ from the requested one) */
    392392} debug_nub_start_profiler_reply;
    393393
    394 // B_DEBUG_STOP_PROFILER
     394/* B_DEBUG_STOP_PROFILER */
    395395
    396396typedef struct {
    397     port_id             reply_port;     // port to send the reply to
    398     thread_id           thread;         // thread to profile
     397    port_id             reply_port;     /* port to send the reply to */
     398    thread_id           thread;         /* thread to profile */
    399399} debug_nub_stop_profiler;
    400400
    401 // reply is debug_profiler_update
     401/* reply is debug_profiler_update */
    402402
    403 // union of all messages structures sent to the debug nub thread
     403/* union of all messages structures sent to the debug nub thread */
    404404typedef union {
    405405    debug_nub_read_memory           read_memory;
    406406    debug_nub_write_memory          write_memory;
     
    422422} debug_nub_message_data;
    423423
    424424
    425 // #pragma mark -
    426 // #pragma mark ----- messages to the debugger -----
     425/* #pragma mark - */
     426/* #pragma mark ----- messages to the debugger ----- */
    427427
    428 // first member of all debugger messages -- not a message by itself
     428/* first member of all debugger messages -- not a message by itself */
    429429typedef struct {
    430     thread_id   thread;         // the thread being the event origin
    431     team_id     team;           // the thread's team
    432     port_id     nub_port;       // port to debug nub for this team (only set
    433                                 // for synchronous messages)
     430    thread_id   thread;         /* the thread being the event origin */
     431    team_id     team;           /* the thread's team */
     432    port_id     nub_port;       /* port to debug nub for this team (only set */
     433                                /* for synchronous messages) */
    434434} debug_origin;
    435435
    436 // B_DEBUGGER_MESSAGE_THREAD_DEBUGGED
     436/* B_DEBUGGER_MESSAGE_THREAD_DEBUGGED */
    437437
    438438typedef struct {
    439439    debug_origin        origin;
    440440} debug_thread_debugged;
    441441
    442 // B_DEBUGGER_MESSAGE_DEBUGGER_CALL
     442/* B_DEBUGGER_MESSAGE_DEBUGGER_CALL */
    443443
    444444typedef struct {
    445445    debug_origin        origin;
    446     void                *message;   // address of the message passed to
    447                                     // debugger()
     446    void                *message;   /* address of the message passed to */
     447                                    /* debugger() */
    448448} debug_debugger_call;
    449449
    450 // B_DEBUGGER_MESSAGE_BREAKPOINT_HIT
     450/* B_DEBUGGER_MESSAGE_BREAKPOINT_HIT */
    451451
    452452typedef struct {
    453453    debug_origin        origin;
    454     debug_cpu_state     cpu_state;  // cpu state
    455     bool                software;   // true, if the is a software breakpoint
    456                                     // (i.e. caused by a respective trap
    457                                     // instruction)
     454    debug_cpu_state     cpu_state;  /* cpu state */
     455    bool                software;   /* true, if the is a software breakpoint */
     456                                    /* (i.e. caused by a respective trap */
     457                                    /* instruction) */
    458458} debug_breakpoint_hit;
    459459
    460 // B_DEBUGGER_MESSAGE_WATCHPOINT_HIT
     460/* B_DEBUGGER_MESSAGE_WATCHPOINT_HIT */
    461461
    462462typedef struct {
    463463    debug_origin        origin;
    464     debug_cpu_state     cpu_state;  // cpu state
     464    debug_cpu_state     cpu_state;  /* cpu state */
    465465} debug_watchpoint_hit;
    466466
    467 // B_DEBUGGER_MESSAGE_SINGLE_STEP
     467/* B_DEBUGGER_MESSAGE_SINGLE_STEP */
    468468
    469469typedef struct {
    470470    debug_origin        origin;
    471     debug_cpu_state     cpu_state;  // cpu state
     471    debug_cpu_state     cpu_state;  /* cpu state */
    472472} debug_single_step;
    473473
    474 // B_DEBUGGER_MESSAGE_PRE_SYSCALL
     474/* B_DEBUGGER_MESSAGE_PRE_SYSCALL */
    475475
    476476typedef struct {
    477477    debug_origin    origin;
    478     uint32          syscall;        // the syscall number
    479     uint32          args[16];       // syscall arguments
     478    uint32          syscall;        /* the syscall number */
     479    uint32          args[16];       /* syscall arguments */
    480480} debug_pre_syscall;
    481481
    482 // B_DEBUGGER_MESSAGE_POST_SYSCALL
     482/* B_DEBUGGER_MESSAGE_POST_SYSCALL */
    483483
    484484typedef struct {
    485485    debug_origin    origin;
    486     bigtime_t       start_time;     // time of syscall start
    487     bigtime_t       end_time;       // time of syscall completion
    488     uint64          return_value;   // the syscall's return value
    489     uint32          syscall;        // the syscall number
    490     uint32          args[16];       // syscall arguments
     486    bigtime_t       start_time;     /* time of syscall start */
     487    bigtime_t       end_time;       /* time of syscall completion */
     488    uint64          return_value;   /* the syscall's return value */
     489    uint32          syscall;        /* the syscall number */
     490    uint32          args[16];       /* syscall arguments */
    491491} debug_post_syscall;
    492492
    493 // B_DEBUGGER_MESSAGE_SIGNAL_RECEIVED
     493/* B_DEBUGGER_MESSAGE_SIGNAL_RECEIVED */
    494494
    495495typedef struct {
    496496    debug_origin        origin;
    497     int                 signal;     // the signal
    498     struct sigaction    handler;    // the signal handler
    499     bool                deadly;     // true, if handling the signal will kill
    500                                     // the team
     497    int                 signal;     /* the signal */
     498    struct sigaction    handler;    /* the signal handler */
     499    bool                deadly;     /* true, if handling the signal will kill */
     500                                    /* the team */
    501501} debug_signal_received;
    502502
    503 // B_DEBUGGER_MESSAGE_EXCEPTION_OCCURRED
     503/* B_DEBUGGER_MESSAGE_EXCEPTION_OCCURRED */
    504504
    505505typedef struct {
    506506    debug_origin            origin;
    507     debug_exception_type    exception;      // the exception
    508     int                     signal;         // the signal that will be sent,
    509                                             // when the thread continues
    510                                             // normally
     507    debug_exception_type    exception;      /* the exception */
     508    int                     signal;         /* the signal that will be sent, */
     509                                            /* when the thread continues */
     510                                            /* normally */
    511511} debug_exception_occurred;
    512512
    513 // B_DEBUGGER_MESSAGE_TEAM_CREATED
     513/* B_DEBUGGER_MESSAGE_TEAM_CREATED */
    514514
    515515typedef struct {
    516516    debug_origin    origin;
    517     team_id         new_team;       // the newly created team
     517    team_id         new_team;       /* the newly created team */
    518518} debug_team_created;
    519519
    520 // B_DEBUGGER_MESSAGE_TEAM_DELETED
     520/* B_DEBUGGER_MESSAGE_TEAM_DELETED */
    521521
    522522typedef struct {
    523     debug_origin    origin;         // thread is < 0, team is the deleted team
    524                                     // (asynchronous message)
     523    debug_origin    origin;         /* thread is < 0, team is the deleted team */
     524                                    /* (asynchronous message) */
    525525} debug_team_deleted;
    526526
    527 // B_DEBUGGER_MESSAGE_TEAM_EXEC
     527/* B_DEBUGGER_MESSAGE_TEAM_EXEC */
    528528
    529529typedef struct {
    530530    debug_origin    origin;
    531     int32           image_event;    // number of the image event
     531    int32           image_event;    /* number of the image event */
    532532} debug_team_exec;
    533533
    534 // B_DEBUGGER_MESSAGE_THREAD_CREATED
     534/* B_DEBUGGER_MESSAGE_THREAD_CREATED */
    535535
    536536typedef struct {
    537     debug_origin    origin;         // the thread that created the new thread
    538     team_id         new_thread;     // the newly created thread
     537    debug_origin    origin;         /* the thread that created the new thread */
     538    team_id         new_thread;     /* the newly created thread */
    539539} debug_thread_created;
    540540
    541 // B_DEBUGGER_MESSAGE_THREAD_DELETED
     541/* B_DEBUGGER_MESSAGE_THREAD_DELETED */
    542542
    543543typedef struct {
    544     debug_origin    origin;         // the deleted thread (asynchronous message)
     544    debug_origin    origin;         /* the deleted thread (asynchronous message) */
    545545} debug_thread_deleted;
    546546
    547 // B_DEBUGGER_MESSAGE_IMAGE_CREATED
     547/* B_DEBUGGER_MESSAGE_IMAGE_CREATED */
    548548
    549549typedef struct {
    550550    debug_origin    origin;
    551     image_info      info;           // info for the image
    552     int32           image_event;    // number of the image event
     551    image_info      info;           /* info for the image */
     552    int32           image_event;    /* number of the image event */
    553553} debug_image_created;
    554554
    555 // B_DEBUGGER_MESSAGE_IMAGE_DELETED
     555/* B_DEBUGGER_MESSAGE_IMAGE_DELETED */
    556556
    557557typedef struct {
    558558    debug_origin    origin;
    559     image_info      info;           // info for the image
    560     int32           image_event;    // number of the image event
     559    image_info      info;           /* info for the image */
     560    int32           image_event;    /* number of the image event */
    561561} debug_image_deleted;
    562562
    563 // B_DEBUGGER_MESSAGE_PROFILER_UPDATE
     563/* B_DEBUGGER_MESSAGE_PROFILER_UPDATE */
    564564
    565565typedef struct {
    566566    debug_origin        origin;
    567     int32               image_event;    // number of the last image event; all
    568                                         // samples were recorded after this
    569                                         // event and before the next one
    570     int32               stack_depth;    // number of return addresses per tick
    571     int32               sample_count;   // number of samples in the buffer
    572     int32               dropped_ticks;  // number of ticks that had been
    573                                         // dropped, since the buffer was full
     567    int32               image_event;    /* number of the last image event; all */
     568                                        /* samples were recorded after this */
     569                                        /* event and before the next one */
     570    int32               stack_depth;    /* number of return addresses per tick */
     571    int32               sample_count;   /* number of samples in the buffer */
     572    int32               dropped_ticks;  /* number of ticks that had been */
     573                                        /* dropped, since the buffer was full */
    574574    bool                variable_stack_depth;
    575                                         // the number of samples per hit is
    576                                         // variable, i.e. the format for the
    577                                         // samples of a hit in the buffer is
    578                                         //   <n> <sample 1> ... <sample n>
    579                                         // instead of
    580                                         //   <sample 1> ... <sample stack_depth>
    581     bool                stopped;        // if true, the thread is no longer
    582                                         // being profiled
     575                                        /* the number of samples per hit is */
     576                                        /* variable, i.e. the format for the */
     577                                        /* samples of a hit in the buffer is */
     578                                        /*   <n> <sample 1> ... <sample n> */
     579                                        /* instead of */
     580                                        /*   <sample 1> ... <sample stack_depth> */
     581    bool                stopped;        /* if true, the thread is no longer */
     582                                        /* being profiled */
    583583} debug_profiler_update;
    584584
    585 // B_DEBUGGER_MESSAGE_HANDED_OVER
     585/* B_DEBUGGER_MESSAGE_HANDED_OVER */
    586586
    587587typedef struct {
    588     debug_origin    origin;         // thread is < 0, team is the deleted team
    589                                     // (asynchronous message)
    590     team_id         debugger;       // the new debugger
    591     port_id         debugger_port;  // the port the new debugger uses
     588    debug_origin    origin;         /* thread is < 0, team is the deleted team */
     589                                    /* (asynchronous message) */
     590    team_id         debugger;       /* the new debugger */
     591    port_id         debugger_port;  /* the port the new debugger uses */
    592592} debug_handed_over;
    593593
    594 // union of all messages structures sent to the debugger
     594/* union of all messages structures sent to the debugger */
    595595typedef union {
    596596    debug_thread_debugged           thread_debugged;
    597597    debug_debugger_call             debugger_call;
     
    612612    debug_profiler_update           profiler_update;
    613613    debug_handed_over               handed_over;
    614614
    615     debug_origin                    origin; // for convenience (no real message)
     615    debug_origin                    origin; /* for convenience (no real message) */
    616616} debug_debugger_message_data;
    617617
    618618
     
    623623
    624624
    625625#ifdef __cplusplus
    626 }   // extern "C"
     626}   /* extern "C" */
    627627#endif
    628628
    629 #endif  // _DEBUGGER_H
     629#endif  /* _DEBUGGER_H */
  • midi/MidiDefs.h

     
    55#include <OS.h>
    66#include <Errors.h>
    77
    8 //------------------------------------------------------------------------------
     8/*------------------------------------------------------------------------------ */
    99
    1010/* System time converted to int milliseconds */
    1111#define B_NOW  ((uint32)(system_time()/1000))
    1212
    13 //------------------------------------------------------------------------------
     13/*------------------------------------------------------------------------------ */
    1414
    1515/* Synthesizer things */
    1616
     
    2828}
    2929synth_mode;
    3030
    31 //------------------------------------------------------------------------------
     31/*------------------------------------------------------------------------------ */
    3232
    3333/* Need to move these into Errors.h */
    3434
     
    4242    B_TOO_MANY_SONGS_PLAYING
    4343};
    4444
    45 //------------------------------------------------------------------------------
     45/*------------------------------------------------------------------------------ */
    4646
    4747#ifndef uchar
    4848typedef unsigned char uchar;
     
    115115 
    116116const uchar B_TEMPO_CHANGE          = 0x51;
    117117
    118 #endif // _MIDI_CONSTANTS_
     118#endif /* _MIDI_CONSTANTS_ */
    119119
    120 //------------------------------------------------------------------------------
     120/*------------------------------------------------------------------------------ */
    121121
    122122typedef enum midi_axe
    123123{
     
    299299}
    300300midi_axe;
    301301
    302 #endif // _MIDI_DEFS_H
     302#endif /* _MIDI_DEFS_H */
  • NetKit.h

     
    1313#include <NetBuffer.h>
    1414#include <NetEndpoint.h>
    1515
    16 #endif  // _NET_KIT_H_
     16#endif  /* _NET_KIT_H_ */
  • add-ons/graphics/Accelerant.h

     
    122122    uint16  v_blank_max;
    123123} display_timing_constraints;
    124124
    125 // TODO: experimental API
     125/* TODO: experimental API */
    126126typedef struct {
    127127    uint32  version;
    128128    char    vendor[128];
     
    135135    }       produced;
    136136    float   width;
    137137    float   height;
    138     uint32  min_horizontal_frequency;   // in kHz
     138    uint32  min_horizontal_frequency;   /* in kHz */
    139139    uint32  max_horizontal_frequency;
    140     uint32  min_vertical_frequency;     // in Hz
     140    uint32  min_vertical_frequency;     /* in Hz */
    141141    uint32  max_vertical_frequency;
    142     uint32  max_pixel_clock;            // in kHz
     142    uint32  max_pixel_clock;            /* in kHz */
    143143} monitor_info;
    144144
    145145enum { /* mode flags */
  • translation/TranslationDefs.h

     
    5454    char            MIME[251];
    5555};
    5656
    57 // BEGIN: Haiku R1 Extensions
     57/* BEGIN: Haiku R1 Extensions */
    5858
    5959#define B_TRANSLATION_MAKE_VERSION(major,minor,revision) ((major << 8) | ((minor << 4) & 0xf0) | (revision & 0x0f))
    6060#define B_TRANSLATION_MAJOR_VERSION(v) (v >> 8)
    6161#define B_TRANSLATION_MINOR_VERSION(v) ((v >> 4) & 0xf)
    6262#define B_TRANSLATION_REVISION_VERSION(v) (v & 0xf)
    6363
    64 // END: Haiku R1 Extensions
     64/* END: Haiku R1 Extensions */
    6565
    6666#endif /* _TRANSLATION_DEFS_H */
  • device/scsi_bus_raw_driver.h

     
    1818
    1919#include <Drivers.h>
    2020
    21 // we start with +300 to not collide with any other SCSI opcode defined
    22 // in scsiprobe_driver.h or scsi.h;
    23 // all ioctl calls return the subsystem status (see SCSI.h)
     21/* we start with +300 to not collide with any other SCSI opcode defined */
     22/* in scsiprobe_driver.h or scsi.h; */
     23/* all ioctl calls return the subsystem status (see SCSI.h) */
    2424enum {
    2525    B_SCSI_BUS_RAW_RESET = B_DEVICE_OP_CODES_END + 300,
    2626    B_SCSI_BUS_RAW_PATH_INQUIRY
  • midi2/Midi2Defs.h

     
    7171const uchar B_MONO_MODE_ON          = 0x7e;
    7272const uchar B_POLY_MODE_ON          = 0x7f;
    7373
    74 #endif // _MIDI_CONSTANTS_
     74#endif /* _MIDI_CONSTANTS_ */
    7575
    76 #endif // _MIDI2_DEFS_H
     76#endif /* _MIDI2_DEFS_H */
  • storage/StorageDefs.h

     
    1111#include <limits.h>
    1212
    1313
    14 // Limits
     14/* Limits */
    1515#define B_DEV_NAME_LENGTH       128
    1616#define B_FILE_NAME_LENGTH      NAME_MAX
    1717#define B_PATH_NAME_LENGTH      MAXPATHLEN
     
    1919#define B_MIME_TYPE_LENGTH      (B_ATTR_NAME_LENGTH - 15)
    2020#define B_MAX_SYMLINKS          SYMLOOP_MAX
    2121
    22 // Open Modes
    23 #define B_READ_ONLY         O_RDONLY    // read only
    24 #define B_WRITE_ONLY        O_WRONLY    // write only
    25 #define B_READ_WRITE        O_RDWR      // read and write
     22/* Open Modes */
     23#define B_READ_ONLY         O_RDONLY    /* read only  */
     24#define B_WRITE_ONLY        O_WRONLY    /* write only  */
     25#define B_READ_WRITE        O_RDWR      /* read and write */
    2626
    27 #define B_FAIL_IF_EXISTS    O_EXCL      // exclusive create
    28 #define B_CREATE_FILE       O_CREAT     // create the file
    29 #define B_ERASE_FILE        O_TRUNC     // erase the file's data
    30 #define B_OPEN_AT_END       O_APPEND    // point to the end of the data
     27#define B_FAIL_IF_EXISTS    O_EXCL      /* exclusive create  */
     28#define B_CREATE_FILE       O_CREAT     /* create the file  */
     29#define B_ERASE_FILE        O_TRUNC     /* erase the file's data  */
     30#define B_OPEN_AT_END       O_APPEND    /* point to the end of the data  */
    3131
    32 // Node Flavors
     32/* Node Flavors */
    3333enum node_flavor {
    3434  B_FILE_NODE       = 0x01,
    3535  B_SYMLINK_NODE    = 0x02,
     
    3737  B_ANY_NODE        = 0x07
    3838};
    3939
    40 #endif // _DEF_STORAGE_H
     40#endif /* _DEF_STORAGE_H */
  • storage/DiskDeviceDefs.h

     
    1313typedef int32 disk_system_id;
    1414typedef int32 disk_job_id;
    1515
    16 // partition flags
     16/* partition flags */
    1717enum {
    1818    B_PARTITION_IS_DEVICE           = 0x01,
    1919    B_PARTITION_FILE_SYSTEM         = 0x02,
    2020    B_PARTITION_PARTITIONING_SYSTEM = 0x04,
    2121    B_PARTITION_READ_ONLY           = 0x08,
    22     B_PARTITION_MOUNTED             = 0x10, // needed?
     22    B_PARTITION_MOUNTED             = 0x10, /* needed? */
    2323    B_PARTITION_BUSY                = 0x20,
    2424};
    2525
    26 // partition statuses
     26/* partition statuses */
    2727enum {
    2828    B_PARTITION_VALID,
    2929    B_PARTITION_CORRUPT,
    3030    B_PARTITION_UNRECOGNIZED,
    31     B_PARTITION_UNINITIALIZED,  // Only when uninitialized manually.
    32                                 // When not recognized while scanning it's
    33                                 // B_PARTITION_UNRECOGNIZED.
     31    B_PARTITION_UNINITIALIZED,  /* Only when uninitialized manually. */
     32                                /* When not recognized while scanning it's */
     33                                /* B_PARTITION_UNRECOGNIZED. */
    3434};
    3535
    36 // partition change flags
     36/* partition change flags */
    3737enum {
    3838    B_PARTITION_CHANGED_OFFSET              = 0x000001,
    3939    B_PARTITION_CHANGED_SIZE                = 0x000002,
     
    5656    B_PARTITION_CHANGED_INITIALIZATION      = 0x040000,
    5757};
    5858
    59 // disk device flags
     59/* disk device flags */
    6060enum {
    6161    B_DISK_DEVICE_REMOVABLE     = 0x01,
    6262    B_DISK_DEVICE_HAS_MEDIA     = 0x02,
     
    6565    B_DISK_DEVICE_IS_FILE       = 0x10,
    6666};
    6767
    68 // disk system flags
     68/* disk system flags */
    6969enum {
    7070    B_DISK_SYSTEM_IS_FILE_SYSTEM                                = 0x000001,
    7171
    72     // flags common for both file and partitioning systems
     72    /* flags common for both file and partitioning systems */
    7373    B_DISK_SYSTEM_SUPPORTS_CHECKING                             = 0x000002,
    7474    B_DISK_SYSTEM_SUPPORTS_REPAIRING                            = 0x000004,
    7575    B_DISK_SYSTEM_SUPPORTS_RESIZING                             = 0x000008,
     
    7979    B_DISK_SYSTEM_SUPPORTS_INITIALIZING                         = 0x000080,
    8080    B_DISK_SYSTEM_SUPPORTS_CONTENT_NAME                         = 0x000100,
    8181
    82     // file system specific flags
     82    /* file system specific flags */
    8383    B_DISK_SYSTEM_SUPPORTS_DEFRAGMENTING                        = 0x001000,
    8484    B_DISK_SYSTEM_SUPPORTS_DEFRAGMENTING_WHILE_MOUNTED          = 0x002000,
    8585    B_DISK_SYSTEM_SUPPORTS_CHECKING_WHILE_MOUNTED               = 0x004000,
     
    9090    B_DISK_SYSTEM_SUPPORTS_SETTING_CONTENT_PARAMETERS_WHILE_MOUNTED = 0x080000,
    9191    B_DISK_SYSTEM_SUPPORTS_WRITING                              = 0x100000,
    9292
    93     // partitioning system specific flags
     93    /* partitioning system specific flags */
    9494    B_DISK_SYSTEM_SUPPORTS_RESIZING_CHILD                       = 0x001000,
    9595    B_DISK_SYSTEM_SUPPORTS_MOVING_CHILD                         = 0x002000,
    9696    B_DISK_SYSTEM_SUPPORTS_SETTING_NAME                         = 0x004000,
     
    101101    B_DISK_SYSTEM_SUPPORTS_NAME                                 = 0x080000,
    102102};
    103103
    104 // disk device job types
     104/* disk device job types */
    105105enum {
    106106    B_DISK_DEVICE_JOB_BAD_TYPE,
    107107    B_DISK_DEVICE_JOB_DEFRAGMENT,
     
    120120    B_DISK_DEVICE_JOB_SCAN,
    121121};
    122122
    123 // disk device job statuses
     123/* disk device job statuses */
    124124enum {
    125125    B_DISK_DEVICE_JOB_UNINITIALIZED,
    126126    B_DISK_DEVICE_JOB_SCHEDULED,
     
    130130    B_DISK_DEVICE_JOB_CANCELED,
    131131};
    132132
    133 // disk device job progress info
     133/* disk device job progress info */
    134134typedef struct disk_device_job_progress_info {
    135135    uint32  status;
    136136    uint32  interrupt_properties;
     
    140140    char    current_task_description[256];
    141141} disk_device_job_progress_info;
    142142
    143 // disk device job interrupt properties
     143/* disk device job interrupt properties */
    144144enum {
    145145    B_DISK_DEVICE_JOB_CAN_CANCEL            = 0x01,
    146146    B_DISK_DEVICE_JOB_STOP_ON_CANCEL        = 0x02,
     
    148148    B_DISK_DEVICE_JOB_CAN_PAUSE             = 0x08,
    149149};
    150150
    151 // string length constants, all of which include the NULL terminator
     151/* string length constants, all of which include the NULL terminator */
    152152#define B_DISK_DEVICE_TYPE_LENGTH B_FILE_NAME_LENGTH
    153153#define B_DISK_DEVICE_NAME_LENGTH B_FILE_NAME_LENGTH
    154154#define B_DISK_SYSTEM_NAME_LENGTH B_PATH_NAME_LENGTH
    155155
    156 // max size of parameter string buffers, including NULL terminator
     156/* max size of parameter string buffers, including NULL terminator */
    157157#define B_DISK_DEVICE_MAX_PARAMETER_SIZE (32 * 1024)
    158158
    159 #endif  // _DISK_DEVICE_DEFS_H
     159#endif  /* _DISK_DEVICE_DEFS_H */
  • bluetooth/L2CAP/btL2CAP.h

     
    1616};
    1717
    1818
    19 #endif // _BTL2CAP_H_
    20  No newline at end of file
     19#endif /* _BTL2CAP_H_ */
     20 No newline at end of file
  • bluetooth/HCI/btHCI_sco.h

     
    1414    uint8   slen;
    1515} __attribute__((packed));
    1616
    17 #endif // _BTHCI_SCO_H_
     17#endif /* _BTHCI_SCO_H_ */
  • bluetooth/HCI/btHCI_module.h

     
    3232} bt_hci_module_info ;
    3333
    3434
    35 #endif // _BTHCI_MODULE_H_
     35#endif /* _BTHCI_MODULE_H_ */
  • bluetooth/HCI/btHCI_transport.h

     
    9393#define BLUETOOTH_CONNECTION_PORT "bluetooth connection port"
    9494#define BLUETOOTH_CONNECTION_SCHED_PORT "bluetooth con sched port"
    9595
    96 #endif // _BTHCI_TRANSPORT_H_
     96#endif /* _BTHCI_TRANSPORT_H_ */
  • bluetooth/HCI/btHCI_acl.h

     
    3333#define HCI_ACL_BROADCAST_PICONET   0x2 /* both directions */
    3434                                        /* 11 - reserved for future use */
    3535
    36 #endif // _BTHCI_ACL_H_
     36#endif /* _BTHCI_ACL_H_ */
  • bluetooth/bluetooth_error.h

     
    6868#define HOST_BUSY_PAIRING                   0x38
    6969
    7070
    71 #endif // _BLUETOOTH_ERROR_H
     71#endif /* _BLUETOOTH_ERROR_H */
  • bluetooth/bluetooth_util.h

     
    5353}
    5454
    5555
    56 #endif // _BLUETOOTH_UTIL_H
     56#endif /* _BLUETOOTH_UTIL_H */
  • bluetooth/bluetooth.h

     
    5252#define BLUETOOTH_PROTO_MAX     256
    5353
    5454
    55 #endif // _BLUETOOTH_H
     55#endif /* _BLUETOOTH_H */
  • game/GameSoundDefs.h

     
    1 //------------------------------------------------------------------------------
    2 //  Copyright (c) 2001-2002, OpenBeOS
    3 //
    4 //  Permission is hereby granted, free of charge, to any person obtaining a
    5 //  copy of this software and associated documentation files (the "Software"),
    6 //  to deal in the Software without restriction, including without limitation
    7 //  the rights to use, copy, modify, merge, publish, distribute, sublicense,
    8 //  and/or sell copies of the Software, and to permit persons to whom the
    9 //  Software is furnished to do so, subject to the following conditions:
    10 //
    11 //  The above copyright notice and this permission notice shall be included in
    12 //  all copies or substantial portions of the Software.
    13 //
    14 //  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15 //  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16 //  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    17 //  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    18 //  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    19 //  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    20 //  DEALINGS IN THE SOFTWARE.
    21 //
    22 //  File Name:      GameSound.cpp
    23 //  Author:         Christopher ML Zumwalt May (cdzumwalt@dsl-only.net)
    24 //  Description:    Declarations for game sounds
    25 //------------------------------------------------------------------------------
     1/*------------------------------------------------------------------------------ */
     2/*  Copyright (c) 2001-2002, OpenBeOS */
     3/* */
     4/*  Permission is hereby granted, free of charge, to any person obtaining a */
     5/*  copy of this software and associated documentation files (the "Software"), */
     6/*  to deal in the Software without restriction, including without limitation */
     7/*  the rights to use, copy, modify, merge, publish, distribute, sublicense, */
     8/*  and/or sell copies of the Software, and to permit persons to whom the */
     9/*  Software is furnished to do so, subject to the following conditions: */
     10/* */
     11/*  The above copyright notice and this permission notice shall be included in */
     12/*  all copies or substantial portions of the Software. */
     13/* */
     14/*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR */
     15/*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, */
     16/*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE */
     17/*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER */
     18/*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING */
     19/*  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER */
     20/*  DEALINGS IN THE SOFTWARE. */
     21/* */
     22/*  File Name:      GameSound.cpp */
     23/*  Author:         Christopher ML Zumwalt May (cdzumwalt@dsl-only.net) */
     24/*  Description:    Declarations for game sounds */
     25/*------------------------------------------------------------------------------ */
    2626
    2727#if !defined(_GAME_SOUND_DEFS_H)
    2828#define _GAME_SOUND_DEFS_H
     
    3434#define B_GS_CUR_API_VERSION B_BEOS_VERSION
    3535#define B_GS_MIN_API_VERSION 0x100
    3636
    37 //  invalid sound handle
     37/*  invalid sound handle */
    3838#define B_GS_INVALID_SOUND ((gs_id)-1)
    3939
    40 //  gs_id for the main mix buffer
     40/*  gs_id for the main mix buffer */
    4141#define B_GS_MAIN_SOUND ((gs_id)-2)
    4242
    4343
    44 enum    //fixme renumber to real error messages
     44enum    /*fixme renumber to real error messages */
    4545{
    4646    B_GS_BAD_HANDLE = -99999,
    4747    B_GS_NO_SOUNDS,
     
    6767};
    6868
    6969
    70 /
     70/*   */
    7171enum gs_attributes
    7272{
    73     B_GS_NO_ATTRIBUTE = 0,          //  when there is no attribute
    74     B_GS_MAIN_GAIN = 1,             //  0 == 0 dB, -6.0 == -6 dB (gs_id ignored)
    75     B_GS_CD_THROUGH_GAIN,           //  0 == 0 dB, -12.0 == -12 dB (gs_id ignored)
    76                                         //  but which CD?
    77     B_GS_GAIN = 128,                //  0 == 0 dB, -1.0 == -1 dB, +10.0 == +10 dB
    78     B_GS_PAN,                       //  0 == middle, -1.0 == left, +1.0 == right
    79     B_GS_SAMPLING_RATE,             //  44100.0 == 44.1 kHz
    80     B_GS_LOOPING,                   //  0 == no
     73    B_GS_NO_ATTRIBUTE = 0,          /*  when there is no attribute */
     74    B_GS_MAIN_GAIN = 1,             /*  0 == 0 dB, -6.0 == -6 dB (gs_id ignored) */
     75    B_GS_CD_THROUGH_GAIN,           /*  0 == 0 dB, -12.0 == -12 dB (gs_id ignored) */
     76                                        /*  but which CD? */
     77    B_GS_GAIN = 128,                /*  0 == 0 dB, -1.0 == -1 dB, +10.0 == +10 dB */
     78    B_GS_PAN,                       /*  0 == middle, -1.0 == left, +1.0 == right */
     79    B_GS_SAMPLING_RATE,             /*  44100.0 == 44.1 kHz */
     80    B_GS_LOOPING,                   /*  0 == no */
    8181    B_GS_FIRST_PRIVATE_ATTRIBUTE = 90000,
    8282    B_GS_FIRST_USER_ATTRIBUTE = 100000
    8383};
    8484struct gs_attribute
    8585{
    86         int32       attribute;      //  which attribute
    87         bigtime_t   duration;       //  how long of time to ramp over for the change
    88         float       value;          //  where the value stops changing
    89         uint32      flags;          //  whatever flags are for the attribute
     86        int32       attribute;      /*  which attribute */
     87        bigtime_t   duration;       /*  how long of time to ramp over for the change */
     88        float       value;          /*  where the value stops changing */
     89        uint32      flags;          /*  whatever flags are for the attribute */
    9090};
    9191struct gs_attribute_info
    9292{
     
    9797};
    9898
    9999
    100 #endif  //  _GAME_SOUND_DEFS_H
     100#endif  /*  _GAME_SOUND_DEFS_H */
  • be_apps/ServicesDaemon/ServicesDaemon.h

     
    33
    44#define B_SERVICES_DAEMON_SIGNATURE "application/x-vnd.Haiku-ServicesDaemon"
    55
    6 // Send this message to the daemon if you would like to have your program
    7 // restarted. The message is expected to have an attached string containing
    8 // the signature of your app. Once sent to the daemon, it will wait until
    9 // your app quits before relaunching it.
     6/* Send this message to the daemon if you would like to have your program */
     7/* restarted. The message is expected to have an attached string containing */
     8/* the signature of your app. Once sent to the daemon, it will wait until */
     9/* your app quits before relaunching it. */
    1010#define B_SERVICES_DAEMON_RESTART 'SDRS'
    1111
    1212#endif
  • be_apps/Deskbar/Deskbar.h

     
    11#ifndef _DESKBAR_H
    2 //  I don't know why this file exists in addition to the one we include
    3 //  below, but who cares... (originally, in R5, both files exist and are
    4 //  identical).
     2/*  I don't know why this file exists in addition to the one we include */
     3/*  below, but who cares... (originally, in R5, both files exist and are */
     4/*  identical). */
    55#   include <interface/Deskbar.h>
    66#endif
  • be_apps/Tracker/Background.h

     
    4343/*----------------------------------------------------------------*/
    4444/*-----  Tracker background BMessage entries  --------------------*/
    4545
    46 #define B_BACKGROUND_IMAGE      "be:bgndimginfopath"        // string path
    47 #define B_BACKGROUND_MODE       "be:bgndimginfomode"        // int32, the enum below
    48 #define B_BACKGROUND_ORIGIN     "be:bgndimginfooffset"      // BPoint
    49 #define B_BACKGROUND_ERASE_TEXT "be:bgndimginfoerasetext"   // bool
    50 #define B_BACKGROUND_WORKSPACES "be:bgndimginfoworkspaces"  // uint32
     46#define B_BACKGROUND_IMAGE      "be:bgndimginfopath"        /* string path */
     47#define B_BACKGROUND_MODE       "be:bgndimginfomode"        /* int32, the enum below */
     48#define B_BACKGROUND_ORIGIN     "be:bgndimginfooffset"      /* BPoint */
     49#define B_BACKGROUND_ERASE_TEXT "be:bgndimginfoerasetext"   /* bool */
     50#define B_BACKGROUND_WORKSPACES "be:bgndimginfoworkspaces"  /* uint32 */
    5151
    5252/*----------------------------------------------------------------*/
    5353/*-----  Background mode values  ---------------------------------*/
    5454
    5555enum {
    5656    B_BACKGROUND_MODE_USE_ORIGIN,
    57     B_BACKGROUND_MODE_CENTERED,     // only works on Desktop
    58     B_BACKGROUND_MODE_SCALED,       // only works on Desktop
     57    B_BACKGROUND_MODE_CENTERED,     /* only works on Desktop */
     58    B_BACKGROUND_MODE_SCALED,       /* only works on Desktop */
    5959    B_BACKGROUND_MODE_TILED
    6060};
    6161
    6262/*----------------------------------------------------------------*/
    6363/*----------------------------------------------------------------*/
    6464
    65 const int32 B_RESTORE_BACKGROUND_IMAGE = 'Tbgr';    // force a Tracker window to
    66                                                     // use a new background image
     65const int32 B_RESTORE_BACKGROUND_IMAGE = 'Tbgr';    /* force a Tracker window to */
     66                                                    /* use a new background image */
    6767
    6868#endif /* _TRACKER_BACKGROUND_H */
  • arch/ppc/arch_debugger.h

     
    99    uint32  dummy;
    1010} __attribute__((aligned(8)));
    1111
    12 #endif  // _ARCH_PPC_DEBUGGER_H
     12#endif  /* _ARCH_PPC_DEBUGGER_H */
  • arch/m68k/arch_debugger.h

     
    2828    uint32  dummy;
    2929} __attribute__((aligned(8)));
    3030
    31 #endif  // _ARCH_M68K_DEBUGGER_H
     31#endif  /* _ARCH_M68K_DEBUGGER_H */
  • arch/x86/arch_debugger.h

     
    2929    uint32  user_ss;
    3030} __attribute__((aligned(8)));
    3131
    32 #endif  // _ARCH_X86_DEBUGGER_H
     32#endif  /* _ARCH_X86_DEBUGGER_H */
  • mail/mail_encoding.h

     
    1212
    1313#define B_MAIL_NULL_CONVERSION ((uint32) -1)
    1414#define B_MAIL_UTF8_CONVERSION ((uint32) -2)
    15 // For specifying the UTF-8 character set when converting to/from UTF-8.
     15/* For specifying the UTF-8 character set when converting to/from UTF-8. */
    1616#define B_MAIL_US_ASCII_CONVERSION ((uint32) -3)
    17 // Plain 7 bit ASCII character set.  A subset of UTF-8, but some mail software
    18 // specifies it so we need to recognize it.
     17/* Plain 7 bit ASCII character set.  A subset of UTF-8, but some mail software */
     18/* specifies it so we need to recognize it. */
    1919
    2020#define BASE64_LINELENGTH 76
    2121
     
    2424    quoted_printable    = 'q',
    2525    seven_bit           = '7',
    2626    eight_bit           = '8',
    27     uuencode            = 'u', // Invalid to encode something using uuencode.
    28     null_encoding       = 0,   // For not changing existing settings.
     27    uuencode            = 'u', /* Invalid to encode something using uuencode. */
     28    null_encoding       = 0,   /* For not changing existing settings. */
    2929    no_encoding         = -1
    3030} mail_encoding;
    3131
     
    3535
    3636ssize_t encode(mail_encoding encoding, char *out, const char *in,
    3737    off_t length, int headerMode);
    38     // boolean headerMode only matters for quoted_printable and base64.
     38    /* boolean headerMode only matters for quoted_printable and base64. */
    3939ssize_t decode(mail_encoding encoding, char *out, const char *in, off_t length,
    4040    int underscore_is_space);
    41     // the value of underscore_is_space only matters for quoted_printable.
     41    /* the value of underscore_is_space only matters for quoted_printable. */
    4242
    4343ssize_t max_encoded_length(mail_encoding encoding, off_t cur_length);
    4444mail_encoding encoding_for_cte(const char *content_transfer_encoding);
     
    4848
    4949ssize_t encode_qp(char *out, const char *in, off_t length, int headerMode);
    5050ssize_t decode_qp(char *out, const char *in, off_t length, int underscore_is_space);
    51     //---underscore_is_space should be 1 if and only if you are decoding a header field
     51    /*---underscore_is_space should be 1 if and only if you are decoding a header field */
    5252
    5353ssize_t uu_decode(char *out, const char *in, off_t length);
    5454
  • interface/UnicodeBlockObjects.h

     
    1 //------------------------------------------------------------------------------
    2 //  Copyright (c) 2001-2002, OpenBeOS
    3 //
    4 //  Permission is hereby granted, free of charge, to any person obtaining a
    5 //  copy of this software and associated documentation files (the "Software"),
    6 //  to deal in the Software without restriction, including without limitation
    7 //  the rights to use, copy, modify, merge, publish, distribute, sublicense,
    8 //  and/or sell copies of the Software, and to permit persons to whom the
    9 //  Software is furnished to do so, subject to the following conditions:
    10 //
    11 //  The above copyright notice and this permission notice shall be included in
    12 //  all copies or substantial portions of the Software.
    13 //
    14 //  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15 //  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16 //  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    17 //  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    18 //  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    19 //  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    20 //  DEALINGS IN THE SOFTWARE.
    21 //
    22 //  File Name:      UnicodeBlockObjects.h
    23 //  Author:         Erik Jaesler (erik@cgsoftware.com)
    24 //  Description:    Predefined unicode_block objects
    25 //------------------------------------------------------------------------------
     1/*------------------------------------------------------------------------------ */
     2/*  Copyright (c) 2001-2002, OpenBeOS */
     3/* */
     4/*  Permission is hereby granted, free of charge, to any person obtaining a */
     5/*  copy of this software and associated documentation files (the "Software"), */
     6/*  to deal in the Software without restriction, including without limitation */
     7/*  the rights to use, copy, modify, merge, publish, distribute, sublicense, */
     8/*  and/or sell copies of the Software, and to permit persons to whom the */
     9/*  Software is furnished to do so, subject to the following conditions: */
     10/* */
     11/*  The above copyright notice and this permission notice shall be included in */
     12/*  all copies or substantial portions of the Software. */
     13/* */
     14/*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR */
     15/*  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, */
     16/*  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE */
     17/*  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER */
     18/*  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING */
     19/*  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER */
     20/*  DEALINGS IN THE SOFTWARE. */
     21/* */
     22/*  File Name:      UnicodeBlockObjects.h */
     23/*  Author:         Erik Jaesler (erik@cgsoftware.com) */
     24/*  Description:    Predefined unicode_block objects */
     25/*------------------------------------------------------------------------------ */
    2626
    2727#ifndef _UNICODEBLOCKOBJECTS_H
    2828#define _UNICODEBLOCKOBJECTS_H
    2929
    30 // Standard Includes -----------------------------------------------------------
     30/* Standard Includes ----------------------------------------------------------- */
    3131
    32 // System Includes -------------------------------------------------------------
     32/* System Includes ------------------------------------------------------------- */
    3333#include <Font.h>
    3434
    35 // Project Includes ------------------------------------------------------------
     35/* Project Includes ------------------------------------------------------------ */
    3636
    37 // Local Includes --------------------------------------------------------------
     37/* Local Includes -------------------------------------------------------------- */
    3838
    39 // Local Defines ---------------------------------------------------------------
     39/* Local Defines --------------------------------------------------------------- */
    4040
    41 // Globals ---------------------------------------------------------------------
     41/* Globals --------------------------------------------------------------------- */
    4242
    4343
    44 // Unicode block list with their unicode encoding range
     44/* Unicode block list with their unicode encoding range */
    4545const unicode_block B_BASIC_LATIN_BLOCK(                    /* 0000 - 007F          */              0x0000000000000000LL, 0x0000000000000001LL);           
    4646const unicode_block B_LATIN1_SUPPLEMENT_BLOCK(              /* 0080 - 00FF          */              0x0000000000000000LL, 0x0000000000000002LL);           
    4747const unicode_block B_LATIN_EXTENDED_A_BLOCK(               /* 0100 - 017F          */              0x0000000000000000LL, 0x0000000000000004LL);           
     
    114114const unicode_block B_SPECIALS_BLOCK(                       /* FEFF and FFF0 - FFFF */              0x0000000000000020LL, 0x0000000000000000LL);           
    115115const unicode_block B_TIBETAN_BLOCK(                        /* 0F00 - 0FBF          */              0x0000000000000040LL, 0x0000000000000000LL);           
    116116
    117 #endif  // _UNICODEBLOCKOBJECTS_H
     117#endif  /* _UNICODEBLOCKOBJECTS_H */
    118118
    119119/*
    120120 * $Log $
  • interface/GraphicsDefs.h

     
    1010#include <SupportDefs.h>
    1111
    1212
    13 // Pattern
     13/* Pattern */
    1414
    1515typedef struct pattern {
    1616    uint8 data[8];
     
    3030    return !(a == b);
    3131}
    3232
    33 #endif // __cplusplus
     33#endif /* __cplusplus */
    3434
    3535extern const pattern B_SOLID_HIGH;
    3636extern const pattern B_MIXED_COLORS;
    3737extern const pattern B_SOLID_LOW;
    3838
    3939
    40 // rgb_color
     40/* rgb_color */
    4141
    4242typedef struct rgb_color {
    4343    uint8       red;
     
    4646    uint8       alpha;
    4747
    4848#if defined(__cplusplus)
    49     // some convenient additions
     49    /* some convenient additions */
    5050
    5151    inline rgb_color&
    5252    set_to(uint8 r, uint8 g, uint8 b, uint8 a = 255)
     
    9898extern const rgb_color  B_TRANSPARENT_32_BIT;
    9999
    100100
    101 // color map
     101/* color map */
    102102
    103103typedef struct color_map {
    104104    int32               id;
     
    108108} color_map;
    109109
    110110
    111 // overlay
     111/* overlay */
    112112
    113113typedef struct overlay_rect_limits {
    114114    uint16              horizontal_alignment;
     
    133133} overlay_restrictions;
    134134
    135135
    136 // screen ID
     136/* screen ID */
    137137
    138138struct screen_id { int32 id; };
    139139
    140140extern const struct screen_id B_MAIN_SCREEN_ID;
    141141
    142142
    143 // color spaces
     143/* color spaces */
    144144
    145145typedef enum {
    146146    B_NO_COLOR_SPACE    = 0x0000,
    147147
    148     // linear color space (little endian)
    149     B_RGB32             = 0x0008,   // BGR-
    150     B_RGBA32            = 0x2008,   // BGRA
    151     B_RGB24             = 0x0003,   // BGR
     148    /* linear color space (little endian) */
     149    B_RGB32             = 0x0008,   /* BGR- */
     150    B_RGBA32            = 0x2008,   /* BGRA */
     151    B_RGB24             = 0x0003,   /* BGR */
    152152    B_RGB16             = 0x0005,
    153153    B_RGB15             = 0x0010,
    154154    B_RGBA15            = 0x2010,
     
    156156    B_GRAY8             = 0x0002,
    157157    B_GRAY1             = 0x0001,
    158158
    159     // big endian version
    160     B_RGB32_BIG         = 0x1008,   // -RGB
    161     B_RGBA32_BIG        = 0x3008,   // ARGB
    162     B_RGB24_BIG         = 0x1003,   // RGB
     159    /* big endian version */
     160    B_RGB32_BIG         = 0x1008,   /* -RGB */
     161    B_RGBA32_BIG        = 0x3008,   /* ARGB */
     162    B_RGB24_BIG         = 0x1003,   /* RGB */
    163163    B_RGB16_BIG         = 0x1005,
    164164    B_RGB15_BIG         = 0x1010,
    165165    B_RGBA15_BIG        = 0x3010,
    166166
    167     // explicit little-endian for completeness
     167    /* explicit little-endian for completeness */
    168168    B_RGB32_LITTLE      = B_RGB32,
    169169    B_RGBA32_LITTLE     = B_RGBA32,
    170170    B_RGB24_LITTLE      = B_RGB24,
     
    172172    B_RGB15_LITTLE      = B_RGB15,
    173173    B_RGBA15_LITTLE     = B_RGBA15,
    174174
    175     // non linear color space -- incidently, all with 8 bits per value
    176     // Note, BBitmap and BView do not support all of these!
     175    /* non linear color space -- incidently, all with 8 bits per value */
     176    /* Note, BBitmap and BView do not support all of these! */
    177177
    178     // loss/saturation points are Y 16-235 (absolute), Cb/Cr 16-240 (center 128)
     178    /* loss/saturation points are Y 16-235 (absolute), Cb/Cr 16-240 (center 128) */
    179179
    180     B_YCbCr422          = 0x4000,   // Y0  Cb0  Y1  Cr0  Y2...
    181                                     // Cb2 Y3  Cr2...
    182     B_YCbCr411          = 0x4001,   // Cb0 Y0  Cr0  Y1  Cb4...
    183                                     // Y2  Cr4 Y3   Y4  Y5...
    184                                     // Y6  Y7...
    185     B_YCbCr444          = 0x4003,   // Y Cb Cr
    186     B_YCbCr420          = 0x4004,   // Non-interlaced only
    187         // on even scan lines: Cb0  Y0  Y1  Cb2 Y2  Y3
    188         // on odd scan lines:  Cr0  Y0  Y1  Cr2 Y2  Y3
     180    B_YCbCr422          = 0x4000,   /* Y0  Cb0  Y1  Cr0  Y2... */
     181                                    /* Cb2 Y3  Cr2... */
     182    B_YCbCr411          = 0x4001,   /* Cb0 Y0  Cr0  Y1  Cb4... */
     183                                    /* Y2  Cr4 Y3   Y4  Y5... */
     184                                    /* Y6  Y7... */
     185    B_YCbCr444          = 0x4003,   /* Y Cb Cr */
     186    B_YCbCr420          = 0x4004,   /* Non-interlaced only */
     187        /* on even scan lines: Cb0  Y0  Y1  Cb2 Y2  Y3 */
     188        /* on odd scan lines:  Cr0  Y0  Y1  Cr2 Y2  Y3 */
    189189
    190     // Extrema points are:
    191     //  Y 0 - 207 (absolute)
    192     //  U -91 - 91 (offset 128)
    193     //  V -127 - 127 (offset 128)
     190    /* Extrema points are: */
     191    /*  Y 0 - 207 (absolute) */
     192    /*  U -91 - 91 (offset 128) */
     193    /*  V -127 - 127 (offset 128) */
    194194
    195     // Note that YUV byte order is different from YCbCr; use YCbCr, not YUV,
    196     // when that's what you mean!
    197     B_YUV422            = 0x4020,   // U0  Y0  V0  Y1...
    198                                     // U2  Y2  V2  Y3...
    199     B_YUV411            = 0x4021,   // U0  Y0  Y1  V0  Y2  Y3...
    200                                     // U4  Y4  Y5  V4  Y6  Y7...
    201     B_YUV444            = 0x4023,   // U0  Y0  V0  U1  Y1  V1
    202     B_YUV420            = 0x4024,   // Non-interlaced only
    203         // on even scan lines: U0  Y0  Y1  U2 Y2  Y3
    204         // on odd scan lines:  V0  Y0  Y1  V2 Y2  Y3
     195    /* Note that YUV byte order is different from YCbCr; use YCbCr, not YUV, */
     196    /* when that's what you mean! */
     197    B_YUV422            = 0x4020,   /* U0  Y0  V0  Y1... */
     198                                    /* U2  Y2  V2  Y3... */
     199    B_YUV411            = 0x4021,   /* U0  Y0  Y1  V0  Y2  Y3... */
     200                                    /* U4  Y4  Y5  V4  Y6  Y7... */
     201    B_YUV444            = 0x4023,   /* U0  Y0  V0  U1  Y1  V1 */
     202    B_YUV420            = 0x4024,   /* Non-interlaced only */
     203        /* on even scan lines: U0  Y0  Y1  U2 Y2  Y3 */
     204        /* on odd scan lines:  V0  Y0  Y1  V2 Y2  Y3 */
    205205    B_YUV9              = 0x402C,
    206206    B_YUV12             = 0x402D,
    207207
    208     B_UVL24             = 0x4030,   // UVL
    209     B_UVL32             = 0x4031,   // UVL-
    210     B_UVLA32            = 0x6031,   // UVLA
     208    B_UVL24             = 0x4030,   /* UVL */
     209    B_UVL32             = 0x4031,   /* UVL- */
     210    B_UVLA32            = 0x6031,   /* UVLA */
    211211
    212     // L lightness, a/b color-opponent dimensions
    213     B_LAB24             = 0x4032,   // Lab
    214     B_LAB32             = 0x4033,   // Lab-
    215     B_LABA32            = 0x6033,   // LabA
     212    /* L lightness, a/b color-opponent dimensions */
     213    B_LAB24             = 0x4032,   /* Lab */
     214    B_LAB32             = 0x4033,   /* Lab- */
     215    B_LABA32            = 0x6033,   /* LabA */
    216216
    217     // Red is at hue 0
    218     B_HSI24             = 0x4040,   // HSI
    219     B_HSI32             = 0x4041,   // HSI-
    220     B_HSIA32            = 0x6041,   // HSIA
     217    /* Red is at hue 0 */
     218    B_HSI24             = 0x4040,   /* HSI */
     219    B_HSI32             = 0x4041,   /* HSI- */
     220    B_HSIA32            = 0x6041,   /* HSIA */
    221221
    222     B_HSV24             = 0x4042,   // HSV
    223     B_HSV32             = 0x4043,   // HSV-
    224     B_HSVA32            = 0x6043,   // HSVA
     222    B_HSV24             = 0x4042,   /* HSV */
     223    B_HSV32             = 0x4043,   /* HSV- */
     224    B_HSVA32            = 0x6043,   /* HSVA */
    225225
    226     B_HLS24             = 0x4044,   // HLS
    227     B_HLS32             = 0x4045,   // HLS-
    228     B_HLSA32            = 0x6045,   // HLSA
     226    B_HLS24             = 0x4044,   /* HLS */
     227    B_HLS32             = 0x4045,   /* HLS- */
     228    B_HLSA32            = 0x6045,   /* HLSA */
    229229
    230     B_CMY24             = 0xC001,   // CMY
    231     B_CMY32             = 0xC002,   // CMY-
    232     B_CMYA32            = 0xE002,   // CMYA
    233     B_CMYK32            = 0xC003,   // CMYK
     230    B_CMY24             = 0xC001,   /* CMY */
     231    B_CMY32             = 0xC002,   /* CMY- */
     232    B_CMYA32            = 0xE002,   /* CMYA */
     233    B_CMYK32            = 0xC003,   /* CMYK */
    234234
    235     // compatibility declarations
     235    /* compatibility declarations */
    236236    B_MONOCHROME_1_BIT  = B_GRAY1,
    237237    B_GRAYSCALE_8_BIT   = B_GRAY8,
    238238    B_COLOR_8_BIT       = B_CMAP8,
     
    243243} color_space;
    244244
    245245
    246 // Bitmap Support Flags
     246/* Bitmap Support Flags */
    247247
    248248enum {
    249249    B_VIEWS_SUPPORT_DRAW_BITMAP         = 0x1,
     
    266266};
    267267
    268268             
    269 // Drawing Modes
     269/* Drawing Modes */
    270270
    271271enum drawing_mode {
    272272    B_OP_COPY,
     
    293293};
    294294
    295295
    296 // Fixed Screen Modes
     296/* Fixed Screen Modes */
    297297
    298298enum {
    299299    B_8_BIT_640x480     = 0x00000001,
     
    324324    B_8_BIT_640x400     = 0x80000000
    325325};
    326326
    327 #endif  // _GRAPHICS_DEFS_H
     327#endif  /* _GRAPHICS_DEFS_H */
  • support/parsedate.h

     
    1111
    1212/* flags that will be set in the flags field by parsedate_etc() */
    1313#define PARSEDATE_RELATIVE_TIME         0x0001
    14 // ToDo: the following flags are not part of the R5 implementation and preliminary only
     14/* ToDo: the following flags are not part of the R5 implementation and preliminary only */
    1515#define PARSEDATE_DAY_RELATIVE_TIME     PARSEDATE_RELATIVE_TIME
    1616#define PARSEDATE_MINUTE_RELATIVE_TIME  0x0002
    1717#define PARSEDATE_INVALID_DATE          0x0100
  • support/Beep.h

     
    1111
    1212
    1313#ifdef __cplusplus
    14 // These functions are only exported for C++
     14/* These functions are only exported for C++ */
    1515
    1616status_t beep();
    1717status_t system_beep(const char* eventName);
     
    1919
    2020#endif
    2121
    22 #endif  // _BEEP_H
     22#endif  /* _BEEP_H */
  • support/TypeConstants.h

     
    5656    B_UINT8_TYPE                    = 'UBYT',
    5757    B_VECTOR_ICON_TYPE              = 'VICN',
    5858
    59     // deprecated, do not use
    60     B_ASCII_TYPE                    = 'TEXT'    // use B_STRING_TYPE instead
     59    /* deprecated, do not use */
     60    B_ASCII_TYPE                    = 'TEXT'    /* use B_STRING_TYPE instead */
    6161};
    6262
    63 // System-wide MIME types for handling URL's
     63/* System-wide MIME types for handling URL's */
    6464
    65 extern const char *B_URL_HTTP;      // application/x-vnd.Be.URL.http
    66 extern const char *B_URL_HTTPS;         // application/x-vnd.Be.URL.https
    67 extern const char *B_URL_FTP;       // application/x-vnd.Be.URL.ftp
    68 extern const char *B_URL_GOPHER;    // application/x-vnd.Be.URL.gopher
    69 extern const char *B_URL_MAILTO;    // application/x-vnd.Be.URL.mailto
    70 extern const char *B_URL_NEWS;      // application/x-vnd.Be.URL.news
    71 extern const char *B_URL_NNTP;      // application/x-vnd.Be.URL.nntp
    72 extern const char *B_URL_TELNET;    // application/x-vnd.Be.URL.telnet
    73 extern const char *B_URL_RLOGIN;    // application/x-vnd.Be.URL.rlogin
    74 extern const char *B_URL_TN3270;    // application/x-vnd.Be.URL.tn3270
    75 extern const char *B_URL_WAIS;      // application/x-vnd.Be.URL.wais
    76 extern const char *B_URL_FILE;      // application/x-vnd.Be.URL.file
     65extern const char *B_URL_HTTP;      /* application/x-vnd.Be.URL.http */
     66extern const char *B_URL_HTTPS;         /* application/x-vnd.Be.URL.https */
     67extern const char *B_URL_FTP;       /* application/x-vnd.Be.URL.ftp */
     68extern const char *B_URL_GOPHER;    /* application/x-vnd.Be.URL.gopher */
     69extern const char *B_URL_MAILTO;    /* application/x-vnd.Be.URL.mailto */
     70extern const char *B_URL_NEWS;      /* application/x-vnd.Be.URL.news */
     71extern const char *B_URL_NNTP;      /* application/x-vnd.Be.URL.nntp */
     72extern const char *B_URL_TELNET;    /* application/x-vnd.Be.URL.telnet */
     73extern const char *B_URL_RLOGIN;    /* application/x-vnd.Be.URL.rlogin */
     74extern const char *B_URL_TN3270;    /* application/x-vnd.Be.URL.tn3270 */
     75extern const char *B_URL_WAIS;      /* application/x-vnd.Be.URL.wais */
     76extern const char *B_URL_FILE;      /* application/x-vnd.Be.URL.file */
    7777
    78 #endif  // _TYPE_CONSTANTS_H
     78#endif  /* _TYPE_CONSTANTS_H */
  • support/UTF8.h

     
    1111#include <SupportDefs.h>
    1212
    1313
    14 // Conversion Flavors
     14/* Conversion Flavors */
    1515enum {
    16     B_ISO1_CONVERSION,              // ISO 8859-x
     16    B_ISO1_CONVERSION,              /* ISO 8859-x */
    1717    B_ISO2_CONVERSION,
    1818    B_ISO3_CONVERSION,
    1919    B_ISO4_CONVERSION,
     
    2323    B_ISO8_CONVERSION,
    2424    B_ISO9_CONVERSION,
    2525    B_ISO10_CONVERSION,
    26     B_MAC_ROMAN_CONVERSION,         // Macintosh Roman
    27     B_SJIS_CONVERSION,              // Shift-JIS
    28     B_EUC_CONVERSION,               // EUC Packed Japanese
    29     B_JIS_CONVERSION,               // JIS X 0208-1990
    30     B_MS_WINDOWS_CONVERSION,        // Windows Latin-1 Codepage 1252
    31     B_UNICODE_CONVERSION,           // Unicode 2.0, UCS-2
    32     B_KOI8R_CONVERSION,             // KOI8-R
    33     B_MS_WINDOWS_1251_CONVERSION,   // Windows Cyrillic Codepage 1251
    34     B_MS_DOS_866_CONVERSION,        // MS-DOS Codepage 866
    35     B_MS_DOS_CONVERSION,            // MS-DOS Codepage 437
    36     B_EUC_KR_CONVERSION,            // EUC Korean
     26    B_MAC_ROMAN_CONVERSION,         /* Macintosh Roman */
     27    B_SJIS_CONVERSION,              /* Shift-JIS */
     28    B_EUC_CONVERSION,               /* EUC Packed Japanese */
     29    B_JIS_CONVERSION,               /* JIS X 0208-1990 */
     30    B_MS_WINDOWS_CONVERSION,        /* Windows Latin-1 Codepage 1252 */
     31    B_UNICODE_CONVERSION,           /* Unicode 2.0, UCS-2 */
     32    B_KOI8R_CONVERSION,             /* KOI8-R */
     33    B_MS_WINDOWS_1251_CONVERSION,   /* Windows Cyrillic Codepage 1251 */
     34    B_MS_DOS_866_CONVERSION,        /* MS-DOS Codepage 866 */
     35    B_MS_DOS_CONVERSION,            /* MS-DOS Codepage 437 */
     36    B_EUC_KR_CONVERSION,            /* EUC Korean */
    3737    B_ISO13_CONVERSION,
    3838    B_ISO14_CONVERSION,
    3939    B_ISO15_CONVERSION,
    40     B_BIG5_CONVERSION,              // Chinese Big5
    41     B_GBK_CONVERSION,               // Chinese GB18030
     40    B_BIG5_CONVERSION,              /* Chinese Big5 */
     41    B_GBK_CONVERSION,               /* Chinese GB18030 */
    4242};
    4343
    4444
    45 // Conversion Functions
     45/* Conversion Functions */
    4646
    4747#ifdef __cplusplus
    4848
  • drivers/locked_pool.h

     
    4141typedef struct {
    4242    module_info minfo;
    4343
    44     // allocate block   
     44    /* allocate block    */
    4545    void *(*alloc)(locked_pool_cookie pool);
    46     // free block
     46    /* free block */
    4747    void (*free)(locked_pool_cookie pool, void *block);
    4848
    49     // create new pool
    50     // block_size   - size of one memory block
    51     // alignment    - set address bits here that must be zero for block addresses
    52     // next_ofs     - offset in block where internal next-pointer can be stored
    53     // chunk_size   - how much system memory is to be allocated at once
    54     // max_blocks   - maximum number of blocks
    55     // min_free_block - minimum number of free blocks
    56     // name         - name of pool
    57     // lock_flags   - flags to be passed to lock_memory()
    58     // alloc_hook   - hook to be called when new block is added to pool (can be NULL )
    59     // free_hook    - hook to be called when block is removed from pool (can be NULL )
    60     // hook_arg     - value to be passed to hooks as arg
     49    /* create new pool */
     50    /* block_size   - size of one memory block */
     51    /* alignment    - set address bits here that must be zero for block addresses */
     52    /* next_ofs     - offset in block where internal next-pointer can be stored */
     53    /* chunk_size   - how much system memory is to be allocated at once */
     54    /* max_blocks   - maximum number of blocks */
     55    /* min_free_block - minimum number of free blocks */
     56    /* name         - name of pool */
     57    /* lock_flags   - flags to be passed to lock_memory() */
     58    /* alloc_hook   - hook to be called when new block is added to pool (can be NULL ) */
     59    /* free_hook    - hook to be called when block is removed from pool (can be NULL ) */
     60    /* hook_arg     - value to be passed to hooks as arg */
    6161    locked_pool_cookie (*create)(int block_size, int alignment, int next_ofs,
    6262        int chunk_size, int max_blocks, int min_free_blocks, const char *name,
    6363        uint32 lock_flags, locked_pool_add_hook add_hook,
  • drivers/dpc.h

     
    3030}
    3131#endif
    3232
    33 #endif      // _DPC_MODULE_H_
     33#endif      /* _DPC_MODULE_H_ */
  • drivers/ACPI.h

     
    124124    } data;
    125125};
    126126
    127 #endif  // __ACTYPES_H__
     127#endif  /* __ACTYPES_H__ */
    128128
    129129/* Sleep states */
    130130
     
    145145
    146146typedef struct acpi_device_info *acpi_device;
    147147
    148 //  Interface to one ACPI device.
     148/*  Interface to one ACPI device. */
    149149typedef struct acpi_device_module_info {
    150150    driver_module_info info;
    151151
  • drivers/ISA.h

     
    1111#ifndef _ISA_H
    1212#define _ISA_H
    1313
    14 //#include <SupportDefs.h>
     14/*#include <SupportDefs.h> */
    1515#include <bus_manager.h>
    1616
    1717#ifdef __cplusplus
  • drivers/KernelExport.h

     
    1414
    1515typedef ulong cpu_status;
    1616
    17 // WARNING: For Haiku debugging only! This changes the spinlock type in a
    18 // binary incompatible way!
    19 //#define B_DEBUG_SPINLOCK_CONTENTION   1
     17/* WARNING: For Haiku debugging only! This changes the spinlock type in a */
     18/* binary incompatible way! */
     19/*#define B_DEBUG_SPINLOCK_CONTENTION   1 */
    2020
    2121#if B_DEBUG_SPINLOCK_CONTENTION
    2222    typedef struct {
     
    9494#define B_USER_CLONEABLE_AREA       256
    9595
    9696/* MTR attributes for mapping physical memory (Intel Architecture only) */
    97 // TODO: rename those to something more meaningful
     97/* TODO: rename those to something more meaningful */
    9898#define B_MTR_UC    0x10000000
    9999#define B_MTR_WC    0x20000000
    100100#define B_MTR_WT    0x30000000
  • drivers/fs_interface.h

     
    2525
    2626
    2727/* additional flags passed to write_stat() (see NodeMonitor.h for the others) */
    28 // NOTE: Changing the constants here or in NodeMonitor.h will break
    29 // src/kits/storage/LibBeAdapter.cpp:_kern_write_stat().
     28/* NOTE: Changing the constants here or in NodeMonitor.h will break */
     29/* src/kits/storage/LibBeAdapter.cpp:_kern_write_stat(). */
    3030#define B_STAT_SIZE_INSECURE    0x2000
    31     // TODO: this should be faded out once BFS supports sparse files
     31    /* TODO: this should be faded out once BFS supports sparse files */
    3232
    3333/* passed to write_fs_info() */
    3434#define FS_WRITE_FSINFO_NAME    0x0001
     
    4040
    4141#define B_CURRENT_FS_API_VERSION "/v1"
    4242
    43 // flags for publish_vnode() and fs_volume_ops::get_vnode()
     43/* flags for publish_vnode() and fs_volume_ops::get_vnode() */
    4444#define B_VNODE_PUBLISH_REMOVED                 0x01
    4545#define B_VNODE_DONT_CREATE_SPECIAL_SUB_NODE    0x02
    4646
     
    243243    struct module_info  info;
    244244    const char*         short_name;
    245245    const char*         pretty_name;
    246     uint32              flags;  // DDM flags
     246    uint32              flags;  /* DDM flags */
    247247
    248248    /* scanning (the device is write locked) */
    249249    float (*identify_partition)(int fd, partition_data *partition,
     
    294294
    295295/* file system add-ons only prototypes */
    296296
    297 // callbacks for do_iterative_fd_io()
     297/* callbacks for do_iterative_fd_io() */
    298298typedef status_t (*iterative_io_get_vecs)(void *cookie, io_request* request,
    299299                off_t offset, size_t size, struct file_io_vec *vecs,
    300300                size_t *_count);
  • drivers/tty/ttylayer.h

     
    1212#include <termios.h>
    1313
    1414
    15 // XXX: should go away or be opacised
     15/* XXX: should go away or be opacised */
    1616struct str {
    1717    uchar   *buffer;
    1818    uint    bufsize, count, tail;
     
    3636    uint    nopen;
    3737    uint    flags;
    3838    struct ddomain  dd;
    39     struct ddomain  ddi;    // used in interrupt context
     39    struct ddomain  ddi;    /* used in interrupt context */
    4040    pid_t   pgid;
    4141    struct termios  t;
    4242    uint    iactivity;
     
    5656    bigtime_t   vtime;
    5757};
    5858
    59 // flags
     59/* flags */
    6060#define TTYCARRIER      (1 << 0)
    6161#define TTYWRITABLE     (1 << 1)
    6262#define TTYWRITING      (1 << 2)
     
    6969#define TTYHWRI         (1 << 9)
    7070#define TTYFLOWFORCED   (1 << 10)
    7171
    72 // ops
     72/* ops */
    7373#define TTYENABLE       0
    7474#define TTYDISABLE      1
    7575#define TTYSETMODES     2
     
    8585
    8686typedef struct tty_module_info tty_module_info;
    8787
    88 // this version is compatible with BeOS R5
     88/* this version is compatible with BeOS R5 */
    8989struct tty_module_info_r5 {
    90     // not a real bus manager... no rescan() !
     90    /* not a real bus manager... no rescan() ! */
    9191    module_info mi;
    9292    status_t    (*ttyopen)(struct ttyfile *, struct ddrover *, tty_service_func);
    9393    status_t    (*ttyclose)(struct ttyfile *, struct ddrover *);
     
    105105    void    (*ddacquire)(struct ddrover *, struct ddomain *);
    106106};
    107107
    108 // BeOS R5.1d0 has a different module with the same version...
    109 // we exort this module as version 1.1 to allow using select from drivers
     108/* BeOS R5.1d0 has a different module with the same version... */
     109/* we exort this module as version 1.1 to allow using select from drivers */
    110110struct tty_module_info_dano {
    111     // not a real bus manager... no rescan() !
     111    /* not a real bus manager... no rescan() ! */
    112112    module_info mi;
    113113    status_t    (*ttyopen)(struct ttyfile *, struct ddrover *, tty_service_func);
    114114    status_t    (*ttyclose)(struct ttyfile *, struct ddrover *);
  • drivers/interrupt_controller.h

     
    1313};
    1414
    1515typedef struct interrupt_controller_info {
    16     int cpu_count;      // number of supported CPUs
    17     int irq_count;      // number of supported IRQs
     16    int cpu_count;      /* number of supported CPUs
     17 */
     18    int irq_count;      /* number of supported IRQs
     19 */
    1820} interrupt_controller_info;
    1921
    20 // interrupt controller drivers
     22/* interrupt controller drivers
     23 */
    2124typedef struct interrupt_controller_module_info {
    2225    driver_module_info info;
    2326
     
    2730    status_t    (*enable_io_interrupt)(void *cookie, int irq, int type);
    2831    status_t    (*disable_io_interrupt)(void *cookie, int irq);
    2932
    30     // Returns the IRQ number or a negative value, if the interrupt shall be
    31     // ignore (spurious interrupts). Since more than one interrupt can be
    32     // pending, the function should be called in a loop until it returns a
    33     // negative value.
    34     // Must be called with CPU interrupts disabled.
     33    /* Returns the IRQ number or a negative value, if the interrupt shall be
     34 */
     35    /* ignore (spurious interrupts). Since more than one interrupt can be
     36 */
     37    /* pending, the function should be called in a loop until it returns a
     38 */
     39    /* negative value.
     40 */
     41    /* Must be called with CPU interrupts disabled.
     42 */
    3543    int         (*acknowledge_io_interrupt)(void *cookie);
    3644
    3745} interrupt_controller_module_info;
    3846
    39 #endif  // _INTERRUPT_CONTROLLER_H
     47#endif  /* _INTERRUPT_CONTROLLER_H
     48 */
  • drivers/disk_device_manager.h

     
    2020 *  the disk system modules.
    2121 */
    2222typedef struct partition_data {
    23     partition_id    id;             // [sys]
     23    partition_id    id;             /* [sys] */
    2424    off_t           offset;
    2525    off_t           size;
    2626    off_t           content_size;
    2727    uint32          block_size;
    2828    int32           child_count;
    29     int32           index;          // [sys]
     29    int32           index;          /* [sys] */
    3030    uint32          status;
    3131    uint32          flags;
    32     dev_t           volume;         // [sys]
    33     void            *mount_cookie;  // [sys]
    34     char            *name;          // max: B_OS_NAME_LENGTH
    35     char            *content_name;  //
    36     char            *type;          //
    37     const char      *content_type;  // [sys]
     32    dev_t           volume;         /* [sys] */
     33    void            *mount_cookie;  /* [sys]  */
     34    char            *name;          /* max: B_OS_NAME_LENGTH */
     35    char            *content_name;  /* */
     36    char            *type;          /* */
     37    const char      *content_type;  /* [sys] */
    3838    char            *parameters;
    3939    char            *content_parameters;
    4040    void            *cookie;
    4141    void            *content_cookie;
    4242} partition_data;
    4343
    44 // C API disk device representation
     44/* C API disk device representation */
    4545typedef struct disk_device_data {
    46     partition_id    id;             // equal to that of the root partition
     46    partition_id    id;             /* equal to that of the root partition */
    4747    uint32          flags;
    4848    char            *path;
    4949    device_geometry geometry;
    5050} disk_device_data;
    5151
    52 // C API partitionable space representation
     52/* C API partitionable space representation */
    5353typedef struct partitionable_space_data {
    5454    off_t   offset;
    5555    off_t   size;
    5656} partitionable_space_data;
    5757
    58 // operations on partitions
     58/* operations on partitions */
    5959enum {
    60     B_PARTITION_SHADOW,         // indicates creation of a shadow partition
    61     B_PARTITION_SHADOW_CHILD,   //
     60    B_PARTITION_SHADOW,         /* indicates creation of a shadow partition */
     61    B_PARTITION_SHADOW_CHILD,   /* */
    6262    B_PARTITION_DEFRAGMENT,
    6363    B_PARTITION_REPAIR,
    6464    B_PARTITION_RESIZE,
     
    7575    B_PARTITION_DELETE_CHILD,
    7676};
    7777
    78 // disk device job cancel status
     78/* disk device job cancel status */
    7979enum {
    8080    B_DISK_DEVICE_JOB_CONTINUE,
    8181    B_DISK_DEVICE_JOB_CANCEL,
    8282    B_DISK_DEVICE_JOB_REVERSE,
    8383};
    8484
    85 // disk device locking
     85/* disk device locking */
    8686disk_device_data *write_lock_disk_device(partition_id partitionID);
    8787void write_unlock_disk_device(partition_id partitionID);
    8888disk_device_data *read_lock_disk_device(partition_id partitionID);
    8989void read_unlock_disk_device(partition_id partitionID);
    90     // parameter is the ID of any partition on the device
     90    /* parameter is the ID of any partition on the device */
    9191
    92 // getting disk devices/partitions by path
    93 // (no locking required)
     92/* getting disk devices/partitions by path */
     93/* (no locking required) */
    9494int32 find_disk_device(const char *path);
    9595int32 find_partition(const char *path);
    9696
    97 // disk device/partition read access
    98 // (read lock required)
     97/* disk device/partition read access */
     98/* (read lock required) */
    9999disk_device_data *get_disk_device(partition_id partitionID);
    100100partition_data *get_partition(partition_id partitionID);
    101101partition_data *get_parent_partition(partition_id partitionID);
    102102partition_data *get_child_partition(partition_id partitionID, int32 index);
    103103
    104 // partition write access
    105 // (write lock required)
     104/* partition write access */
     105/* (write lock required) */
    106106partition_data *create_child_partition(partition_id partitionID, int32 index,
    107107        partition_id childID);
    108     // childID is an optional input parameter -- -1 to be ignored
     108    /* childID is an optional input parameter -- -1 to be ignored */
    109109bool delete_partition(partition_id partitionID);
    110110void partition_modified(partition_id partitionID);
    111     // tells the disk device manager, that the partition has been modified
     111    /* tells the disk device manager, that the partition has been modified */
    112112
    113113status_t scan_partition(partition_id partitionID);
    114     // Service method for disks systems: Synchronously scans the partition.
    115     // Device must not be locked.
     114    /* Service method for disks systems: Synchronously scans the partition. */
     115    /* Device must not be locked. */
    116116
    117 // partition support functions
    118 // (no lock required)
     117/* partition support functions */
     118/* (no lock required) */
    119119status_t get_default_partition_content_name(partition_id partitionID,
    120120        const char* fileSystemName, char* buffer, size_t bufferSize);
    121     // The partition_data::content_size field must already be initialized.
     121    /* The partition_data::content_size field must already be initialized. */
    122122
    123 // disk systems
     123/* disk systems */
    124124disk_system_id find_disk_system(const char *name);
    125125
    126 // jobs
     126/* jobs */
    127127bool update_disk_device_job_progress(disk_job_id jobID, float progress);
    128128bool update_disk_device_job_extra_progress(disk_job_id jobID, const char *info);
    129129bool set_disk_device_job_error_message(disk_job_id jobID, const char *message);
    130130uint32 update_disk_device_job_interrupt_properties(disk_job_id jobID,
    131131        uint32 interruptProperties);
    132     // returns one of B_DISK_DEVICE_JOB_{CONTINUE,CANCEL,REVERSE}
     132    /* returns one of B_DISK_DEVICE_JOB_{CONTINUE,CANCEL,REVERSE} */
    133133
    134134#ifdef __cplusplus
    135135}
    136136#endif
    137137
    138 #endif  // _DISK_DEVICE_MANAGER_H
     138#endif  /* _DISK_DEVICE_MANAGER_H */
  • drivers/bus/ISA.h

     
    3030#include <device_manager.h>
    3131#include <ISA.h>
    3232
    33 // maximum size of one dma transfer
    34 // (in bytes for 8 bit transfer, in words for 16 bit transfer)
     33/* maximum size of one dma transfer */
     34/* (in bytes for 8 bit transfer, in words for 16 bit transfer) */
    3535#define B_MAX_ISA_DMA_COUNT 0x10000
    3636
    3737typedef struct isa2_module_info {
     
    4444    uint32 (*read_io_32)(int mapped_io_addr);
    4545    void (*write_io_32)(int mapped_io_addr, uint32 value);
    4646
    47     // don't know what it's for, remains for compatibility
     47    /* don't know what it's for, remains for compatibility */
    4848    void *(*ram_address)(const void *physical_address_in_system_memory);
    4949
    50     // start dma transfer (scattered DMA is not supported as it's EISA specific)
     50    /* start dma transfer (scattered DMA is not supported as it's EISA specific) */
    5151    status_t (*start_isa_dma)(
    52         long    channel,                // dma channel to use
    53         void    *buf,                   // buffer to transfer
    54         long    transfer_count,         // # transfers
    55         uchar   mode,                   // mode flags
    56         uchar   e_mode                  // extended mode flags
     52        long    channel,                /* dma channel to use */
     53        void    *buf,                   /* buffer to transfer */
     54        long    transfer_count,         /* # transfers */
     55        uchar   mode,                   /* mode flags */
     56        uchar   e_mode                  /* extended mode flags */
    5757    );
    5858} isa2_module_info;
    5959
    60 // type of isa device
     60/* type of isa device */
    6161#define ISA_DEVICE_TYPE_NAME "isa/device/v1"
    62 // directory of ISA drivers
    63 // (there is only one device node, so put all drivers under "universal")
     62/* directory of ISA drivers */
     63/* (there is only one device node, so put all drivers under "universal") */
    6464#define ISA_DRIVERS_DIR "isa"
    6565
    6666
  • drivers/bus/IDE.h

     
    1111
    1212
    1313
    14 // Controller Driver Node
     14/* Controller Driver Node */
    1515
    16 // attributes:
     16/* attributes: */
    1717
    18 // node type
     18/* node type */
    1919#define IDE_BUS_TYPE_NAME "bus/ide/v1"
    20 // maximum number of devices connected to controller (uint8, optional, default:2)
     20/* maximum number of devices connected to controller (uint8, optional, default:2) */
    2121#define IDE_CONTROLLER_MAX_DEVICES_ITEM "ide/max_devices"
    22 // set to not-0 if DMA is supported (uint8, optional, default:0)
    23 // (if so, publish necessary blkdev restriction too)
     22/* set to not-0 if DMA is supported (uint8, optional, default:0) */
     23/* (if so, publish necessary blkdev restriction too) */
    2424#define IDE_CONTROLLER_CAN_DMA_ITEM "ide/can_DMA"
    25 // set to not-0 if CQ is supported (uint8, optional, default:1)
     25/* set to not-0 if CQ is supported (uint8, optional, default:1) */
    2626#define IDE_CONTROLLER_CAN_CQ_ITEM "ide/can_CQ"
    27 // name of controller (string, required)
     27/* name of controller (string, required) */
    2828#define IDE_CONTROLLER_CONTROLLER_NAME_ITEM "ide/controller_name"
    2929
    3030union ide_task_file;
    3131typedef unsigned int ide_reg_mask;
    3232
    33 // channel cookie, issued by ide bus manager
     33/* channel cookie, issued by ide bus manager */
    3434typedef struct ide_bus_info *ide_channel;
    3535
    36 // interface of controller driver
     36/* interface of controller driver */
    3737typedef struct {
    3838    driver_module_info info;
    3939
     
    5858} ide_controller_interface;
    5959
    6060
    61 // Interface for Controller Driver
     61/* Interface for Controller Driver */
    6262
    63 // interface of bus manager as seen from controller driver
    64 // use this interface as the fixed consumer of your controller driver
     63/* interface of bus manager as seen from controller driver */
     64/* use this interface as the fixed consumer of your controller driver */
    6565typedef struct {
    6666    driver_module_info info;
    6767
    68     // status - status read from controller (_not_ alt_status, as reading
    69     //          normal status acknowledges IRQ request of device)
     68    /* status - status read from controller (_not_ alt_status, as reading */
     69    /*          normal status acknowledges IRQ request of device) */
    7070    status_t    (*irq_handler)( ide_channel channel, uint8 status );
    7171} ide_for_controller_interface;
    7272
  • drivers/bus/SCSI.h

     
    9797#include <device_manager.h>
    9898
    9999
    100 #define SCSI_MAX_CDB_SIZE 16    // max size of cdb
    101 #define SCSI_MAX_SENSE_SIZE 64  // max size of sense data
    102 #define SCSI_SIM_PRIV   1536    // SIM private data; this may be a bit much but
    103                                 // we currently need that for the compatibility layer
     100#define SCSI_MAX_CDB_SIZE 16    /* max size of cdb */
     101#define SCSI_MAX_SENSE_SIZE 64  /* max size of sense data */
     102#define SCSI_SIM_PRIV   1536    /* SIM private data; this may be a bit much but */
     103                                /* we currently need that for the compatibility layer */
    104104
    105 // bus/device handle
     105/* bus/device handle */
    106106typedef struct scsi_bus_info *scsi_bus;
    107107typedef struct scsi_device_info *scsi_device;
    108108
    109109
    110 // structure of one scsi i/o CCB (command control block)
     110/* structure of one scsi i/o CCB (command control block) */
    111111typedef struct scsi_ccb {
    112     struct scsi_ccb *next, *prev;   // internal
     112    struct scsi_ccb *next, *prev;   /* internal */
    113113
    114     uchar       subsys_status;      // Returned subsystem status
    115     uchar       device_status;      // Returned scsi device status
     114    uchar       subsys_status;      /* Returned subsystem status */
     115    uchar       device_status;      /* Returned scsi device status */
    116116
    117     uchar       path_id;            // Path ID for the request
    118     uchar       target_id;          // Target device ID
    119     uchar       target_lun;         // Target LUN number
    120     uint32      flags;              // Flags for operation of the subsystem
     117    uchar       path_id;            /* Path ID for the request */
     118    uchar       target_id;          /* Target device ID */
     119    uchar       target_lun;         /* Target LUN number */
     120    uint32      flags;              /* Flags for operation of the subsystem */
    121121
    122     // released once after asynchronous execution of request;
    123     // initialised by alloc_ccb, can be replaced for action but
    124     // must be restored before returning via free_ccb
     122    /* released once after asynchronous execution of request; */
     123    /* initialised by alloc_ccb, can be replaced for action but */
     124    /* must be restored before returning via free_ccb */
    125125    sem_id      completion_sem;
    126126
    127     uint8       cdb[SCSI_MAX_CDB_SIZE];  // command data block
    128     uchar       cdb_length;         // length of command in bytes
    129     int64       sort;               // value of command to sort on (<0 means n/a)
    130     bigtime_t   timeout;            // timeout - 0 = use default
     127    uint8       cdb[SCSI_MAX_CDB_SIZE];  /* command data block */
     128    uchar       cdb_length;         /* length of command in bytes */
     129    int64       sort;               /* value of command to sort on (<0 means n/a) */
     130    bigtime_t   timeout;            /* timeout - 0 = use default */
    131131
    132     uchar       *data;              // pointer to data
    133     const physical_entry *sg_list;  // scatter/gather list
    134     uint16      sg_count;           // number of S/G entries
    135     uint32      data_length;        // length of data
    136     int32       data_resid;         // data transfer residual length: 2's comp
     132    uchar       *data;              /* pointer to data */
     133    const physical_entry *sg_list;  /* scatter/gather list */
     134    uint16      sg_count;           /* number of S/G entries */
     135    uint32      data_length;        /* length of data */
     136    int32       data_resid;         /* data transfer residual length: 2's comp */
    137137    void        *io_operation;
    138138
    139     uchar       sense[SCSI_MAX_SENSE_SIZE]; // autosense data
    140     uchar       sense_resid;        // autosense resid length: 2's comp
     139    uchar       sense[SCSI_MAX_SENSE_SIZE]; /* autosense data */
     140    uchar       sense_resid;        /* autosense resid length: 2's comp */
    141141
    142     // private
    143     bool        ordered : 1;        // request cannot overtake/be overtaken by others
    144     bool        buffered : 1;       // data is buffered to make it DMA safe
    145     bool        emulated : 1;       // command is executed as part of emulation
     142    /* private */
     143    bool        ordered : 1;        /* request cannot overtake/be overtaken by others */
     144    bool        buffered : 1;       /* data is buffered to make it DMA safe */
     145    bool        emulated : 1;       /* command is executed as part of emulation */
    146146
    147     scsi_bus    bus;                // associated bus
    148     scsi_device device;             // associated device
    149     struct dma_buffer *dma_buffer;  // used dma buffer, or NULL
    150     uchar       state;              // bus manager state
     147    scsi_bus    bus;                /* associated bus */
     148    scsi_device device;             /* associated device */
     149    struct dma_buffer *dma_buffer;  /* used dma buffer, or NULL */
     150    uchar       state;              /* bus manager state */
    151151
    152     // original data before command emulation was applied
     152    /* original data before command emulation was applied */
    153153    uint8       orig_cdb[SCSI_MAX_CDB_SIZE];
    154154    uchar       orig_cdb_length;
    155155    const physical_entry *orig_sg_list;
    156156    uint16      orig_sg_count;
    157157    uint32      orig_data_length;
    158158
    159     // private SIM data
    160     uchar       sim_state;          // set to zero when request is submitted first time
     159    /* private SIM data */
     160    uchar       sim_state;          /* set to zero when request is submitted first time */
    161161    uchar       sim_priv[SCSI_SIM_PRIV];    /* SIM private data area */
    162162} scsi_ccb;
    163163
    164164
    165 // Defines for the subsystem status field
     165/* Defines for the subsystem status field */
    166166
    167167#define SCSI_REQ_INPROG         0x00    /* request is in progress */
    168168#define SCSI_REQ_CMP            0x01    /* request completed w/out error */
     
    207207#define SCSI_SUBSYS_STATUS_MASK 0x3F    /* Mask bits for just the status # */
    208208
    209209
    210 // Defines for the flags field
     210/* Defines for the flags field */
    211211
    212212#define SCSI_DIR_RESV           0x00000000  /* Data direction (00: reserved) */
    213213#define SCSI_DIR_IN             0x00000040  /* Data direction (01: DATA IN) */
     
    216216#define SCSI_DIR_MASK           0x000000C0
    217217
    218218#define SCSI_DIS_AUTOSENSE      0x00000020  /* Disable autosense feature */
    219 #define SCSI_ORDERED_QTAG       0x00000010  // ordered queue (cannot overtake/be overtaken)
    220 #define SCSI_DMA_SAFE           0x00000008  // set if data buffer is DMA approved
     219#define SCSI_ORDERED_QTAG       0x00000010  /* ordered queue (cannot overtake/be overtaken) */
     220#define SCSI_DMA_SAFE           0x00000008  /* set if data buffer is DMA approved */
    221221
    222222#define SCSI_DIS_DISCONNECT     0x00008000  /* Disable disconnect */
    223223#define SCSI_INITIATE_SYNC      0x00004000  /* Attempt Sync data xfer, and SDTR */
     
    225225#define SCSI_ENG_SYNC           0x00000200  /* Flush resid bytes before cmplt */
    226226
    227227
    228 // Defines for the Path Inquiry CCB fields
     228/* Defines for the Path Inquiry CCB fields */
    229229
    230 // flags in hba_inquiry
     230/* flags in hba_inquiry */
    231231#define SCSI_PI_MDP_ABLE        0x80    /* Supports MDP message */
    232232#define SCSI_PI_WIDE_32         0x40    /* Supports 32 bit wide SCSI */
    233233#define SCSI_PI_WIDE_16         0x20    /* Supports 16 bit wide SCSI */
     
    235235#define SCSI_PI_TAG_ABLE        0x02    /* Supports tag queue message */
    236236#define SCSI_PI_SOFT_RST        0x01    /* Supports soft reset */
    237237
    238 // flags in hba_misc
     238/* flags in hba_misc */
    239239#define SCSI_PIM_SCANHILO       0x80    /* Bus scans from ID 7 to ID 0 */
    240240#define SCSI_PIM_NOREMOVE       0x40    /* Removable dev not included in scan */
    241241
    242 // sizes of inquiry fields
     242/* sizes of inquiry fields */
    243243#define SCSI_VUHBA      14              /* Vendor Unique HBA length */
    244244#define SCSI_SIM_ID     16              /* ASCII string len for SIM ID */
    245245#define SCSI_HBA_ID     16              /* ASCII string len for HBA ID */
     
    248248#define SCSI_VERS        8              /* ASCII string len for SIM & HBA vers */
    249249
    250250
    251 // Path inquiry, extended by BeOS XPT_EXTENDED_PATH_INQ parameters
     251/* Path inquiry, extended by BeOS XPT_EXTENDED_PATH_INQ parameters */
    252252typedef struct {
    253253    uchar       version_num;            /* Version number for the SIM/HBA */
    254254    uchar       hba_inquiry;            /* Mimic of INQ byte 7 for the HBA */
     
    256256    uint32      sim_priv;               /* Size of SIM private data area */
    257257    uchar       vuhba_flags[SCSI_VUHBA];/* Vendor unique capabilities */
    258258    uchar       initiator_id;           /* ID of the HBA on the SCSI bus */
    259     uint32      hba_queue_size;         // size of adapaters command queue
     259    uint32      hba_queue_size;         /* size of adapaters command queue */
    260260    char        sim_vid[SCSI_SIM_ID];   /* Vendor ID of the SIM */
    261261    char        hba_vid[SCSI_HBA_ID];   /* Vendor ID of the HBA */
    262262
     
    267267} scsi_path_inquiry;
    268268
    269269
    270 // Device node
     270/* Device node */
    271271
    272 // target (uint8)
     272/* target (uint8) */
    273273#define SCSI_DEVICE_TARGET_ID_ITEM "scsi/target_id"
    274 // lun (uint8)
     274/* lun (uint8) */
    275275#define SCSI_DEVICE_TARGET_LUN_ITEM "scsi/target_lun"
    276 // node type
     276/* node type */
    277277#define SCSI_DEVICE_TYPE_NAME "scsi/device/v1"
    278 // device inquiry data (raw scsi_res_inquiry)
     278/* device inquiry data (raw scsi_res_inquiry) */
    279279#define SCSI_DEVICE_INQUIRY_ITEM "scsi/device_inquiry"
    280 // device type (uint8)
     280/* device type (uint8) */
    281281#define SCSI_DEVICE_TYPE_ITEM "scsi/type"
    282 // vendor name (string)
     282/* vendor name (string) */
    283283#define SCSI_DEVICE_VENDOR_ITEM "scsi/vendor"
    284 // product name (string)
     284/* product name (string) */
    285285#define SCSI_DEVICE_PRODUCT_ITEM "scsi/product"
    286 // revision (string)
     286/* revision (string) */
    287287#define SCSI_DEVICE_REVISION_ITEM "scsi/revision"
    288288
    289 // maximum targets on scsi bus
     289/* maximum targets on scsi bus */
    290290#define SCSI_DEVICE_MAX_TARGET_COUNT "scsi/max_target_count"
    291291
    292 // directory containing links to peripheral drivers
     292/* directory containing links to peripheral drivers */
    293293#define SCSI_PERIPHERAL_DRIVERS_DIR "scsi"
    294294
    295 // bus manager device interface for peripheral driver
     295/* bus manager device interface for peripheral driver */
    296296typedef struct scsi_device_interface {
    297297    driver_module_info info;
    298298
    299     // get CCB
    300     // warning: if pool of CCBs is exhausted, this call is delayed until a
    301     // CCB is freed, so don't try to allocate more then one CCB at once!
     299    /* get CCB */
     300    /* warning: if pool of CCBs is exhausted, this call is delayed until a */
     301    /* CCB is freed, so don't try to allocate more then one CCB at once! */
    302302    scsi_ccb *(*alloc_ccb)(scsi_device device);
    303     // free CCB
     303    /* free CCB */
    304304    void (*free_ccb)(scsi_ccb *ccb);
    305305
    306     // execute command asynchronously
    307     // when it's finished, the semaphore of the ccb is released
    308     // you must provide a S/G list if data_len != 0
     306    /* execute command asynchronously */
     307    /* when it's finished, the semaphore of the ccb is released */
     308    /* you must provide a S/G list if data_len != 0 */
    309309    void (*async_io)(scsi_ccb *ccb);
    310     // execute command synchronously
    311     // you don't need to provide a S/G list nor have to lock data
     310    /* execute command synchronously */
     311    /* you don't need to provide a S/G list nor have to lock data */
    312312    void (*sync_io)(scsi_ccb *ccb);
    313313
    314     // abort request
     314    /* abort request */
    315315    uchar (*abort)(scsi_ccb *ccb_to_abort);
    316     // reset device
     316    /* reset device */
    317317    uchar (*reset_device)(scsi_device device);
    318     // terminate request
     318    /* terminate request */
    319319    uchar (*term_io)(scsi_ccb *ccb_to_terminate);
    320320
    321321    status_t (*ioctl)(scsi_device device, uint32 op, void *buffer, size_t length);
     
    324324#define SCSI_DEVICE_MODULE_NAME "bus_managers/scsi/device/driver_v1"
    325325
    326326
    327 // Bus node
     327/* Bus node */
    328328
    329 // attributes:
     329/* attributes: */
    330330
    331 // path (uint8)
     331/* path (uint8) */
    332332#define SCSI_BUS_PATH_ID_ITEM "scsi/path_id"
    333 // node type
     333/* node type */
    334334#define SCSI_BUS_TYPE_NAME "scsi/bus"
    335335
    336 // SCSI bus node driver.
    337 // This interface can be used by peripheral drivers to access the
    338 // bus directly.
     336/* SCSI bus node driver. */
     337/* This interface can be used by peripheral drivers to access the */
     338/* bus directly. */
    339339typedef struct scsi_bus_interface {
    340340    driver_module_info info;
    341341
    342     // get information about host controller
     342    /* get information about host controller */
    343343    uchar (*path_inquiry)(scsi_bus bus, scsi_path_inquiry *inquiry_data);
    344     // reset SCSI bus
     344    /* reset SCSI bus */
    345345    uchar (*reset_bus)(scsi_bus bus);
    346346} scsi_bus_interface;
    347347
    348 // name of SCSI bus node driver
     348/* name of SCSI bus node driver */
    349349#define SCSI_BUS_MODULE_NAME "bus_managers/scsi/bus/driver_v1"
    350350
    351351
    352 // Interface for SIM
     352/* Interface for SIM */
    353353
    354 // cookie for dpc
     354/* cookie for dpc */
    355355typedef struct scsi_dpc_info *scsi_dpc_cookie;
    356356
    357 // Bus manager interface used by SCSI controller drivers.
    358 // SCSI controller drivers get this interface passed via their init_device
    359 // method. Further, they must specify this driver as their fixed consumer.
     357/* Bus manager interface used by SCSI controller drivers. */
     358/* SCSI controller drivers get this interface passed via their init_device */
     359/* method. Further, they must specify this driver as their fixed consumer. */
    360360typedef struct scsi_for_sim_interface {
    361361    driver_module_info info;
    362362
    363     // put request into wait queue because of overflow
    364     // bus_overflow: true - too many bus requests
    365     //               false - too many device requests
    366     // bus/device won't receive requests until cont_sent_bus/cont_send_device
    367     // is called or a request is finished via finished();
    368     // to avoid race conditions (reporting a full and a available bus at once)
    369     // the SIM should synchronize calls to requeue, resubmit and finished
     363    /* put request into wait queue because of overflow */
     364    /* bus_overflow: true - too many bus requests */
     365    /*               false - too many device requests */
     366    /* bus/device won't receive requests until cont_sent_bus/cont_send_device */
     367    /* is called or a request is finished via finished(); */
     368    /* to avoid race conditions (reporting a full and a available bus at once) */
     369    /* the SIM should synchronize calls to requeue, resubmit and finished */
    370370    void (*requeue)(scsi_ccb *ccb, bool bus_overflow);
    371     // resubmit request ASAP
    372     // to be used if execution of request went wrong and must be retried
     371    /* resubmit request ASAP */
     372    /* to be used if execution of request went wrong and must be retried */
    373373    void (*resubmit)(scsi_ccb *ccb);
    374     // mark request as being finished
    375     // num_requests: number of requests that were handled by device
    376     //               when the request was sent (read: how full was the device
    377     //               queue); needed to find out how large the device queue is;
    378     //               e.g. if three were already running plus this request makes
    379     //               num_requests=4
     374    /* mark request as being finished */
     375    /* num_requests: number of requests that were handled by device */
     376    /*               when the request was sent (read: how full was the device */
     377    /*               queue); needed to find out how large the device queue is; */
     378    /*               e.g. if three were already running plus this request makes */
     379    /*               num_requests=4 */
    380380    void (*finished)(scsi_ccb *ccb, uint num_requests);
    381381
    382     // following functions return error on invalid arguments only
     382    /* following functions return error on invalid arguments only */
    383383    status_t (*alloc_dpc)(scsi_dpc_cookie *dpc);
    384384    status_t (*free_dpc)(scsi_dpc_cookie dpc);
    385385    status_t (*schedule_dpc)(scsi_bus cookie, scsi_dpc_cookie dpc, /*int flags,*/
    386386        void (*func)( void * ), void *arg);
    387387
    388     // block entire bus (can be nested)
    389     // no more request will be submitted to this bus
     388    /* block entire bus (can be nested) */
     389    /* no more request will be submitted to this bus */
    390390    void (*block_bus)(scsi_bus bus);
    391     // unblock entire bus
    392     // requests will be submitted to bus ASAP
     391    /* unblock entire bus */
     392    /* requests will be submitted to bus ASAP */
    393393    void (*unblock_bus)(scsi_bus bus);
    394     // block one device
    395     // no more requests will be submitted to this device
     394    /* block one device */
     395    /* no more requests will be submitted to this device */
    396396    void (*block_device)(scsi_device device);
    397     // unblock device
    398     // requests for this device will be submitted ASAP
     397    /* unblock device */
     398    /* requests for this device will be submitted ASAP */
    399399    void (*unblock_device)(scsi_device device);
    400400
    401     // terminate bus overflow condition (see "requeue")
     401    /* terminate bus overflow condition (see "requeue") */
    402402    void (*cont_send_bus)(scsi_bus bus);
    403     // terminate device overflow condition (see "requeue")
     403    /* terminate device overflow condition (see "requeue") */
    404404    void (*cont_send_device)(scsi_device device);
    405405} scsi_for_sim_interface;
    406406
     
    408408#define SCSI_FOR_SIM_MODULE_NAME "bus_managers/scsi/sim/driver_v1"
    409409
    410410
    411 // SIM Node
     411/* SIM Node */
    412412
    413 // attributes:
     413/* attributes: */
    414414
    415 // node type
     415/* node type */
    416416#define SCSI_SIM_TYPE_NAME "bus/scsi/v1"
    417 // controller name (required, string)
     417/* controller name (required, string) */
    418418#define SCSI_DESCRIPTION_CONTROLLER_NAME "controller_name"
    419419
    420420typedef void *scsi_sim_cookie;
    421421
    422 // SIM interface
    423 // SCSI controller drivers must provide this interface
     422/* SIM interface */
     423/* SCSI controller drivers must provide this interface */
    424424typedef struct scsi_sim_interface {
    425425    driver_module_info info;
    426426
    427427    void (*set_scsi_bus)(scsi_sim_cookie cookie, scsi_bus bus);
    428428
    429     // execute request
     429    /* execute request */
    430430    void (*scsi_io)(scsi_sim_cookie cookie, scsi_ccb *ccb);
    431     // abort request
     431    /* abort request */
    432432    uchar (*abort)(scsi_sim_cookie cookie, scsi_ccb *ccb_to_abort);
    433     // reset device
     433    /* reset device */
    434434    uchar (*reset_device)(scsi_sim_cookie cookie, uchar target_id, uchar target_lun);
    435     // terminate request
     435    /* terminate request */
    436436    uchar (*term_io)(scsi_sim_cookie cookie, scsi_ccb *ccb_to_terminate);
    437437
    438     // get information about bus
     438    /* get information about bus */
    439439    uchar (*path_inquiry)(scsi_sim_cookie cookie, scsi_path_inquiry *inquiry_data);
    440     // scan bus
    441     // this is called immediately before the SCSI bus manager scans the bus
     440    /* scan bus */
     441    /* this is called immediately before the SCSI bus manager scans the bus */
    442442    uchar (*scan_bus)(scsi_sim_cookie cookie);
    443     // reset bus
     443    /* reset bus */
    444444    uchar (*reset_bus)(scsi_sim_cookie cookie);
    445445
    446     // get restrictions of one device
    447     // (used for non-SCSI transport protocols and bug fixes)
     446    /* get restrictions of one device */
     447    /* (used for non-SCSI transport protocols and bug fixes) */
    448448    void (*get_restrictions)(scsi_sim_cookie    cookie,
    449         uchar               target_id,      // target id
    450         bool                *is_atapi,      // set to true if this is an ATAPI device that
    451                                             // needs some commands emulated
    452         bool                *no_autosense,  // set to true if there is no autosense;
    453                                             // the SCSI bus manager will request sense on
    454                                             // SCSI_REQ_CMP_ERR/SCSI_STATUS_CHECK_CONDITION
    455         uint32              *max_blocks );  // maximum number of blocks per transfer if > 0;
    456                                             // used for buggy devices that cannot handle
    457                                             // large transfers (read: ATAPI ZIP drives)
     449        uchar               target_id,      /* target id */
     450        bool                *is_atapi,      /* set to true if this is an ATAPI device that */
     451                                            /* needs some commands emulated */
     452        bool                *no_autosense,  /* set to true if there is no autosense; */
     453                                            /* the SCSI bus manager will request sense on */
     454                                            /* SCSI_REQ_CMP_ERR/SCSI_STATUS_CHECK_CONDITION */
     455        uint32              *max_blocks );  /* maximum number of blocks per transfer if > 0; */
     456                                            /* used for buggy devices that cannot handle */
     457                                            /* large transfers (read: ATAPI ZIP drives) */
    458458
    459459    status_t (*ioctl)(scsi_sim_cookie, uint8 targetID, uint32 op, void *buffer, size_t length);
    460460} scsi_sim_interface;
  • drivers/usb/USB_langIDs.h

     
    11#ifndef USB_LANGIDS_H
    22#define USB_LANGIDS_H
    33
    4 // USB Language Identifiers, 3/29/2000, version 1.0
    5 // Reference: http://www.usb.org/developers/docs/USB_LANGIDs.pdf
     4/* USB Language Identifiers, 3/29/2000, version 1.0 */
     5/* Reference: http://www.usb.org/developers/docs/USB_LANGIDs.pdf */
    66
    7 #define USB_LANGIDS_VERSION     0x0100  // version 1.0
     7#define USB_LANGIDS_VERSION     0x0100  /* version 1.0 */
    88
    9 // descriptor string index 0 = supported LANGIDs array
     9/* descriptor string index 0 = supported LANGIDs array */
    1010#define USB_LANGIDS_STRING_INDEX    (0)
    11 
    12 #define USB_PRIMARY_LANGID_MASK     (0x003F)        // 9 to 0 bits
    13 #define USB_SUB_LANGID_MASK         (0xFC00)        // 15 to 10 bits           
    14 
    15 #define USB_PRIMARY_LANGID(id)      (id & USB_PRIMARY_LANGID_MASK)
    16 #define USB_SUB_LANGID(id)          ((id & USB_SUB_LANGID_MASK) >> 10)
    1711
     12#define USB_PRIMARY_LANGID_MASK     (0x003F)        /* 9 to 0 bits  */
     13#define USB_SUB_LANGID_MASK         (0xFC00)        /* 15 to 10 bits             */
     14
     15#define USB_PRIMARY_LANGID(id)      (id & USB_PRIMARY_LANGID_MASK)
     16#define USB_SUB_LANGID(id)          ((id & USB_SUB_LANGID_MASK) >> 10)
     17
    1818enum {
    19     USB_LANGID_AFRIKAANS                = 0x0436,   // Afrikaans
    20     USB_LANGID_ALBANIAN                 = 0x041c,   // Albanian
    21     USB_LANGID_ARABIC_SAUDI_ARABIA      = 0x0401,   // Arabic (Saudi Arabia)
    22     USB_LANGID_ARABIC_IRAK              = 0x0801,   // Arabic (Irak)
    23     USB_LANGID_ARABIC_EGYPT             = 0x0c01,   // Arabic (Egypt)
    24     USB_LANGID_ARABIC_LYBYA             = 0x1001,   // Arabic (Libya)
    25     USB_LANGID_ARABIC_ALGERIA           = 0x1401,   // Arabic (Algeria)
    26     USB_LANGID_ARABIC_MOROCCO           = 0x1801,   // Arabic (Morocco)
    27     USB_LANGID_ARABIC_TUNISIA           = 0x1c01,   // Arabic (Tunisia)
    28     USB_LANGID_ARABIC_OMAN              = 0x2001,   // Arabic (Oman)
    29     USB_LANGID_ARABIC_YEMEN             = 0x2401,   // Arabic (Yemen)
    30     USB_LANGID_ARABIC_SYRIA             = 0x2801,   // Arabic (Syria)
    31     USB_LANGID_ARABIC_JORDAN            = 0x2c01,   // Arabic (Jordan)
    32     USB_LANGID_ARABIC_LEBANON           = 0x3001,   // Arabic (Lebanon)
    33     USB_LANGID_ARABIC_KUWAIT            = 0x3401,   // Arabic (Kuwait)
    34     USB_LANGID_ARABIC_UAE               = 0x3801,   // Arabic (U.A.E.)
    35     USB_LANGID_ARABIC_BAHRAIN           = 0x3c01,   // Arabic (Bahrain)
    36     USB_LANGID_ARABIC_QATAR             = 0x4001,   // Arabic (Qatar)
    37     USB_LANGID_ARMENIAN                 = 0x042b,   // Armenian
    38     USB_LANGID_ASSAMESE                 = 0x044d,   // Assamese
    39     USB_LANGID_AZERI_LATIN              = 0x042c,   // Azeri (Latin)
    40     USB_LANGID_AZERI_CYRILLIC           = 0x082c,   // Azeri (Cyrillic)
    41     USB_LANGID_BASQUE                   = 0x042d,   // Basque
    42     USB_LANGID_BELARUSSIAN              = 0x0423,   // Belarussian
    43     USB_LANGID_BENGALI                  = 0x0445,   // Bengali
    44     USB_LANGID_BULGARIAN                = 0x0402,   // Bulgarian
    45     USB_LANGID_BURMESE                  = 0x0455,   // Burmese
    46     USB_LANGID_CATALAN                  = 0x0403,   // Catalan
    47     USB_LANGID_CHINESE_TAIWAN           = 0x0404,   // Chinese (Taiwan)
    48     USB_LANGID_CHINESE_PRC              = 0x0804,   // Chinese (PRC = People Republic of Chinese)
    49     USB_LANGID_CHINESE_HONG_KONG        = 0x0c04,   // Chinese (Hong Kong)
    50     USB_LANGID_CHINESE_SINGAPORE        = 0x1004,   // Chinese (Singapore)
    51     USB_LANGID_CHINESE_MACAU_SAR        = 0x1404,   // Chinese (Macau SAR)
    52     USB_LANGID_CROATIAN                 = 0x041a,   // Croatian
    53     USB_LANGID_CZECH                    = 0x0405,   // Czech
    54     USB_LANGID_DANISH                   = 0x0406,   // Danish
    55     USB_LANGID_DUTCH_NETHERLANDS        = 0x0413,   // Dutch (Netherlands)
    56     USB_LANGID_DUTCH_BELGIUM            = 0x0813,   // Dutch (Belgium)
    57     USB_LANGID_ENGLISH_UNITED_STATES    = 0x0409,   // English (United States) 
    58     USB_LANGID_ENGLISH_UNITED_KINGDOM   = 0x0809,   // English (United Kingdom)
    59     USB_LANGID_ENGLISH_AUSTRALIAN       = 0x0c09,   // English (Australian)
    60     USB_LANGID_ENGLISH_CANADIAN         = 0x1009,   // English (Canadian)   
    61     USB_LANGID_ENGLISH_NEW_ZEALAND      = 0x1409,   // English (New Zealand)   
    62     USB_LANGID_ENGLISH_IRELAND          = 0x1809,   // English (Ireland)   
    63     USB_LANGID_ENGLISH_SOUTH_AFRICA     = 0x1c09,   // English (South Africa)   
    64     USB_LANGID_ENGLISH_JAMAICA          = 0x2009,   // English (Jamaica)   
    65     USB_LANGID_ENGLISH_CARIBBEAN        = 0x2409,   // English (Caribbean) 
    66     USB_LANGID_ENGLISH_BELIZE           = 0x2809,   // English (Belize)
    67     USB_LANGID_ENGLISH_TRINIDAD         = 0x2c09,   // English (Trinidad)   
    68     USB_LANGID_ENGLISH_ZIMBABWE         = 0x3009,   // English (Zimbabwe)   
    69     USB_LANGID_ENGLISH_PHLIPPINES       = 0x3409,   // English (Philippines)   
    70     USB_LANGID_ESTONIAN                 = 0x0425,   // Estonian
    71     USB_LANGID_FAEROESE                 = 0x0438,   // Faeroese
    72     USB_LANGID_FARSI                    = 0x0429,   // Farsi
    73     USB_LANGID_FINNISH                  = 0x040b,   // Finnish
    74     USB_LANGID_FRENCH_STANDARD          = 0x040c,   // French (Standard)
    75     USB_LANGID_FRENCH_BELGIAN           = 0x080c,   // French (Belgian)
    76     USB_LANGID_FRENCH_CANADIAN          = 0x0c0c,   // French (Canadian)
    77     USB_LANGID_FRENCH_SWITZERLAND       = 0x100c,   // French (Switzerland)
    78     USB_LANGID_FRENCH_LUXEMBOURG        = 0x140c,   // French (Luxembourg)
    79     USB_LANGID_FRENCH_MONACO            = 0x180c,   // French (Monaco)
    80     USB_LANGID_GEORGIAN                 = 0x0437,   // Georgian
    81     USB_LANGID_GERMAN_STANDARD          = 0x0407,   // German (Standard)
    82     USB_LANGID_GERMAN_SWITZERLAND       = 0x0807,   // German (Switzerland)
    83     USB_LANGID_GERMAN_AUSTRIA           = 0x0c07,   // German (Austria)
    84     USB_LANGID_GERMAN_LUXEMBOURG        = 0x1007,   // German (Luxembourg)
    85     USB_LANGID_GERMAN_LIECHTENSTEIN     = 0x1407,   // German (Liechtenstein)
    86     USB_LANGID_GREEK                    = 0x0408,   // Greek
    87     USB_LANGID_GUJARATI                 = 0x0447,   // Gujarati
    88     USB_LANGID_HEBREW                   = 0x040d,   // Hebrew
    89     USB_LANGID_HINDI                    = 0x0439,   // Hindi
    90     USB_LANGID_HUNGARIAN                = 0x040e,   // Hungarian
    91     USB_LANGID_ICELANDIC                = 0x040f,   // Icelandic
    92     USB_LANGID_INDONESIAN               = 0x0421,   // Indonesian
    93     USB_LANGID_ITALIAN_STANDARD         = 0x0410,   // Italian (Standard)
    94     USB_LANGID_ITALIAN_SWITZERLAND      = 0x0810,   // Italian (Switzerland)
    95     USB_LANGID_JAPANESE                 = 0x0411,   // Japanese
    96     USB_LANGID_KANNADA                  = 0x044b,   // Kannada
    97     USB_LANGID_KASHMIRI_INDIA           = 0x0860,   // Kashmiri (India)
    98     USB_LANGID_KAZAKH                   = 0x043f,   // Kazakh
    99     USB_LANGID_KONKANI                  = 0x0457,   // Konkani
    100     USB_LANGID_KOREAN_JOHAB             = 0x0412,   // Korean (Johab)
    101     USB_LANGID_LATVIAN                  = 0x0426,   // Latvian
    102     USB_LANGID_LITHUANIAN               = 0x0427,   // Lithuanian
    103     USB_LANGID_LITHUANIAN_CLASSIC       = 0x0827,   // Lithuanian (Classic)
    104     USB_LANGID_MACEDONIAN               = 0x042f,   // Macedonian
    105     USB_LANGID_MALAY_MALAYSIAN          = 0x043e,   // Malay (Malaysian)
    106     USB_LANGID_MALAY_BRUNEI_DARUSSALAM  = 0x083e,   // Malay (Brunei Darussalam)
    107     USB_LANGID_MALAYALAM                = 0x044c,   // Malayalam
    108     USB_LANGID_MANIPURI                 = 0x0458,   // Manipuri
    109     USB_LANGID_MARATHI                  = 0x044e,   // Marathi
    110     USB_LANGID_NEPALI_INDIA             = 0x0861,   // Nepali (India)
    111     USB_LANGID_NORWEGIAN_BOKMAL         = 0x0414,   // Norwegian (Bokmal)
    112     USB_LANGID_NORWEGIAN_NYNORSK        = 0x0814,   // Norwegian (Nynorsk)
    113     USB_LANGID_ORIYA                    = 0x0448,   // Oriya
    114     USB_LANGID_POLISH                   = 0x0415,   // Polish
    115     USB_LANGID_PORTUGUESE_BRAZIL        = 0x0416,   // Portuguese (Brazil)
    116     USB_LANGID_PORTUGUESE_STANDARD      = 0x0816,   // Portuguese (Standard)
    117     USB_LANGID_PUNJABI                  = 0x0446,   // Punjabi
    118     USB_LANGID_ROMANIAN                 = 0x0418,   // Romanian
    119     USB_LANGID_RUSSIAN                  = 0x0419,   // Russian
    120     USB_LANGID_SANSKRIT                 = 0x044f,   // Sanskrit
    121     USB_LANGID_SERBIAN_CYRILLIC         = 0x0c1a,   // Serbian (Cyrillic)
    122     USB_LANGID_SERBIAN_LATIN            = 0x081a,   // Serbian (Latin)
    123     USB_LANGID_SINDHI                   = 0x0459,   // Sindhi
    124     USB_LANGID_SLOVAK                   = 0x041b,   // Slovak
    125     USB_LANGID_SLOVENIAN                = 0x0424,   // Slovenian
    126     USB_LANGID_SPANNISH_TRADITIONAL_SORT= 0x040a,   // Spannish (Traditional Sort)
    127     USB_LANGID_SPANNISH_MEXICAN         = 0x080a,   // Spannish (Mexican)
    128     USB_LANGID_SPANNISH_MODERN_SORT     = 0x0c0a,   // Spannish (Modern Sort)
    129     USB_LANGID_SPANNISH_GUATEMALA       = 0x100a,   // Spannish (Guatemala)
    130     USB_LANGID_SPANNISH_COSTA_RICA      = 0x140a,   // Spannish (Costa Rica)
    131     USB_LANGID_SPANNISH_PANAMA          = 0x180a,   // Spannish (Panama)
    132     USB_LANGID_SPANNISH_DOMINICAN_REPUBLIC  = 0x1c0a,   // Spannish (Dominican Republic)
    133     USB_LANGID_SPANNISH_VENEZUELA       = 0x200a,   // Spannish (Venezuela)
    134     USB_LANGID_SPANNISH_COLOMBIA        = 0x240a,   // Spannish (Colombia)
    135     USB_LANGID_SPANNISH_PERU            = 0x280a,   // Spannish (Peru)
    136     USB_LANGID_SPANNISH_ARGENTINA       = 0x2c0a,   // Spannish (Argentina)
    137     USB_LANGID_SPANNISH_ECUADOR         = 0x300a,   // Spannish (Ecuador)
    138     USB_LANGID_SPANNISH_CHILE           = 0x340a,   // Spannish (Chile)
    139     USB_LANGID_SPANNISH_URUGUAY         = 0x380a,   // Spannish (Uruguay)
    140     USB_LANGID_SPANNISH_PARAGUAY        = 0x3c0a,   // Spannish (Paraguay)
    141     USB_LANGID_SPANNISH_BOLIVIA         = 0x400a,   // Spannish (Bolivia)
    142     USB_LANGID_SPANNISH_EL_SALVADOR     = 0x440a,   // Spannish (El Salvador)
    143     USB_LANGID_SPANNISH_HONDURAS        = 0x480a,   // Spannish (Honduras)
    144     USB_LANGID_SPANNISH_NICARAGUA       = 0x4c0a,   // Spannish (Nicaragua)
    145     USB_LANGID_SPANNISH_PUERTO_RICO     = 0x500a,   // Spannish (Puerto Rico)
    146     USB_LANGID_SUTU                     = 0x0430,   // Sutu
    147     USB_LANGID_SWAHILI_KENYA            = 0x0441,   // Swahili (Kenya)
    148     USB_LANGID_SWEDISH                  = 0x041d,   // Swedish
    149     USB_LANGID_SWEDISH_FINLAND          = 0x081d,   // Swedish (Finland)
    150     USB_LANGID_TAMIL                    = 0x0449,   // Tamil
    151     USB_LANGID_TATAR_TATARSTAN          = 0x0444,   // Tatar (Tatarstan)
    152     USB_LANGID_TELUGU                   = 0x044a,   // Telugu
    153     USB_LANGID_THAI                     = 0x041e,   // Thai
    154     USB_LANGID_TURKISH                  = 0x041f,   // Turkish
    155     USB_LANGID_UKRAINIAN                = 0x0422,   // Ukrainian
    156     USB_LANGID_URDU_PAKISTAN            = 0x0420,   // Urdu (Pakistan)
    157     USB_LANGID_URDU_INDIA               = 0x0820,   // Urdu (India)
    158     USB_LANGID_UZBEK_LATIN              = 0x0443,   // Uzbek (Latin)
    159     USB_LANGID_UZBEK_CYRILLIC           = 0x0843,   // Uzbek (Cyrillic)
    160     USB_LANGID_VIETNAMESE               = 0x042a,   // Vietnamese
    161 
    162     USB_LANGID_HID_UDD                  = 0x04ff,   // HID (Usage Data Descriptor)
    163     USB_LANGID_HID1                     = 0xf0ff,   // HID (Vendor Defined 1)
    164     USB_LANGID_HID2                     = 0xf4ff,   // HID (Vendor Defined 2)
    165     USB_LANGID_HID3                     = 0xf8ff,   // HID (Vendor Defined 3)
    166     USB_LANGID_HID4                     = 0xfcff,   // HID (Vendor Defined 4)
     19    USB_LANGID_AFRIKAANS                = 0x0436,   /* Afrikaans */
     20    USB_LANGID_ALBANIAN                 = 0x041c,   /* Albanian */
     21    USB_LANGID_ARABIC_SAUDI_ARABIA      = 0x0401,   /* Arabic (Saudi Arabia) */
     22    USB_LANGID_ARABIC_IRAK              = 0x0801,   /* Arabic (Irak) */
     23    USB_LANGID_ARABIC_EGYPT             = 0x0c01,   /* Arabic (Egypt) */
     24    USB_LANGID_ARABIC_LYBYA             = 0x1001,   /* Arabic (Libya) */
     25    USB_LANGID_ARABIC_ALGERIA           = 0x1401,   /* Arabic (Algeria) */
     26    USB_LANGID_ARABIC_MOROCCO           = 0x1801,   /* Arabic (Morocco) */
     27    USB_LANGID_ARABIC_TUNISIA           = 0x1c01,   /* Arabic (Tunisia) */
     28    USB_LANGID_ARABIC_OMAN              = 0x2001,   /* Arabic (Oman) */
     29    USB_LANGID_ARABIC_YEMEN             = 0x2401,   /* Arabic (Yemen) */
     30    USB_LANGID_ARABIC_SYRIA             = 0x2801,   /* Arabic (Syria) */
     31    USB_LANGID_ARABIC_JORDAN            = 0x2c01,   /* Arabic (Jordan) */
     32    USB_LANGID_ARABIC_LEBANON           = 0x3001,   /* Arabic (Lebanon) */
     33    USB_LANGID_ARABIC_KUWAIT            = 0x3401,   /* Arabic (Kuwait) */
     34    USB_LANGID_ARABIC_UAE               = 0x3801,   /* Arabic (U.A.E.) */
     35    USB_LANGID_ARABIC_BAHRAIN           = 0x3c01,   /* Arabic (Bahrain) */
     36    USB_LANGID_ARABIC_QATAR             = 0x4001,   /* Arabic (Qatar) */
     37    USB_LANGID_ARMENIAN                 = 0x042b,   /* Armenian */
     38    USB_LANGID_ASSAMESE                 = 0x044d,   /* Assamese */
     39    USB_LANGID_AZERI_LATIN              = 0x042c,   /* Azeri (Latin) */
     40    USB_LANGID_AZERI_CYRILLIC           = 0x082c,   /* Azeri (Cyrillic) */
     41    USB_LANGID_BASQUE                   = 0x042d,   /* Basque */
     42    USB_LANGID_BELARUSSIAN              = 0x0423,   /* Belarussian */
     43    USB_LANGID_BENGALI                  = 0x0445,   /* Bengali */
     44    USB_LANGID_BULGARIAN                = 0x0402,   /* Bulgarian */
     45    USB_LANGID_BURMESE                  = 0x0455,   /* Burmese */
     46    USB_LANGID_CATALAN                  = 0x0403,   /* Catalan */
     47    USB_LANGID_CHINESE_TAIWAN           = 0x0404,   /* Chinese (Taiwan) */
     48    USB_LANGID_CHINESE_PRC              = 0x0804,   /* Chinese (PRC = People Republic of Chinese) */
     49    USB_LANGID_CHINESE_HONG_KONG        = 0x0c04,   /* Chinese (Hong Kong) */
     50    USB_LANGID_CHINESE_SINGAPORE        = 0x1004,   /* Chinese (Singapore) */
     51    USB_LANGID_CHINESE_MACAU_SAR        = 0x1404,   /* Chinese (Macau SAR) */
     52    USB_LANGID_CROATIAN                 = 0x041a,   /* Croatian */
     53    USB_LANGID_CZECH                    = 0x0405,   /* Czech */
     54    USB_LANGID_DANISH                   = 0x0406,   /* Danish */
     55    USB_LANGID_DUTCH_NETHERLANDS        = 0x0413,   /* Dutch (Netherlands) */
     56    USB_LANGID_DUTCH_BELGIUM            = 0x0813,   /* Dutch (Belgium) */
     57    USB_LANGID_ENGLISH_UNITED_STATES    = 0x0409,   /* English (United States)   */
     58    USB_LANGID_ENGLISH_UNITED_KINGDOM   = 0x0809,   /* English (United Kingdom)  */
     59    USB_LANGID_ENGLISH_AUSTRALIAN       = 0x0c09,   /* English (Australian)  */
     60    USB_LANGID_ENGLISH_CANADIAN         = 0x1009,   /* English (Canadian)    */
     61    USB_LANGID_ENGLISH_NEW_ZEALAND      = 0x1409,   /* English (New Zealand)     */
     62    USB_LANGID_ENGLISH_IRELAND          = 0x1809,   /* English (Ireland)     */
     63    USB_LANGID_ENGLISH_SOUTH_AFRICA     = 0x1c09,   /* English (South Africa)    */
     64    USB_LANGID_ENGLISH_JAMAICA          = 0x2009,   /* English (Jamaica)     */
     65    USB_LANGID_ENGLISH_CARIBBEAN        = 0x2409,   /* English (Caribbean)   */
     66    USB_LANGID_ENGLISH_BELIZE           = 0x2809,   /* English (Belize)  */
     67    USB_LANGID_ENGLISH_TRINIDAD         = 0x2c09,   /* English (Trinidad)    */
     68    USB_LANGID_ENGLISH_ZIMBABWE         = 0x3009,   /* English (Zimbabwe)    */
     69    USB_LANGID_ENGLISH_PHLIPPINES       = 0x3409,   /* English (Philippines)     */
     70    USB_LANGID_ESTONIAN                 = 0x0425,   /* Estonian */
     71    USB_LANGID_FAEROESE                 = 0x0438,   /* Faeroese */
     72    USB_LANGID_FARSI                    = 0x0429,   /* Farsi */
     73    USB_LANGID_FINNISH                  = 0x040b,   /* Finnish */
     74    USB_LANGID_FRENCH_STANDARD          = 0x040c,   /* French (Standard) */
     75    USB_LANGID_FRENCH_BELGIAN           = 0x080c,   /* French (Belgian) */
     76    USB_LANGID_FRENCH_CANADIAN          = 0x0c0c,   /* French (Canadian) */
     77    USB_LANGID_FRENCH_SWITZERLAND       = 0x100c,   /* French (Switzerland) */
     78    USB_LANGID_FRENCH_LUXEMBOURG        = 0x140c,   /* French (Luxembourg) */
     79    USB_LANGID_FRENCH_MONACO            = 0x180c,   /* French (Monaco) */
     80    USB_LANGID_GEORGIAN                 = 0x0437,   /* Georgian */
     81    USB_LANGID_GERMAN_STANDARD          = 0x0407,   /* German (Standard) */
     82    USB_LANGID_GERMAN_SWITZERLAND       = 0x0807,   /* German (Switzerland) */
     83    USB_LANGID_GERMAN_AUSTRIA           = 0x0c07,   /* German (Austria) */
     84    USB_LANGID_GERMAN_LUXEMBOURG        = 0x1007,   /* German (Luxembourg) */
     85    USB_LANGID_GERMAN_LIECHTENSTEIN     = 0x1407,   /* German (Liechtenstein) */
     86    USB_LANGID_GREEK                    = 0x0408,   /* Greek */
     87    USB_LANGID_GUJARATI                 = 0x0447,   /* Gujarati */
     88    USB_LANGID_HEBREW                   = 0x040d,   /* Hebrew */
     89    USB_LANGID_HINDI                    = 0x0439,   /* Hindi */
     90    USB_LANGID_HUNGARIAN                = 0x040e,   /* Hungarian */
     91    USB_LANGID_ICELANDIC                = 0x040f,   /* Icelandic */
     92    USB_LANGID_INDONESIAN               = 0x0421,   /* Indonesian */
     93    USB_LANGID_ITALIAN_STANDARD         = 0x0410,   /* Italian (Standard) */
     94    USB_LANGID_ITALIAN_SWITZERLAND      = 0x0810,   /* Italian (Switzerland) */
     95    USB_LANGID_JAPANESE                 = 0x0411,   /* Japanese */
     96    USB_LANGID_KANNADA                  = 0x044b,   /* Kannada */
     97    USB_LANGID_KASHMIRI_INDIA           = 0x0860,   /* Kashmiri (India) */
     98    USB_LANGID_KAZAKH                   = 0x043f,   /* Kazakh */
     99    USB_LANGID_KONKANI                  = 0x0457,   /* Konkani */
     100    USB_LANGID_KOREAN_JOHAB             = 0x0412,   /* Korean (Johab) */
     101    USB_LANGID_LATVIAN                  = 0x0426,   /* Latvian */
     102    USB_LANGID_LITHUANIAN               = 0x0427,   /* Lithuanian */
     103    USB_LANGID_LITHUANIAN_CLASSIC       = 0x0827,   /* Lithuanian (Classic) */
     104    USB_LANGID_MACEDONIAN               = 0x042f,   /* Macedonian */
     105    USB_LANGID_MALAY_MALAYSIAN          = 0x043e,   /* Malay (Malaysian) */
     106    USB_LANGID_MALAY_BRUNEI_DARUSSALAM  = 0x083e,   /* Malay (Brunei Darussalam) */
     107    USB_LANGID_MALAYALAM                = 0x044c,   /* Malayalam */
     108    USB_LANGID_MANIPURI                 = 0x0458,   /* Manipuri */
     109    USB_LANGID_MARATHI                  = 0x044e,   /* Marathi */
     110    USB_LANGID_NEPALI_INDIA             = 0x0861,   /* Nepali (India) */
     111    USB_LANGID_NORWEGIAN_BOKMAL         = 0x0414,   /* Norwegian (Bokmal) */
     112    USB_LANGID_NORWEGIAN_NYNORSK        = 0x0814,   /* Norwegian (Nynorsk) */
     113    USB_LANGID_ORIYA                    = 0x0448,   /* Oriya */
     114    USB_LANGID_POLISH                   = 0x0415,   /* Polish */
     115    USB_LANGID_PORTUGUESE_BRAZIL        = 0x0416,   /* Portuguese (Brazil) */
     116    USB_LANGID_PORTUGUESE_STANDARD      = 0x0816,   /* Portuguese (Standard) */
     117    USB_LANGID_PUNJABI                  = 0x0446,   /* Punjabi */
     118    USB_LANGID_ROMANIAN                 = 0x0418,   /* Romanian */
     119    USB_LANGID_RUSSIAN                  = 0x0419,   /* Russian */
     120    USB_LANGID_SANSKRIT                 = 0x044f,   /* Sanskrit */
     121    USB_LANGID_SERBIAN_CYRILLIC         = 0x0c1a,   /* Serbian (Cyrillic) */
     122    USB_LANGID_SERBIAN_LATIN            = 0x081a,   /* Serbian (Latin) */
     123    USB_LANGID_SINDHI                   = 0x0459,   /* Sindhi */
     124    USB_LANGID_SLOVAK                   = 0x041b,   /* Slovak */
     125    USB_LANGID_SLOVENIAN                = 0x0424,   /* Slovenian */
     126    USB_LANGID_SPANNISH_TRADITIONAL_SORT= 0x040a,   /* Spannish (Traditional Sort) */
     127    USB_LANGID_SPANNISH_MEXICAN         = 0x080a,   /* Spannish (Mexican) */
     128    USB_LANGID_SPANNISH_MODERN_SORT     = 0x0c0a,   /* Spannish (Modern Sort) */
     129    USB_LANGID_SPANNISH_GUATEMALA       = 0x100a,   /* Spannish (Guatemala) */
     130    USB_LANGID_SPANNISH_COSTA_RICA      = 0x140a,   /* Spannish (Costa Rica) */
     131    USB_LANGID_SPANNISH_PANAMA          = 0x180a,   /* Spannish (Panama) */
     132    USB_LANGID_SPANNISH_DOMINICAN_REPUBLIC  = 0x1c0a,   /* Spannish (Dominican Republic) */
     133    USB_LANGID_SPANNISH_VENEZUELA       = 0x200a,   /* Spannish (Venezuela) */
     134    USB_LANGID_SPANNISH_COLOMBIA        = 0x240a,   /* Spannish (Colombia) */
     135    USB_LANGID_SPANNISH_PERU            = 0x280a,   /* Spannish (Peru) */
     136    USB_LANGID_SPANNISH_ARGENTINA       = 0x2c0a,   /* Spannish (Argentina) */
     137    USB_LANGID_SPANNISH_ECUADOR         = 0x300a,   /* Spannish (Ecuador) */
     138    USB_LANGID_SPANNISH_CHILE           = 0x340a,   /* Spannish (Chile) */
     139    USB_LANGID_SPANNISH_URUGUAY         = 0x380a,   /* Spannish (Uruguay) */
     140    USB_LANGID_SPANNISH_PARAGUAY        = 0x3c0a,   /* Spannish (Paraguay) */
     141    USB_LANGID_SPANNISH_BOLIVIA         = 0x400a,   /* Spannish (Bolivia) */
     142    USB_LANGID_SPANNISH_EL_SALVADOR     = 0x440a,   /* Spannish (El Salvador) */
     143    USB_LANGID_SPANNISH_HONDURAS        = 0x480a,   /* Spannish (Honduras) */
     144    USB_LANGID_SPANNISH_NICARAGUA       = 0x4c0a,   /* Spannish (Nicaragua) */
     145    USB_LANGID_SPANNISH_PUERTO_RICO     = 0x500a,   /* Spannish (Puerto Rico) */
     146    USB_LANGID_SUTU                     = 0x0430,   /* Sutu */
     147    USB_LANGID_SWAHILI_KENYA            = 0x0441,   /* Swahili (Kenya) */
     148    USB_LANGID_SWEDISH                  = 0x041d,   /* Swedish */
     149    USB_LANGID_SWEDISH_FINLAND          = 0x081d,   /* Swedish (Finland) */
     150    USB_LANGID_TAMIL                    = 0x0449,   /* Tamil */
     151    USB_LANGID_TATAR_TATARSTAN          = 0x0444,   /* Tatar (Tatarstan) */
     152    USB_LANGID_TELUGU                   = 0x044a,   /* Telugu */
     153    USB_LANGID_THAI                     = 0x041e,   /* Thai */
     154    USB_LANGID_TURKISH                  = 0x041f,   /* Turkish */
     155    USB_LANGID_UKRAINIAN                = 0x0422,   /* Ukrainian */
     156    USB_LANGID_URDU_PAKISTAN            = 0x0420,   /* Urdu (Pakistan) */
     157    USB_LANGID_URDU_INDIA               = 0x0820,   /* Urdu (India) */
     158    USB_LANGID_UZBEK_LATIN              = 0x0443,   /* Uzbek (Latin) */
     159    USB_LANGID_UZBEK_CYRILLIC           = 0x0843,   /* Uzbek (Cyrillic) */
     160    USB_LANGID_VIETNAMESE               = 0x042a,   /* Vietnamese */
    167161
    168     USB_LANGID_INVALID                  = 0x0000    // Invalid LANG ID
     162    USB_LANGID_HID_UDD                  = 0x04ff,   /* HID (Usage Data Descriptor) */
     163    USB_LANGID_HID1                     = 0xf0ff,   /* HID (Vendor Defined 1) */
     164    USB_LANGID_HID2                     = 0xf4ff,   /* HID (Vendor Defined 2) */
     165    USB_LANGID_HID3                     = 0xf8ff,   /* HID (Vendor Defined 3) */
     166    USB_LANGID_HID4                     = 0xfcff,   /* HID (Vendor Defined 4) */
     167
     168    USB_LANGID_INVALID                  = 0x0000    /* Invalid LANG ID */
    169169};
    170170
    171 #endif  // USB_LANGIDS_H
     171#endif  /* USB_LANGIDS_H */
    172172
    173 
     173
  • drivers/pcmcia/k_compat.h

     
    7373
    7474/* Virtual memory mapping: this is somewhat inelegant, but lets us
    7575   use drop-in replacements for the Linux equivalents */
    76 // #define PAGE_SIZE        (0x1000)
     76/* #define PAGE_SIZE        (0x1000) */
    7777static inline void *ioremap(u_long base, u_long size)
    7878{
    7979    char tag[B_OS_NAME_LENGTH];
     
    182182/* Interrupt handling */
    183183#define request_irq(i,h,f,n,d)  install_io_interrupt_handler(i,h,d,0)
    184184#define free_irq(i,h)   remove_io_interrupt(i,h)
    185 //#define REQUEST_IRQ(i,h,f,n,d)    install_io_interrupt_handler(i,h,d,0)
    186 //#define FREE_IRQ(i,h,d)       remove_io_interrupt(i,h)
    187 //#define IRQ(i,d,r)        (d)
     185/*#define REQUEST_IRQ(i,h,f,n,d)    install_io_interrupt_handler(i,h,d,0) */
     186/*#define FREE_IRQ(i,h,d)       remove_io_interrupt(i,h) */
     187/*#define IRQ(i,d,r)        (d) */
    188188#define IRQ
    189189#define DEV_ID          dev_id
    190190#define NR_IRQS         16
  • drivers/pcmcia/config.h

     
    88#define CONFIG_PCI 1
    99#define CONFIG_CARDBUS 1
    1010#undef PCMCIA_DEBUG
    11 //#define PCMCIA_DEBUG 10
     11/*#define PCMCIA_DEBUG 10 */
    1212
    1313#endif /* _PCMCIA_CONFIG_H */
  • drivers/pcmcia/cs.h

     
    444444    bus_manager_info    binfo;
    445445    int (*_CardServices)(int, ...);
    446446    int (*_MTDHelperEntry)(int, ...);
    447  //   void (*_add_timer)(struct timer_list *);
    448  //   void (*_del_timer)(struct timer_list *);
     447 /*   void (*_add_timer)(struct timer_list *); */
     448 /*   void (*_del_timer)(struct timer_list *); */
    449449} cs_client_module_info;
    450450#define CS_SOCKET_MODULE_NAME "bus_managers/pcmcia_cs/socket/v1"
    451451typedef struct cs_socket_module_info {
    452452    bus_manager_info    binfo;
    453453    int (*_register_ss_entry)(int, ss_entry_t);
    454454    void (*_unregister_ss_entry)(ss_entry_t);
    455  //   void (*_add_timer)(struct timer_list *);
    456  //   void (*_del_timer)(struct timer_list *);
     455 /*   void (*_add_timer)(struct timer_list *); */
     456 /*   void (*_del_timer)(struct timer_list *); */
    457457    int (*register_resource)(int, u_long, u_long);
    458458    int (*release_resource)(int, u_long, u_long);
    459459    int (*check_resource)(int, u_long, u_long);
  • drivers/Select.h

     
    1313typedef struct selectsync selectsync;
    1414
    1515enum select_events {
    16     B_SELECT_READ = 1,          // standard select() support
     16    B_SELECT_READ = 1,          /* standard select() support */
    1717    B_SELECT_WRITE,
    1818    B_SELECT_ERROR,
    1919
    20     B_SELECT_PRI_READ,          // additional poll() support
     20    B_SELECT_PRI_READ,          /* additional poll() support */
    2121    B_SELECT_PRI_WRITE,
    2222
    2323    B_SELECT_HIGH_PRI_READ,