hw_ops.h revision b3b4b4b812018a06221b6d7b88a5540fccae2940
1/* 2 * This file is part of wlcore 3 * 4 * Copyright (C) 2011 Texas Instruments Inc. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 18 * 02110-1301 USA 19 * 20 */ 21 22#ifndef __WLCORE_HW_OPS_H__ 23#define __WLCORE_HW_OPS_H__ 24 25#include "wlcore.h" 26 27static inline u32 28wlcore_hw_calc_tx_blocks(struct wl1271 *wl, u32 len, u32 spare_blks) 29{ 30 if (!wl->ops->calc_tx_blocks) 31 BUG_ON(1); 32 33 return wl->ops->calc_tx_blocks(wl, len, spare_blks); 34} 35 36#endif 37