Commit bae1379a authored by Vikram Narayanan's avatar Vikram Narayanan

lcd/ixgbe: Add support for more funtions

A detailed list of functions supported
* register_netdev
* ether_setup
* eth_mac_addr
* eth_validate_addr
* free_netdev
* netif_carrier_off
* netif_carrier_on
* netif_device_attach
* netif_device_detach
* netif_set_real_num_rx_queues
* netif_set_real_num_tx_queues
* consume_skb
* unregister_netdev
* eth_platform_get_mac_address
* dev_addr_del
* device_set_wakeup_enable
* eth_get_headlen
* netif_tx_stop_all_queues
* pci_disable_pcie_error_reporting
* pci_bus_read_config_word
* pci_bus_write_config_word
* pci_cleanup_aer_uncorrect_error_status
* pci_disable_device
* pci_disable_msi
* pci_disable_msix
* pci_enable_msix_range
* pci_enable_msi_range
* pci_enable_pcie_error_reporting
* pcie_capability_read_word
* pcie_get_minimum_link
* pci_enable_device_mem
* pci_request_selected_regions
* pci_request_selected_regions_exclusive
* pci_set_master
* pci_save_state
* pci_restore_state
* pci_prepare_to_sleep
* pci_set_power_state
* pci_release_selected_regions
* pci_select_bars
* pci_wake_from_d3
Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent 215b2524
......@@ -48,6 +48,245 @@ int dispatch_async_loop(struct thc_channel *_channel,
cspace,
sync_ep);
case REGISTER_NETDEVICE:
trace(REGISTER_NETDEVICE);
return register_netdev_callee(message,
_channel,
cspace,
sync_ep);
case ETHER_SETUP:
trace(ETHER_SETUP);
return ether_setup_callee(message,
_channel,
cspace,
sync_ep);
case ETH_MAC_ADDR:
trace(ETH_MAC_ADDR);
return eth_mac_addr_callee(message,
_channel,
cspace,
sync_ep);
case ETH_VALIDATE_ADDR:
trace(ETH_VALIDATE_ADDR);
return eth_validate_addr_callee(message,
_channel,
cspace,
sync_ep);
case FREE_NETDEV:
trace(FREE_NETDEV);
return free_netdev_callee(message,
_channel,
cspace,
sync_ep);
case NETIF_CARRIER_OFF:
trace(NETIF_CARRIER_OFF);
return netif_carrier_off_callee(message,
_channel,
cspace,
sync_ep);
case NETIF_CARRIER_ON:
trace(NETIF_CARRIER_ON);
return netif_carrier_on_callee(message,
_channel,
cspace,
sync_ep);
case NETIF_DEVICE_ATTACH:
trace(NETIF_DEVICE_ATTACH);
return netif_device_attach_callee(message,
_channel,
cspace,
sync_ep);
case NETIF_DEVICE_DETACH:
trace(NETIF_DEVICE_DETACH);
return netif_device_detach_callee(message,
_channel,
cspace,
sync_ep);
case NETIF_SET_REAL_NUM_RX_QUEUES:
trace(NETIF_SET_REAL_NUM_RX_QUEUES);
return netif_set_real_num_rx_queues_callee(message,
_channel,
cspace,
sync_ep);
case NETIF_SET_REAL_NUM_TX_QUEUES:
trace(NETIF_SET_REAL_NUM_TX_QUEUES);
return netif_set_real_num_tx_queues_callee(message,
_channel,
cspace,
sync_ep);
case CONSUME_SKB:
trace(CONSUME_SKB);
return consume_skb_callee(message,
_channel,
cspace,
sync_ep);
case UNREGISTER_NETDEV:
trace(UNREGISTER_NETDEV);
return unregister_netdev_callee(message,
_channel,
cspace,
sync_ep);
case ETH_PLATFORM_GET_MAC_ADDRESS:
trace(ETH_PLATFORM_GET_MAC_ADDRESS);
return eth_platform_get_mac_address_callee(message,
_channel,
cspace,
sync_ep);
case DEV_ADDR_DEL:
trace(DEV_ADDR_DEL);
return dev_addr_del_callee(message,
_channel,
cspace,
sync_ep);
case DEVICE_SET_WAKEUP_ENABLE:
trace(DEVICE_SET_WAKEUP_ENABLE);
return device_set_wakeup_enable_callee(message,
_channel,
cspace,
sync_ep);
case ETH_GET_HEADLEN:
trace(ETH_GET_HEADLEN);
return eth_get_headlen_callee(message,
_channel,
cspace,
sync_ep);
case NETIF_TX_STOP_ALL_QUEUES:
trace(NETIF_TX_STOP_ALL_QUEUES);
return netif_tx_stop_all_queues_callee(message,
_channel,
cspace,
sync_ep);
case PCI_DISABLE_PCIE_ERROR_REPORTING:
trace(PCI_DISABLE_PCIE_ERROR_REPORTING);
return pci_disable_pcie_error_reporting_callee(message,
_channel,
cspace,
sync_ep);
case PCI_BUS_READ_CONFIG_WORD:
trace(PCI_BUS_READ_CONFIG_WORD);
return pci_bus_read_config_word_callee(message,
_channel,
cspace,
sync_ep);
case PCI_BUS_WRITE_CONFIG_WORD:
trace(PCI_BUS_WRITE_CONFIG_WORD);
return pci_bus_write_config_word_callee(message,
_channel,
cspace,
sync_ep);
case PCI_CLEANUP_AER_UNCORRECT_ERROR_STATUS:
trace(PCI_CLEANUP_AER_UNCORRECT_ERROR_STATUS);
return pci_cleanup_aer_uncorrect_error_status_callee(message,
_channel,
cspace,
sync_ep);
case PCI_DISABLE_DEVICE:
trace(PCI_DISABLE_DEVICE);
return pci_disable_device_callee(message,
_channel,
cspace,
sync_ep);
case PCI_ENABLE_PCIE_ERROR_REPORTING:
trace(PCI_ENABLE_PCIE_ERROR_REPORTING);
return pci_enable_pcie_error_reporting_callee(message,
_channel,
cspace,
sync_ep);
case PCIE_CAPABILITY_READ_WORD:
trace(PCIE_CAPABILITY_READ_WORD);
return pcie_capability_read_word_callee(message,
_channel,
cspace,
sync_ep);
case PCIE_GET_MINIMUM_LINK:
trace(PCIE_GET_MINIMUM_LINK);
return pcie_get_minimum_link_callee(message,
_channel,
cspace,
sync_ep);
case PCI_ENABLE_DEVICE_MEM:
trace(PCI_ENABLE_DEVICE_MEM);
return pci_enable_device_mem_callee(message,
_channel,
cspace,
sync_ep);
case PCI_REQUEST_SELECTED_REGIONS:
trace(PCI_REQUEST_SELECTED_REGIONS);
return pci_request_selected_regions_callee(message,
_channel,
cspace,
sync_ep);
case PCI_REQUEST_SELECTED_REGIONS_EXCLUSIVE:
trace(PCI_REQUEST_SELECTED_REGIONS_EXCLUSIVE);
return pci_request_selected_regions_exclusive_callee(message,
_channel,
cspace,
sync_ep);
case PCI_SET_MASTER:
trace(PCI_SET_MASTER);
return pci_set_master_callee(message,
_channel,
cspace,
sync_ep);
case PCI_SAVE_STATE:
trace(PCI_SAVE_STATE);
return pci_save_state_callee(message,
_channel,
cspace,
sync_ep);
case PCI_RELEASE_SELECTED_REGIONS:
trace(PCI_RELEASE_SELECTED_REGIONS);
return pci_release_selected_regions_callee(message,
_channel,
cspace,
sync_ep);
case PCI_SELECT_BARS:
trace(PCI_SELECT_BARS);
return pci_select_bars_callee(message,
_channel,
cspace,
sync_ep);
case PCI_WAKE_FROM_D3:
trace(PCI_WAKE_FROM_D3);
return pci_wake_from_d3_callee(message,
_channel,
cspace,
sync_ep);
default:
LIBLCD_ERR("unexpected function label: %d",
fn_type);
......
......@@ -17,6 +17,146 @@ int alloc_etherdev_mqs_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int register_netdev_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int ether_setup_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int eth_mac_addr_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int eth_validate_addr_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int free_netdev_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int netif_carrier_off_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int netif_carrier_on_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int netif_device_attach_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int netif_device_detach_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int netif_set_real_num_rx_queues_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int netif_set_real_num_tx_queues_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int consume_skb_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int unregister_netdev_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int eth_platform_get_mac_address_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int dev_addr_del_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int device_set_wakeup_enable_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int eth_get_headlen_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int netif_tx_stop_all_queues_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_disable_device_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_disable_pcie_error_reporting_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_bus_read_config_word_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_bus_write_config_word_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_cleanup_aer_uncorrect_error_status_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_disable_device_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_enable_pcie_error_reporting_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pcie_capability_read_word_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pcie_get_minimum_link_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_enable_device_mem_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_request_selected_regions_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_request_selected_regions_exclusive_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_set_master_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_save_state_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_release_selected_regions_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_select_bars_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int pci_wake_from_d3_callee(struct fipc_message *_request,
struct thc_channel *_channel,
struct glue_cspace *cspace,
struct cptr sync_ep);
int dispatch_sync_loop(void);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment