Mercurial > mplayer.hg
comparison vidix/sysdep/libdha_os2.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | 8df85ad26746 |
children |
comparison
equal
deleted
inserted
replaced
29262:7d545a6b8aff | 29263:0f1b5b68af32 |
---|---|
3 /* | 3 /* |
4 * (c) Copyright 1994,1999 by Holger Veit | 4 * (c) Copyright 1994,1999 by Holger Veit |
5 * <Holger.Veit@gmd.de> | 5 * <Holger.Veit@gmd.de> |
6 * Modified 1996 by Sebastien Marineau <marineau@genie.uottawa.ca> | 6 * Modified 1996 by Sebastien Marineau <marineau@genie.uottawa.ca> |
7 * | 7 * |
8 * Permission is hereby granted, free of charge, to any person obtaining a | 8 * Permission is hereby granted, free of charge, to any person obtaining a |
9 * copy of this software and associated documentation files (the "Software"), | 9 * copy of this software and associated documentation files (the "Software"), |
10 * to deal in the Software without restriction, including without limitation | 10 * to deal in the Software without restriction, including without limitation |
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 11 * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
12 * and/or sell copies of the Software, and to permit persons to whom the | 12 * and/or sell copies of the Software, and to permit persons to whom the |
13 * Software is furnished to do so, subject to the following conditions: | 13 * Software is furnished to do so, subject to the following conditions: |
14 * | 14 * |
15 * The above copyright notice and this permission notice shall be included in | 15 * The above copyright notice and this permission notice shall be included in |
16 * all copies or substantial portions of the Software. | 16 * all copies or substantial portions of the Software. |
17 * | 17 * |
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
21 * HOLGER VEIT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | 21 * HOLGER VEIT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
22 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF | 22 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF |
23 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 23 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
24 * SOFTWARE. | 24 * SOFTWARE. |
25 * | 25 * |
26 * Except as contained in this notice, the name of Holger Veit shall not be | 26 * Except as contained in this notice, the name of Holger Veit shall not be |
27 * used in advertising or otherwise to promote the sale, use or other dealings | 27 * used in advertising or otherwise to promote the sale, use or other dealings |
28 * in this Software without prior written authorization from Holger Veit. | 28 * in this Software without prior written authorization from Holger Veit. |
29 * | 29 * |
30 */ | 30 */ |
138 /* be a waste to do this tracking twice. Can this be changed when the fn. */ | 138 /* be a waste to do this tracking twice. Can this be changed when the fn. */ |
139 /* is called? This would require tracking this function in all servers, */ | 139 /* is called? This would require tracking this function in all servers, */ |
140 /* and changing it appropriately to call this with the virtual adress */ | 140 /* and changing it appropriately to call this with the virtual adress */ |
141 /* If the above mapping function is only called once, then we can store */ | 141 /* If the above mapping function is only called once, then we can store */ |
142 /* the virtual adress and use it here.... */ | 142 /* the virtual adress and use it here.... */ |
143 | 143 |
144 par.addr = (ULONG)base; | 144 par.addr = (ULONG)base; |
145 par.size = 0xffffffff; /* This is the virtual address parameter. Set this to ignore */ | 145 par.size = 0xffffffff; /* This is the virtual address parameter. Set this to ignore */ |
146 plen = sizeof(par); | 146 plen = sizeof(par); |
147 | 147 |
148 if (mapdev != -1) | 148 if (mapdev != -1) |
154 } | 154 } |
155 /* Now if more than one region has been allocated and we close the driver, | 155 /* Now if more than one region has been allocated and we close the driver, |
156 * the other pointers will immediately become invalid. We avoid closing | 156 * the other pointers will immediately become invalid. We avoid closing |
157 * driver for now, but this should be fixed for server exit | 157 * driver for now, but this should be fixed for server exit |
158 */ | 158 */ |
159 | 159 |
160 if(!callcount) close_mmap(); | 160 if(!callcount) close_mmap(); |
161 } | 161 } |