Changeset d3a0af7 in mainline for uspace/srv/hw/netif/dp8390/dp8390_port.h
- Timestamp:
- 2011-01-06T17:18:40Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- 122b753
- Parents:
- b590c21
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390_port.h
rb590c21 rd3a0af7 92 92 /** Reads a memory block byte by byte. 93 93 * @param[in] port The address to be written. 94 * @param proc The source process. Ignored parameter.95 94 * @param[in] dst The destination address. 96 95 * @param[in] bytes The block size in bytes. 97 96 */ 98 #define do_vir_insb(port, proc, dst, bytes)insb((port), (void *)(dst), (bytes))97 #define do_vir_insb(port, dst, bytes) insb((port), (void *)(dst), (bytes)) 99 98 100 99 /** Reads a memory block word by word (2 bytes). 101 100 * @param[in] port The address to be written. 102 * @param proc The source process. Ignored parameter.103 101 * @param[in] dst The destination address. 104 102 * @param[in] bytes The block size in bytes. 105 103 */ 106 #define do_vir_insw(port, proc, dst, bytes)insw((port), (void *)(dst), (bytes))104 #define do_vir_insw(port, dst, bytes) insw((port), (void *)(dst), (bytes)) 107 105 108 106 /** Writes a memory block byte by byte. 109 107 * @param[in] port The address to be written. 110 * @param proc The source process. Ignored parameter.111 108 * @param[in] src The source address. 112 109 * @param[in] bytes The block size in bytes. 113 110 */ 114 #define do_vir_outsb(port, proc, src, bytes)outsb((port), (void *)(src), (bytes))111 #define do_vir_outsb(port, src, bytes) outsb((port), (void *)(src), (bytes)) 115 112 116 113 /** Writes a memory block word by word (2 bytes). 117 114 * @param[in] port The address to be written. 118 * @param proc The source process. Ignored parameter.119 115 * @param[in] src The source address. 120 116 * @param[in] bytes The block size in bytes. 121 117 */ 122 #define do_vir_outsw(port, proc, src, bytes)outsw((port), (void *)(src), (bytes))118 #define do_vir_outsw(port, src, bytes) outsw((port), (void *)(src), (bytes)) 123 119 124 120 /* Bits in 'DL_MODE' field of DL requests. */ … … 208 204 } ether_addr_t; 209 205 210 /* type.h */211 /** Type definition of the physical addresses and lengths in bytes.212 */213 typedef unsigned long phys_bytes;214 215 /** Type definition of the virtual addresses and lengths in bytes.216 */217 typedef unsigned long vir_bytes;218 219 206 /** Type definition of the input/output vector. 220 207 */ … … 222 209 /** Address of an I/O buffer. 223 210 */ 224 vir_bytes iov_addr; 225 /** Sizeof an I/O buffer. 226 */ 227 vir_bytes iov_size; 211 void *iov_addr; 212 213 /** Size of an I/O buffer. 214 */ 215 size_t iov_size; 228 216 } iovec_t; 229 217
Note:
See TracChangeset
for help on using the changeset viewer.