~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/net/pch_gbe/pch_gbe.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
351
351
};
352
352
 
353
353
/**
354
 
 * struct pch_gbe_mac_info - MAC infomation
 
354
 * struct pch_gbe_mac_info - MAC information
355
355
 * @addr[6]:            Store the MAC address
356
356
 * @fc:                 Mode of flow control
357
357
 * @fc_autoneg:         Auto negotiation enable for flow control setting
375
375
};
376
376
 
377
377
/**
378
 
 * struct pch_gbe_phy_info - PHY infomation
 
378
 * struct pch_gbe_phy_info - PHY information
379
379
 * @addr:               PHY address
380
380
 * @id:                 PHY's identifier
381
381
 * @revision:           PHY's revision
393
393
/*!
394
394
 * @ingroup Gigabit Ether driver Layer
395
395
 * @struct  pch_gbe_bus_info
396
 
 * @brief   Bus infomation
 
396
 * @brief   Bus information
397
397
 */
398
398
struct pch_gbe_bus_info {
399
399
        u8 type;
404
404
/*!
405
405
 * @ingroup Gigabit Ether driver Layer
406
406
 * @struct  pch_gbe_hw
407
 
 * @brief   Hardware infomation
 
407
 * @brief   Hardware information
408
408
 */
409
409
struct pch_gbe_hw {
410
410
        void *back;
462
462
 
463
463
 
464
464
/**
465
 
 * struct pch_gbe_buffer - Buffer infomation
 
465
 * struct pch_gbe_buffer - Buffer information
466
466
 * @skb:        pointer to a socket buffer
467
467
 * @dma:        DMA address
468
468
 * @time_stamp: time stamp
477
477
};
478
478
 
479
479
/**
480
 
 * struct pch_gbe_tx_ring - tx ring infomation
 
480
 * struct pch_gbe_tx_ring - tx ring information
481
481
 * @tx_lock:    spinlock structs
482
482
 * @desc:       pointer to the descriptor ring memory
483
483
 * @dma:        physical address of the descriptor ring
499
499
};
500
500
 
501
501
/**
502
 
 * struct pch_gbe_rx_ring - rx ring infomation
 
502
 * struct pch_gbe_rx_ring - rx ring information
503
503
 * @desc:       pointer to the descriptor ring memory
504
504
 * @dma:        physical address of the descriptor ring
505
505
 * @size:       length of descriptor ring in bytes
597
597
 * @rx_ring:            Pointer of Rx descriptor ring structure
598
598
 * @rx_buffer_len:      Receive buffer length
599
599
 * @tx_queue_len:       Transmit queue length
600
 
 * @rx_csum:            Receive TCP/IP checksum enable/disable
601
 
 * @tx_csum:            Transmit TCP/IP checksum enable/disable
602
600
 * @have_msi:           PCI MSI mode flag
603
601
 */
604
602
 
623
621
        struct pch_gbe_rx_ring *rx_ring;
624
622
        unsigned long rx_buffer_len;
625
623
        unsigned long tx_queue_len;
626
 
        bool rx_csum;
627
 
        bool tx_csum;
628
624
        bool have_msi;
629
625
};
630
626