Changeset d3c9b60 in mainline for uspace/srv/hw/netif/dp8390/dp8390.h


Ignore:
Timestamp:
2011-01-06T14:42:39Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
506a805
Parents:
95ff5c4
Message:

cstyle & clutter removal

File:
1 edited

Legend:

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

    r95ff5c4 rd3c9b60  
    222222struct dpeth;
    223223struct iovec_dat;
    224 //struct iovec_dat_s;
     224
    225225_PROTOTYPE(typedef void (*dp_initf_t), (struct dpeth *dep)              );
    226226_PROTOTYPE(typedef void (*dp_stopf_t), (struct dpeth *dep)              );
     
    228228                        struct iovec_dat *iovp, vir_bytes offset,
    229229                        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)                  );
    233230_PROTOTYPE(typedef void (*dp_nic2userf_t), (struct dpeth *dep,
    234231                        int nic_addr, struct iovec_dat *iovp,
    235232                        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 0
    240 //_PROTOTYPE(typedef void (*dp_getheaderf_t), (struct dpeth *dep,
    241 //                      int page, struct dp_rcvhdr *h, u16_t *eth_type) );
    242 //#endif
    243233_PROTOTYPE(typedef void (*dp_getblock_t), (struct dpeth *dep,
    244234                int page, size_t offset, size_t size, void *dst)        );
    245235
    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
    254238typedef struct iovec_dat
    255239{
     
    275259/** Maximum number of waiting packets to be sent or received.
    276260 */
    277 #define MAX_PACKETS     4
     261#define MAX_PACKETS  4
    278262
    279263typedef struct dpeth
     
    282266         */
    283267        packet_t *packet_queue;
     268       
    284269        /** Outgoing packets count.
    285270         */
    286271        int packet_count;
    287 
     272       
    288273        /** Received packets queue.
    289274         */
    290275        packet_t *received_queue;
     276       
    291277        /** Received packets count.
    292278         */
     
    304290        int de_irq;
    305291        int de_int_pending;
    306 //      irq_hook_t de_hook;
    307292        dp_initf_t de_initf;
    308293        dp_stopf_t de_stopf;
    309294        char de_name[sizeof("dp8390#n")];
    310 
     295       
    311296        /* The initf function fills the following fields. Only cards that do
    312297         * programmed I/O fill in the de_pata_port field.
     
    322307        int de_startpage;
    323308        int de_stoppage;
    324 
    325         /* should be here - read even for ne2k isa init... */
    326         char de_pci;                    /* TRUE iff PCI device */
    327 
     309       
    328310        /* Do it yourself send queue */
    329         struct sendq
    330         {
     311        struct sendq {
    331312                int sq_filled;          /* this buffer contains a packet */
    332313                int sq_size;            /* with this size */
    333314                int sq_sendpage;        /* starting page of the buffer */
    334315        } de_sendq[SENDQ_NR];
     316       
    335317        int de_sendq_nr;
    336318        int de_sendq_head;              /* Enqueue at the head */
    337319        int de_sendq_tail;              /* Dequeue at the tail */
    338 
     320       
    339321        /* Fields for internal use by the dp8390 driver. */
    340322        int de_flags;
     
    342324        eth_stat_t de_stat;
    343325        iovec_dat_t de_read_iovec;
    344 //      iovec_dat_s_t de_read_iovec_s;
    345 //      int de_safecopy_read;
    346326        iovec_dat_t de_write_iovec;
    347 //      iovec_dat_s_t de_write_iovec_s;
    348327        iovec_dat_t de_tmp_iovec;
    349 //      iovec_dat_s_t de_tmp_iovec_s;
    350328        vir_bytes de_read_s;
    351329//      int de_client;
    352330//      message de_sendmsg;
    353331        dp_user2nicf_t de_user2nicf;
    354 //      dp_user2nicf_s_t de_user2nicf_s;
    355332        dp_nic2userf_t de_nic2userf;
    356 //      dp_nic2userf_s_t de_nic2userf_s;
    357333        dp_getblock_t de_getblockf;
    358334} dpeth_t;
Note: See TracChangeset for help on using the changeset viewer.