GMAC (Ethernet MAC) driver for SAM.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
|
static void | circ_inc (uint16_t *headortail, uint32_t size) |
| Increment head or tail. More...
|
|
uint8_t * | gmac_dev_get_tx_buffer (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx) |
|
uint32_t | gmac_dev_get_tx_load (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx) |
| Get current load of transmit. More...
|
|
void | gmac_dev_init (Gmac *p_gmac, gmac_device_t *p_gmac_dev, gmac_options_t *p_opt) |
| Initialize the GMAC driver. More...
|
|
uint32_t | gmac_dev_read (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx, uint8_t *p_frame, uint32_t ul_frame_size, uint32_t *p_rcv_size) |
| Frames can be read from the GMAC in multiple sections. More...
|
|
void | gmac_dev_reset (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx) |
| Reset TX & RX queue & statistics. More...
|
|
uint32_t | gmac_dev_rx_buf_used (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx) |
| Return the number of RX buffer full. More...
|
|
void | gmac_dev_set_rx_callback (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx, gmac_dev_tx_cb_t func_rx_cb) |
| Register/Clear RX callback. More...
|
|
uint8_t | gmac_dev_set_tx_wakeup_callback (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx, gmac_dev_wakeup_cb_t func_wakeup_cb, uint8_t uc_threshold) |
| Register/Clear TX wakeup callback. More...
|
|
uint32_t | gmac_dev_tx_buf_used (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx) |
| Return the number of TX buffer waiting for transfer. More...
|
|
uint32_t | gmac_dev_write (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx, void *p_buffer, uint32_t ul_size, gmac_dev_tx_cb_t func_tx_cb) |
| Send ulLength bytes from pcFrom. More...
|
|
uint32_t | gmac_dev_write_nocopy (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx, uint32_t ul_size, gmac_dev_tx_cb_t func_tx_cb) |
|
void | gmac_handler (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx) |
| GMAC Interrupt handler. More...
|
|
static uint8_t | gmac_init_mem (gmac_device_t *p_gmac_dev, gmac_quelist_t queue_idx, gmac_dev_mem_t *p_dev_mm, gmac_dev_tx_cb_t *p_tx_cb) |
| Initialize the allocated buffer lists for GMAC driver to transfer data. More...
|
|
static void | gmac_init_queue (Gmac *p_gmac, gmac_device_t *p_gmac_dev) |
|
static void | gmac_reset_rx_mem (gmac_device_t *p_dev, gmac_quelist_t queue_idx) |
| Disable receiver, reset registers and descriptor list. More...
|
|
static void | gmac_reset_tx_mem (gmac_device_t *p_dev, gmac_quelist_t queue_idx) |
| Disable transfer, reset registers and descriptor lists. More...
|
|