Ignore:
Timestamp:
2010-03-13T12:17:02Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ba20a6b
Parents:
d0febca (diff), 2070570 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/netif/dp8390/dp8390_port.h

    rd0febca r7715994  
    4848 *  @param[in] params The function parameters definition.
    4949 */
    50 #define _PROTOTYPE( function, params ) function params
     50#define _PROTOTYPE(function, params) function params
    5151
    5252/** Success error code.
     
    7070 *  @returns 1 if the second is greater than the first.
    7171 */
    72 #define memcmp( first, second, size )   bcmp(( char * ) ( first ), ( char * ) ( second ), ( size ))
     72#define memcmp(first, second, size)     bcmp((char *) (first), (char *) (second), (size))
    7373
    7474/** Reads 1 byte.
     
    7676 *  @returns The read value.
    7777 */
    78 #define inb( port )     pio_read_8(( ioport8_t * ) ( port ))
     78#define inb(port)       pio_read_8((ioport8_t *) (port))
    7979
    8080/** Reads 1 word (2 bytes).
     
    8282 *  @returns The read value.
    8383 */
    84 #define inw( port )     pio_read_16(( ioport16_t * ) ( port ))
     84#define inw(port)       pio_read_16((ioport16_t *) (port))
    8585
    8686/** Writes 1 byte.
     
    8888 *  @param[in] value The value to be written.
    8989 */
    90 #define outb( port, value )     pio_write_8(( ioport8_t * ) ( port ), ( value ))
     90#define outb(port, value)       pio_write_8((ioport8_t *) (port), (value))
    9191
    9292/** Writes 1 word (2 bytes).
     
    9494 *  @param[in] value The value to be written.
    9595 */
    96 #define outw( port, value )     pio_write_16(( ioport16_t * ) ( port ), ( value ))
     96#define outw(port, value)       pio_write_16((ioport16_t *) (port), (value))
    9797
    9898/** Prints out the driver critical error.
    9999 *  Does not call the system panic().
    100100 */
    101 #define panic( ... )    printf( "%s%s%d", __VA_ARGS__ )
     101#define panic(...)      printf("%s%s%d", __VA_ARGS__)
    102102
    103103/** Copies a memory block.
     
    111111 *  @returns EOK.
    112112 */
    113 #define sys_vircopy( proc, src_s, src, me, dst_s, dst, bytes )  ({ memcpy(( void * )( dst ), ( void * )( src ), ( bytes )); EOK; })
     113#define sys_vircopy(proc, src_s, src, me, dst_s, dst, bytes)    ({memcpy((void *)(dst), (void *)(src), (bytes)); EOK;})
    114114
    115115/** Reads a memory block byte by byte.
     
    119119 *  @param[in] bytes The block size in bytes.
    120120 */
    121 #define do_vir_insb( port, proc, dst, bytes )   insb(( port ), ( void * )( dst ), ( bytes ))
     121#define do_vir_insb(port, proc, dst, bytes)     insb((port), (void *)(dst), (bytes))
    122122
    123123/** Reads a memory block word by word (2 bytes).
     
    127127 *  @param[in] bytes The block size in bytes.
    128128 */
    129 #define do_vir_insw( port, proc, dst, bytes )   insw(( port ), ( void * )( dst ), ( bytes ))
     129#define do_vir_insw(port, proc, dst, bytes)     insw((port), (void *)(dst), (bytes))
    130130
    131131/** Writes a memory block byte by byte.
     
    135135 *  @param[in] bytes The block size in bytes.
    136136 */
    137 #define do_vir_outsb( port, proc, src, bytes )  outsb(( port ), ( void * )( src ), ( bytes ))
     137#define do_vir_outsb(port, proc, src, bytes)    outsb((port), (void *)(src), (bytes))
    138138
    139139/** Writes a memory block word by word (2 bytes).
     
    143143 *  @param[in] bytes The block size in bytes.
    144144 */
    145 #define do_vir_outsw( port, proc, src, bytes )  outsw(( port ), ( void * )( src ), ( bytes ))
     145#define do_vir_outsw(port, proc, src, bytes)    outsw((port), (void *)(src), (bytes))
    146146
    147147/* com.h */
Note: See TracChangeset for help on using the changeset viewer.