locks: fix setlease methods to free passed-in lock
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / rar_register.h
blobffa805780f8503268834dc5c81802ebc5d19ce0f
1 /*
2 * Copyright (C) 2010 Intel Corporation. All rights reserved.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 2 of the GNU General
6 * Public License as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be
9 * useful, but WITHOUT ANY WARRANTY; without even the implied
10 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 * PURPOSE. See the GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public
13 * License along with this program; if not, write to the Free
14 * Software Foundation, Inc., 59 Temple Place - Suite 330,
15 * Boston, MA 02111-1307, USA.
16 * The full GNU General Public License is included in this
17 * distribution in the file called COPYING.
21 #ifndef _RAR_REGISTER_H
22 #define _RAR_REGISTER_H
24 #include <linux/types.h>
26 /* following are used both in drivers as well as user space apps */
28 #define RAR_TYPE_VIDEO 0
29 #define RAR_TYPE_AUDIO 1
30 #define RAR_TYPE_IMAGE 2
31 #define RAR_TYPE_DATA 3
33 #ifdef __KERNEL__
35 struct rar_device;
37 int register_rar(int num,
38 int (*callback)(unsigned long data), unsigned long data);
39 void unregister_rar(int num);
40 int rar_get_address(int rar_index, dma_addr_t *start, dma_addr_t *end);
41 int rar_lock(int rar_index);
43 #endif /* __KERNEL__ */
44 #endif /* _RAR_REGISTER_H */