Ignore:
Timestamp:
2011-01-06T17:51:26Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
096234b
Parents:
122b753
Message:

get rid of I/O buffers

File:
1 edited

Legend:

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

    r122b753 r40559a96  
    7878#define outw(port, value)  pio_write_16((ioport16_t *) (port), (value))
    7979
    80 /** Reads a memory block byte by byte.
    81  *  @param[in] port The address to be written.
    82  *  @param[in] dst The destination address.
    83  *  @param[in] bytes The block size in bytes.
    84  */
    85 #define do_vir_insb(port, dst, bytes)  insb((port), (void *)(dst), (bytes))
    86 
    87 /** Reads a memory block word by word (2 bytes).
    88  *  @param[in] port The address to be written.
    89  *  @param[in] dst The destination address.
    90  *  @param[in] bytes The block size in bytes.
    91  */
    92 #define do_vir_insw(port, dst, bytes)  insw((port), (void *)(dst), (bytes))
    93 
    94 /** Writes a memory block byte by byte.
    95  *  @param[in] port The address to be written.
    96  *  @param[in] src The source address.
    97  *  @param[in] bytes The block size in bytes.
    98  */
    99 #define do_vir_outsb(port, src, bytes)  outsb((port), (void *)(src), (bytes))
    100 
    101 /** Writes a memory block word by word (2 bytes).
    102  *  @param[in] port The address to be written.
    103  *  @param[in] src The source address.
    104  *  @param[in] bytes The block size in bytes.
    105  */
    106 #define do_vir_outsw(port, src, bytes)  outsw((port), (void *)(src), (bytes))
    107 
    10880/* Bits in 'DL_MODE' field of DL requests. */
    10981#define DL_NOMODE       0x0
     
    169141} eth_stat_t;
    170142
    171 /* ether.h */
    172143/** Minimum Ethernet packet size in bytes.
    173144 */
     
    186157} ether_addr_t;
    187158
    188 /** Type definition of the input/output vector.
    189  */
    190 typedef struct {
    191         /** Address of an I/O buffer.
    192          */
    193         void *iov_addr;
    194        
    195         /** Size of an I/O buffer.
    196          */
    197         size_t iov_size;
    198 } iovec_t;
    199 
    200159#endif
    201160
Note: See TracChangeset for help on using the changeset viewer.