/* * Copyright (c) 2008, Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _ATHR_FLOWMAC_H #define _ATHR_FLOWMAC_H #if defined(CONFIG_FLOWMAC) || defined(CONFIG_FLOWMAC_MODULE) #include "athrs_mac.h" #include "flowmac_api.h" int8_t athr_gmac_rx_pause(struct net_device *dev, u_int8_t pause, u_int32_t duration); int8_t athr_gmac_rx_rate_limit(struct net_device *dev, flow_dir_t dir, void *rate); int athr_gmac_notify_event (struct net_device *dev, flowmac_event_t event, void *event_data); int athr_gmac_flowmac_register(struct net_device *dev); int athr_gmac_flowmac_un_register(struct net_device *dev); #else #define athr_gmac_rx_pause(__arg1, __arg2, __arg3) #define athr_gmac_rx_rate_limit(__arg1, __arg2, __arg3) #define athr_gmac_notify_event(__arg1, __arg2, __arg3) #define athr_gmac_flowmac_register(__arg1) #define athr_gmac_flowmac_un_register(__arg1) #endif #endif //_ATHR_GMAC_H