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


Ignore:
Timestamp:
2011-01-06T23:46:21Z (14 years ago)
Author:
martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3d5e190
Parents:
66b628a
Message:

further code simplification

File:
1 edited

Legend:

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

    r66b628a r7922dea  
    245245#define outb_reg1(dep, reg, data)  (outb(dep->de_dp8390_port + reg, data))
    246246
    247 /* Software interface to the dp8390 driver */
    248 
    249 struct dpeth;
    250 
    251 typedef void (*dp_initf_t)(struct dpeth *dep);
    252 typedef void (*dp_stopf_t)(struct dpeth *dep);
    253 typedef void (*dp_user2nicf_t)(struct dpeth *dep, void *buf, size_t offset, int nic_addr, size_t size);
    254 typedef void (*dp_nic2userf_t)(struct dpeth *dep, int nic_addr, void *buf, size_t offset, size_t size);
    255 typedef void (*dp_getblock_t)(struct dpeth *dep, int page, size_t offset, size_t size, void *dst);
    256 
    257247#define SENDQ_NR     2  /* Maximum size of the send queue */
    258248#define SENDQ_PAGES  6  /* 6 * DP_PAGESIZE >= 1514 bytes */
     
    264254         * routine knows the irq and/or memory address because they are
    265255         * hardwired in the board, the probe should modify these fields.
    266          * Futhermore, the probe routine should also fill in de_initf and
    267          * de_stopf fields with the appropriate function pointers.
    268256         */
    269257        port_t de_base_port;
    270258        int de_irq;
    271         dp_initf_t de_initf;
    272         dp_stopf_t de_stopf;
    273        
    274         /*
    275          * The initf function fills the following fields. Only cards that do
    276          * programmed I/O fill in the de_pata_port field.
    277          * In addition, the init routine has to fill in the sendq data
    278          * structures.
    279          */
     259       
    280260        ether_addr_t de_address;
    281261        port_t de_dp8390_port;
     
    300280        /* Fields for internal use by the dp8390 driver. */
    301281        eth_stat_t de_stat;
    302         dp_user2nicf_t de_user2nicf;
    303         dp_nic2userf_t de_nic2userf;
    304         dp_getblock_t de_getblockf;
    305282       
    306283        /* Driver flags */
Note: See TracChangeset for help on using the changeset viewer.