Changeset d3c9b60 in mainline for uspace/srv/hw/netif/dp8390/dp8390.h
- Timestamp:
- 2011-01-06T14:42:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 506a805
- Parents:
- 95ff5c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/dp8390.h
r95ff5c4 rd3c9b60 222 222 struct dpeth; 223 223 struct iovec_dat; 224 //struct iovec_dat_s; 224 225 225 _PROTOTYPE(typedef void (*dp_initf_t), (struct dpeth *dep) ); 226 226 _PROTOTYPE(typedef void (*dp_stopf_t), (struct dpeth *dep) ); … … 228 228 struct iovec_dat *iovp, vir_bytes offset, 229 229 int nic_addr, vir_bytes count) ); 230 //_PROTOTYPE(typedef void (*dp_user2nicf_s_t), (struct dpeth *dep,231 // struct iovec_dat_s *iovp, vir_bytes offset,232 // int nic_addr, vir_bytes count) );233 230 _PROTOTYPE(typedef void (*dp_nic2userf_t), (struct dpeth *dep, 234 231 int nic_addr, struct iovec_dat *iovp, 235 232 vir_bytes offset, vir_bytes count) ); 236 //_PROTOTYPE(typedef void (*dp_nic2userf_s_t), (struct dpeth *dep,237 // int nic_addr, struct iovec_dat_s *iovp,238 // vir_bytes offset, vir_bytes count) );239 //#if 0240 //_PROTOTYPE(typedef void (*dp_getheaderf_t), (struct dpeth *dep,241 // int page, struct dp_rcvhdr *h, u16_t *eth_type) );242 //#endif243 233 _PROTOTYPE(typedef void (*dp_getblock_t), (struct dpeth *dep, 244 234 int page, size_t offset, size_t size, void *dst) ); 245 235 246 /* iovectors are handled IOVEC_NR entries at a time. */ 247 //#define IOVEC_NR 16 248 // no vectors allowed 249 #define IOVEC_NR 1 250 251 /* 252 typedef int irq_hook_t; 253 */ 236 #define IOVEC_NR 1 237 254 238 typedef struct iovec_dat 255 239 { … … 275 259 /** Maximum number of waiting packets to be sent or received. 276 260 */ 277 #define MAX_PACKETS 261 #define MAX_PACKETS 4 278 262 279 263 typedef struct dpeth … … 282 266 */ 283 267 packet_t *packet_queue; 268 284 269 /** Outgoing packets count. 285 270 */ 286 271 int packet_count; 287 272 288 273 /** Received packets queue. 289 274 */ 290 275 packet_t *received_queue; 276 291 277 /** Received packets count. 292 278 */ … … 304 290 int de_irq; 305 291 int de_int_pending; 306 // irq_hook_t de_hook;307 292 dp_initf_t de_initf; 308 293 dp_stopf_t de_stopf; 309 294 char de_name[sizeof("dp8390#n")]; 310 295 311 296 /* The initf function fills the following fields. Only cards that do 312 297 * programmed I/O fill in the de_pata_port field. … … 322 307 int de_startpage; 323 308 int de_stoppage; 324 325 /* should be here - read even for ne2k isa init... */ 326 char de_pci; /* TRUE iff PCI device */ 327 309 328 310 /* Do it yourself send queue */ 329 struct sendq 330 { 311 struct sendq { 331 312 int sq_filled; /* this buffer contains a packet */ 332 313 int sq_size; /* with this size */ 333 314 int sq_sendpage; /* starting page of the buffer */ 334 315 } de_sendq[SENDQ_NR]; 316 335 317 int de_sendq_nr; 336 318 int de_sendq_head; /* Enqueue at the head */ 337 319 int de_sendq_tail; /* Dequeue at the tail */ 338 320 339 321 /* Fields for internal use by the dp8390 driver. */ 340 322 int de_flags; … … 342 324 eth_stat_t de_stat; 343 325 iovec_dat_t de_read_iovec; 344 // iovec_dat_s_t de_read_iovec_s;345 // int de_safecopy_read;346 326 iovec_dat_t de_write_iovec; 347 // iovec_dat_s_t de_write_iovec_s;348 327 iovec_dat_t de_tmp_iovec; 349 // iovec_dat_s_t de_tmp_iovec_s;350 328 vir_bytes de_read_s; 351 329 // int de_client; 352 330 // message de_sendmsg; 353 331 dp_user2nicf_t de_user2nicf; 354 // dp_user2nicf_s_t de_user2nicf_s;355 332 dp_nic2userf_t de_nic2userf; 356 // dp_nic2userf_s_t de_nic2userf_s;357 333 dp_getblock_t de_getblockf; 358 334 } dpeth_t;
Note:
See TracChangeset
for help on using the changeset viewer.