📄 btusb_os_dep.h
字号:
/* * Wipro Bluetooth HCI USB Transport Layer. * This file is part of the "Wipro Bluetooth USB Driver for Linux". * Copyright (C) 2001 Wipro Technologies. <www.wipro.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Please forward any queries regarding the driver to * Nitant Kulkarni - Nitant.Kulkarni@wipro.com * Kamal K N - kamala.kodi@wipro.com * Burgupalli Chaitanya - Chaitanya.Burgupalli@wipro.com * Sadashivan Manicham - Sadashivan.Manickam@wipro.com * */ /* * * NAME : btusb_os_calls.h * * DESCRIPTION : This file describes the the linux OS dependent function. * When this driver is ported to another OS, then these OS * dependant calls are to be changed only in this file. * */ #ifndef BTUSB_OS_CALLS_H#define BTUSB_OS_CALLS_H#define LINUX#ifdef LINUX#define BTUSB_REGISTER_CHRDEV(x,y,z)\ register_chrdev(x,y,z)#define BTUSB_UNREGISTER_CHRDEV(x,y)\ unregister_chrdev(x,y)#define BTUSB_MEM_ALLOC(x)\ kmalloc((x), GFP_KERNEL)#define BTUSB_MEM_FREE(x)\ kfree((x))#define BTUSB_RESOURCE_INIT_LOCK(x)\ spin_lock_init(x)#define BTUSB_RESOURCE_LOCK(x,y)\ spin_lock_irqsave(x,y)#define BTUSB_RESOURCE_UNLOCK(x,y)\ spin_unlock_irqrestore(x,y)#define BTUSB_RESOURCE_WAIT_FOR_UNLOCK(x)\ spin_unlock_wait(x)#endif /* LINUX */#endif /* BTUSB_OS_CALLS_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -