Changeset 84947a4 in mainline for uspace/rd/rd.h


Ignore:
Timestamp:
2007-06-20T20:52:23Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0eb58f1
Parents:
9ec12fd
Message:

Improve the rd task (not tested):

  • allow more connections
  • support write operation
  • support concurrent requests
  • sanity checks
  • add comments

Please review.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/rd/rd.h

    r9ec12fd r84947a4  
    33 * Copyright (c) 2007 Martin Jelen
    44 * Copyright (c) 2007 Peter Majer
     5 * Copyright (c) 2007 Jakub Jermar
    56 * All rights reserved.
    67 *
     
    4041/* Basic constants. */
    4142
    42 #ifndef _RD_H
    43 #define _RD_H
     43#ifndef RD_RD_H_
     44#define RD_RD_H_
    4445
    45 #define BLOCK_SIZE      1024  /**< Working block size */
     46#define BLOCK_SIZE      1024    /**< Working block size */
    4647
    47 #define RD_OFFSET       100 /**< IPC Message offset */
     48#define RD_BASE         1024
     49#define RD_READ_BLOCK   (RD_BASE + 1)   /**< Method for reading block. */
     50#define RD_WRITE_BLOCK  (RD_BASE + 2)   /**< Method for writing block. */
    4851
    49 #define RD_BASE         (FIRST_USER_METHOD + RD_OFFSET)  /**< IPC Index of the first RD message */
    50 #define RD_READ_BLOCK   (RD_BASE + 1) /**< IPC Index of the RD_READ_BLOCK message */
    51 
    52 #endif /* _RD_H */
     52#endif
Note: See TracChangeset for help on using the changeset viewer.